Home
last modified time | relevance | path

Searched full:bindings (Results 1 – 25 of 6294) sorted by relevance

12345678910>>...252

/linux/rust/kernel/pci/
H A Did.rs7 use crate::{bindings, error::code::EINVAL, error::Error, prelude::*};
175 NOT_DEFINED = bindings::PCI_CLASS_NOT_DEFINED, // 0x000000
176 NOT_DEFINED_VGA = bindings::PCI_CLASS_NOT_DEFINED_VGA, // 0x000100
178 STORAGE_SCSI = bindings::PCI_CLASS_STORAGE_SCSI, // 0x010000
179 STORAGE_IDE = bindings::PCI_CLASS_STORAGE_IDE, // 0x010100
180 STORAGE_FLOPPY = bindings::PCI_CLASS_STORAGE_FLOPPY, // 0x010200
181 STORAGE_IPI = bindings::PCI_CLASS_STORAGE_IPI, // 0x010300
182 STORAGE_RAID = bindings::PCI_CLASS_STORAGE_RAID, // 0x010400
183 STORAGE_SATA = bindings::PCI_CLASS_STORAGE_SATA, // 0x010600
184 STORAGE_SATA_AHCI = bindings::PCI_CLASS_STORAGE_SATA_AHCI, // 0x010601
[all …]
/linux/rust/kernel/
H A Dsizes.rs8 pub const SZ_1K: usize = bindings::SZ_1K as usize;
10 pub const SZ_2K: usize = bindings::SZ_2K as usize;
12 pub const SZ_4K: usize = bindings::SZ_4K as usize;
14 pub const SZ_8K: usize = bindings::SZ_8K as usize;
16 pub const SZ_16K: usize = bindings::SZ_16K as usize;
18 pub const SZ_32K: usize = bindings::SZ_32K as usize;
20 pub const SZ_64K: usize = bindings::SZ_64K as usize;
22 pub const SZ_128K: usize = bindings::SZ_128K as usize;
24 pub const SZ_256K: usize = bindings::SZ_256K as usize;
26 pub const SZ_512K: usize = bindings::SZ_512K as usize;
[all …]
H A Dkunit.rs24 bindings::_printk( in err()
40 bindings::_printk( in info()
68 let kunit_test = unsafe { $crate::bindings::kunit_get_current_test() };
91 struct Location($crate::bindings::kunit_loc);
94 struct UnaryAssert($crate::bindings::kunit_unary_assert);
104 static LOCATION: Location = Location($crate::bindings::kunit_loc {
108 static ASSERTION: UnaryAssert = UnaryAssert($crate::bindings::kunit_unary_assert {
109 assert: $crate::bindings::kunit_assert {},
133 $crate::bindings::__kunit_do_failed_assertion(
136 $crate::bindings::kunit_assert_type_KUNIT_ASSERTION,
[all …]
H A Dusb.rs9 bindings, device,
26 type RegType = bindings::usb_driver;
43 bindings::usb_register_driver(udrv.get(), module.0, name.as_char_ptr()) in register()
49 unsafe { bindings::usb_deregister(udrv.get()) }; in unregister()
55 intf: *mut bindings::usb_interface, in probe_callback()
56 id: *const bindings::usb_device_id, in probe_callback()
78 extern "C" fn disconnect_callback(intf: *mut bindings::usb_interface) { in disconnect_callback()
101 pub struct DeviceId(bindings::usb_device_id);
106 Self(bindings::usb_device_id { in from_id()
107 match_flags: bindings::USB_DEVICE_ID_MATCH_DEVICE as u16, in from_id()
[all …]
H A Dauxiliary.rs8 bindings, container_of, device,
27 type RegType = bindings::auxiliary_driver;
44 bindings::__auxiliary_driver_register(adrv.get(), module.0, name.as_char_ptr()) in register()
50 unsafe { bindings::auxiliary_driver_unregister(adrv.get()) } in unregister()
56 adev: *mut bindings::auxiliary_device, in probe_callback()
57 id: *const bindings::auxiliary_device_id, in probe_callback()
78 extern "C" fn remove_callback(adev: *mut bindings::auxiliary_device) { in remove_callback()
100 /// Abstraction for `bindings::auxiliary_device_id`.
103 pub struct DeviceId(bindings::auxiliary_device_id);
111 // TODO: Replace with `bindings::auxiliary_device_id::default()` once stabilized for in new()
[all …]
H A Dconfigfs.rs131 subsystem: Opaque<bindings::configfs_subsystem>,
155 |place: &mut Opaque<bindings::configfs_subsystem>| { in new()
158 bindings::config_group_init_type_name( in new()
167 bindings::__mutex_init( in new()
181 unsafe { bindings::configfs_register_subsystem(this.subsystem.get()) }, in new()
191 unsafe { bindings::configfs_unregister_subsystem(self.subsystem.get()) }; in drop()
193 unsafe { bindings::mutex_destroy(&raw mut (*self.subsystem.get()).su_mutex) }; in drop()
198 /// `bindings::config_group`.
204 /// - Implementers of this trait must embed a `bindings::config_group`.
207 /// Return the address of the `bindings::config_group` embedded in [`Self`].
[all …]
H A Dtime.rs34 pub const NSEC_PER_USEC: i64 = bindings::NSEC_PER_USEC as i64;
37 pub const NSEC_PER_MSEC: i64 = bindings::NSEC_PER_MSEC as i64;
40 pub const NSEC_PER_SEC: i64 = bindings::NSEC_PER_SEC as i64;
53 unsafe { bindings::__msecs_to_jiffies(msecs) } in msecs_to_jiffies()
67 const ID: bindings::clockid_t;
72 fn ktime_get() -> bindings::ktime_t; in ktime_get()
89 const ID: bindings::clockid_t = bindings::CLOCK_MONOTONIC as bindings::clockid_t;
91 fn ktime_get() -> bindings::ktime_t { in ktime_get()
93 unsafe { bindings::ktime_get() } in ktime_get()
114 const ID: bindings::clockid_t = bindings::CLOCK_REALTIME as bindings::clockid_t;
[all …]
H A Dopp.rs35 ptr: *mut bindings::cpufreq_frequency_table,
41 let mut ptr: *mut bindings::cpufreq_frequency_table = ptr::null_mut(); in new()
46 bindings::dev_pm_opp_init_cpufreq_table(table.dev.as_raw(), &mut ptr) in new()
77 bindings::dev_pm_opp_free_cpufreq_table(self.dev.as_raw(), &mut self.as_raw()) in drop()
185 to_result(unsafe { bindings::dev_pm_opp_add_dynamic(dev.as_raw(), &mut data.0) })?; in new()
197 unsafe { bindings::dev_pm_opp_remove(self.dev.as_raw(), self.freq.into()) }; in drop()
225 pub struct Data(bindings::dev_pm_opp_data);
232 Self(bindings::dev_pm_opp_data { in new()
306 _data: *mut *mut bindings::regulator, in config_regulators()
322 unsafe { bindings::dev_pm_opp_clear_config(self.0) }; in drop()
[all …]
H A Dtask.rs8 bindings,
25 pub const TASK_INTERRUPTIBLE: c_int = bindings::TASK_INTERRUPTIBLE as c_int;
27 pub const TASK_UNINTERRUPTIBLE: c_int = bindings::TASK_UNINTERRUPTIBLE as c_int;
29 pub const TASK_FREEZABLE: c_int = bindings::TASK_FREEZABLE as c_int;
32 pub const TASK_NORMAL: c_uint = bindings::TASK_NORMAL as c_uint;
97 pub struct Task(pub(crate) Opaque<bindings::task_struct>);
149 pub type Pid = bindings::pid_t;
154 kuid: bindings::kuid_t,
162 pub fn current_raw() -> *mut bindings::task_struct { in current_raw()
164 unsafe { bindings::get_current() } in current_raw()
[all …]
/linux/rust/kernel/drm/
H A Ddriver.rs8 bindings, device, devres, drm,
16 pub(crate) const FEAT_GEM: u32 = bindings::drm_driver_feature_DRIVER_GEM;
36 dev: *mut bindings::drm_device,
38 ) -> *mut bindings::drm_gem_object,
42 dev: *mut bindings::drm_device,
43 file_priv: *mut bindings::drm_file,
51 dev: *mut bindings::drm_device,
52 file_priv: *mut bindings::drm_file,
59 dev: *mut bindings::drm_device,
60 dma_buf: *mut bindings::dma_buf,
[all …]
/linux/rust/kernel/drm/gem/
H A Dmod.rs9 bindings, drm,
46 fn as_raw(&self) -> *mut bindings::drm_gem_object; in as_raw()
55 unsafe fn from_raw<'a>(self_ptr: *mut bindings::drm_gem_object) -> &'a Self; in from_raw()
62 unsafe { bindings::drm_gem_object_get(self.as_raw()) }; in inc_ref()
74 unsafe { bindings::drm_gem_object_put(obj) }; in dec_ref()
79 raw_obj: *mut bindings::drm_gem_object, in open_callback()
80 raw_file: *mut bindings::drm_file, in open_callback()
96 raw_obj: *mut bindings::drm_gem_object, in close_callback()
97 raw_file: *mut bindings::drm_file, in close_callback()
110 fn as_raw(&self) -> *mut bindings::drm_gem_object { in as_raw()
[all …]
/linux/rust/kernel/irq/
H A Dflags.rs4 use crate::bindings;
31 pub const TRIGGER_NONE: Flags = Flags::new(bindings::IRQF_TRIGGER_NONE);
34 pub const TRIGGER_RISING: Flags = Flags::new(bindings::IRQF_TRIGGER_RISING);
37 pub const TRIGGER_FALLING: Flags = Flags::new(bindings::IRQF_TRIGGER_FALLING);
40 pub const TRIGGER_HIGH: Flags = Flags::new(bindings::IRQF_TRIGGER_HIGH);
43 pub const TRIGGER_LOW: Flags = Flags::new(bindings::IRQF_TRIGGER_LOW);
46 pub const SHARED: Flags = Flags::new(bindings::IRQF_SHARED);
49 pub const PROBE_SHARED: Flags = Flags::new(bindings::IRQF_PROBE_SHARED);
52 pub const TIMER: Flags = Flags::new(bindings::IRQF_TIMER);
55 pub const PERCPU: Flags = Flags::new(bindings::IRQF_PERCPU);
[all …]
/linux/Documentation/devicetree/bindings/clock/
H A Dqcom,sc7280-lpasscorecc.yaml17 include/dt-bindings/clock/qcom,lpasscorecc-sc7280.h
18 include/dt-bindings/clock/qcom,lpassaudiocc-sc7280.h
140 #include <dt-bindings/clock/qcom,rpmh.h>
141 #include <dt-bindings/clock/qcom,gcc-sc7280.h>
142 #include <dt-bindings/clock/qcom,lpassaudiocc-sc7280.h>
143 #include <dt-bindings/clock/qcom,lpasscorecc-sc7280.h>
158 #include <dt-bindings/clock/qcom,rpmh.h>
159 #include <dt-bindings/clock/qcom,gcc-sc7280.h>
160 #include <dt-bindings/clock/qcom,lpassaudiocc-sc7280.h>
161 #include <dt-bindings/clock/qcom,lpasscorecc-sc7280.h>
[all …]
H A Dqcom,gpucc.yaml18 include/dt-bindings/clock/qcom,gpucc-sdm845.h
19 include/dt-bindings/clock/qcom,gpucc-sa8775p.h
20 include/dt-bindings/clock/qcom,gpucc-sc7180.h
21 include/dt-bindings/clock/qcom,gpucc-sc7280.h
22 include/dt-bindings/clock/qcom,gpucc-sc8280xp.h
23 include/dt-bindings/clock/qcom,gpucc-sm6350.h
24 include/dt-bindings/clock/qcom,gpucc-sm8150.h
25 include/dt-bindings/clock/qcom,gpucc-sm8250.h
26 include/dt-bindings/clock/qcom,gpucc-sm8350.h
27 include/dt-bindings/clock/qcom,qcs8300-gpucc.h
[all …]
H A Dqcom,sm8450-gpucc.yaml17 include/dt-bindings/clock/qcom,milos-gpucc.h
18 include/dt-bindings/clock/qcom,sar2130p-gpucc.h
19 include/dt-bindings/clock/qcom,sm4450-gpucc.h
20 include/dt-bindings/clock/qcom,sm8450-gpucc.h
21 include/dt-bindings/clock/qcom,sm8550-gpucc.h
22 include/dt-bindings/reset/qcom,sm8450-gpucc.h
23 include/dt-bindings/reset/qcom,sm8650-gpucc.h
24 include/dt-bindings/reset/qcom,x1e80100-gpucc.h
57 #include <dt-bindings/clock/qcom,gcc-sm8450.h>
58 #include <dt-bindings/clock/qcom,rpmh.h>
/linux/Documentation/devicetree/bindings/
H A Dsubmitting-patches.rst13 1) The Documentation/ and include/dt-bindings/ portion of the patch should
16 "dt-bindings: <binding dir>: ..."
21 "<binding dir>: dt-bindings: ..."
25 bindings are docs and all new bindings are supposed to be in Devicetree
29 "dt-bindings: iio: adc: Add ROHM BD79100G"
33 "dt-bindings: iio: adc: adi,ad7476: Convert to DT schema"
41 See Documentation/devicetree/bindings/writing-schema.rst for more details
59 in Documentation/devicetree/bindings. This rule applies even if
66 any DTS patches, regardless whether using existing or new bindings, should
74 bindings submission on the mailing list.
[all …]
/linux/rust/kernel/debugfs/
H A Dfile_ops.rs23 operations: bindings::file_operations,
34 const unsafe fn new(operations: bindings::file_operations, mode: u16) -> Self { in new()
59 type Target = bindings::file_operations;
82 inode: *mut bindings::inode, in writer_open()
83 file: *mut bindings::file, in writer_open()
93 unsafe { bindings::single_open(file, Some(writer_act::<T>), data) } in writer_open()
103 seq: *mut bindings::seq_file, in writer_act()
123 let operations = bindings::file_operations {
124 read: Some(bindings::seq_read),
125 llseek: Some(bindings::seq_lseek),
[all …]
/linux/rust/kernel/mm/
H A Dvirt.rs18 bindings,
36 vma: Opaque<bindings::vm_area_struct>,
49 pub unsafe fn from_raw<'a>(vma: *const bindings::vm_area_struct) -> &'a Self { in from_raw()
56 pub fn as_ptr(&self) -> *mut bindings::vm_area_struct { in as_ptr()
127 bindings::zap_page_range_single(self.as_ptr(), address, size, core::ptr::null_mut()) in zap_page_range_single()
185 pub unsafe fn from_raw<'a>(vma: *const bindings::vm_area_struct) -> &'a Self { in from_raw()
197 to_result(unsafe { bindings::vm_insert_page(self.as_ptr(), address, page.as_ptr()) }) in vm_insert_page()
234 pub unsafe fn from_raw<'a>(vma: *mut bindings::vm_area_struct) -> &'a Self { in from_raw()
388 pub use bindings::vm_flags_t;
393 use crate::bindings;
[all …]
/linux/rust/kernel/fs/
H A Dfile.rs11 bindings,
23 pub const O_APPEND: u32 = bindings::O_APPEND;
26 pub const O_ASYNC: u32 = bindings::FASYNC;
29 pub const O_CLOEXEC: u32 = bindings::O_CLOEXEC;
32 pub const O_CREAT: u32 = bindings::O_CREAT;
35 pub const O_DIRECT: u32 = bindings::O_DIRECT;
38 pub const O_DIRECTORY: u32 = bindings::O_DIRECTORY;
41 pub const O_DSYNC: u32 = bindings::O_DSYNC;
44 pub const O_EXCL: u32 = bindings::O_EXCL;
47 pub const O_LARGEFILE: u32 = bindings::O_LARGEFILE;
[all …]
/linux/Documentation/devicetree/bindings/mmc/
H A Dsdhci-st.txt4 Documentation/devicetree/bindings/mmc/mmc.txt and the properties
14 See: Documentation/devicetree/bindings/resource-names.txt
16 See: Documentation/devicetree/bindings/clock/clock-bindings.txt
23 See: Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt
36 See: Documentation/devicetree/bindings/mmc/mmc.txt.
39 See: Documentation/devicetree/bindings/mmc/mmc.txt.
43 See: Documentation/devicetree/bindings/mmc/mmc.txt.
46 See: Documentation/devicetree/bindings/reset/reset.txt
52 See: Documentation/devicetree/bindings/mmc/mmc.txt.
55 See: Documentation/devicetree/bindings/mmc/mmc.txt.
[all …]
/linux/Documentation/devicetree/bindings/power/
H A Drockchip,power-controller.yaml20 Documentation/devicetree/bindings/power/power-domain.yaml.
115 "include/dt-bindings/power/px30-power.h"
116 "include/dt-bindings/power/rk3036-power.h"
117 "include/dt-bindings/power/rk3066-power.h"
118 "include/dt-bindings/power/rk3128-power.h"
119 "include/dt-bindings/power/rk3188-power.h"
120 "include/dt-bindings/power/rk3228-power.h"
121 "include/dt-bindings/power/rk3288-power.h"
122 "include/dt-bindings/power/rk3328-power.h"
123 "include/dt-bindings/power/rk3366-power.h"
[all …]
/linux/tools/power/cpupower/bindings/python/
H A DREADME1 This folder contains the necessary files to build the Python bindings for
21 the bindings code: is permissively licensed + the license of libcpupower's
22 library files. For these bindings that means GPL v2.
54 developing/using the bindings directly
57 You need to add the Python bindings directory to your $PYTHONPATH.
61 PYTHONPATH=~/linux/tools/power/cpupower/bindings/python:$PYTHONPATH
63 This allows you to set a specific repo of the bindings to use.
70 by default. You do not need to install cpupower to use the SWIG bindings.
72 You can install and uninstall the bindings to the site-packages with:
82 Original Bindings Author:
/linux/rust/kernel/block/mq/
H A Doperations.rs8 bindings,
58 /// A `bindings::blk_mq_ops` vtable is constructed from pointers to the `extern
79 /// - `(*bd).rq` must point to an initialized and live `bindings:request`.
84 /// `bindings::blk_mq_end_request` for the request.
86 hctx: *mut bindings::blk_mq_hw_ctx, in queue_rq_callback()
87 bd: *const bindings::blk_mq_queue_data, in queue_rq_callback()
88 ) -> bindings::blk_status_t { in queue_rq_callback()
127 bindings::BLK_STS_OK as bindings::blk_status_t in queue_rq_callback()
138 unsafe extern "C" fn commit_rqs_callback(hctx: *mut bindings::blk_mq_hw_ctx) { in commit_rqs_callback()
158 unsafe extern "C" fn complete_callback(rq: *mut bindings::request) { in complete_callback()
[all …]
/linux/Documentation/devicetree/bindings/display/mediatek/
H A Dmediatek,wdma.yaml18 Documentation/devicetree/bindings/arm/mediatek/mediatek,mmsys.yaml
37 description: A phandle and PM domain specifier as defined by bindings of
39 Documentation/devicetree/bindings/power/power-domain.yaml for details.
48 see Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml for details.
54 defined in the header include/dt-bindings/gce/<chip>-gce.h.
70 #include <dt-bindings/interrupt-controller/arm-gic.h>
71 #include <dt-bindings/clock/mt8173-clk.h>
72 #include <dt-bindings/power/mt8173-power.h>
73 #include <dt-bindings/gce/mt8173-gce.h>
74 #include <dt-bindings/memory/mt8173-larb-port.h>
/linux/rust/kernel/net/
H A Dphy.rs74 pub struct Device(Opaque<bindings::phy_device>);
86 unsafe fn from_raw<'a>(ptr: *mut bindings::phy_device) -> &'a mut Self { in from_raw()
87 // CAST: `Self` is a `repr(transparent)` wrapper around `bindings::phy_device`. in from_raw()
111 bindings::phy_state_PHY_DOWN => DeviceState::Down, in state()
112 bindings::phy_state_PHY_READY => DeviceState::Ready, in state()
113 bindings::phy_state_PHY_HALTED => DeviceState::Halted, in state()
114 bindings::phy_state_PHY_ERROR => DeviceState::Error, in state()
115 bindings::phy_state_PHY_UP => DeviceState::Up, in state()
116 bindings::phy_state_PHY_RUNNING => DeviceState::Running, in state()
117 bindings::phy_state_PHY_NOLINK => DeviceState::NoLink, in state()
[all …]

12345678910>>...252