Home
last modified time | relevance | path

Searched refs:write (Results 1 – 25 of 138) sorted by relevance

123456

/DragonOS/kernel/src/net/
H A Dmod.rs89 Protocol::HopByHop => write!(f, "Hop-by-Hop"), in fmt()
90 Protocol::Icmp => write!(f, "ICMP"), in fmt()
91 Protocol::Igmp => write!(f, "IGMP"), in fmt()
92 Protocol::Tcp => write!(f, "TCP"), in fmt()
93 Protocol::Udp => write!(f, "UDP"), in fmt()
94 Protocol::Ipv6Route => write!(f, "IPv6-Route"), in fmt()
95 Protocol::Ipv6Frag => write!(f, "IPv6-Frag"), in fmt()
96 Protocol::Icmpv6 => write!(f, "ICMPv6"), in fmt()
97 Protocol::Ipv6NoNxt => write!(f, "IPv6-NoNxt"), in fmt()
98 Protocol::Ipv6Opts => write!(f, "IPv6-Opts"), in fmt()
[all …]
/DragonOS/kernel/src/driver/pci/
H A Draw_device.rs119 let mut guard = self.inner.write(); in class()
149 self.inner.write().device_common.bus = bus; in set_bus()
155 self.inner.write().device_common.class = class; in set_class()
159 self.inner.write().device_common.driver = driver in set_driver()
167 self.inner.write().device_common.parent.clone() in dev_parent()
171 self.inner.write().device_common.parent = dev_parent; in set_dev_parent()
181 self.inner.write().kobject_common.kern_inode = inode; in set_inode()
193 self.inner.write().kobject_common.parent = parent; in set_parent()
201 self.inner.write().kobject_common.kset = kset; in set_kset()
209 self.inner.write().kobject_common.kobj_type = ktype; in set_kobj_type()
[all …]
H A Dpci.rs65 write!(f, "PciAddr({:#x})", self.0) in fmt()
88 pub fn write(&self) -> RwLockWriteGuard<LinkedList<Arc<dyn PciDeviceStructure>>> { in write() method
89 self.list.write() in write()
99 let mut list = self.list.write(); in add()
121 for box_pci_device_structure in list.write().iter() { in get_pci_device_structures_mut_by_vendor_id()
148 for box_pci_device_structure in list.write().iter() { in get_pci_device_structure_mut()
298 Self::InvalidBarType => write!(f, "Invalid PCI BAR type."), in fmt()
299 Self::CreateMmioError => write!(f, "Error occurred while creating mmio."), in fmt()
300 Self::InvalidBusDeviceFunction => write!(f, "Found invalid BusDeviceFunction."), in fmt()
301 Self::SegmentNotFound => write!(f, "Target segment not found"), in fmt()
[all …]
/DragonOS/kernel/src/driver/pci/test/
H A Dpt_driver.rs49 self.locked_dynid_list.write().push(id); in add_dynid()
92 let mut guard = self.driver_data.write(); in add_device()
102 let mut guard = self.driver_data.write(); in delete_device()
107 self.driver_data.write().bus = bus; in set_bus()
121 self.kobj_data.write().kern_inode = inode; in set_inode()
133 self.kobj_data.write().parent = parent; in set_parent()
141 self.kobj_data.write().kset = kset; in set_kset()
149 self.kobj_data.write().kobj_type = ktype; in set_kobj_type()
165 self.kobj_state.write() in kobj_state_mut()
169 *self.kobj_state.write() = state; in set_kobj_state()
H A Dpt_device.rs111 let mut guard = self.device_data.write(); in class()
141 self.device_data.write().bus = bus in set_bus()
149 self.device_data.write().class = class in set_class()
153 self.device_data.write().driver = driver in set_driver()
165 self.device_data.write().parent = dev_parent in set_dev_parent()
175 self.kobj_data.write().kern_inode = inode; in set_inode()
187 self.kobj_data.write().parent = parent; in set_parent()
195 self.kobj_data.write().kset = kset; in set_kset()
203 self.kobj_data.write().kobj_type = ktype; in set_kobj_type()
219 self.kobj_state.write() in kobj_state_mut()
[all …]
/DragonOS/kernel/crates/kprobe/src/arch/rv64/
H A Dmod.rs57 core::ptr::write(address as *mut u16, inst_16); in drop()
60 core::ptr::write(address as *mut u32, inst_32); in drop()
107 core::ptr::write(address as *mut u16, C_EBREAK_INST as u16); in replace_inst()
110 core::ptr::write(inst_tmp_ptr as *mut u16, inst_16); in replace_inst()
111 core::ptr::write((inst_tmp_ptr + 2) as *mut u16, C_EBREAK_INST as u16); in replace_inst()
117 core::ptr::write(address as *mut u32, EBREAK_INST); in replace_inst()
120 core::ptr::write(inst_tmp_ptr as *mut u32, inst_32); in replace_inst()
121 core::ptr::write((inst_tmp_ptr + 4) as *mut u32, EBREAK_INST); in replace_inst()
/DragonOS/kernel/src/driver/serial/serial8250/
H A Dmod.rs246 self.inner.write().device_state = set_state; in set_state()
259 self.inner.write().device_common.bus = bus; in set_bus()
275 self.inner.write().device_common.driver = driver; in set_driver()
283 self.inner.write().device_common.can_match = can_match; in set_can_match()
299 self.inner.write().device_common.parent = dev_parent; in set_dev_parent()
309 self.inner.write().kobject_common.kern_inode = inode; in set_inode()
321 self.inner.write().kobject_common.parent = parent; in set_parent()
329 self.inner.write().kobject_common.kset = kset; in set_kset()
351 self.kobj_state.write() in kobj_state_mut()
355 *self.kobj_state.write() = state; in set_kobj_state()
[all …]
/DragonOS/kernel/src/driver/base/
H A Dkset.rs112 self.kobjects.write().push(Arc::downgrade(kobj)); in join()
117 let mut kobjects = self.kobjects.write(); in leave()
136 let mut kobjects = self.kobjects.write(); in cleanup_weak()
159 self.inner.write().kern_inode = inode; in set_inode()
167 self.parent_data.write().parent = parent; in set_parent()
175 self.kobj_state.write() in kobj_state_mut()
183 self.inner.write().ktype = ktype; in set_kobj_type()
191 self.parent_data.write().kset = kset; in set_kset()
199 self.inner.write().name = name; in set_name()
203 *self.kobj_state.write() = state; in set_kobj_state()
H A Dcpu.rs156 self.inner.write().device_common.bus = bus; in set_bus()
196 self.inner.write().device_common.parent = dev_parent; in set_dev_parent()
210 self.inner.write().kobject_common.kern_inode = inode; in set_inode()
222 self.inner.write().kobject_common.parent = parent; in set_parent()
230 self.inner.write().kobject_common.kset = kset; in set_kset()
238 self.inner.write().kobject_common.kobj_type = ktype; in set_kobj_type()
246 self.inner.write().name = name; in set_name()
254 self.kobj_state.write() in kobj_state_mut()
H A Dsubsys.rs146 self.ksets.write().devices_kset = Some(devices_kset); in set_devices_kset()
156 self.ksets.write().drivers_kset = Some(drivers_kset); in set_drivers_kset()
168 let mut drivers = self.drivers.write(); in add_driver_to_vec()
177 let mut drivers = self.drivers.write(); in remove_driver_from_vec()
185 let mut devices = self.devices.write(); in add_device_to_vec()
195 let mut devices = self.devices.write(); in remove_device_from_vec()
/DragonOS/kernel/src/arch/x86_64/driver/apic/
H A Dxapic.rs137 pub unsafe fn write(&self, reg: XApicOffset, value: u32) { in write() method
229 self.write(XApicOffset::LOCAL_APIC_OFFSET_Local_APIC_SVR, val | ENABLE); in init_current_cpu()
247 self.write(XApicOffset::LOCAL_APIC_OFFSET_Local_APIC_ESR, 0); in init_current_cpu()
248 self.write(XApicOffset::LOCAL_APIC_OFFSET_Local_APIC_ESR, 0); in init_current_cpu()
251 self.write(XApicOffset::LOCAL_APIC_OFFSET_Local_APIC_EOI, 0); in init_current_cpu()
254 self.write(XApicOffset::LOCAL_APIC_OFFSET_Local_APIC_ICR_63_32, 0); in init_current_cpu()
255 self.write( in init_current_cpu()
271 (*s).write(XApicOffset::LOCAL_APIC_OFFSET_Local_APIC_EOI, 0); in send_eoi()
298 self.write(lvt.register().into(), lvt.data); in set_lvt()
329 self.write( in write_icr()
[all …]
/DragonOS/kernel/src/process/
H A Dstdio.rs40 .write() in stdio_init()
48 .write() in stdio_init()
56 .write() in stdio_init()
/DragonOS/kernel/crates/kprobe/src/arch/loongarch64/
H A Dmod.rs47 core::ptr::write(address as *mut u32, inst_32); in drop()
81 core::ptr::write(address as *mut u32, EBREAK_INST); in replace_inst()
84 core::ptr::write(inst_tmp_ptr as *mut u32, inst_32); in replace_inst()
85 core::ptr::write((inst_tmp_ptr + 4) as *mut u32, EBREAK_INST); in replace_inst()
/DragonOS/.github/workflows/
H A Dissue-checker.yml12 issues: write
13 pull-requests: write
/DragonOS/tools/debugging/logmonitor/src/backend/
H A Derror.rs27 write!(f, "File not found: {:?}", self.message.as_ref().unwrap()) in fmt()
30 write!( in fmt()
/DragonOS/kernel/src/arch/x86_64/kvm/vmx/
H A Dmmu.rs118 let write = error_code & ((1_u32) << 1); in tdp_page_fault() localVariable
119 let pfn = mmu_gfn_to_pfn_fast(vcpu, gpa, prefault, gfn, write == 0, &mut map_writable)?; in tdp_page_fault()
121 __direct_map(vcpu, gpa, write, map_writable, level, gfn, pfn, prefault)?; in tdp_page_fault()
233 write: bool, in mmu_gfn_to_pfn_fast()
237 let pfn = __gfn_to_pfn(slot, gfn, false, write, writable)?; in mmu_gfn_to_pfn_fast()
/DragonOS/kernel/src/driver/video/fbdev/base/
H A Dmod.rs169 dst1.write(color_tab[(image.data[src] as usize >> 4) & bitmask]); in fast_imageblit()
170 dst1.write(color_tab[(image.data[src] as usize) & bitmask]); in fast_imageblit()
179 dst1.write(color_tab[(image.data[src] as usize >> 6) & bitmask]); in fast_imageblit()
180 dst1.write(color_tab[(image.data[src] as usize >> 4) & bitmask]); in fast_imageblit()
181 dst1.write(color_tab[(image.data[src] as usize >> 2) & bitmask]); in fast_imageblit()
182 dst1.write(color_tab[(image.data[src] as usize) & bitmask]); in fast_imageblit()
191 dst1.write(color_tab[(image.data[src] as usize >> 7) & bitmask]); in fast_imageblit()
192 dst1.write(color_tab[(image.data[src] as usize >> 6) & bitmask]); in fast_imageblit()
193 dst1.write(color_tab[(image.data[src] as usize >> 5) & bitmask]); in fast_imageblit()
194 dst1.write(color_tab[(image.data[src] as usize >> 4) & bitmask]); in fast_imageblit()
[all …]
/DragonOS/kernel/src/driver/virtio/
H A Dtransport_pci.rs140 irq_vector.write().push(irq); in new()
468 Self::InvalidVendorId(vendor_id) => write!( in fmt()
473 Self::MissingCommonConfig => write!( in fmt()
477 Self::MissingNotifyConfig => write!( in fmt()
482 write!( in fmt()
489 write!(f, "No valid `VIRTIO_PCI_CAP_ISR_CFG` capability was found.") in fmt()
491 Self::UnexpectedBarType => write!(f, "Unexpected BAR (expected memory BAR)."), in fmt()
492 Self::BarNotAllocated(bar_index) => write!(f, "Bar {} not allocated.", bar_index), in fmt()
493 Self::BarOffsetOutOfRange => write!(f, "Capability offset greater than BAR length."), in fmt()
494 Self::Misaligned { vaddr, alignment } => write!( in fmt()
[all …]
/DragonOS/user/apps/test-for-robustfutex/src/
H A Dmain.rs47 self.addr.offset(offset).write(val); in set_val()
71 self.addr.offset(offset).write(val); in set_val()
256 futexes.offset(11).write(0x0000_0000); in test01()
257 futexes.offset(12).write(0x8000_0000); in test01()
342 futexes.offset(11).write(0x0000_0000); in test02()
343 futexes.offset(12).write(0x0000_0000); in test02()
351 count.offset(0).write(1); in test02()
352 count.offset(1).write(0); in test02()
/DragonOS/kernel/src/driver/tty/
H A Dtty_device.rs121 dev.inner.write().metadata.raw_dev = dev_num; in new()
127 self.inner.write() in inner_write()
257 let ret = ld.write(tty.clone(), &buf[written..], size, mode)?; in write_at()
439 *self.fs.write() = fs; in set_fs()
449 self.inner.write().inode = inode; in set_inode()
461 self.inner.write().parent_kobj = parent in set_parent()
469 self.inner.write().kset = kset in set_kset()
495 self.kobj_state.write() in kobj_state_mut()
499 *self.kobj_state.write() = state in set_kobj_state()
517 self.inner.write().bus = bus in set_bus()
[all …]
/DragonOS/kernel/src/arch/x86_64/mm/
H A Dpkru.rs29 pub fn pkru_allows_pkey(pkey: u16, write: bool) -> bool { in pkru_allows_pkey()
35 if write & !pkru_allows_write(pkru, pkey) { in pkru_allows_pkey()
/DragonOS/kernel/src/libs/
H A Dlazy_init.rs79 (*self.value.get()).as_mut_ptr().write(value); in init()
139 return write!(f, "Lazy({:?})", value); in fmt()
141 return write!(f, "Lazy(uninitialized)"); in fmt()
H A Dprintk.rs46 let _ = tty.write(tty.core(), s.as_bytes(), s.len()); in __write_string()
112 write!(PrintkWriter, "[ {} ] ", record.level(),) in iodisplay()
115 write!(PrintkWriter, "\x1B[41m[ ERROR ] \x1B[0m",) in iodisplay()
118 write!(PrintkWriter, "\x1B[1;33m[ WARN ] \x1B[0m",) in iodisplay()
/DragonOS/kernel/src/virt/kvm/
H A Dhost_mem.rs106 write: bool, in __gfn_to_hva_many()
113 if slot.flags & KVM_MEMSLOT_INVALID != 0 || (slot.flags & KVM_MEM_READONLY != 0) && write { in __gfn_to_hva_many()
165 write: bool, in __gfn_to_pfn()
170 let addr = __gfn_to_hva_many(slot, gfn, Some(&mut nr_pages), write)?; in __gfn_to_pfn()
/DragonOS/kernel/src/mm/
H A Dsyscall.rs256 let mut address_space = address_space.write(); in brk()
277 let mut address_space = address_space.write(); in sbrk()
328 current_address_space.write().map_anonymous( in mmap()
338 current_address_space.write().file_mapping( in mmap()
424 let r = current_address_space.write().mremap( in mremap()
466 .write() in munmap()
502 .write() in mprotect()
538 .write() in madvise()
623 err = file.write(len, unsafe { in msync()

123456