| /linux/rust/kernel/pci/ |
| H A D | id.rs | 8 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 D | sizes.rs | 8 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 D | pwm.rs | 10 bindings, 46 impl From<bindings::pwm_waveform> for Waveform { in from() 47 fn from(wf: bindings::pwm_waveform) -> Self { in from() 56 impl From<Waveform> for bindings::pwm_waveform { in from() 58 bindings::pwm_waveform { in from() 78 pub struct Device(Opaque<bindings::pwm_device>); 87 pub(crate) unsafe fn from_raw<'a>(ptr: *mut bindings::pwm_device) -> &'a Self { 94 fn as_raw(&self) -> *mut bindings::pwm_device { in hwpwm() 127 let c_wf = bindings::pwm_waveform::from(*wf); in set_waveform() 132 to_result(unsafe { bindings [all...] |
| H A D | usb.rs | 9 bindings, 40 // - `bindings::usb_driver` is a C type declared as `repr(C)`. 45 type DriverType = bindings::usb_driver; 68 bindings::usb_register_driver(udrv.get(), module.0, name.as_char_ptr()) in register() 74 unsafe { bindings::usb_deregister(udrv.get()) }; in unregister() 80 intf: *mut bindings::usb_interface, in probe_callback() 81 id: *const bindings::usb_device_id, in probe_callback() 103 extern "C" fn disconnect_callback(intf: *mut bindings::usb_interface) { in disconnect_callback() 126 pub struct DeviceId(bindings::usb_device_id); 131 Self(bindings::usb_device_id { in from_id() [all …]
|
| H A D | configfs.rs | 130 subsystem: Opaque<bindings::configfs_subsystem>, 154 |place: &mut Opaque<bindings::configfs_subsystem>| { in new() 157 bindings::config_group_init_type_name( in new() 166 bindings::__mutex_init( in new() 180 unsafe { bindings::configfs_register_subsystem(this.subsystem.get()) }, in new() 190 unsafe { bindings::configfs_unregister_subsystem(self.subsystem.get()) }; in drop() 192 unsafe { bindings::mutex_destroy(&raw mut (*self.subsystem.get()).su_mutex) }; in drop() 197 /// `bindings::config_group`. 203 /// - Implementers of this trait must embed a `bindings::config_group`. 206 /// Return the address of the `bindings::config_group` embedded in [`Self`]. [all …]
|
| H A D | time.rs | 34 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 D | auxiliary.rs | 8 bindings, 38 // - `bindings::auxiliary_driver` is a C type declared as `repr(C)`. 43 type DriverType = bindings::auxiliary_driver; 66 bindings::__auxiliary_driver_register(adrv.get(), module.0, name.as_char_ptr()) in register() 72 unsafe { bindings::auxiliary_driver_unregister(adrv.get()) } in unregister() 78 adev: *mut bindings::auxiliary_device, in probe_callback() 79 id: *const bindings::auxiliary_device_id, in probe_callback() 100 extern "C" fn remove_callback(adev: *mut bindings::auxiliary_device) { in remove_callback() 124 /// Abstraction for `bindings::auxiliary_device_id`. 127 pub struct DeviceId(bindings::auxiliary_device_id); [all …]
|
| H A D | opp.rs | 35 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 D | kunit.rs | 25 bindings::_printk( in err() 45 bindings::_printk( in info() 73 let kunit_test = unsafe { $crate::bindings::kunit_get_current_test() }; 96 struct Location($crate::bindings::kunit_loc); 99 struct UnaryAssert($crate::bindings::kunit_unary_assert); 109 static LOCATION: Location = Location($crate::bindings::kunit_loc { 113 static ASSERTION: UnaryAssert = UnaryAssert($crate::bindings::kunit_unary_assert { 114 assert: $crate::bindings::kunit_assert {}, 138 $crate::bindings::__kunit_do_failed_assertion( 141 $crate::bindings::kunit_assert_type_KUNIT_ASSERTION, [all …]
|
| H A D | task.rs | 8 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/drivers/gpu/nova-core/gsp/ |
| H A D | fw.rs | 7 use r570_144 as bindings; 124 // u64::from(bindings::GSP_FW_HEAP_PARAM_BASE_RM_SIZE_GH100) in base_rm_size() 125 u64::from(bindings::GSP_FW_HEAP_PARAM_BASE_RM_SIZE_TU10X) in base_rm_size() 130 u64::from(bindings::GSP_FW_HEAP_PARAM_CLIENT_ALLOC_SIZE) in client_alloc_size() 140 u64::from(bindings::GSP_FW_HEAP_PARAM_SIZE_PER_GB_FB) in management_overhead() 158 carveout_size: num::u32_as_u64(bindings::GSP_FW_HEAP_PARAM_OS_SIZE_LIBOS2), 159 allowed_heap_size: num::u32_as_u64(bindings::GSP_FW_HEAP_SIZE_OVERRIDE_LIBOS2_MIN_MB) 161 ..num::u32_as_u64(bindings::GSP_FW_HEAP_SIZE_OVERRIDE_LIBOS2_MAX_MB) 167 carveout_size: num::u32_as_u64(bindings::GSP_FW_HEAP_PARAM_OS_SIZE_LIBOS3_BAREMETAL), 169 bindings::GSP_FW_HEAP_SIZE_OVERRIDE_LIBOS3_BAREMETAL_MIN_MB, [all …]
|
| /linux/rust/kernel/drm/ |
| H A D | driver.rs | 8 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 [all...] |
| /linux/rust/kernel/drm/gem/ |
| H A D | mod.rs | 9 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() 59 raw_obj: *mut bindings::drm_gem_object, in open_callback() 60 raw_file: *mut bindings::drm_file, in open_callback() 76 raw_obj: *mut bindings::drm_gem_object, in close_callback() 77 raw_file: *mut bindings::drm_file, in close_callback() 90 fn as_raw(&self) -> *mut bindings::drm_gem_object { in as_raw() 94 unsafe fn from_raw<'a>(self_ptr: *mut bindings::drm_gem_object) -> &'a Self { in from_raw() 120 bindings in create_handle() [all...] |
| /linux/rust/kernel/debugfs/ |
| H A D | file_ops.rs | 33 operations: bindings::file_operations, 44 const unsafe fn new(operations: bindings::file_operations, mode: u16) -> Self { in new() 69 type Target = bindings::file_operations; 92 inode: *mut bindings::inode, in writer_open() 93 file: *mut bindings::file, in writer_open() 103 unsafe { bindings::single_open(file, Some(writer_act::<T>), data) } in writer_open() 113 seq: *mut bindings::seq_file, in writer_act() 133 let operations = bindings::file_operations { 134 read: Some(bindings::seq_read), 135 llseek: Some(bindings::seq_lseek), [all …]
|
| /linux/rust/kernel/irq/ |
| H A D | flags.rs | 4 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 D | qcom,sc7280-lpasscorecc.yaml | 17 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 D | qcom,gpucc.yaml | 18 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/Documentation/devicetree/bindings/ |
| H A D | submitting-patches.rst | 13 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/fs/ |
| H A D | file.rs | 11 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/rust/kernel/mm/ |
| H A D | virt.rs | 18 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/power/ |
| H A D | rockchip,power-controller.yaml | 20 Documentation/devicetree/bindings/power/power-domain.yaml. 116 "include/dt-bindings/power/px30-power.h" 117 "include/dt-bindings/power/rk3036-power.h" 118 "include/dt-bindings/power/rk3066-power.h" 119 "include/dt-bindings/power/rk3128-power.h" 120 "include/dt-bindings/power/rk3188-power.h" 121 "include/dt-bindings/power/rk3228-power.h" 122 "include/dt-bindings/power/rk3288-power.h" 123 "include/dt-bindings/power/rk3328-power.h" 124 "include/dt-bindings/power/rk3366-power.h" [all …]
|
| /linux/Documentation/devicetree/bindings/mmc/ |
| H A D | sdhci-st.txt | 4 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/rust/kernel/net/ |
| H A D | phy.rs | 74 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 …]
|
| /linux/rust/kernel/block/mq/ |
| H A D | operations.rs | 8 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/rust/kernel/iommu/ |
| H A D | pgtable.rs | 14 bindings, 25 use bindings::io_pgtable_fmt; 30 pub const READ: u32 = bindings::IOMMU_READ; 32 pub const WRITE: u32 = bindings::IOMMU_WRITE; 34 pub const CACHE: u32 = bindings::IOMMU_CACHE; 36 pub const NOEXEC: u32 = bindings::IOMMU_NOEXEC; 38 pub const MMIO: u32 = bindings::IOMMU_MMIO; 40 pub const PRIVILEGED: u32 = bindings::IOMMU_PRIV; 63 ptr: NonNull<bindings::io_pgtable_ops>, 97 let mut raw_cfg = bindings::io_pgtable_cfg { in new_raw() [all …]
|