Lines Matching refs:buf
151 fn show(&self, kobj: Arc<dyn KObject>, buf: &mut [u8]) -> Result<usize, SystemError> { in show()
159 let len = core::cmp::min(name.len() + 1, buf.len()); in show()
161 buf[..len].copy_from_slice(name.as_bytes()); in show()
182 fn show(&self, kobj: Arc<dyn KObject>, buf: &mut [u8]) -> Result<usize, SystemError> { in show()
188 return sysfs_emit_str(buf, &format!("{}\n", hwirq.data())); in show()
208 fn show(&self, kobj: Arc<dyn KObject>, buf: &mut [u8]) -> Result<usize, SystemError> { in show()
219 return sysfs_emit_str(buf, &format!("{}\n", irq_type)); in show()
239 fn show(&self, kobj: Arc<dyn KObject>, buf: &mut [u8]) -> Result<usize, SystemError> { in show()
245 return sysfs_emit_str(buf, &format!("{}\n", wakeup)); in show()
265 fn show(&self, kobj: Arc<dyn KObject>, buf: &mut [u8]) -> Result<usize, SystemError> { in show()
272 return sysfs_emit_str(buf, &format!("{}\n", name)); in show()
295 fn show(&self, kobj: Arc<dyn KObject>, buf: &mut [u8]) -> Result<usize, SystemError> { in show()
306 len += sysfs_emit_str(&mut buf[len..], &format!(",{}", action.inner().name())) in show()
309 len += sysfs_emit_str(&mut buf[len..], &action.inner().name().to_string()).unwrap(); in show()
312 if len >= buf.len() { in show()
317 if len != 0 && len < buf.len() { in show()
318 len += sysfs_emit_str(&mut buf[len..], "\n").unwrap(); in show()