Home
last modified time | relevance | path

Searched refs:k (Results 1 – 3 of 3) sorted by relevance

/DragonOS-0.1.2/kernel/src/mm/
Dmm.c345 for (ul k = shift; k < 64; ++k) in alloc_pages() local
348 if (!((k ? ((*p >> k) | (*(p + 1) << (64 - k))) : *p) & tmp_num)) in alloc_pages()
351 ul start_page_num = j + k - shift; // 计算得到要开始获取的内存页的页号 in alloc_pages()
608 for (ul k = shift; k < 64; ++k) in mm_find_page() local
610 if ((*p >> k) & 1) // 若当前页已分配 in mm_find_page()
612 uint64_t page_num = j + k - shift; in mm_find_page()
/DragonOS-0.1.2/kernel/src/filesystem/fat32/
Dfat32.c1247 for (int k = 0; k < 5; ++k) in fat32_readdir() local
1249 … if (long_dentry->LDIR_Name1[k] != 0xffff && long_dentry->LDIR_Name1[k] != 0x0000) in fat32_readdir()
1250 dir_name[name_len++] = (char)long_dentry->LDIR_Name1[k]; in fat32_readdir()
1254 for (int k = 0; k < 6; ++k) in fat32_readdir() local
1256 … if (long_dentry->LDIR_Name2[k] != 0xffff && long_dentry->LDIR_Name2[k] != 0x0000) in fat32_readdir()
1257 dir_name[name_len++] = (char)long_dentry->LDIR_Name2[k]; in fat32_readdir()
1261 for (int k = 0; k < 2; ++k) in fat32_readdir() local
1263 … if (long_dentry->LDIR_Name3[k] != 0xffff && long_dentry->LDIR_Name3[k] != 0x0000) in fat32_readdir()
1264 dir_name[name_len++] = (char)long_dentry->LDIR_Name3[k]; in fat32_readdir()
/DragonOS-0.1.2/kernel/src/ktest/
Dtest-idr.c308 for (int i = N / 3, j = 2 * (N / 3), k = 0; i <= j; k++, i++) in ktest_idr_case3() local