Home
last modified time | relevance | path

Searched defs:CStr (Results 1 – 21 of 21) sorted by relevance

/linux/rust/kernel/
H A Dstr.rs209 pub struct CStr([u8]); global() struct
211 impl CStr { global() implementation
287 from_bytes_with_nul_unchecked(bytes: &[u8]) -> &CStr from_bytes_with_nul_unchecked() argument
300 from_bytes_with_nul_unchecked_mut(bytes: &mut [u8]) -> &mut CStr from_bytes_with_nul_unchecked_mut() argument
458 impl fmt::Display for CStr { global() implementation
488 impl fmt::Debug for CStr { global() implementation
520 impl AsRef<BStr> for CStr { global() implementation
527 impl Deref for CStr { global() implementation
536 impl Index<ops::RangeFrom<usize>> for CStr { global() implementation
549 impl Index<ops::RangeFull> for CStr { global() implementation
570 impl<Idx> Index<Idx> for CStr global() implementation
[all...]
H A Dfirmware.rs62 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
H A Ddriver.rs123 name: &'static CStr, in register()
158 pub fn new(name: &'static CStr, module: &'static ThisModule) -> impl PinInit<Self, Error> { in new()
H A Dauxiliary.rs31 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
H A Derror.rs179 pub fn name(&self) -> Option<&'static CStr> { in name() argument
162 name(&self) -> Option<&'static CStr> name() argument
H A Dworkqueue.rs504 new(name: &'static CStr, key: Pin<&'static LockClassKey>) -> impl PinInit<Self> where T: WorkItem<ID>, new() argument
673 new( work_name: &'static CStr, work_key: Pin<&'static LockClassKey>, timer_name: &'static CStr, timer_key: Pin<&'static LockClassKey>, ) -> impl PinInit<Self> where T: WorkItem<ID>, new() argument
675 new( work_name: &'static CStr, work_key: Pin<&'static LockClassKey>, timer_name: &'static CStr, timer_key: Pin<&'static LockClassKey>, ) -> impl PinInit<Self> where T: WorkItem<ID>, new() argument
H A Dpci.rs36 register( pdrv: &Opaque<Self::RegType>, name: &'static CStr, module: &'static ThisModule, ) -> Result register() argument
421 iomap_region_sized<'a, const SIZE: usize>( &'a self, bar: u32, name: &'a CStr, ) -> impl PinInit<Devres<Bar<SIZE>>, Error> + 'a iomap_region_sized() argument
430 iomap_region<'a>( &'a self, bar: u32, name: &'a CStr, ) -> impl PinInit<Devres<Bar>, Error> + 'a iomap_region() argument
H A Dfaux.rs27 pub fn new(name: &CStr, parent: Option<&device::Device>) -> Result<Self> { in new()
H A Dkunit.rs200 name: &'static kernel::str::CStr, in kunit_case() argument
H A Dplatform.rs34 register( pdrv: &Opaque<Self::RegType>, name: &'static CStr, module: &'static ThisModule, ) -> Result register() argument
H A Duaccess.rs347 pub fn strcpy_into_buf<'buf>(self, buf: &'buf mut [u8]) -> Result<&'buf CStr> { in strcpy_into_buf()
H A Dlib.rs340 pub fn file_from_location<'a>(loc: &'a core::panic::Location<'a>) -> &'a core::ffi::CStr { in file_from_location()
H A Dconfigfs.rs149 name: &'static CStr, in new() argument
H A Dcpufreq.rs723 const NAME: &'static CStr; variable
/linux/rust/kernel/device/
H A Dproperty.rs113 property_match_string(&self, name: &CStr, match_str: &CStr) -> Result<usize> property_match_string() argument
131 property_read_array_vec<'fwnode, 'name, T: PropertyInt>( &'fwnode self, name: &'name CStr, len: usize, ) -> Result<PropertyGuard<'fwnode, 'name, KVec<T>>> property_read_array_vec() argument
192 property_read<'fwnode, 'name, T: Property>( &'fwnode self, name: &'name CStr, ) -> PropertyGuard<'fwnode, 'name, T> property_read() argument
260 property_get_reference_args( &self, prop: &CStr, nargs: NArgs<'_>, index: u32, ) -> Result<FwNodeReferenceArgs> property_get_reference_args() argument
478 read_array_from_fwnode_property<'a>( fwnode: &FwNode, name: &CStr, out: &'a mut [MaybeUninit<Self>], ) -> Result<&'a mut [Self]> read_array_from_fwnode_property() argument
[all...]
/linux/rust/kernel/sync/
H A Dpoll.rs76 pub fn new(name: &'static CStr, key: Pin<&'static LockClassKey>) -> impl PinInit<Self> { in new()
H A Dcondvar.rs103 pub fn new(name: &'static CStr, key: Pin<&'static LockClassKey>) -> impl PinInit<Self> { in new()
H A Dlock.rs130 pub fn new(t: T, name: &'static CStr, key: Pin<&'static LockClassKey>) -> impl PinInit<Self> { in new()
/linux/drivers/cpufreq/
H A Drcpufreq_dt.rs55 const NAME: &'static CStr = c_str!("cpufreq-dt"); variable
/linux/rust/kernel/io/
H A Dresource.rs141 pub fn name(&self) -> Option<&CStr> { in name()
/linux/rust/kernel/net/
H A Dphy.rs575 const NAME: &'static CStr; global() variable