Home
last modified time | relevance | path

Searched refs:CStr (Results 1 – 23 of 23) sorted by relevance

/linux-6.15/rust/kernel/
H A Dstr.rs200 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 Dfirmware.rs7 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 Ddriver.rs9 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 Derror.rs9 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 Dpci.rs16 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 Dkunit.rs61 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 Ddevice.rs9 str::CStr,
186 pub fn property_present(&self, name: &CStr) -> bool { in property_present()
H A Dplatform.rs12 str::CStr,
33 name: &'static CStr, in register() argument
H A Dprelude.rs39 pub use super::{str::CStr, ThisModule};
H A Dfaux.rs27 pub fn new(name: &CStr, parent: Option<&device::Device>) -> Result<Self> { in new() argument
H A Dof.rs31 pub const fn new(compatible: &'static CStr) -> Self { in new()
H A Dmiscdevice.rs19 str::CStr,
28 pub name: &'static CStr,
H A Dlib.rs139 const NAME: &'static crate::str::CStr;
H A Dworkqueue.rs372 pub fn new(name: &'static CStr, key: Pin<&'static LockClassKey>) -> impl PinInit<Self> in new() argument
/linux-6.15/drivers/net/phy/
H A Dax88796b_rust.rs44 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 Dqt2025.rs39 const NAME: &'static CStr = c_str!("QT2025 10Gpbs SFP+"); variable
/linux-6.15/rust/kernel/sync/lock/
H A Dglobal.rs8 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 Dcondvar.rs11 str::CStr,
103 pub fn new(name: &'static CStr, key: Pin<&'static LockClassKey>) -> impl PinInit<Self> { in new() argument
H A Dlock.rs10 str::CStr,
130 pub fn new(t: T, name: &'static CStr, key: Pin<&'static LockClassKey>) -> impl PinInit<Self> { in new() argument
H A Dpoll.rs92 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 Dfirmware.rs33 module_name: &'static kernel::str::CStr, in create() argument
/linux-6.15/drivers/gpu/drm/
H A Ddrm_panic_qr.rs30 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 Dphy.rs582 const NAME: &'static CStr; variable