| /linux-6.15/rust/kernel/ |
| H A D | str.rs | 200 pub struct CStr([u8]); struct 202 impl CStr { impl 427 impl fmt::Display for CStr { implementation 457 impl fmt::Debug for CStr { implementation 489 impl AsRef<BStr> for CStr { implementation 496 impl Deref for CStr { implementation 506 type Output = CStr; 519 type Output = CStr; 539 impl<Idx> Index<Idx> for CStr implementation 567 const C: &$crate::str::CStr = match $crate::str::CStr::from_bytes_with_nul(S.as_bytes()) { [all …]
|
| H 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 79 pub fn request(name: &CStr, dev: &Device) -> Result<Self> { in request() argument 85 pub fn request_nowarn(name: &CStr, dev: &Device) -> Result<Self> { in request_nowarn() argument 198 const __MODULE_FIRMWARE_PREFIX: &'static $crate::str::CStr = if cfg!(MODULE) { 228 module_name: &'static CStr, 233 pub const fn new(module_name: &'static CStr) -> Self { in new()
|
| H A D | driver.rs | 9 use crate::{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
|
| H A D | error.rs | 9 str::CStr, 161 pub fn name(&self) -> Option<&'static CStr> { in name() argument 168 Some(unsafe { CStr::from_char_ptr(ptr) }) in name() 178 pub fn name(&self) -> Option<&'static CStr> { in name() argument
|
| H A D | pci.rs | 16 str::CStr, 37 name: &'static CStr, in register() argument 271 fn new(pdev: &Device, num: u32, name: &CStr) -> Result<Self> { in new() 397 name: &CStr, in iomap_region_sized() argument 406 pub fn iomap_region(&self, bar: u32, name: &CStr) -> Result<Devres<Bar>> { in iomap_region()
|
| H A D | kunit.rs | 61 static FILE: &'static $crate::str::CStr = $crate::c_str!($file); 63 static CONDITION: &'static $crate::str::CStr = $crate::c_str!(stringify!($condition)); 173 name: &'static kernel::str::CStr, in kunit_case() argument
|
| H A D | device.rs | 9 str::CStr, 186 pub fn property_present(&self, name: &CStr) -> bool { in property_present()
|
| H A D | platform.rs | 12 str::CStr, 33 name: &'static CStr, in register() argument
|
| H A D | prelude.rs | 39 pub use super::{str::CStr, ThisModule};
|
| H A D | faux.rs | 27 pub fn new(name: &CStr, parent: Option<&device::Device>) -> Result<Self> { in new() argument
|
| H A D | of.rs | 31 pub const fn new(compatible: &'static CStr) -> Self { in new()
|
| H A D | miscdevice.rs | 19 str::CStr, 28 pub name: &'static CStr,
|
| H A D | lib.rs | 139 const NAME: &'static crate::str::CStr;
|
| H A D | workqueue.rs | 372 pub fn new(name: &'static CStr, key: Pin<&'static LockClassKey>) -> impl PinInit<Self> in new() argument
|
| /linux-6.15/drivers/net/phy/ |
| H A D | ax88796b_rust.rs | 44 const NAME: &'static CStr = c_str!("Asix Electronics AX88772A"); variable 108 const NAME: &'static CStr = c_str!("Asix Electronics AX88772C"); variable 128 const NAME: &'static CStr = c_str!("Asix Electronics AX88796B"); variable
|
| H A D | qt2025.rs | 39 const NAME: &'static CStr = c_str!("QT2025 10Gpbs SFP+"); variable
|
| /linux-6.15/rust/kernel/sync/lock/ |
| H 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));
|
| /linux-6.15/rust/kernel/sync/ |
| H A D | condvar.rs | 11 str::CStr, 103 pub fn new(name: &'static CStr, key: Pin<&'static LockClassKey>) -> impl PinInit<Self> { in new() argument
|
| H 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
|
| H A D | poll.rs | 92 pub fn new(name: &'static CStr, key: Pin<&'static LockClassKey>) -> impl PinInit<Self> { in new() argument
|
| /linux-6.15/drivers/gpu/nova-core/ |
| H A D | firmware.rs | 33 module_name: &'static kernel::str::CStr, in create() argument
|
| /linux-6.15/drivers/gpu/drm/ |
| H A D | drm_panic_qr.rs | 30 use kernel::{prelude::*, str::CStr}; 923 let url_cstr: &CStr = unsafe { CStr::from_char_ptr(url) }; in drm_panic_qr_generate()
|
| /linux-6.15/rust/kernel/net/ |
| H A D | phy.rs | 582 const NAME: &'static CStr; variable
|