| /rust/kernel/device/ |
| A D | property.rs | 83 if name.is_null() { in display_name() 89 let name = unsafe { CStr::from_char_ptr(name) }; in display_name() 120 name.as_char_ptr(), in property_match_string() 131 name: &'name CStr, in property_read_array_vec() 152 name, in property_read_array_vec() 192 name: &'name CStr, in property_read() 197 name, in property_read() 478 name: &CStr, in read_array_from_fwnode_property() 498 name: &CStr, 586 name: &'name CStr, field [all …]
|
| /rust/pin-init/src/ |
| A D | macros.rs | 564 @name($name), 595 @name($name:ident), 618 @name($name), 635 @name($name:ident), 653 @name($name), 670 @name($name:ident), 688 @name($name), 705 @name($name:ident), 722 @name($name), 760 @name($name), [all …]
|
| /rust/kernel/ |
| A D | tracepoint.rs | 14 …($($(#[$attr:meta])* $pub:vis unsafe fn $name:ident($($argname:ident : $argtyp:ty),* $(,)?);)*) =>… 17 $pub unsafe fn $name($($argname : $argtyp),*) { 24 $crate::bindings::[< __tracepoint_ $name >], 34 unsafe { $crate::bindings::[< rust_do_trace_ $name >]($($argname),*) };
|
| A D | auxiliary.rs | 31 name: &'static CStr, in register() 36 (*adrv.get()).name = name.as_char_ptr(); in register() 44 bindings::__auxiliary_driver_register(adrv.get(), module.0, name.as_char_ptr()) in register() 107 pub const fn new(modname: &'static CStr, name: &'static CStr) -> Self { in new() 108 let name = name.as_bytes_with_nul(); in new() 119 id.name[i] = modname[i]; in new() 124 id.name[i - 1] = b'.'; in new() 127 while j < name.len() { in new() 128 id.name[i] = name[j]; in new() 298 pub fn new(parent: &device::Device, name: &CStr, id: u32, modname: &CStr) -> Result<Self> { in new() [all …]
|
| A D | kunit.rs | 56 ($name:literal, $file:literal, $diff:expr, $condition:expr $(,)?) => { 79 $name 162 ($name:literal, $file:literal, $diff:expr, $left:expr, $right:expr $(,)?) => {{ 165 $crate::kunit_assert!($name, $file, $diff, $left == $right); 200 name: &'static kernel::str::CStr, in kunit_case() 205 name: name.as_char_ptr(), in kunit_case() 224 name: core::ptr::null_mut(), in kunit_case_null() 260 ($name:ident, $test_cases:ident) => { 263 let name_u8 = ::core::stringify!($name).as_bytes(); 269 ::core::stringify!($name), [all …]
|
| A D | regulator.rs | 277 fn get_internal(dev: &Device, name: &CStr) -> Result<Regulator<T>> { in get_internal() 280 let inner = from_err_ptr(unsafe { bindings::regulator_get(dev.as_raw(), name.as_ptr()) })?; in get_internal() 305 pub fn get(dev: &Device, name: &CStr) -> Result<Self> { in get() 306 Regulator::get_internal(dev, name) in get() 332 pub fn get(dev: &Device, name: &CStr) -> Result<Self> { in get() 333 Regulator::<Disabled>::get_internal(dev, name)? in get() 364 pub fn get(dev: &Device, name: &CStr) -> Result<Self> { in get() 365 Regulator::get_internal(dev, name) in get()
|
| A D | firmware.rs | 62 fn request_internal(name: &CStr, dev: &Device, func: FwFunc) -> Result<Self> { in request_internal() 69 let ret = unsafe { func.0(pfw, name.as_char_ptr(), dev.as_raw()) }; in request_internal() 80 pub fn request(name: &CStr, dev: &Device) -> Result<Self> { in request() 81 Self::request_internal(name, dev, FwFunc::request()) in request() 86 pub fn request_nowarn(name: &CStr, dev: &Device) -> Result<Self> { in request_nowarn() 87 Self::request_internal(name, dev, FwFunc::request_nowarn()) in request_nowarn()
|
| A D | configfs.rs | 149 name: &'static CStr, in new() 160 name.as_ptr(), in new() 259 name: CString, in new() 266 let name = name.as_bytes_with_nul().as_ptr(); in new() 346 name: *const kernel::ffi::c_char, in make_group() 616 ca_name: name.as_char_ptr(), in new() 901 @attrs($($name $attr)*), 902 @eat($($name $attr,)*), 921 @attrs($($name $attr)*), 922 @eat($($name $attr,)*), [all …]
|
| A D | clk.rs | 138 pub fn get(dev: &Device, name: Option<&CStr>) -> Result<Self> { in get() 139 let con_id = name.map_or(ptr::null(), |n| n.as_ptr()); in get() 306 pub fn get(dev: &Device, name: Option<&CStr>) -> Result<Self> { in get() 307 let con_id = name.map_or(ptr::null(), |n| n.as_ptr()); in get()
|
| A D | pci.rs | 36 name: &'static CStr, in register() 41 (*pdrv.get()).name = name.as_char_ptr(); in register() 49 bindings::__pci_register_driver(pdrv.get(), module.0, name.as_char_ptr()) in register() 291 fn new(pdev: &Device, num: u32, name: &CStr) -> Result<Self> { in new() 304 let ret = unsafe { bindings::pci_request_region(pdev.as_raw(), num, name.as_char_ptr()) }; in new() 421 name: &'a CStr, in iomap_region_sized() 423 Devres::new(self.as_ref(), Bar::<SIZE>::new(self, bar, name)) in iomap_region_sized() 430 name: &'a CStr, in iomap_region() 432 self.iomap_region_sized::<0>(bar, name) in iomap_region()
|
| A D | platform.rs | 34 name: &'static CStr, in register() 49 (*pdrv.get()).driver.name = name.as_char_ptr(); in register() 248 pub fn resource_by_name(&self, name: &CStr) -> Option<&Resource> { in resource_by_name() 255 name.as_char_ptr(), in resource_by_name() 279 pub fn io_request_by_name(&self, name: &CStr) -> Option<IoRequest<'_>> { in io_request_by_name() 280 self.resource_by_name(name) in io_request_by_name()
|
| A D | faux.rs | 27 pub fn new(name: &CStr, parent: Option<&device::Device>) -> Result<Self> { in new() 36 name.as_char_ptr(), in new()
|
| /rust/ |
| A D | ffi.rs | 14 ($($name:ident = $ty:ty;)*) => {$( 16 pub type $name = $ty; 20 ::core::mem::size_of::<$name>() == ::core::mem::size_of::<::core::ffi::$name>()
|
| /rust/macros/ |
| A D | export.rs | 8 let Some(name) = function_name(ts.clone()) else { in export() 19 ::kernel::bindings::#name in export() 21 #name in export()
|
| /rust/kernel/io/ |
| A D | resource.rs | 102 name: CString, in request_region() 115 name.as_char_ptr(), in request_region() 122 _name: name, in request_region() 141 pub fn name(&self) -> Option<&CStr> { in name() method 145 let name = unsafe { (*inner).name }; in name() 147 if name.is_null() { in name() 155 Some(unsafe { CStr::from_char_ptr(name) }) in name()
|
| /rust/helpers/ |
| A D | spinlock.c | 5 void rust_helper___spin_lock_init(spinlock_t *lock, const char *name, in rust_helper___spin_lock_init() argument 10 __spin_lock_init(lock, name, key, false); in rust_helper___spin_lock_init() 12 __raw_spin_lock_init(spinlock_check(lock), name, key, LD_WAIT_CONFIG); in rust_helper___spin_lock_init()
|
| A D | io.c | 116 const char *name) in rust_helper_request_mem_region() argument 118 return request_mem_region(start, n, name); in rust_helper_request_mem_region() 127 resource_size_t n, const char *name) in rust_helper_request_region() argument 129 return request_region(start, n, name); in rust_helper_request_region() 134 const char *name) in rust_helper_request_muxed_region() argument 136 return request_muxed_region(start, n, name); in rust_helper_request_muxed_region()
|
| A D | workqueue.c | 6 bool onstack, const char *name, in rust_helper_init_work_with_key() argument 11 lockdep_init_map(&work->lockdep_map, name, key, 0); in rust_helper_init_work_with_key()
|
| A D | mutex.c | 15 void rust_helper___mutex_init(struct mutex *mutex, const char *name, in rust_helper___mutex_init() argument 18 __mutex_init(mutex, name, key); in rust_helper___mutex_init()
|
| /rust/kernel/sync/lock/ |
| A D | mutex.rs | 13 ($inner:expr $(, $name:literal)? $(,)?) => { 15 $inner, $crate::optional_name!($($name)?), $crate::static_lock_class!()) 107 name: *const crate::ffi::c_char, in init() 112 unsafe { bindings::__mutex_init(ptr, name, key) } in init()
|
| A D | spinlock.rs | 13 ($inner:expr $(, $name:literal)? $(,)?) => { 15 $inner, $crate::optional_name!($($name)?), $crate::static_lock_class!()) 106 name: *const crate::ffi::c_char, in init() 111 unsafe { bindings::__spin_lock_init(ptr, name, key) } in init()
|
| A D | global.rs | 257 unsafe(uninit) static $name:ident: $kind:ident<$valuety:ty> = $value:expr; 261 ::core::stringify!($name), 263 ::core::stringify!($name), 267 $pub enum $name {} 269 impl $crate::sync::lock::GlobalLockBackend for $name { 270 const NAME: &'static $crate::str::CStr = $crate::c_str!(::core::stringify!($name)); 280 $pub static $name: $crate::sync::lock::GlobalLock<$name> = {
|
| /rust/kernel/sync/ |
| A D | poll.rs | 18 ($($name:literal)?) => { 20 $crate::optional_name!($($name)?), $crate::static_lock_class!() 76 pub fn new(name: &'static CStr, key: Pin<&'static LockClassKey>) -> impl PinInit<Self> { in new() 78 inner <- CondVar::new(name, key), in new()
|
| /rust/kernel/list/ |
| A D | arc_field.rs | 70 ($pub:vis fn $name:ident(&self $(<$id:tt>)?) -> &$typ:ty { $field:ident } 73 $pub fn $name<'a>(self: &'a $crate::list::ListArc<Self $(, $id)?>) -> &'a $typ { 82 ($pub:vis fn $name:ident(&mut self $(<$id:tt>)?) -> &mut $typ:ty { $field:ident } 85 $pub fn $name<'a>(self: &'a mut $crate::list::ListArc<Self $(, $id)?>) -> &'a mut $typ {
|
| /rust/pin-init/internal/src/ |
| A D | helpers.rs | 105 let Some(name) = toks.next() else { in parse_generics() 110 impl_generics.push(name.clone()); in parse_generics() 111 ty_generics.push(name.clone()); in parse_generics() 112 decl_generics.push(name); in parse_generics()
|