Home
last modified time | relevance | path

Searched refs:node (Results 1 – 12 of 12) sorted by relevance

/DragonOS/kernel/src/arch/riscv64/pci/
H A Dpci_host_ecam.rs1 use fdt::{node::FdtNode, Fdt};
14 let do_check = |node: FdtNode| -> Result<(), SystemError> { in pci_host_ecam_driver_init()
15 let reg = node in pci_host_ecam_driver_init()
22 let bus_range: &[u8] = node.property("bus-range").ok_or(SystemError::EINVAL)?.value; in pci_host_ecam_driver_init()
32 let segement_group_number: &[u8] = node in pci_host_ecam_driver_init()
44 node.name, in pci_host_ecam_driver_init()
62 for node in open_firmware_fdt_driver().find_node_by_compatible(&fdt, "pci-host-ecam-generic") { in pci_host_ecam_driver_init()
63 if let Err(err) = do_check(node) { in pci_host_ecam_driver_init()
66 node.name, err in pci_host_ecam_driver_init()
/DragonOS/kernel/src/libs/
H A Drbtree.rs94 let node = RBTreeNode { in new() localVariable
102 NodePtr(Box::into_raw(Box::new(node))) in new()
274 let mut node = NodePtr::new((*self.0).key.clone(), (*self.0).value.clone()); in deep_clone() localVariable
276 node.set_left(self.left().deep_clone()); in deep_clone()
277 node.left().set_parent(node); in deep_clone()
280 node.set_right(self.right().deep_clone()); in deep_clone()
281 node.right().set_parent(node); in deep_clone()
283 node in deep_clone()
382 fn tree_print(&self, node: NodePtr<K, V>, direction: i32) { in tree_print()
383 if node.is_null() { in tree_print()
[all …]
/DragonOS/kernel/src/driver/open_firmware/
H A Dfdt.rs4 node::{FdtNode, NodeProperty},
103 let node = fdt.find_node("/").ok_or(SystemError::ENODEV)?; in early_init_scan_root() localVariable
107 if let Some(prop) = node.property("#size-cells") { in early_init_scan_root()
113 if let Some(prop) = node.property("#address-cells") { in early_init_scan_root()
125 let mut node = fdt.find_node(CHOSEN_NAME1); in early_init_scan_chosen() localVariable
126 if node.is_none() { in early_init_scan_chosen()
128 node = fdt.find_node(CHOSEN_NAME2); in early_init_scan_chosen()
129 if node.is_some() { in early_init_scan_chosen()
136 if let Some(node) = node { in early_init_scan_chosen()
137 if let Some(prop) = node.property("bootargs") { in early_init_scan_chosen()
[all …]
/DragonOS/kernel/src/driver/virtio/
H A Dmmio.rs1 use fdt::node::FdtNode;
20 let do_check = |node: FdtNode| -> Result<(), SystemError> { in do_probe_virtio_mmio()
21 let mmio_transport = VirtIOMmioTransport::new(node)?; in do_probe_virtio_mmio()
27 for node in open_firmware_fdt_driver().find_node_by_compatible(&fdt, "virtio,mmio") { in do_probe_virtio_mmio()
28 do_check(node).ok(); in do_probe_virtio_mmio()
H A Dtransport_mmio.rs4 use fdt::node::FdtNode;
31 pub fn new(node: FdtNode) -> Result<Self, SystemError> { in new()
32 let reg = node in new()
42 let irq = node in new()
/DragonOS/kernel/src/init/
H A Dcmdline.rs260 let (node, option, value) = match self.split_arg(argument) { in early_init()
265 if let Some(param) = self.find_param(node, option, KCmdlineParamType::EarlyKV) { in early_init()
321 let (node, option, value) = match self.split_arg(argument) { in init()
338 if let Some(param) = self.find_param(node, option, KCmdlineParamType::KV) { in init()
352 } else if let Some(param) = self.find_param(node, option, KCmdlineParamType::Arg) { in init()
366 } else if node.is_none() { in init()
408 node: Option<&str>, in find_param()
420 if let Some(node) = node { in find_param()
422 name.len() == (node.len() + option.len() + 1) in find_param()
423 && name.starts_with(node) in find_param()
[all …]
/DragonOS/kernel/src/driver/firmware/efi/
H A Dfdt.rs128 let node = fdt.find_node(param.path); in get_fdt_params() localVariable
129 if node.is_none() { in get_fdt_params()
132 let node = node.unwrap(); in get_fdt_params() localVariable
135 let prop = node.property(prop.prop_name()); in get_fdt_params()
160 prop: &fdt::node::NodeProperty<'_>, in do_get_fdt_prop()
/DragonOS/kernel/src/arch/riscv64/init/
H A Dmod.rs1 use fdt::node::FdtNode;
78 fn print_node(node: FdtNode<'_, '_>, n_spaces: usize) { in print_node()
80 println!("{}/", node.name); in print_node()
81 node.properties().for_each(|p| { in print_node()
91 for child in node.children() { in print_node()
/DragonOS/docs/kernel/core_api/
H A Dkernel_api.md19 ### `void list_add(struct List *entry, struct List *node)`
23 &emsp;&emsp;将node插入到entry的后方
31 **node**
35 ### `void list_append(struct List *entry, struct List *node)` argument
39 &emsp;&emsp;将node插入到entry的前方
47 **node**
/DragonOS/kernel/crates/rust-slabmalloc/src/
H A Dpages.rs440 new_head.map(|node| { in pop()
441 *node.prev() = Rawlink::none(); in pop()
442 *node.next() = Rawlink::none(); in pop()
443 node in pop()
/DragonOS/kernel/src/common/
H A Dhid.h92 struct hid_node_t node[HID_MAX_PATH_SIZE]; member
/DragonOS/kernel/src/driver/irqchip/
H A Driscv_sifive_plic.rs27 use fdt::node::FdtNode;
425 for node in all_plics { in riscv_sifive_plic_init()
426 if let Err(e) = do_riscv_sifive_plic_init(&node) { in riscv_sifive_plic_init()
559 for node in nodes { in associate_irq_with_plic_domain()
560 if let Some(irq) = node.interrupts().and_then(|mut x| x.next()) { in associate_irq_with_plic_domain()