HelenOS sources
pte 137 boot/arch/arm32/src/mm.c static void init_ptl0_section(pte_level0_section_t *pte,
pte 140 boot/arch/arm32/src/mm.c pte->descriptor_type = PTE_DESCRIPTOR_SECTION;
pte 141 boot/arch/arm32/src/mm.c pte->xn = 0;
pte 142 boot/arch/arm32/src/mm.c pte->domain = 0;
pte 143 boot/arch/arm32/src/mm.c pte->should_be_zero_1 = 0;
pte 144 boot/arch/arm32/src/mm.c pte->access_permission_0 = PTE_AP_USER_NO_KERNEL_RW;
pte 152 boot/arch/arm32/src/mm.c pte->tex = section_cacheable(frame) ? 5 : 0;
pte 153 boot/arch/arm32/src/mm.c pte->cacheable = section_cacheable(frame) ? 0 : 0;
pte 154 boot/arch/arm32/src/mm.c pte->bufferable = section_cacheable(frame) ? 1 : 1;
pte 156 boot/arch/arm32/src/mm.c pte->bufferable = section_cacheable(frame);
pte 157 boot/arch/arm32/src/mm.c pte->cacheable = section_cacheable(frame);
pte 158 boot/arch/arm32/src/mm.c pte->tex = 0;
pte 160 boot/arch/arm32/src/mm.c pte->access_permission_1 = 0;
pte 161 boot/arch/arm32/src/mm.c pte->shareable = 0;
pte 162 boot/arch/arm32/src/mm.c pte->non_global = 0;
pte 163 boot/arch/arm32/src/mm.c pte->should_be_zero_2 = 0;
pte 164 boot/arch/arm32/src/mm.c pte->non_secure = 0;
pte 165 boot/arch/arm32/src/mm.c pte->section_base_addr = frame;
pte 47 kernel/arch/arm32/include/arch/mm/page_armv4.h #define PTE_VALID_ARCH(pte) \
pte 48 kernel/arch/arm32/include/arch/mm/page_armv4.h (((pte_t *) (pte))->l0.should_be_zero != 0 || PTE_PRESENT_ARCH(pte))
pte 49 kernel/arch/arm32/include/arch/mm/page_armv4.h #define PTE_PRESENT_ARCH(pte) \
pte 50 kernel/arch/arm32/include/arch/mm/page_armv4.h (((pte_t *) (pte))->l0.descriptor_type != 0)
pte 51 kernel/arch/arm32/include/arch/mm/page_armv4.h #define PTE_GET_FRAME_ARCH(pte) \
pte 52 kernel/arch/arm32/include/arch/mm/page_armv4.h (((uintptr_t) ((pte_t *) (pte))->l1.frame_base_addr) << FRAME_WIDTH)
pte 53 kernel/arch/arm32/include/arch/mm/page_armv4.h #define PTE_WRITABLE_ARCH(pte) \
pte 54 kernel/arch/arm32/include/arch/mm/page_armv4.h (((pte_t *) (pte))->l1.access_permission_0 == PTE_AP_USER_RW_KERNEL_RW)
pte 55 kernel/arch/arm32/include/arch/mm/page_armv4.h #define PTE_EXECUTABLE_ARCH(pte) \
pte 44 kernel/arch/arm32/include/arch/mm/page_armv6.h #define PTE_VALID_ARCH(pte) \
pte 45 kernel/arch/arm32/include/arch/mm/page_armv6.h (((pte_t *) (pte))->l0.should_be_zero_0 != 0 || PTE_PRESENT_ARCH(pte))
pte 46 kernel/arch/arm32/include/arch/mm/page_armv6.h #define PTE_PRESENT_ARCH(pte) \
pte 47 kernel/arch/arm32/include/arch/mm/page_armv6.h (((pte_t *) (pte))->l0.descriptor_type != 0)
pte 48 kernel/arch/arm32/include/arch/mm/page_armv6.h #define PTE_GET_FRAME_ARCH(pte) \
pte 49 kernel/arch/arm32/include/arch/mm/page_armv6.h (((uintptr_t) ((pte_t *) (pte))->l1.frame_base_addr) << FRAME_WIDTH)
pte 50 kernel/arch/arm32/include/arch/mm/page_armv6.h #define PTE_WRITABLE_ARCH(pte) \
pte 51 kernel/arch/arm32/include/arch/mm/page_armv6.h (((pte_t *) (pte))->l1.access_permission_1 != PTE_AP1_RO)
pte 52 kernel/arch/arm32/include/arch/mm/page_armv6.h #define PTE_EXECUTABLE_ARCH(pte) \
pte 53 kernel/arch/arm32/include/arch/mm/page_armv6.h (((pte_t *) (pte))->l1.descriptor_type != PTE_DESCRIPTOR_SMALL_PAGE_NX)
pte 150 kernel/arch/arm64/include/arch/mm/page.h #define PTE_VALID_ARCH(pte) \
pte 151 kernel/arch/arm64/include/arch/mm/page.h (((pte_t *) (pte))->valid != 0)
pte 152 kernel/arch/arm64/include/arch/mm/page.h #define PTE_PRESENT_ARCH(pte) \
pte 153 kernel/arch/arm64/include/arch/mm/page.h (((pte_t *) (pte))->valid != 0)
pte 154 kernel/arch/arm64/include/arch/mm/page.h #define PTE_GET_FRAME_ARCH(pte) \
pte 155 kernel/arch/arm64/include/arch/mm/page.h (((uintptr_t) ((pte_t *) (pte))->output_address) << FRAME_WIDTH)
pte 156 kernel/arch/arm64/include/arch/mm/page.h #define PTE_WRITABLE_ARCH(pte) \
pte 157 kernel/arch/arm64/include/arch/mm/page.h get_pt_writable((pte_t *) (pte))
pte 158 kernel/arch/arm64/include/arch/mm/page.h #define PTE_EXECUTABLE_ARCH(pte) \
pte 159 kernel/arch/arm64/include/arch/mm/page.h get_pt_executable((pte_t *) (pte))
pte 396 kernel/arch/arm64/include/arch/mm/page.h _NO_TRACE static inline bool get_pt_executable(pte_t *pte)
pte 398 kernel/arch/arm64/include/arch/mm/page.h if (pte->access_permission == PTE_AP_USER_NO_KERNEL_FULL ||
pte 399 kernel/arch/arm64/include/arch/mm/page.h pte->access_permission == PTE_AP_USER_NO_KERNEL_LIMITED)
pte 400 kernel/arch/arm64/include/arch/mm/page.h return pte->privileged_execute_never;
pte 402 kernel/arch/arm64/include/arch/mm/page.h return pte->unprivileged_execute_never;
pte 409 kernel/arch/arm64/include/arch/mm/page.h _NO_TRACE static inline bool get_pt_writable(pte_t *pte)
pte 411 kernel/arch/arm64/include/arch/mm/page.h return pte->access_permission == PTE_AP_USER_FULL_KERNEL_FULL ||
pte 412 kernel/arch/arm64/include/arch/mm/page.h pte->access_permission == PTE_AP_USER_NO_KERNEL_FULL;
pte 141 kernel/arch/mips32/include/arch/mm/page.h #define PTE_VALID_ARCH(pte) ((pte)->soft_valid != 0)
pte 142 kernel/arch/mips32/include/arch/mm/page.h #define PTE_PRESENT_ARCH(pte) ((pte)->p != 0)
pte 143 kernel/arch/mips32/include/arch/mm/page.h #define PTE_GET_FRAME_ARCH(pte) ((pte)->pfn << 12)
pte 144 kernel/arch/mips32/include/arch/mm/page.h #define PTE_WRITABLE_ARCH(pte) ((pte)->w != 0)
pte 145 kernel/arch/mips32/include/arch/mm/page.h #define PTE_EXECUTABLE_ARCH(pte) 1
pte 99 kernel/arch/mips32/src/mm/tlb.c pte_t pte;
pte 103 kernel/arch/mips32/src/mm/tlb.c bool found = page_mapping_find(AS, badvaddr, true, &pte);
pte 104 kernel/arch/mips32/src/mm/tlb.c if (found && pte.p) {
pte 108 kernel/arch/mips32/src/mm/tlb.c pte.a = 1;
pte 110 kernel/arch/mips32/src/mm/tlb.c tlb_prepare_entry_lo(&lo, pte.g, pte.p, pte.d,
pte 111 kernel/arch/mips32/src/mm/tlb.c pte.cacheable, pte.pfn);
pte 113 kernel/arch/mips32/src/mm/tlb.c page_mapping_update(AS, badvaddr, true, &pte);
pte 142 kernel/arch/mips32/src/mm/tlb.c pte_t pte;
pte 166 kernel/arch/mips32/src/mm/tlb.c bool found = page_mapping_find(AS, badvaddr, true, &pte);
pte 167 kernel/arch/mips32/src/mm/tlb.c if (found && pte.p) {
pte 176 kernel/arch/mips32/src/mm/tlb.c pte.a = 1;
pte 178 kernel/arch/mips32/src/mm/tlb.c tlb_prepare_entry_lo(&lo, pte.g, pte.p, pte.d,
pte 179 kernel/arch/mips32/src/mm/tlb.c pte.cacheable, pte.pfn);
pte 181 kernel/arch/mips32/src/mm/tlb.c page_mapping_update(AS, badvaddr, true, &pte);
pte 206 kernel/arch/mips32/src/mm/tlb.c pte_t pte;
pte 230 kernel/arch/mips32/src/mm/tlb.c bool found = page_mapping_find(AS, badvaddr, true, &pte);
pte 231 kernel/arch/mips32/src/mm/tlb.c if (found && pte.p && pte.w) {
pte 240 kernel/arch/mips32/src/mm/tlb.c pte.a = 1;
pte 241 kernel/arch/mips32/src/mm/tlb.c pte.d = 1;
pte 243 kernel/arch/mips32/src/mm/tlb.c tlb_prepare_entry_lo(&lo, pte.g, pte.p, pte.w,
pte 244 kernel/arch/mips32/src/mm/tlb.c pte.cacheable, pte.pfn);
pte 246 kernel/arch/mips32/src/mm/tlb.c page_mapping_update(AS, badvaddr, true, &pte);
pte 141 kernel/arch/ppc32/include/arch/mm/page.h #define PTE_VALID_ARCH(pte) ((pte)->valid != 0)
pte 142 kernel/arch/ppc32/include/arch/mm/page.h #define PTE_PRESENT_ARCH(pte) ((pte)->present != 0)
pte 143 kernel/arch/ppc32/include/arch/mm/page.h #define PTE_GET_FRAME_ARCH(pte) ((pte)->pfn << 12)
pte 144 kernel/arch/ppc32/include/arch/mm/page.h #define PTE_WRITABLE_ARCH(pte) 1
pte 145 kernel/arch/ppc32/include/arch/mm/page.h #define PTE_EXECUTABLE_ARCH(pte) 1
pte 58 kernel/arch/ppc32/src/mm/pht.c istate_t *istate, pte_t *pte)
pte 63 kernel/arch/ppc32/src/mm/pht.c bool found = page_mapping_find(as, badvaddr, true, pte);
pte 64 kernel/arch/ppc32/src/mm/pht.c if (found && pte->present) {
pte 80 kernel/arch/ppc32/src/mm/pht.c found = page_mapping_find(as, badvaddr, true, pte);
pte 83 kernel/arch/ppc32/src/mm/pht.c assert(pte->present);
pte 91 kernel/arch/ppc32/src/mm/pht.c static void pht_insert(const uintptr_t vaddr, const pte_t *pte)
pte 167 kernel/arch/ppc32/src/mm/pht.c phte[base + i].rpn = pte->pfn;
pte 170 kernel/arch/ppc32/src/mm/pht.c phte[base + i].wimg = (pte->page_cache_disable ? WIMG_NO_CACHE : 0);
pte 189 kernel/arch/ppc32/src/mm/pht.c pte_t pte;
pte 191 kernel/arch/ppc32/src/mm/pht.c PF_ACCESS_READ /* FIXME */, istate, &pte);
pte 195 kernel/arch/ppc32/src/mm/pht.c pte.accessed = 1;
pte 196 kernel/arch/ppc32/src/mm/pht.c pht_insert(badvaddr, &pte);
pte 155 kernel/arch/riscv64/include/arch/mm/page.h #define PTE_VALID_ARCH(pte) ((pte)->valid != 0)
pte 156 kernel/arch/riscv64/include/arch/mm/page.h #define PTE_PRESENT_ARCH(pte) ((pte)->valid != 0)
pte 157 kernel/arch/riscv64/include/arch/mm/page.h #define PTE_GET_FRAME_ARCH(pte) ((uintptr_t) (pte)->pfn << 12)
pte 158 kernel/arch/riscv64/include/arch/mm/page.h #define PTE_WRITABLE_ARCH(pte) ((pte)->writable != 0)
pte 159 kernel/arch/riscv64/include/arch/mm/page.h #define PTE_EXECUTABLE_ARCH(pte) ((pte)->executable != 0)
pte 167 kernel/arch/sparc64/include/arch/mm/sun4u/tsb.h struct pte;
pte 170 kernel/arch/sparc64/include/arch/mm/sun4u/tsb.h extern void itsb_pte_copy(struct pte *t, size_t index);
pte 171 kernel/arch/sparc64/include/arch/mm/sun4u/tsb.h extern void dtsb_pte_copy(struct pte *t, size_t index, bool ro);
pte 71 kernel/arch/sparc64/include/arch/mm/sun4v/tsb.h struct pte;
pte 74 kernel/arch/sparc64/include/arch/mm/sun4v/tsb.h extern void itsb_pte_copy(struct pte *t);
pte 75 kernel/arch/sparc64/include/arch/mm/sun4v/tsb.h extern void dtsb_pte_copy(struct pte *t, bool ro);
pte 52 kernel/genarch/include/genarch/mm/page_ht.h #define PTE_VALID(pte) ((void *) (pte) != NULL)
pte 53 kernel/genarch/include/genarch/mm/page_ht.h #define PTE_PRESENT(pte) ((pte)->p != 0)
pte 54 kernel/genarch/include/genarch/mm/page_ht.h #define PTE_GET_FRAME(pte) ((pte)->frame)
pte 55 kernel/genarch/include/genarch/mm/page_ht.h #define PTE_READABLE(pte) 1
pte 56 kernel/genarch/include/genarch/mm/page_ht.h #define PTE_WRITABLE(pte) ((pte)->w != 0)
pte 57 kernel/genarch/include/genarch/mm/page_ht.h #define PTE_EXECUTABLE(pte) ((pte)->x != 0)
pte 103 kernel/genarch/src/mm/page_ht.c pte_t *pte = hash_table_get_inst(item, pte_t, link);
pte 105 kernel/genarch/src/mm/page_ht.c hash = hash_combine(hash, (uintptr_t) pte->as);
pte 106 kernel/genarch/src/mm/page_ht.c hash = hash_combine(hash, pte->page >> PAGE_WIDTH);
pte 124 kernel/genarch/src/mm/page_ht.c pte_t *pte = hash_table_get_inst(item, pte_t, link);
pte 125 kernel/genarch/src/mm/page_ht.c return (key[KEY_AS] == (uintptr_t) pte->as) &&
pte 126 kernel/genarch/src/mm/page_ht.c (key[KEY_PAGE] == pte->page);
pte 138 kernel/genarch/src/mm/page_ht.c pte_t *pte = hash_table_get_inst(item, pte_t, link);
pte 139 kernel/genarch/src/mm/page_ht.c slab_free(pte_cache, pte);
pte 166 kernel/genarch/src/mm/page_ht.c pte_t *pte = slab_alloc(pte_cache, FRAME_LOWMEM | FRAME_ATOMIC);
pte 167 kernel/genarch/src/mm/page_ht.c assert(pte != NULL);
pte 169 kernel/genarch/src/mm/page_ht.c pte->g = (flags & PAGE_GLOBAL) != 0;
pte 170 kernel/genarch/src/mm/page_ht.c pte->x = (flags & PAGE_EXEC) != 0;
pte 171 kernel/genarch/src/mm/page_ht.c pte->w = (flags & PAGE_WRITE) != 0;
pte 172 kernel/genarch/src/mm/page_ht.c pte->k = !(flags & PAGE_USER);
pte 173 kernel/genarch/src/mm/page_ht.c pte->c = (flags & PAGE_CACHEABLE) != 0;
pte 174 kernel/genarch/src/mm/page_ht.c pte->p = !(flags & PAGE_NOT_PRESENT);
pte 175 kernel/genarch/src/mm/page_ht.c pte->a = false;
pte 176 kernel/genarch/src/mm/page_ht.c pte->d = false;
pte 178 kernel/genarch/src/mm/page_ht.c pte->as = as;
pte 179 kernel/genarch/src/mm/page_ht.c pte->page = ALIGN_DOWN(page, PAGE_SIZE);
pte 180 kernel/genarch/src/mm/page_ht.c pte->frame = ALIGN_DOWN(frame, FRAME_SIZE);
pte 188 kernel/genarch/src/mm/page_ht.c hash_table_insert(&page_ht, &pte->link);
pte 249 kernel/genarch/src/mm/page_ht.c bool ht_mapping_find(as_t *as, uintptr_t page, bool nolock, pte_t *pte)
pte 255 kernel/genarch/src/mm/page_ht.c *pte = *t;
pte 269 kernel/genarch/src/mm/page_ht.c void ht_mapping_update(as_t *as, uintptr_t page, bool nolock, pte_t *pte)
pte 277 kernel/genarch/src/mm/page_ht.c assert(pte->as == t->as);
pte 278 kernel/genarch/src/mm/page_ht.c assert(pte->page == t->page);
pte 279 kernel/genarch/src/mm/page_ht.c assert(pte->frame == t->frame);
pte 280 kernel/genarch/src/mm/page_ht.c assert(pte->g == t->g);
pte 281 kernel/genarch/src/mm/page_ht.c assert(pte->x == t->x);
pte 282 kernel/genarch/src/mm/page_ht.c assert(pte->w == t->w);
pte 283 kernel/genarch/src/mm/page_ht.c assert(pte->k == t->k);
pte 284 kernel/genarch/src/mm/page_ht.c assert(pte->c == t->c);
pte 285 kernel/genarch/src/mm/page_ht.c assert(pte->p == t->p);
pte 287 kernel/genarch/src/mm/page_ht.c t->a = pte->a;
pte 288 kernel/genarch/src/mm/page_ht.c t->d = pte->d;
pte 56 kernel/genarch/src/mm/page_pt.c static bool pt_mapping_find(as_t *, uintptr_t, bool, pte_t *pte);
pte 57 kernel/genarch/src/mm/page_pt.c static void pt_mapping_update(as_t *, uintptr_t, bool, pte_t *pte);
pte 340 kernel/genarch/src/mm/page_pt.c bool pt_mapping_find(as_t *as, uintptr_t page, bool nolock, pte_t *pte)
pte 344 kernel/genarch/src/mm/page_pt.c *pte = *t;
pte 355 kernel/genarch/src/mm/page_pt.c void pt_mapping_update(as_t *as, uintptr_t page, bool nolock, pte_t *pte)
pte 361 kernel/genarch/src/mm/page_pt.c assert(PTE_VALID(t) == PTE_VALID(pte));
pte 362 kernel/genarch/src/mm/page_pt.c assert(PTE_PRESENT(t) == PTE_PRESENT(pte));
pte 363 kernel/genarch/src/mm/page_pt.c assert(PTE_GET_FRAME(t) == PTE_GET_FRAME(pte));
pte 364 kernel/genarch/src/mm/page_pt.c assert(PTE_WRITABLE(t) == PTE_WRITABLE(pte));
pte 365 kernel/genarch/src/mm/page_pt.c assert(PTE_EXECUTABLE(t) == PTE_EXECUTABLE(pte));
pte 367 kernel/genarch/src/mm/page_pt.c *t = *pte;
pte 72 kernel/generic/src/ipc/ops/pagein.c pte_t pte;
pte 77 kernel/generic/src/ipc/ops/pagein.c false, &pte);
pte 78 kernel/generic/src/ipc/ops/pagein.c if (found & PTE_PRESENT(&pte)) {
pte 79 kernel/generic/src/ipc/ops/pagein.c frame = PTE_GET_FRAME(&pte);
pte 1008 kernel/generic/src/mm/as.c pte_t pte;
pte 1010 kernel/generic/src/mm/as.c ptr + P2SZ(i), false, &pte);
pte 1014 kernel/generic/src/mm/as.c assert(PTE_VALID(&pte));
pte 1015 kernel/generic/src/mm/as.c assert(PTE_PRESENT(&pte));
pte 1021 kernel/generic/src/mm/as.c PTE_GET_FRAME(&pte));
pte 1118 kernel/generic/src/mm/as.c pte_t pte;
pte 1120 kernel/generic/src/mm/as.c ptr + P2SZ(size), false, &pte);
pte 1124 kernel/generic/src/mm/as.c assert(PTE_VALID(&pte));
pte 1125 kernel/generic/src/mm/as.c assert(PTE_PRESENT(&pte));
pte 1131 kernel/generic/src/mm/as.c PTE_GET_FRAME(&pte));
pte 1422 kernel/generic/src/mm/as.c pte_t pte;
pte 1424 kernel/generic/src/mm/as.c false, &pte);
pte 1428 kernel/generic/src/mm/as.c assert(PTE_VALID(&pte));
pte 1429 kernel/generic/src/mm/as.c assert(PTE_PRESENT(&pte));
pte 1431 kernel/generic/src/mm/as.c old_frame[frame_idx++] = PTE_GET_FRAME(&pte);
pte 1560 kernel/generic/src/mm/as.c pte_t pte;
pte 1561 kernel/generic/src/mm/as.c bool found = page_mapping_find(AS, page, false, &pte);
pte 1562 kernel/generic/src/mm/as.c if (found && PTE_PRESENT(&pte)) {
pte 1563 kernel/generic/src/mm/as.c if (((access == PF_ACCESS_READ) && PTE_READABLE(&pte)) ||
pte 1564 kernel/generic/src/mm/as.c (access == PF_ACCESS_WRITE && PTE_WRITABLE(&pte)) ||
pte 1565 kernel/generic/src/mm/as.c (access == PF_ACCESS_EXEC && PTE_EXECUTABLE(&pte))) {
pte 130 kernel/generic/src/mm/backend_anon.c pte_t pte;
pte 135 kernel/generic/src/mm/backend_anon.c false, &pte);
pte 139 kernel/generic/src/mm/backend_anon.c assert(PTE_VALID(&pte));
pte 140 kernel/generic/src/mm/backend_anon.c assert(PTE_PRESENT(&pte));
pte 143 kernel/generic/src/mm/backend_anon.c (base + P2SZ(j)) - area->base, PTE_GET_FRAME(&pte));
pte 146 kernel/generic/src/mm/backend_anon.c pfn_t pfn = ADDR2PFN(PTE_GET_FRAME(&pte));
pte 192 kernel/generic/src/mm/backend_elf.c pte_t pte;
pte 206 kernel/generic/src/mm/backend_elf.c base + P2SZ(i), false, &pte);
pte 210 kernel/generic/src/mm/backend_elf.c assert(PTE_VALID(&pte));
pte 211 kernel/generic/src/mm/backend_elf.c assert(PTE_PRESENT(&pte));
pte 215 kernel/generic/src/mm/backend_elf.c PTE_GET_FRAME(&pte));
pte 218 kernel/generic/src/mm/backend_elf.c pfn_t pfn = ADDR2PFN(PTE_GET_FRAME(&pte));
pte 335 kernel/generic/src/mm/backend_elf.c pte_t pte;
pte 339 kernel/generic/src/mm/backend_elf.c base + i * FRAME_SIZE, true, &pte);
pte 343 kernel/generic/src/mm/backend_elf.c assert(PTE_PRESENT(&pte));
pte 345 kernel/generic/src/mm/backend_elf.c frame = PTE_GET_FRAME(&pte);
pte 147 kernel/generic/src/mm/page.c pte_t *pte)
pte 155 kernel/generic/src/mm/page.c ALIGN_DOWN(page, PAGE_SIZE), nolock, pte);
pte 168 kernel/generic/src/mm/page.c pte_t *pte)
pte 176 kernel/generic/src/mm/page.c ALIGN_DOWN(page, PAGE_SIZE), nolock, pte);
pte 196 kernel/generic/src/mm/page.c pte_t pte;
pte 197 kernel/generic/src/mm/page.c bool found = page_mapping_find(AS, virt, false, &pte);
pte 198 kernel/generic/src/mm/page.c if (!found || !PTE_VALID(&pte) || !PTE_PRESENT(&pte)) {
pte 203 kernel/generic/src/mm/page.c *phys = PTE_GET_FRAME(&pte) +
pte 106 uspace/lib/label/include/std/mbr.h mbr_pte_t pte[mbr_nprimary];
pte 637 uspace/lib/label/src/gpt.c gpt_entry_t pte;
pte 682 uspace/lib/label/src/gpt.c rc = gpt_part_to_pte(part, &pte);
pte 689 uspace/lib/label/src/gpt.c rc = gpt_pte_update(label, &pte, pspec->index - 1);
pte 707 uspace/lib/label/src/gpt.c gpt_entry_t pte;
pte 711 uspace/lib/label/src/gpt.c gpt_unused_pte(&pte);
pte 714 uspace/lib/label/src/gpt.c rc = gpt_pte_update(part->label, &pte, part->index - 1);
pte 800 uspace/lib/label/src/gpt.c static void gpt_unused_pte(gpt_entry_t *pte)
pte 802 uspace/lib/label/src/gpt.c memset(pte, 0, sizeof(gpt_entry_t));
pte 805 uspace/lib/label/src/gpt.c static errno_t gpt_part_to_pte(label_part_t *part, gpt_entry_t *pte)
pte 813 uspace/lib/label/src/gpt.c memset(pte, 0, sizeof(gpt_entry_t));
pte 814 uspace/lib/label/src/gpt.c uuid_encode_le(&part->ptype.t.uuid, pte->part_type);
pte 815 uspace/lib/label/src/gpt.c uuid_encode_le(&part->part_uuid, pte->part_id);
pte 816 uspace/lib/label/src/gpt.c pte->start_lba = host2uint64_t_le(part->block0);
pte 817 uspace/lib/label/src/gpt.c pte->end_lba = host2uint64_t_le(eblock);
pte 823 uspace/lib/label/src/gpt.c static errno_t gpt_pte_to_part(label_t *label, gpt_entry_t *pte, int index)
pte 832 uspace/lib/label/src/gpt.c if (pte->part_type[i] != 0x00)
pte 838 uspace/lib/label/src/gpt.c b0 = uint64_t_le2host(pte->start_lba);
pte 839 uspace/lib/label/src/gpt.c b1 = uint64_t_le2host(pte->end_lba);
pte 851 uspace/lib/label/src/gpt.c uuid_decode_le(pte->part_type, &part->ptype.t.uuid);
pte 852 uspace/lib/label/src/gpt.c uuid_decode_le(pte->part_id, &part->part_uuid);
pte 865 uspace/lib/label/src/gpt.c static errno_t gpt_pte_update(label_t *label, gpt_entry_t *pte, int index)
pte 906 uspace/lib/label/src/gpt.c *e = *pte;
pte 1008 uspace/lib/label/src/gpt.c pmbr->pte[0].ptype = mbr_pt_gpt_protect;
pte 1009 uspace/lib/label/src/gpt.c pmbr->pte[0].first_lba = gpt_hdr_ba;
pte 1012 uspace/lib/label/src/gpt.c pmbr->pte[0].length = host2uint32_t_le((uint32_t)pmbr_nb);
pte 1014 uspace/lib/label/src/gpt.c pmbr->pte[0].length = host2uint32_t_le(UINT32_MAX);
pte 171 uspace/lib/label/src/mbr.c eptr = &mbr->pte[entry];
pte 247 uspace/lib/label/src/mbr.c ethis = &ebr->pte[mbr_ebr_pte_this];
pte 248 uspace/lib/label/src/mbr.c enext = &ebr->pte[mbr_ebr_pte_next];
pte 342 uspace/lib/label/src/mbr.c mbr_unused_pte(&mbr->pte[i]);
pte 564 uspace/lib/label/src/mbr.c mbr_pte_t pte;
pte 628 uspace/lib/label/src/mbr.c rc = mbr_part_to_pte(part, &pte);
pte 634 uspace/lib/label/src/mbr.c rc = mbr_pte_update(label, &pte, pspec->index - 1);
pte 708 uspace/lib/label/src/mbr.c mbr_pte_t pte;
pte 718 uspace/lib/label/src/mbr.c mbr_unused_pte(&pte);
pte 721 uspace/lib/label/src/mbr.c rc = mbr_pte_update(part->label, &pte, part->index - 1);
pte 883 uspace/lib/label/src/mbr.c static void mbr_unused_pte(mbr_pte_t *pte)
pte 885 uspace/lib/label/src/mbr.c memset(pte, 0, sizeof(mbr_pte_t));
pte 888 uspace/lib/label/src/mbr.c static errno_t mbr_part_to_pte(label_part_t *part, mbr_pte_t *pte)
pte 897 uspace/lib/label/src/mbr.c memset(pte, 0, sizeof(mbr_pte_t));
pte 898 uspace/lib/label/src/mbr.c pte->ptype = part->ptype.t.num;
pte 899 uspace/lib/label/src/mbr.c pte->first_lba = host2uint32_t_le(part->block0);
pte 900 uspace/lib/label/src/mbr.c pte->length = host2uint32_t_le(part->nblocks);
pte 904 uspace/lib/label/src/mbr.c static errno_t mbr_pte_to_part(label_t *label, mbr_pte_t *pte, int index)
pte 910 uspace/lib/label/src/mbr.c block0 = uint32_t_le2host(pte->first_lba);
pte 911 uspace/lib/label/src/mbr.c nblocks = uint32_t_le2host(pte->length);
pte 914 uspace/lib/label/src/mbr.c if (pte->ptype == mbr_pt_unused || nblocks == 0)
pte 922 uspace/lib/label/src/mbr.c part->ptype.t.num = pte->ptype;
pte 937 uspace/lib/label/src/mbr.c if (pte->ptype == mbr_pt_extended)
pte 943 uspace/lib/label/src/mbr.c mbr_pte_t *pte)
pte 950 uspace/lib/label/src/mbr.c block0 = ebr_b0 + uint32_t_le2host(pte->first_lba);
pte 951 uspace/lib/label/src/mbr.c nblocks = uint32_t_le2host(pte->length);
pte 953 uspace/lib/label/src/mbr.c if (pte->ptype == mbr_pt_unused || nblocks == 0)
pte 963 uspace/lib/label/src/mbr.c part->ptype.t.num = pte->ptype;
pte 1020 uspace/lib/label/src/mbr.c static errno_t mbr_pte_update(label_t *label, mbr_pte_t *pte, int index)
pte 1035 uspace/lib/label/src/mbr.c br->pte[index] = *pte;
pte 1089 uspace/lib/label/src/mbr.c mbr_log_part_to_ptes(part, &br->pte[mbr_ebr_pte_this],
pte 1090 uspace/lib/label/src/mbr.c &br->pte[mbr_ebr_pte_next]);
pte 1162 uspace/lib/label/src/mbr.c mbr_log_part_to_ptes(part, NULL, &br->pte[mbr_ebr_pte_next]);
HelenOS homepage, sources at GitHub