Home
last modified time | relevance | path

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

12345678910>>...169

/linux/rust/kernel/pci/
H A Did.rs8 bindings,
178 NOT_DEFINED = bindings::PCI_CLASS_NOT_DEFINED, // 0x000000
179 NOT_DEFINED_VGA = bindings::PCI_CLASS_NOT_DEFINED_VGA, // 0x000100
181 STORAGE_SCSI = bindings::PCI_CLASS_STORAGE_SCSI, // 0x010000
182 STORAGE_IDE = bindings::PCI_CLASS_STORAGE_IDE, // 0x010100
183 STORAGE_FLOPPY = bindings::PCI_CLASS_STORAGE_FLOPPY, // 0x010200
184 STORAGE_IPI = bindings::PCI_CLASS_STORAGE_IPI, // 0x010300
185 STORAGE_RAID = bindings::PCI_CLASS_STORAGE_RAID, // 0x010400
186 STORAGE_SATA = bindings::PCI_CLASS_STORAGE_SATA, // 0x010600
187 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 Dusb.rs9 bindings, device,
33 type RegType = bindings::usb_driver;
50 bindings::usb_register_driver(udrv.get(), module.0, name.as_char_ptr()) in register()
56 unsafe { bindings::usb_deregister(udrv.get()) }; in unregister()
62 intf: *mut bindings::usb_interface, in probe_callback()
63 id: *const bindings::usb_device_id, in probe_callback()
85 extern "C" fn disconnect_callback(intf: *mut bindings::usb_interface) { in disconnect_callback()
108 pub struct DeviceId(bindings::usb_device_id);
113 Self(bindings::usb_device_id { in from_id()
114 match_flags: bindings::USB_DEVICE_ID_MATCH_DEVICE as u16, in from_id()
[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 Dauxiliary.rs8 bindings, container_of, device,
29 type RegType = bindings::auxiliary_driver;
46 bindings::__auxiliary_driver_register(adrv.get(), module.0, name.as_char_ptr()) in register()
52 unsafe { bindings::auxiliary_driver_unregister(adrv.get()) } in unregister()
58 adev: *mut bindings::auxiliary_device, in probe_callback()
59 id: *const bindings::auxiliary_device_id, in probe_callback()
80 extern "C" fn remove_callback(adev: *mut bindings::auxiliary_device) { in remove_callback()
102 /// Abstraction for `bindings::auxiliary_device_id`.
105 pub struct DeviceId(bindings::auxiliary_device_id);
113 // TODO: Replace with `bindings::auxiliary_device_id::default()` once stabilized for in new()
[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 Dpci.rs8 bindings,
56 type RegType = bindings::pci_driver;
73 bindings::__pci_register_driver(pdrv.get(), module.0, name.as_char_ptr()) in register()
79 unsafe { bindings::pci_unregister_driver(pdrv.get()) } in unregister()
85 pdev: *mut bindings::pci_dev, in probe_callback()
86 id: *const bindings::pci_device_id, in probe_callback()
107 extern "C" fn remove_callback(pdev: *mut bindings::pci_dev) { in remove_callback()
148 pub struct DeviceId(bindings::pci_device_id);
158 Self(bindings::pci_device_id { in from_id()
175 Self(bindings::pci_device_id { in from_class()
[all …]
H A Dfirmware.rs8 bindings,
19 /// One of the following: `bindings::request_firmware`, `bindings::firmware_request_nowarn`,
20 /// `bindings::firmware_request_platform`, `bindings::request_firmware_direct`.
23 *mut *const bindings::firmware,
25 *mut bindings::device,
31 Self(bindings::request_firmware) in request()
35 Self(bindings::firmware_request_nowarn) in request_nowarn()
66 pub struct Firmware(NonNull<bindings::firmware>);
70 let mut fw: *mut bindings::firmware = core::ptr::null_mut(); in request_internal()
71 let pfw: *mut *mut bindings::firmware = &mut fw; in request_internal()
[all …]
H A Dxarray.rs8 alloc, bindings, build_assert,
23 /// `self.xa` is always an initialized and valid [`bindings::xarray`] whose entries are either
58 xa: Opaque<bindings::xarray>,
75 unsafe { bindings::xa_destroy(self.xa.get()) }; in drop()
91 AllocKind::Alloc => bindings::XA_FLAGS_ALLOC, in new()
92 AllocKind::Alloc1 => bindings::XA_FLAGS_ALLOC1, in new()
97 // INVARIANT: `xa` is initialized here to an empty, valid [`bindings::xarray`]. in new()
99 bindings::xa_init_flags(xa, flags) in new()
110 bindings::xa_find(self.xa.get(), &mut index, usize::MAX, bindings::XA_PRESENT) in iter()
115 bindings::xa_find_after(self.xa.get(), &mut index, usize::MAX, bindings::XA_PRESENT) in iter()
[all …]
H A Di2c.rs39 pub struct DeviceId(bindings::i2c_device_id);
49 let mut i2c: bindings::i2c_device_id = pin_init::zeroed(); in new()
63 type RawType = bindings::i2c_device_id;
68 const DRIVER_DATA_OFFSET: usize = core::mem::offset_of!(bindings::i2c_device_id, driver_data);
98 type RegType = bindings::i2c_driver;
137 to_result(unsafe { bindings::i2c_register_driver(module.0, idrv.get()) }) in register()
142 unsafe { bindings::i2c_del_driver(idrv.get()) } in unregister()
147 extern "C" fn probe_callback(idev: *mut bindings::i2c_client) -> kernel::ffi::c_int { in probe_callback()
165 extern "C" fn remove_callback(idev: *mut bindings::i2c_client) { in remove_callback()
177 extern "C" fn shutdown_callback(idev: *mut bindings::i2c_client) { in shutdown_callback()
[all …]
H A Dmm.rs15 bindings,
49 mm: Opaque<bindings::mm_struct>,
62 unsafe { bindings::mmgrab(self.as_raw()) }; in inc_ref()
68 unsafe { bindings::mmdrop(obj.cast().as_ptr()) }; in dec_ref()
98 unsafe { bindings::mmget(self.as_raw()) }; in inc_ref()
104 unsafe { bindings::mmput(obj.cast().as_ptr()) }; in dec_ref()
122 pub fn as_raw(&self) -> *mut bindings::mm_struct { in as_raw()
133 pub unsafe fn from_raw<'a>(ptr: *const bindings::mm_struct) -> &'a Mm { in from_raw()
143 let success = unsafe { bindings::mmget_not_zero(self.as_raw()) }; in mmget_not_zero()
163 pub unsafe fn from_raw<'a>(ptr: *const bindings::mm_struct) -> &'a MmWithUser { in from_raw()
[all …]
/linux/rust/kernel/debugfs/
H A Dfile_ops.rs24 operations: bindings::file_operations,
35 const unsafe fn new(operations: bindings::file_operations, mode: u16) -> Self { in new()
60 type Target = bindings::file_operations;
83 inode: *mut bindings::inode, in writer_open()
84 file: *mut bindings::file, in writer_open()
94 unsafe { bindings::single_open(file, Some(writer_act::<T>), data) } in writer_open()
104 seq: *mut bindings::seq_file, in writer_act()
124 let operations = bindings::file_operations {
125 read: Some(bindings::seq_read),
126 llseek: Some(bindings::seq_lseek),
[all …]
/linux/rust/kernel/fs/
H A Dfile.rs11 bindings,
22 /// Type alias for `bindings::loff_t`.
23 pub type Offset = bindings::loff_t;
28 pub const O_APPEND: u32 = bindings::O_APPEND;
31 pub const O_ASYNC: u32 = bindings::FASYNC;
34 pub const O_CLOEXEC: u32 = bindings::O_CLOEXEC;
37 pub const O_CREAT: u32 = bindings::O_CREAT;
40 pub const O_DIRECT: u32 = bindings::O_DIRECT;
43 pub const O_DIRECTORY: u32 = bindings::O_DIRECTORY;
46 pub const O_DSYNC: u32 = bindings::O_DSYNC;
[all …]
/linux/Documentation/devicetree/bindings/clock/
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 …]
/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/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/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/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/io/
H A Dresource.rs28 /// - `self.0` points to a valid `bindings::resource` that was obtained through
29 /// `bindings::__request_region`.
32 resource: NonNull<bindings::resource>,
55 bindings::release_mem_region in drop()
57 bindings::release_region in drop()
77 /// [`Resource`] is a transparent wrapper around a valid `bindings::resource`.
79 pub struct Resource(Opaque<bindings::resource>);
87 /// point at a valid `bindings::resource`.
91 pub(crate) const unsafe fn from_raw<'a>(ptr: *mut bindings::resource) -> &'a Self { in from_raw()
92 // SAFETY: Self is a transparent wrapper around `Opaque<bindings::resource>`. in from_raw()
[all …]
/linux/
H A DMAINTAINERS199 F: Documentation/devicetree/bindings/power/supply/*ab8500*
449 F: Documentation/devicetree/bindings/iio/dac/adi,ad5446.yaml
469 F: Documentation/devicetree/bindings/iio/adc/adi,ad7380.yaml
498 F: Documentation/devicetree/bindings/iio/adc/adi,ad7944.yaml
506 F: Documentation/devicetree/bindings/input/adafruit,seesaw-gamepad.yaml
519 F: Documentation/devicetree/bindings/net/ieee802154/adf7242.txt
545 F: Documentation/devicetree/bindings/hwmon/pmbus/adi,adp1050.yaml
551 F: Documentation/devicetree/bindings/media/i2c/adi,adp1653.txt
571 F: Documentation/devicetree/bindings/*/adi,adp5585*.yaml
583 F: Documentation/devicetree/bindings/input/adi,adp5588.yaml
[all …]
/linux/Documentation/devicetree/bindings/serial/
H A Datmel,at91-usart.yaml74 <AT91_USART_MODE_SERIAL> for USART (found in dt-bindings/mfd/at91-usart.h).
135 #include <dt-bindings/gpio/gpio.h>
136 #include <dt-bindings/interrupt-controller/irq.h>
137 #include <dt-bindings/mfd/at91-usart.h>
138 #include <dt-bindings/dma/at91.h>
159 #include <dt-bindings/gpio/gpio.h>
160 #include <dt-bindings/interrupt-controller/irq.h>
161 #include <dt-bindings/mfd/at91-usart.h>
162 #include <dt-bindings/dma/at91.h>
181 #include <dt-bindings/gpio/gpio.h>
[all …]
/linux/Documentation/rust/
H A Dgeneral-information.rst67 Abstractions vs. bindings
72 In order to use functions and types from the C side, bindings are created.
73 Bindings are the declarations for Rust of those functions and types from
77 a ``struct mutex`` from the C side and calls its functions through the bindings.
81 (e.g. drivers) should not use the C bindings directly. Instead, subsystems
86 rust/bindings/
96 | my_foo | -----> | | foo | | bar | | -------> | Bindings | <-+ |
98 +---------+ | |system| |system| | | bindings | <-----+
114 Bindings section in Abstractions vs. bindings
118 ``rust/bindings/bindings_helper.h``, the ``bindgen`` tool will auto-generate the
[all …]
/linux/Documentation/devicetree/bindings/usb/
H A Ddwc3-st.txt16 See: Documentation/devicetree/bindings/reset/st,stih407-powerdown.yaml
17 See: Documentation/devicetree/bindings/reset/reset.txt
23 See: Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt
26 See: Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt
34 Documentation/devicetree/bindings/usb/snps,dwc3.yaml
40 [1] Documentation/devicetree/bindings/usb/usb-drd.yaml
/linux/Documentation/devicetree/bindings/mfd/
H A Dmotorola-cpcap.txt19 - Documentation/devicetree/bindings/power/supply/cpcap-battery.yaml
20 - Documentation/devicetree/bindings/power/supply/cpcap-charger.yaml
21 - Documentation/devicetree/bindings/regulator/cpcap-regulator.txt
22 - Documentation/devicetree/bindings/phy/motorola,cpcap-usb-phy.yaml
23 - Documentation/devicetree/bindings/input/cpcap-pwrbutton.txt
24 - Documentation/devicetree/bindings/rtc/cpcap-rtc.txt
25 - Documentation/devicetree/bindings/leds/leds-cpcap.txt
26 - Documentation/devicetree/bindings/iio/adc/motorola,cpcap-adc.yaml
/linux/Documentation/devicetree/bindings/pinctrl/
H A Dpinctrl-rk805.txt5 Please refer file <devicetree/bindings/pinctrl/pinctrl-bindings.txt>
6 for details of the common pinctrl bindings used by client devices,
13 - pinctrl-names: A pinctrl state named per <pinctrl-bindings.txt>.
15 <pinctrl-bindings.txt>.
30 Documentation/devicetree/bindings/mfd/rockchip,rk808.yaml
35 <pinctrl-bindings.txt>. Absence of properties will leave the configuration

12345678910>>...169