| /linux/rust/kernel/ |
| H A D | soc.rs | 13 str::CString, 33 pub machine: Option<CString>, 39 pub family: Option<CString>, 41 pub revision: Option<CString>, 45 pub serial_number: Option<CString>, 52 pub soc_id: Option<CString>, 63 fn cstring_to_c(mcs: &Option<CString>) -> *const kernel::ffi::c_char { in cstring_to_c()
|
| H A D | str.rs | 231 fn to_cstring(&self) -> Result<CString, AllocError>; in to_cstring() argument 264 fn to_ascii_lowercase(&self) -> Result<CString, AllocError>; in to_ascii_lowercase() argument 275 fn to_ascii_uppercase(&self) -> Result<CString, AllocError>; in to_ascii_uppercase() argument 341 fn to_cstring(&self) -> Result<CString, AllocError> { in to_cstring() argument 342 CString::try_from(self) in to_cstring() 355 fn to_ascii_lowercase(&self) -> Result<CString, AllocError> { in to_ascii_lowercase() argument 363 fn to_ascii_uppercase(&self) -> Result<CString, AllocError> { in to_ascii_uppercase() argument 415 CString::try_from_fmt(fmt!($($f)*))?.to_str()? 810 pub struct CString { struct 814 impl CString { impl [all …]
|
| H A D | opp.rs | 18 str::CString, 91 fn to_c_str_array(names: &[CString]) -> Result<KVec<*const c_char>> { in to_c_str_array() 362 clk_names: Option<KVec<CString>>, 363 prop_name: Option<CString>, 364 regulator_names: Option<KVec<CString>>, 380 pub fn set_clk_names(mut self, names: KVec<CString>) -> Result<Self> { in set_clk_names() 394 pub fn set_prop_name(mut self, name: CString) -> Result<Self> { in set_prop_name() 404 pub fn set_regulator_names(mut self, names: KVec<CString>) -> Result<Self> { in set_regulator_names()
|
| H A D | configfs.rs | 116 use crate::str::CString; 258 name: CString, in new() argument
|
| /linux/samples/rust/ |
| H A D | rust_soc.rs | 12 str::CString, 51 let machine = CString::try_from(c"My cool ACME15 dev board")?; in probe() 52 let family = CString::try_from(c"ACME")?; in probe() 53 let revision = CString::try_from(c"1.2")?; in probe() 54 let serial_number = CString::try_from(c"12345")?; in probe() 55 let soc_id = CString::try_from(c"ACME15")?; in probe()
|
| H A D | rust_debugfs_scoped.rs | 17 str::CString, 70 let name = CString::try_from_fmt(fmt!("{name_str}"))?; in create_file_write() 71 let file_name = CString::try_from_fmt(fmt!("{name_str}"))?; in create_file_write() 86 let Ok(name) = CString::try_from_fmt(fmt!("{idx}")) else { in create_file_write() 124 name: CString,
|
| H A D | rust_debugfs.rs | 47 str::CString, 73 _compatible: File<CString>, 159 .property_read::<CString>(c"compatible") in new()
|
| H A D | rust_driver_platform.rs | 78 str::CString, 136 let prop = fwnode.property_read::<CString>(name).required_by(dev)?; in properties_parse()
|
| /linux/drivers/cpufreq/ |
| H A D | rcpufreq_dt.rs | 14 str::CString, 19 fn find_supply_name_exact(dev: &Device, name: &str) -> Option<CString> { in find_supply_name_exact() argument 20 let prop_name = CString::try_from_fmt(fmt!("{name}-supply")).ok()?; in find_supply_name_exact() 23 .then(|| CString::try_from_fmt(fmt!("{name}")).ok()) in find_supply_name_exact() 28 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 | 15 str::CString, 35 _name: CString, 105 name: CString, in request_region() argument
|
| /linux/drivers/android/binder/ |
| H A D | context.rs | 10 str::{CStr, CString}, 50 pub(crate) name: CString, 55 let name = CString::try_from(name)?; in new()
|
| /linux/rust/quote/ |
| H A D | to_tokens.rs | 8 use std::ffi::{CStr, CString}; 229 impl ToTokens for CString { implementation
|
| /linux/rust/kernel/device/ |
| H A D | property.rs | 16 str::{CStr, CString}, 443 impl Sealed for CString {} implementation 445 impl Property for CString { implementation
|
| /linux/drivers/block/rnull/ |
| H A D | configfs.rs | 12 str::{kstrtobool_bytes, CString}, 120 name: CString,
|
| /linux/rust/syn/ |
| H A D | lit.rs | 11 use std::ffi::{CStr, CString}; 322 pub fn value(&self) -> CString { in value() argument 1135 use std::ffi::CString; 1445 pub(crate) fn parse_lit_c_str(s: &str) -> (CString, Box<str>) { in parse_lit_c_str() argument 1454 fn parse_lit_c_str_cooked(mut s: &str) -> (CString, Box<str>) { in parse_lit_c_str_cooked() argument 1518 (CString::new(out).unwrap(), suffix) in parse_lit_c_str_cooked() 1521 fn parse_lit_c_str_raw(s: &str) -> (CString, Box<str>) { in parse_lit_c_str_raw() argument 1524 (CString::new(String::from(value)).unwrap(), suffix) in parse_lit_c_str_raw()
|