Home
last modified time | relevance | path

Searched refs:sysfs_emit_str (Results 1 – 15 of 15) sorted by relevance

/DragonOS/kernel/src/exception/
H A Dsysfs.rs13 file::sysfs_emit_str, Attribute, AttributeGroup, SysFSOps, SysFSOpsSupport,
188 return sysfs_emit_str(buf, &format!("{}\n", hwirq.data())); in show()
219 return sysfs_emit_str(buf, &format!("{}\n", irq_type)); in show()
245 return sysfs_emit_str(buf, &format!("{}\n", wakeup)); in show()
272 return sysfs_emit_str(buf, &format!("{}\n", name)); 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()
318 len += sysfs_emit_str(&mut buf[len..], "\n").unwrap(); in show()
/DragonOS/kernel/src/driver/pci/
H A Dattr.rs10 file::sysfs_emit_str, Attribute, AttributeGroup, SysFSOpsSupport, SYSFS_ATTR_MODE_RO,
57 return sysfs_emit_str(_buf, &format!("0x{:04x}", dev.vendor())); in show()
88 return sysfs_emit_str(_buf, &format!("0x{:04x}", dev.device_id())); in show()
119 return sysfs_emit_str(_buf, &format!("0x{:04x}", dev.subsystem_vendor())); in show()
150 return sysfs_emit_str(_buf, &format!("0x{:04x}", dev.subsystem_device())); in show()
/DragonOS/kernel/src/driver/video/fbdev/base/
H A Dfbsysfs.rs8 sysfs::{file::sysfs_emit_str, Attribute, AttributeGroup, SysFSOpsSupport},
68 return sysfs_emit_str(buf, &format!("{}\n", name)); in show()
97 return sysfs_emit_str(buf, &format!("{}\n", bits_per_pixel)); in show()
199 return sysfs_emit_str(buf, &format!("{},{}\n", var_info.xoffset, var_info.yoffset)); in show()
228 return sysfs_emit_str( in show()
260 return sysfs_emit_str(buf, &format!("{}\n", fix_info.line_length)); in show()
285 return sysfs_emit_str(buf, &format!("{}\n", var_info.rotate_angle)); in show()
314 return sysfs_emit_str(buf, &format!("{}\n", fb.state() as u8)); in show()
/DragonOS/kernel/src/driver/rtc/
H A Dsysfs.rs20 file::sysfs_emit_str, Attribute, AttributeGroup, SysFSOpsSupport, SYSFS_ATTR_MODE_RO,
313 sysfs_emit_str(buf, &format!("{} {}\n", driver_name, device_name)) in show()
337 sysfs_emit_str(buf, &time.date_string()) in show()
360 sysfs_emit_str(buf, &time.time_string()) in show()
383 return sysfs_emit_str(buf, "1\n"); in show()
386 return sysfs_emit_str(buf, "0\n"); in show()
/DragonOS/kernel/src/driver/net/
H A Dsysfs.rs9 file::sysfs_emit_str, Attribute, AttributeGroup, SysFSOpsSupport, SYSFS_ATTR_MODE_RO,
111 sysfs_emit_str(buf, &format!("{}\n", addr_assign_type)) in show()
279 sysfs_emit_str(buf, &format!("{}\n", net_type)) in show()
330 sysfs_emit_str(buf, &format!("{}\n", mac_addr)) in show()
387 sysfs_emit_str(buf, "1\n") in show()
389 sysfs_emit_str(buf, "0\n") in show()
513 sysfs_emit_str(_buf, &format!("{}\n", operstate_str)) in show()
/DragonOS/kernel/src/driver/base/
H A Dcpu.rs25 use crate::filesystem::sysfs::file::sysfs_emit_str;
301 sysfs_emit_str(buf, &data) in show()
325 sysfs_emit_str(buf, &data) in show()
/DragonOS/kernel/src/driver/virtio/
H A Dsysfs.rs28 file::sysfs_emit_str, Attribute, AttributeGroup, SysFSOpsSupport, SYSFS_ATTR_MODE_RO,
328 return sysfs_emit_str(buf, &format!("0x{:04x}\n", device_type_id)); in show()
355 return sysfs_emit_str(buf, &format!("0x{:04x}\n", vendor)); in show()
/DragonOS/kernel/src/driver/pci/test/
H A Dpt_device.rs22 file::sysfs_emit_str, Attribute, AttributeGroup, SysFSOpsSupport, SYSFS_ATTR_MODE_RO,
234 return sysfs_emit_str(_buf, "Hello Pci"); in show()
/DragonOS/kernel/src/driver/acpi/
H A Dsysfs.rs8 file::sysfs_emit_str, sysfs_instance, Attribute, BinAttribute, SysFSOpsSupport,
146 return sysfs_emit_str(buf, "0\n"); in show()
/DragonOS/kernel/src/driver/video/fbdev/base/fbcon/
H A Dmod.rs24 sysfs::{file::sysfs_emit_str, Attribute, AttributeGroup, SysFSOpsSupport},
291 return sysfs_emit_str(buf, "0\n"); in show()
/DragonOS/kernel/src/driver/base/device/
H A Ddd.rs11 file::sysfs_emit_str, sysfs_instance, Attribute, SysFSOpsSupport, SYSFS_ATTR_MODE_WO,
612 return sysfs_emit_str(buf, format!("{}\n", val).as_str()); in show()
H A Dbus.rs14 file::sysfs_emit_str, sysfs_instance, Attribute, AttributeGroup, SysFSOps,
678 return sysfs_emit_str(buf, format!("{val}\n").as_str()); in show()
H A Dmod.rs18 file::sysfs_emit_str, sysfs_instance, Attribute, AttributeGroup, SysFSOps,
944 return sysfs_emit_str(buf, &s); in show()
/DragonOS/kernel/src/filesystem/sysfs/
H A Dfile.rs414 pub fn sysfs_emit_str(buf: &mut [u8], s: &str) -> Result<usize, SystemError> { in sysfs_emit_str() function
/DragonOS/kernel/src/driver/video/fbdev/
H A Dvesafb.rs32 sysfs::{file::sysfs_emit_str, Attribute, AttributeGroup, SysFSOpsSupport},
901 sysfs_emit_str( in show()