Home
last modified time | relevance | path

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

123

/linux/rust/kernel/device/
H A Dproperty.rs16 str::{CStr, CString},
91 let name = unsafe { CStr::from_char_ptr(name) }; in display_name()
100 pub fn property_present(&self, name: &CStr) -> bool { in property_present()
106 pub fn property_read_bool(&self, name: &CStr) -> bool { in property_read_bool()
115 pub fn property_match_string(&self, name: &CStr, match_str: &CStr) -> Result<usize> { in property_match_string() argument
133 name: &'name CStr, in property_read_array_vec() argument
159 pub fn property_count_elem<T: PropertyInt>(&self, name: &CStr) -> Result<usize> { in property_count_elem()
194 name: &'name CStr, in property_read() argument
204 pub fn get_child_by_name(&self, name: &CStr) -> Option<ARef<Self>> { in get_child_by_name()
262 prop: &CStr, in property_get_reference_args() argument
[all …]
/linux/rust/kernel/
H A Ddebugfs.rs16 str::CStr,
77 fn create(name: &CStr, parent: Option<&Dir>) -> Self { in create() argument
100 name: &'a CStr, in create_file() argument
132 pub fn new(name: &CStr) -> Self { in new()
145 pub fn subdir(&self, name: &CStr) -> Self { in subdir()
167 name: &'a CStr, in read_only_file() argument
193 name: &'a CStr, in read_binary_file() argument
234 name: &'a CStr, in read_callback_file() argument
252 name: &'a CStr, in read_write_file() argument
268 name: &'a CStr, in read_write_binary_file() argument
[all …]
H A Dstr.rs16 pub use crate::prelude::CStr;
192 pub const fn as_char_ptr_in_const_context(c_str: &CStr) -> *const c_char { in as_char_ptr_in_const_context()
199 impl Sealed for super::CStr {} implementation
278 impl fmt::Display for CStr { implementation
313 unsafe fn to_bytes_mut(s: &mut CStr) -> &mut [u8] { in to_bytes_mut()
320 impl CStrExt for CStr { implementation
324 unsafe { CStr::from_ptr(ptr.cast()) } in from_char_ptr()
333 unsafe { &mut *(core::ptr::from_mut(bytes) as *mut CStr) } in from_bytes_with_nul_unchecked_mut()
372 impl AsRef<BStr> for CStr { implementation
394 const C: &$crate::str::CStr = match $crate::str::CStr::from_bytes_with_nul(S.as_bytes()) {
[all …]
H A Dfirmware.rs13 str::{CStr, CStrExt as _},
69 fn request_internal(name: &CStr, dev: &Device, func: FwFunc) -> Result<Self> { in request_internal() argument
87 pub fn request(name: &CStr, dev: &Device) -> Result<Self> { in request() argument
93 pub fn request_nowarn(name: &CStr, dev: &Device) -> Result<Self> { in request_nowarn() argument
206 const __MODULE_FIRMWARE_PREFIX: &'static $crate::str::CStr = if cfg!(MODULE) {
236 module_name: &'static CStr,
241 pub const fn new(module_name: &'static CStr) -> Self { in new()
H A Dregulator.rs87 pub fn devm_enable(dev: &Device<Bound>, name: &CStr) -> Result { in devm_enable()
105 pub fn devm_enable_optional(dev: &Device<Bound>, name: &CStr) -> Result { in devm_enable_optional()
272 fn get_internal(dev: &Device, name: &CStr) -> Result<Regulator<T>> { in get_internal()
299 pub fn get(dev: &Device, name: &CStr) -> Result<Self> { in get()
326 pub fn get(dev: &Device, name: &CStr) -> Result<Self> { in get()
H A Dplatform.rs62 name: &'static CStr, in register() argument
283 pub fn resource_by_name(&self, name: &CStr) -> Option<&Resource> { in resource_by_name()
314 pub fn io_request_by_name(&self, name: &CStr) -> Option<IoRequest<'_>> { in io_request_by_name()
340 name: &'static CStr,
368 irq_name: &'a CStr,
369 name: &'static CStr,
415 pub fn irq_by_name(&self, name: &CStr) -> Result<IrqRequest<'_>> { in irq_by_name()
429 pub fn optional_irq_by_name(&self, name: &CStr) -> Result<IrqRequest<'_>> { in optional_irq_by_name()
H A Dauxiliary.rs53 name: &'static CStr, in register() argument
131 pub const fn new(modname: &'static CStr, name: &'static CStr) -> Self { in new() argument
344 name: &'a CStr, in new() argument
346 modname: &'a CStr, in new() argument
H A Derror.rs12 str::CStr,
179 pub fn name(&self) -> Option<&'static CStr> { in name() argument
188 Some(unsafe { CStr::from_char_ptr(ptr) }) in name()
198 pub fn name(&self) -> Option<&'static CStr> { in name() argument
H A Dkunit.rs68 static FILE: &'static $crate::str::CStr = $file;
70 static CONDITION: &'static $crate::str::CStr = $crate::c_str!(stringify!($condition));
202 name: &'static kernel::str::CStr, in kunit_case() argument
H A Dclk.rs137 pub fn get(dev: &Device, name: Option<&CStr>) -> Result<Self> {
304 pub fn get(dev: &Device, name: Option<&CStr>) -> Result<Self> {
H A Ddriver.rs151 name: &'static CStr, in register() argument
218 pub fn new(name: &'static CStr, module: &'static ThisModule) -> impl PinInit<Self, Error> { in new() argument
/linux/rust/kernel/debugfs/
H A Dentry.rs8 CStr,
37 pub(crate) fn dynamic_dir(name: &CStr, parent: Option<Arc<Self>>) -> Self { in dynamic_dir() argument
59 name: &CStr, in dynamic_file() argument
90 pub(crate) fn dir(name: &CStr, parent: Option<&'a Entry<'_>>) -> Self { in dir() argument
110 name: &CStr, in file() argument
/linux/drivers/net/phy/
H A Dax88796b_rust.rs43 const NAME: &'static CStr = c"Asix Electronics AX88772A"; variable
107 const NAME: &'static CStr = c"Asix Electronics AX88772C"; variable
127 const NAME: &'static CStr = c"Asix Electronics AX88796B"; variable
/linux/rust/kernel/pci/
H A Dirq.rs17 str::CStr,
180 name: &'static CStr, in request_irq() argument
195 name: &'static CStr, in request_threaded_irq() argument
H A Dio.rs195 pub(super) fn new(pdev: &Device, num: u32, name: &CStr) -> Result<Self> { in new()
294 name: &'a CStr, in iomap_region_sized() argument
303 name: &'a CStr, in iomap_region() argument
/linux/samples/rust/
H A Drust_configfs.rs29 message: &'static CStr,
73 fn make_group(&self, name: &CStr) -> Result<impl PinInit<configfs::Group<Child>, Error>> { in make_group()
138 fn make_group(&self, name: &CStr) -> Result<impl PinInit<configfs::Group<GrandChild>, Error>> { in make_group()
H A Drust_driver_auxiliary.rs22 const MODULE_NAME: &CStr = <LocalModule as kernel::ModuleMetadata>::NAME;
23 const AUXILIARY_NAME: &CStr = c"auxiliary";
/linux/rust/kernel/sync/lock/
H A Dglobal.rs8 str::{CStr, CStrExt as _},
24 const NAME: &'static CStr; variable
275 const NAME: &'static $crate::str::CStr = $crate::c_str!(::core::stringify!($name));
/linux/rust/kernel/irq/
H A Drequest.rs16 use crate::str::CStr;
202 name: &'static CStr, in new() argument
422 name: &'static CStr, in new() argument
/linux/rust/kernel/io/
H A Dresource.rs144 pub fn name(&self) -> Option<&CStr> { in name() argument
158 Some(unsafe { CStr::from_char_ptr(name) }) in name()
/linux/rust/kernel/sync/
H A Dcondvar.rs11 str::{CStr, CStrExt as _},
103 pub fn new(name: &'static CStr, key: Pin<&'static LockClassKey>) -> impl PinInit<Self> { in new() argument
H A Dlock.rs10 str::{CStr, CStrExt as _},
133 name: &'static CStr, in new() argument
/linux/rust/kernel/drm/
H A Ddriver.rs27 pub name: &'static CStr,
29 pub desc: &'static CStr,
/linux/drivers/android/binder/
H A Dcontext.rs10 str::{CStr, CString},
54 pub(crate) fn new(name: &CStr) -> Result<Arc<Self>> { in new()
/linux/rust/quote/
H A Dto_tokens.rs8 use std::ffi::{CStr, CString};
223 impl ToTokens for CStr { implementation

123