Home
last modified time | relevance | path

Searched refs:read (Results 1 – 25 of 140) sorted by relevance

123456

/DragonOS/kernel/src/arch/x86_64/driver/apic/
H A Dxapic.rs131 pub unsafe fn read(&self, reg: XApicOffset) -> u32 { in read() method
142 self.read(XApicOffset::LOCAL_APIC_OFFSET_Local_APIC_ID); // 等待写操作完成,通过读取进行同步 in write()
227 let val = self.read(XApicOffset::LOCAL_APIC_OFFSET_Local_APIC_SVR); in init_current_cpu()
231 let val = self.read(XApicOffset::LOCAL_APIC_OFFSET_Local_APIC_SVR); in init_current_cpu()
259 while self.read(XApicOffset::LOCAL_APIC_OFFSET_Local_APIC_ICR_31_0) & DELIVS != 0 { in init_current_cpu()
277 unsafe { (self.read(XApicOffset::LOCAL_APIC_OFFSET_Local_APIC_Version) & 0xff) as u8 } in version()
281 unsafe { ((self.read(XApicOffset::LOCAL_APIC_OFFSET_Local_APIC_Version) >> 24) & 1) == 1 } in support_eoi_broadcast_suppression()
286 ((self.read(XApicOffset::LOCAL_APIC_OFFSET_Local_APIC_Version) >> 16) & 0xff) as u8 + 1 in max_lvt_entry()
292 unsafe { ApicId::new(self.read(XApicOffset::LOCAL_APIC_OFFSET_Local_APIC_ID) >> 24) } in id()
306 self.read(XApicOffset::LOCAL_APIC_OFFSET_Local_APIC_LVT_TIMER), in read_lvt()
[all …]
H A Dioapic.rs143 unsafe fn read(&mut self, reg: u8) -> u32 { in read() method
172 let mut val = unsafe { self.read(REG_TABLE + 2 * rte_index) }; in enable()
179 let mut val = unsafe { self.read(reg) }; in disable()
237 unsafe { self.read(REG_TABLE + 2 * irq).get_bits(0..8) as u8 } in irq_vector()
243 let mut old = unsafe { self.read(REG_TABLE + 2 * irq) }; in set_irq_vector()
255 unsafe { self.read(REG_ID).get_bits(24..28) as u8 } in id()
261 unsafe { self.read(REG_VER).get_bits(0..8) as u8 } in version()
269 unsafe { (self.read(REG_VER).get_bits(16..24) + 1) as u8 } in supported_interrupts()
274 let data = unsafe { self.read(REG_TABLE + 2 * rte_index) }; in pending()
/DragonOS/kernel/src/driver/pci/test/
H A Dpt_driver.rs54 Some(self.locked_dynid_list.read().clone()) in locked_dynid_list()
88 self.driver_data.read().devices.clone() in devices()
111 self.driver_data.read().bus.clone() in bus()
125 self.kobj_data.read().kern_inode.clone() in inode()
129 self.kobj_data.read().parent.clone() in parent()
137 self.kobj_data.read().kset.clone() in kset()
145 self.kobj_data.read().kobj_type in kobj_type()
161 self.kobj_state.read() in kobj_state()
H A Dpt_device.rs81 self.device_data.read().bus.clone() in bus()
95 self.device_data.read().driver.clone()?.upgrade() in driver()
135 self.device_data.read().parent.clone() in dev_parent()
153 self.kobj_data.read().kern_inode.clone() in inode()
157 self.kobj_data.read().parent.clone() in parent()
165 self.kobj_data.read().kset.clone() in kset()
173 self.kobj_data.read().kobj_type in kobj_type()
189 self.kobj_state.read() in kobj_state()
/DragonOS/kernel/src/driver/pci/
H A Draw_device.rs91 self.inner.read().device_common.bus.clone() in bus()
105 self.inner.read().device_common.driver.clone()?.upgrade() in driver()
161 self.inner.read().kobject_common.kern_inode.clone() in inode()
165 self.inner.read().kobject_common.parent.clone() in parent()
173 self.inner.read().kobject_common.kset.clone() in kset()
181 self.inner.read().kobject_common.kobj_type in kobj_type()
189 self.inner.read().name.clone().unwrap() in name()
197 self.kobj_state.read() in kobj_state()
/DragonOS/kernel/src/driver/serial/serial8250/
H A Dmod.rs242 return self.inner.read().device_state == DeviceState::Initialized; in is_initialized()
255 self.inner.read().device_common.bus.clone() in bus()
271 self.inner.read().device_common.driver.clone()?.upgrade() in driver()
279 self.inner.read().device_common.can_match in can_match()
295 self.inner.read().device_common.parent.clone() in dev_parent()
313 self.inner.read().kobject_common.kern_inode.clone() in inode()
317 self.inner.read().kobject_common.parent.clone() in parent()
325 self.inner.read().kobject_common.kset.clone() in kset()
347 self.kobj_state.read() in kobj_state()
480 self.inner.read().devices.clone() in devices()
[all …]
/DragonOS/kernel/src/driver/base/
H A Dkset.rs34 self.inner.read().name.hash(state); in hash()
145 return self.kobjects.read(); in kobjects()
155 self.inner.read().kern_inode.clone() in inode()
163 self.parent_data.read().parent.clone() in parent()
171 self.kobj_state.read() in kobj_state()
179 self.inner.read().ktype in kobj_type()
187 self.parent_data.read().kset.clone() in kset()
195 return self.inner.read().name.clone(); in name()
H A Dcpu.rs160 self.inner.read().device_common.bus.clone() in bus()
192 self.inner.read().device_common.parent.clone() in dev_parent()
214 self.inner.read().kobject_common.kern_inode.clone() in inode()
218 self.inner.read().kobject_common.parent.clone() in parent()
226 self.inner.read().kobject_common.kset.clone() in kset()
234 self.inner.read().kobject_common.kobj_type in kobj_type()
242 self.inner.read().name.clone() in name()
250 self.kobj_state.read() in kobj_state()
H A Dsubsys.rs121 return self.devices.read(); in devices()
125 return self.drivers.read(); in drivers()
140 return self.ksets.read().devices_kset.clone(); in devices_kset()
152 return self.ksets.read().drivers_kset.clone(); in drivers_kset()
/DragonOS/user/apps/test-for-robustfutex/src/
H A Dmain.rs42 return unsafe { self.addr.offset(offset).read() }; in get_val()
66 return unsafe { self.addr.offset(offset).read() }; in get_val()
262 println!("futex1 val: {:#x?}", futexes.offset(11).read()); in test01()
263 println!("futex2 val: {:#x?}", futexes.offset(12).read()); in test01()
302 println!("futex1 val: {:#x}", futexes.offset(11).read()); in test01()
303 println!("futex2 val: {:#x}", futexes.offset(12).read()); in test01()
305 println!("robust list next next: {:#x?}", futexes.offset(0).read()); in test01()
348 println!("futex1 val: {:#x?}", futexes.offset(11).read()); in test02()
349 println!("futex2 val: {:#x?}", futexes.offset(12).read()); in test02()
353 println!("count1 val: {:?}", count.offset(0).read()); in test02()
[all …]
/DragonOS/user/apps/test_filemap/
H A Dmain.c26 read(fd, buf, 11); in main()
57 read(fd, buf, 11); in main()
/DragonOS/kernel/src/exception/
H A Ddebug.rs20 let guard = kprobe.read(); in post_kprobe_handler()
26 let return_address = kprobe_list[0].read().probe_point().return_address(); in post_kprobe_handler()
H A Debreak.rs21 let guard = kprobe.read(); in kprobe_handler()
26 let single_step_address = kprobe_list[0].read().probe_point().single_step_address(); in kprobe_handler()
/DragonOS/user/apps/test_pty/
H A Dtest_pty.c32 ssize_t n = read(ptm, buf, sizeof(buf)); in main()
40 ssize_t nn = read(pts, nbuf, sizeof(nbuf)); in main()
/DragonOS/kernel/src/driver/firmware/efi/
H A Dmod.rs68 return self.inner.read().mmap.desc_version; in desc_version()
74 return self.inner.read().dragonstub_load_info; in kernel_load_info()
109 self.inner.read() in inner_read()
/DragonOS/kernel/src/namespaces/
H A Dmod.rs62 pcb.get_nsproxy().read().pid_namespace.clone(), in create_new_namespaces()
66 pcb.get_nsproxy().read().pid_namespace.clone() in create_new_namespaces()
74 pcb.get_nsproxy().read().mnt_namespace.clone() in create_new_namespaces()
/DragonOS/kernel/src/driver/block/cache/
H A Dcached_block_device.rs61 pub fn read( in read() method
132 space.read(cache_block_addr, position, buf) in read_one_block()
202 pub fn read( in read() method
208 self.0.read().read(addr, position, buf) in read()
248 pub fn read( in read() method
324 self.lock.read().find(lba_id) in find()
/DragonOS/kernel/src/driver/open_firmware/
H A Dfdt.rs80 let fdt_vaddr = boot_params().read().fdt().ok_or(SystemError::ENODEV)?; in fdt_ref()
148 debug!("Command line: {}", boot_params().read().boot_cmdline_str()); in early_init_scan_chosen()
183 let addr_cells = FDT_GLOBAL_DATA.read().root_addr_cells as usize; in early_init_scan_memory()
184 let size_cells = FDT_GLOBAL_DATA.read().root_size_cells as usize; in early_init_scan_memory()
297 let vaddr = boot_params().read().fdt(); in early_init_fdt_scan_reserved_mem()
332 let fdt_paddr = boot_params().read().arch.fdt_paddr; in early_reserve_fdt_itself()
401 FDT_GLOBAL_DATA.read(); in reserved_mem_reserve_reg()
417 let addr_cells = FDT_GLOBAL_DATA.read().root_addr_cells as usize; in reserved_mem_reserve_reg()
418 let size_cells = FDT_GLOBAL_DATA.read().root_size_cells as usize; in reserved_mem_reserve_reg()
/DragonOS/kernel/src/driver/clocksource/
H A Dacpi_pm.rs107 fn read(&self) -> CycleNum { in read() method
185 let value1 = clocksource_acpi_pm().read().data(); in verify_pmtmr_rate()
187 let value2 = clocksource_acpi_pm().read().data(); in verify_pmtmr_rate()
255 let value1 = clocksource_acpi_pm().read().data(); in init_acpi_pm_clocksource()
258 let value2 = clocksource_acpi_pm().read().data(); in init_acpi_pm_clocksource()
/DragonOS/kernel/src/driver/tty/
H A Dtty_device.rs205 size = ld.read(tty.clone(), buf, size, &mut cookie, offset, mode)?; in read_at()
291 Ok(self.inner.read().metadata.clone()) in metadata()
453 self.inner.read().inode.clone() in inode()
457 self.inner.read().parent_kobj.clone() in parent()
465 self.inner.read().kset.clone() in kset()
489 self.kobj_state.read() in kobj_state()
513 self.inner.read().bus.clone() in bus()
531 self.inner.read().driver.clone()?.upgrade() in driver()
546 self.inner.read().can_match in can_match()
570 fn read(&self, _len: usize, _buf: &mut [u8]) -> Result<usize, SystemError> { in read() method
/DragonOS/kernel/crates/kprobe/src/arch/loongarch64/
H A Dmod.rs45 let inst_32 = unsafe { core::ptr::read(inst_tmp_ptr as *const u32) }; in drop()
79 let inst_32 = unsafe { core::ptr::read(address as *const u32) }; in replace_inst()
/DragonOS/user/apps/test_dup3/
H A Dmain.c19 int bytes_read = read(new_fd, buffer, sizeof(buffer)); in main()
/DragonOS/kernel/src/debug/kprobe/
H A Dmod.rs38 let probe_point = kprobe.read().probe_point().clone(); in insert_kprobe()
99 let probe_point = kprobe.read().probe_point().clone(); in remove_kprobe()
177 let kprobe_addr = kprobe.read().probe_point().break_address(); in unregister_kprobe()
/DragonOS/user/apps/test_uart/
H A Dmain.c13 n = read(fd, buf, 1); in main()
/DragonOS/user/apps/test_socket/src/
H A Dtest_unix_stream_pair.rs13 let nbytes = sock0.read(&mut buffer).expect("read error"); in test_unix_stream_pair()

123456