Searched refs:CString (Results 1 – 8 of 8) sorted by relevance
/linux/rust/kernel/ |
H A D | str.rs | 389 pub fn to_cstring(&self) -> Result<CString, AllocError> { in to_cstring() argument 390 CString::try_from(self) in to_cstring() 432 pub fn to_ascii_lowercase(&self) -> Result<CString, AllocError> { in to_ascii_lowercase() argument 449 pub fn to_ascii_uppercase(&self) -> Result<CString, AllocError> { in to_ascii_uppercase() argument 612 CString::try_from_fmt(fmt!($($f)*))?.to_str()? 888 pub struct CString { struct 892 impl CString { implementation 927 impl Deref for CString { implementation 937 impl DerefMut for CString { implementation 945 impl<'a> TryFrom<&'a CStr> for CString { implementation [all …]
|
H A D | opp.rs | 18 str::CString, 90 fn to_c_str_array(names: &[CString]) -> Result<KVec<*const u8>> { in to_c_str_array() 361 clk_names: Option<KVec<CString>>, 362 prop_name: Option<CString>, 363 regulator_names: Option<KVec<CString>>, 379 pub fn set_clk_names(mut self, names: KVec<CString>) -> Result<Self> { in set_clk_names() 393 pub fn set_prop_name(mut self, name: CString) -> Result<Self> { in set_prop_name() 403 pub fn set_regulator_names(mut self, names: KVec<CString>) -> Result<Self> { in set_regulator_names()
|
H A D | configfs.rs | 117 use crate::str::CString; 259 name: CString, in new() argument
|
/linux/drivers/cpufreq/ |
H A D | rcpufreq_dt.rs | 15 str::CString, 20 fn find_supply_name_exact(dev: &Device, name: &str) -> Option<CString> { in find_supply_name_exact() argument 21 let prop_name = CString::try_from_fmt(fmt!("{name}-supply")).ok()?; in find_supply_name_exact() 24 .then(|| CString::try_from_fmt(fmt!("{name}")).ok()) in find_supply_name_exact() 29 fn find_supply_names(dev: &Device, cpu: cpu::CpuId) -> Option<KVec<CString>> { in find_supply_names() argument
|
/linux/rust/kernel/io/ |
H A D | resource.rs | 12 use crate::str::{CStr, CString}; 32 _name: CString, 102 name: CString, in request_region() argument
|
/linux/drivers/gpu/nova-core/ |
H A D | firmware.rs | 11 use kernel::str::CString; 33 let mut chip_name = CString::try_from_fmt(fmt!("{chipset}"))?; in new() 38 CString::try_from_fmt(fmt!("nvidia/{chip_name}/gsp/{name_}-{ver}.bin")) in new()
|
/linux/samples/rust/ |
H A D | rust_driver_platform.rs | 74 str::CString, 136 let prop = fwnode.property_read::<CString>(name).required_by(dev)?; in properties_parse()
|
/linux/rust/kernel/device/ |
H A D | property.rs | 15 str::{CStr, CString}, 441 impl Sealed for CString {} implementation 443 impl Property for CString { implementation
|