Home
last modified time | relevance | path

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

/DragonOS-0.1.8/kernel/src/filesystem/fat/
Dfs.rs374 let mut v = Vec::<u8>::new(); in get_fat_entry() localVariable
375 v.resize(self.bpb.bytes_per_sector as usize, 0); in get_fat_entry()
378 .read_at(fat_ent_lba as usize, 1 * self.lba_per_sector(), &mut v)?; in get_fat_entry()
380 let mut cursor = VecCursor::new(v); in get_fat_entry()
468 let mut v = Vec::<u8>::new(); in get_fat_entry_raw() localVariable
469 v.resize(self.bpb.bytes_per_sector as usize, 0); in get_fat_entry_raw()
472 .read_at(fat_ent_lba, 1 * self.lba_per_sector(), &mut v)?; in get_fat_entry_raw()
474 let mut cursor = VecCursor::new(v); in get_fat_entry_raw()
936 let mut v: Vec<u8> = Vec::new(); in get_free_cluster() localVariable
937 v.resize(num_lba * LBA_SIZE, 0); in get_free_cluster()
[all …]
Dbpb.rs223 let mut v = Vec::with_capacity(LBA_SIZE); in new() localVariable
224 v.resize(LBA_SIZE, 0); in new()
229 .read_at(partition.lba_start as usize, 1, &mut v)?; in new()
232 let mut cursor = VecCursor::new(v); in new()
Dentry.rs1092 let mut v: Vec<u8> = Vec::new(); in flush() localVariable
1093 v.resize(1 * fs.lba_per_sector() * LBA_SIZE, 0); in flush()
1096 .read_at(lba, 1 * fs.lba_per_sector(), &mut v)?; in flush()
1098 let mut cursor: VecCursor = VecCursor::new(v); in flush()
1306 let mut v: Vec<u8> = Vec::new(); in flush() localVariable
1307 v.resize(1 * fs.lba_per_sector() * LBA_SIZE, 0); in flush()
1310 .read_at(lba, 1 * fs.lba_per_sector(), &mut v)?; in flush()
1312 let mut cursor: VecCursor = VecCursor::new(v); in flush()
2370 let mut v: Vec<u8> = Vec::new(); in get_raw_dir_entry() localVariable
2371 v.resize(1 * LBA_SIZE, 0); in get_raw_dir_entry()
[all …]
/DragonOS-0.1.8/kernel/src/libs/
Drbtree.rs93 fn new(k: K, v: V) -> NodePtr<K, V> { in new()
100 value: v, in new()
424 .all(|(key, value)| other.get(key).map_or(false, |v| *value == *v)) in eq()
459 for (k, v) in iter { in extend()
460 self.insert(k, v); in extend()
545 self.inner.next().map(|(_, v)| v) in next()
593 self.inner.next().map(|(_, v)| v) in next()
630 let (k, v) = unsafe { in next()
638 Some((k, v)) in next()
659 let (k, v) = obj.pair(); in next_back()
[all …]
Delf.rs681 start_code = start_code.map(|v| v + load_bias); in load()
682 end_code = end_code.map(|v| v + load_bias); in load()
683 start_data = start_data.map(|v| v + load_bias); in load()
684 end_data = end_data.map(|v| v + load_bias); in load()
Dlz4.c211 #define MEM_INIT(p, v, s) memset((p), (v), (s)) argument
517 BYTE v[8]; in LZ4_memcpy_using_offset() local
524 MEM_INIT(v, *srcPtr, 8); in LZ4_memcpy_using_offset()
527 LZ4_memcpy(v, srcPtr, 2); in LZ4_memcpy_using_offset()
528 LZ4_memcpy(&v[2], srcPtr, 2); in LZ4_memcpy_using_offset()
529 LZ4_memcpy(&v[4], v, 4); in LZ4_memcpy_using_offset()
532 LZ4_memcpy(v, srcPtr, 4); in LZ4_memcpy_using_offset()
533 LZ4_memcpy(&v[4], srcPtr, 4); in LZ4_memcpy_using_offset()
540 LZ4_memcpy(dstPtr, v, 8); in LZ4_memcpy_using_offset()
544 LZ4_memcpy(dstPtr, v, 8); in LZ4_memcpy_using_offset()
/DragonOS-0.1.8/user/port/binutils/2.38/
DREADME.md24 docker run --rm -it -v $PWD:/workdir -w /workdir dragonos-binutils-build
/DragonOS-0.1.8/kernel/src/mm/
Dc_adapter.rs83 let mut v = Vec::with_capacity(size); in do_kmalloc() localVariable
85 v.set_len(size); in do_kmalloc()
87 v in do_kmalloc()
Ducontext.rs608 for v in self.vmas.iter() { in contains()
609 let guard = v.lock(); in contains()
611 return Some(v.clone()); in contains()
622 .filter(move |v| !v.lock().region.intersect(&request).is_none()) in conflicts()
/DragonOS-0.1.8/kernel/src/time/
Dtimer.rs311 Ok(v) => { in rs_schedule_timeout()
312 return v; in rs_schedule_timeout()
339 Ok(v) => return v as i64, in rs_timer_get_first_expire()
/DragonOS-0.1.8/kernel/src/arch/x86_64/mm/
Dmod.rs443 let mut v: Vec<(PhysAddr, PageFrameCount)> = Vec::with_capacity(60 * 1024); in test_buddy() localVariable
474 v.push((paddr, allocated_frame_count)); in test_buddy()
490 if v.len() > 0 { in test_buddy()
497 random_index = random_index % v.len() as u64; in test_buddy()
499 let (paddr, allocated_frame_count) = v.remove(random_index); in test_buddy()
515 for (paddr, allocated_frame_count) in v { in test_buddy()
/DragonOS-0.1.8/kernel/src/process/
Dexec.rs249 for (&k, &v) in self.auxv.iter() { in push_at()
250 self.push_slice(ustack, &[k as usize, v])?; in push_at()