| /rust/kernel/ |
| A D | str.rs | 209 pub struct CStr([u8]); struct 211 impl CStr { impls 458 impl fmt::Display for CStr { implementation 488 impl fmt::Debug for CStr { implementation 520 impl AsRef<BStr> for CStr { implementation 527 impl Deref for CStr { implementation 537 type Output = CStr; 550 type Output = CStr; 570 impl<Idx> Index<Idx> for CStr implementation 598 const C: &$crate::str::CStr = match $crate::str::CStr::from_bytes_with_nul(S.as_bytes()) { [all …]
|
| A D | firmware.rs | 7 use crate::{bindings, device::Device, error::Error, error::Result, ffi, str::CStr}; 62 fn request_internal(name: &CStr, dev: &Device, func: FwFunc) -> Result<Self> { in request_internal() argument 80 pub fn request(name: &CStr, dev: &Device) -> Result<Self> { in request() argument 86 pub fn request_nowarn(name: &CStr, dev: &Device) -> Result<Self> { in request_nowarn() argument 199 const __MODULE_FIRMWARE_PREFIX: &'static $crate::str::CStr = if cfg!(MODULE) { 229 module_name: &'static CStr, 234 pub const fn new(module_name: &'static CStr) -> Self { in new()
|
| A D | regulator.rs | 277 fn get_internal(dev: &Device, name: &CStr) -> Result<Regulator<T>> { in get_internal() 305 pub fn get(dev: &Device, name: &CStr) -> Result<Self> { in get() 332 pub fn get(dev: &Device, name: &CStr) -> Result<Self> { in get() 364 pub fn get(dev: &Device, name: &CStr) -> Result<Self> { in get()
|
| A D | auxiliary.rs | 31 name: &'static CStr, in register() argument 107 pub const fn new(modname: &'static CStr, name: &'static CStr) -> Self { in new() argument 298 pub fn new(parent: &device::Device, name: &CStr, id: u32, modname: &CStr) -> Result<Self> { in new() argument
|
| A D | driver.rs | 9 use crate::{acpi, device, of, str::CStr, try_pin_init, types::Opaque, ThisModule}; 38 name: &'static CStr, in register() argument 73 pub fn new(name: &'static CStr, module: &'static ThisModule) -> impl PinInit<Self, Error> { in new() argument
|
| A D | error.rs | 10 str::CStr, 162 pub fn name(&self) -> Option<&'static CStr> { in name() argument 169 Some(unsafe { CStr::from_char_ptr(ptr) }) in name() 179 pub fn name(&self) -> Option<&'static CStr> { in name() argument
|
| A D | clk.rs | 138 pub fn get(dev: &Device, name: Option<&CStr>) -> Result<Self> { in get() 306 pub fn get(dev: &Device, name: Option<&CStr>) -> Result<Self> { in get()
|
| A D | pci.rs | 15 str::CStr, 36 name: &'static CStr, in register() argument 291 fn new(pdev: &Device, num: u32, name: &CStr) -> Result<Self> { in new() 421 name: &'a CStr, in iomap_region_sized() argument 430 name: &'a CStr, in iomap_region() argument
|
| A D | faux.rs | 27 pub fn new(name: &CStr, parent: Option<&device::Device>) -> Result<Self> { in new() argument
|
| A D | kunit.rs | 63 static FILE: &'static $crate::str::CStr = $crate::c_str!($file); 65 static CONDITION: &'static $crate::str::CStr = $crate::c_str!(stringify!($condition)); 200 name: &'static kernel::str::CStr, in kunit_case() argument
|
| A D | prelude.rs | 44 pub use super::{str::CStr, ThisModule};
|
| A D | platform.rs | 34 name: &'static CStr, in register() argument 248 pub fn resource_by_name(&self, name: &CStr) -> Option<&Resource> { in resource_by_name() 279 pub fn io_request_by_name(&self, name: &CStr) -> Option<IoRequest<'_>> { in io_request_by_name()
|
| A D | of.rs | 36 pub const fn new(compatible: &'static CStr) -> Self { in new()
|
| A D | acpi.rs | 39 pub const fn new(id: &'static CStr) -> Self { in new()
|
| A D | lib.rs | 180 const NAME: &'static crate::str::CStr; 328 pub fn file_from_location<'a>(loc: &'a core::panic::Location<'a>) -> &'a core::ffi::CStr { in file_from_location() argument
|
| A D | uaccess.rs | 347 pub fn strcpy_into_buf<'buf>(self, buf: &'buf mut [u8]) -> Result<&'buf CStr> { in strcpy_into_buf() argument 394 Ok(unsafe { CStr::from_bytes_with_nul_unchecked(&buf[..len]) }) in strcpy_into_buf()
|
| A D | configfs.rs | 149 name: &'static CStr, in new() argument 356 unsafe { CStr::from_char_ptr(name) }, in make_group() 502 fn make_group(&self, name: &CStr) -> Result<impl PinInit<Group<Self::Child>, Error>>; in make_group() 613 pub const fn new(name: &'static CStr) -> Self { in new()
|
| A D | workqueue.rs | 504 pub fn new(name: &'static CStr, key: Pin<&'static LockClassKey>) -> impl PinInit<Self> in new() argument 673 work_name: &'static CStr, in new() argument 675 timer_name: &'static CStr, in new() argument
|
| /rust/kernel/device/ |
| A D | property.rs | 15 str::{CStr, CString}, 98 pub fn property_present(&self, name: &CStr) -> bool { in property_present() 104 pub fn property_read_bool(&self, name: &CStr) -> bool { in property_read_bool() 113 pub fn property_match_string(&self, name: &CStr, match_str: &CStr) -> Result<usize> { in property_match_string() argument 131 name: &'name CStr, in property_read_array_vec() argument 192 name: &'name CStr, in property_read() argument 260 prop: &CStr, in property_get_reference_args() argument 302 Prop(&'a CStr), 478 name: &CStr, in read_array_from_fwnode_property() argument 498 name: &CStr, [all …]
|
| /rust/kernel/io/ |
| A D | resource.rs | 12 use crate::str::{CStr, CString}; 141 pub fn name(&self) -> Option<&CStr> { in name() argument 155 Some(unsafe { CStr::from_char_ptr(name) }) in name()
|
| /rust/kernel/sync/lock/ |
| A D | global.rs | 8 str::CStr, 24 const NAME: &'static CStr; variable 270 const NAME: &'static $crate::str::CStr = $crate::c_str!(::core::stringify!($name));
|
| /rust/kernel/sync/ |
| A D | condvar.rs | 11 str::CStr, 103 pub fn new(name: &'static CStr, key: Pin<&'static LockClassKey>) -> impl PinInit<Self> { in new() argument
|
| A D | poll.rs | 76 pub fn new(name: &'static CStr, key: Pin<&'static LockClassKey>) -> impl PinInit<Self> { in new() argument
|
| A D | lock.rs | 10 str::CStr, 130 pub fn new(t: T, name: &'static CStr, key: Pin<&'static LockClassKey>) -> impl PinInit<Self> { in new() argument
|
| /rust/kernel/drm/ |
| A D | driver.rs | 27 pub name: &'static CStr, 29 pub desc: &'static CStr,
|