Lines Matching refs:CStr

32 use core::ffi::{c_void, CStr};
128 pub fn name(&self) -> Result<&'a CStr> { in name() argument
169 pub fn device_type(&self) -> Result<Option<&CStr>> { in device_type() argument
206 pub fn name(&self) -> Result<&'a CStr> { in name() argument
208 CStr::from_bytes_with_nul(name).map_err(|_| FdtError::Internal) in name()
212 pub fn getprop_str(&self, name: &CStr) -> Result<Option<&CStr>> { in getprop_str() argument
214 Ok(Some(CStr::from_bytes_with_nul(bytes).map_err(|_| FdtError::BadValue)?)) in getprop_str()
221 pub fn getprop_cells(&self, name: &CStr) -> Result<Option<CellIterator<'a>>> { in getprop_cells()
230 pub fn getprop_u32(&self, name: &CStr) -> Result<Option<u32>> { in getprop_u32()
239 pub fn getprop_u64(&self, name: &CStr) -> Result<Option<u64>> { in getprop_u64()
248 pub fn getprop(&self, name: &CStr) -> Result<Option<&'a [u8]>> { in getprop()
258 pub fn next_compatible(self, compatible: &CStr) -> Result<Option<Self>> { in next_compatible()
333 pub fn subnode(&self, name: &CStr) -> Result<Option<Self>> { in subnode()
363 pub fn appendprop<T: AsRef<[u8]>>(&mut self, name: &CStr, value: &T) -> Result<()> { in appendprop() argument
368 pub fn appendprop_addrrange(&mut self, name: &CStr, addr: u64, size: u64) -> Result<()> { in appendprop_addrrange() argument
376 pub fn setprop(&mut self, name: &CStr, value: &[u8]) -> Result<()> { in setprop() argument
384 pub fn setprop_inplace(&mut self, name: &CStr, value: &[u8]) -> Result<()> { in setprop_inplace() argument
392 pub fn setprop_addrrange_inplace(&mut self, name: &CStr, addr: u64, size: u64) -> Result<()> { in setprop_addrrange_inplace() argument
400 pub fn setprop_empty(&mut self, name: &CStr) -> Result<()> { in setprop_empty()
405 pub fn delprop(&mut self, name: &CStr) -> Result<()> { in delprop()
410 pub fn nop_property(&mut self, name: &CStr) -> Result<()> { in nop_property()
415 pub fn trimprop(&mut self, name: &CStr, new_size: usize) -> Result<()> { in trimprop() argument
436 pub fn add_subnodes(self, names: &[&CStr]) -> Result<()> { in add_subnodes()
444 pub fn add_subnode(self, name: &CStr) -> Result<Self> { in add_subnode()
453 pub fn add_subnode_with_namelen(self, name: &CStr, namelen: usize) -> Result<Self> { in add_subnode_with_namelen() argument
529 pub fn next_compatible(self, compatible: &CStr) -> Result<Option<Self>> { in next_compatible()
547 pub fn delete_and_next_compatible(self, compatible: &CStr) -> Result<Option<Self>> { in delete_and_next_compatible()
734 pub fn node(&self, path: &CStr) -> Result<Option<FdtNode>> { in node()
741 pub fn compatible_nodes<'a>(&'a self, compatible: &'a CStr) -> Result<CompatibleIterator<'a>> { in compatible_nodes()
770 pub fn node_mut(&mut self, path: &CStr) -> Result<Option<FdtNodeMut>> { in node_mut()