Home
last modified time | relevance | path

Searched refs:pde (Results 1 – 25 of 33) sorted by relevance

12

/freebsd/sys/contrib/dev/athk/
H A Ddfs_pri_detector.c160 static struct pulse_elem *pulse_queue_get_tail(struct pri_detector *pde) in pulse_queue_get_tail() argument
162 struct list_head *l = &pde->pulses; in pulse_queue_get_tail()
168 static bool pulse_queue_dequeue(struct pri_detector *pde) in pulse_queue_dequeue() argument
170 struct pulse_elem *p = pulse_queue_get_tail(pde); in pulse_queue_dequeue()
173 pde->count--; in pulse_queue_dequeue()
177 return (pde->count > 0); in pulse_queue_dequeue()
181 static void pulse_queue_check_window(struct pri_detector *pde) in pulse_queue_check_window() argument
187 if (pde->count < 2) in pulse_queue_check_window()
190 if (pde->last_ts <= pde->window_size) in pulse_queue_check_window()
193 min_valid_ts = pde->last_ts - pde->window_size; in pulse_queue_check_window()
[all …]
/freebsd/usr.sbin/uefisign/
H A Dpe.c167 const struct pe_directory_entry *pde; in signature_size() local
172 pde = (struct pe_directory_entry *) in signature_size()
175 if (pde->pde_rva != 0 && pde->pde_size == 0) in signature_size()
176 warnx("signature size is 0, but its RVA is %d", pde->pde_rva); in signature_size()
177 if (pde->pde_rva == 0 && pde->pde_size != 0) in signature_size()
178 warnx("signature RVA is 0, but its size is %d", pde->pde_size); in signature_size()
180 return (pde->pde_size); in signature_size()
187 const struct pe_directory_entry *pde; in show_certificate() local
192 pde = (struct pe_directory_entry *) in show_certificate()
202 pde->pde_rva, pde->pde_size); in show_certificate()
[all …]
/freebsd/sys/amd64/amd64/
H A Dpmap.c1275 static bool pmap_pv_insert_pde(pmap_t pmap, vm_offset_t va, pd_entry_t pde,
1288 static bool pmap_demote_pde(pmap_t pmap, pd_entry_t *pde, vm_offset_t va);
1289 static bool pmap_demote_pde_locked(pmap_t pmap, pd_entry_t *pde,
1307 pd_entry_t pde);
1312 static bool pmap_promote_pde(pmap_t pmap, pd_entry_t *pde, vm_offset_t va,
1315 static bool pmap_protect_pde(pmap_t pmap, pd_entry_t *pde, vm_offset_t sva,
1328 static void pmap_remove_page(pmap_t pmap, vm_offset_t va, pd_entry_t *pde,
1331 pd_entry_t *pde, struct spglist *free,
1335 static void pmap_update_pde(pmap_t pmap, vm_offset_t va, pd_entry_t *pde,
1337 static void pmap_update_pde_invalidate(pmap_t, vm_offset_t va, pd_entry_t pde);
[all …]
H A Dminidump_machdep.c168 uint64_t pdpe, pde, pte; in cpu_minidumpsys() local
221 pde = atomic_load_64(&pd[pmap_pde_index(va)]); in cpu_minidumpsys()
223 if ((pde & PG_V) == 0) in cpu_minidumpsys()
226 if ((pde & PG_PS) != 0) { in cpu_minidumpsys()
228 pa = pde & PG_PS_FRAME; in cpu_minidumpsys()
238 pa = pde & PG_FRAME; in cpu_minidumpsys()
243 pt = (uint64_t *)PHYS_TO_DMAP(pde & PG_FRAME); in cpu_minidumpsys()
H A Defirt_machdep.c111 pd_entry_t *pde; in efi_1t1_pte() local
153 pde = (pd_entry_t *)PHYS_TO_DMAP(mphys); in efi_1t1_pte()
155 pde += pd_idx; in efi_1t1_pte()
156 if (*pde == 0) { in efi_1t1_pte()
159 *pde = mphys | X86_PG_RW | X86_PG_V; in efi_1t1_pte()
161 mphys = *pde & PG_FRAME; in efi_1t1_pte()
H A Dmachdep.c1276 pd_entry_t *pde; in amd64_loadaddr() local
1282 pde = (pd_entry_t *)(*pdpe & PG_FRAME) + pmap_pde_index(KERNSTART); in amd64_loadaddr()
1283 return (*pde & PG_FRAME); in amd64_loadaddr()
/freebsd/sys/i386/i386/
H A Dpmap.c290 static bool pmap_pv_insert_pde(pmap_t pmap, vm_offset_t va, pd_entry_t pde,
301 static bool pmap_demote_pde(pmap_t pmap, pd_entry_t *pde, vm_offset_t va);
311 pd_entry_t pde);
317 static void pmap_pde_attr(pd_entry_t *pde, int cache_bits);
319 static bool pmap_promote_pde(pmap_t pmap, pd_entry_t *pde, vm_offset_t va,
322 static bool pmap_protect_pde(pmap_t pmap, pd_entry_t *pde, vm_offset_t sva,
337 static void pmap_update_pde(pmap_t pmap, vm_offset_t va, pd_entry_t *pde,
1165 pd_entry_t *pde; in pmap_kenter_pde() local
1167 pde = pmap_pde(kernel_pmap, va); in pmap_kenter_pde()
1168 pde_store(pde, newpd in pmap_kenter_pde()
1315 pd_entry_t *pde; global() member
1324 pd_entry_t *pde; pmap_update_pde_kernel() local
1359 pmap_update_pde(pmap_t pmap,vm_offset_t va,pd_entry_t * pde,pd_entry_t newpde) pmap_update_pde() argument
1433 pmap_update_pde(pmap_t pmap,vm_offset_t va,pd_entry_t * pde,pd_entry_t newpde) pmap_update_pde() argument
1468 pmap_invalidate_pde_page(pmap_t pmap,vm_offset_t va,pd_entry_t pde) pmap_invalidate_pde_page() argument
1506 pd_entry_t *pde; __CONCAT() local
1567 pd_entry_t *pde; pmap_pte_quick() local
1604 pd_entry_t *pde; pmap_pte_quick3() local
1635 pmap_pte_ufast(pmap_t pmap,vm_offset_t va,pd_entry_t pde) pmap_pte_ufast() argument
1692 pd_entry_t pde; __CONCAT() local
1719 pd_entry_t pde; __CONCAT() local
2313 pd_entry_t *pde; pmap_pv_reclaim() local
2723 pmap_pv_insert_pde(pmap_t pmap,vm_offset_t va,pd_entry_t pde,u_int flags) pmap_pv_insert_pde() argument
2759 pmap_demote_pde(pmap_t pmap,pd_entry_t * pde,vm_offset_t va) pmap_demote_pde() argument
2908 pmap_remove_kernel_pde(pmap_t pmap,pd_entry_t * pde,vm_offset_t va) pmap_remove_kernel_pde() argument
3210 pd_entry_t *pde; __CONCAT() local
3268 pmap_protect_pde(pmap_t pmap,pd_entry_t * pde,vm_offset_t sva,vm_prot_t prot) pmap_protect_pde() argument
3475 pmap_promote_pde(pmap_t pmap,pd_entry_t * pde,vm_offset_t va,vm_page_t mpte) pmap_promote_pde() argument
3653 pd_entry_t *pde; __CONCAT() local
3972 pd_entry_t oldpde, *pde; pmap_enter_pde() local
4161 pd_entry_t *pde; pmap_enter_quick_locked() local
4297 pd_entry_t *pde; __CONCAT() local
4374 pd_entry_t *pde; __CONCAT() local
5037 pd_entry_t pde; __CONCAT() local
5107 pd_entry_t *pde; __CONCAT() local
5183 pd_entry_t *pde; __CONCAT() local
5288 pd_entry_t oldpde, *pde; __CONCAT() local
5412 pd_entry_t oldpde, *pde; __CONCAT() local
5500 pmap_pde_attr(pd_entry_t * pde,int cache_bits) pmap_pde_attr() argument
5715 pd_entry_t *pde; __CONCAT() local
5823 pd_entry_t pde; __CONCAT() local
6309 sysctl_kmaps_check(struct sbuf * sb,struct pmap_kernel_map_range * range,vm_offset_t va,pd_entry_t pde,pt_entry_t pte) sysctl_kmaps_check() argument
6338 pd_entry_t pde; __CONCAT() local
[all...]
H A Dminidump_machdep_base.c161 pd_entry_t *pd, pde; in cpu_minidumpsys() local
185 pde = pte_load(&pd[va >> PDRSHIFT]); in cpu_minidumpsys()
186 if ((pde & (PG_PS | PG_V)) == (PG_PS | PG_V)) { in cpu_minidumpsys()
188 pa = pde & PG_PS_FRAME; in cpu_minidumpsys()
197 if ((pde & PG_V) == PG_V) { in cpu_minidumpsys()
199 pt = pmap_kenter_temporary(pde & PG_FRAME, 0); in cpu_minidumpsys()
285 pde = pte_load(&pd[va >> PDRSHIFT]); in cpu_minidumpsys()
286 if ((pde & (PG_PS | PG_V)) == (PG_PS | PG_V)) { in cpu_minidumpsys()
288 pa = pde & PG_PS_FRAME; in cpu_minidumpsys()
301 if ((pde & PG_V) == PG_V) { in cpu_minidumpsys()
[all …]
/freebsd/lib/libkvm/
H A Dkvm_minidump_amd64.c78 amd64_pde_t *pde = _kvm_pmap_get(kd, pdeindex, sizeof(*pde)); in _amd64_pde_get() local
80 return le64toh(*pde); in _amd64_pde_get()
245 amd64_pde_t pde; in _amd64_minidump_vatop() local
257 if (pdeindex >= vm->hdr.pmapsize / sizeof(pde)) in _amd64_minidump_vatop()
259 pde = _amd64_pde_get(kd, pdeindex); in _amd64_minidump_vatop()
260 if ((pde & AMD64_PG_V) == 0) { in _amd64_minidump_vatop()
265 if ((pde & AMD64_PG_PS) == 0) { in _amd64_minidump_vatop()
266 a = pde & AMD64_PG_FRAME; in _amd64_minidump_vatop()
292 a = pde & AMD64_PG_PS_FRAME; in _amd64_minidump_vatop()
360 amd64_pde_t pde = _amd64_pde_get(kd, pdeindex); in _amd64_minidump_walk_pages() local
[all …]
H A Dkvm_i386.c217 i386_pde_t pde; in _i386_vatop() local
245 pde = le32toh(PTD[pdeindex]); in _i386_vatop()
246 if ((pde & I386_PG_V) == 0) { in _i386_vatop()
251 if (pde & I386_PG_PS) { in _i386_vatop()
258 a = (pde & I386_PG_PS_FRAME) + offset; in _i386_vatop()
269 pte_pa = (pde & I386_PG_FRAME) + (pteindex * sizeof(pte)); in _i386_vatop()
307 i386_pde_pae_t pde; in _i386_vatop_pae() local
335 pde = le64toh(PTD[pdeindex]); in _i386_vatop_pae()
336 if ((pde & I386_PG_V) == 0) { in _i386_vatop_pae()
341 if (pde & I386_PG_PS) { in _i386_vatop_pae()
[all …]
H A Dkvm_amd64.c174 amd64_pde_t pde; in _amd64_vatop() local
244 if (s < sizeof(pde)) { in _amd64_vatop()
248 if (pread(kd->pmfd, &pde, sizeof(pde), ofs) != sizeof(pde)) { in _amd64_vatop()
252 pde = le64toh(pde); in _amd64_vatop()
253 if ((pde & AMD64_PG_V) == 0) { in _amd64_vatop()
258 if (pde & AMD64_PG_PS) { in _amd64_vatop()
262 a = (pde & AMD64_PG_PS_FRAME) + (va & AMD64_PDRMASK); in _amd64_vatop()
273 pte_pa = (pde & AMD64_PG_FRAME) + (pteindex * sizeof(amd64_pte_t)); in _amd64_vatop()
H A Dkvm_arm.c186 #define l1pte_section_p(pde) (((pde) & ARM_L1_TYPE_MASK) == ARM_L1_TYPE_S) argument
187 #define l1pte_valid(pde) ((pde) != 0) argument
/freebsd/sys/arm64/iommu/
H A Diommu_pmap.c584 pd_entry_t *pde; in pmap_gpu_enter() local
616 pde = smmu_pmap_pde(pmap, va, &lvl); in pmap_gpu_enter()
617 if (pde != NULL && lvl == 2) { in pmap_gpu_enter()
618 l3 = smmu_pmap_l2_to_l3(pde, va); in pmap_gpu_enter()
665 pd_entry_t *pde; in pmap_gpu_remove() local
674 pde = smmu_pmap_pde(pmap, va, &lvl); in pmap_gpu_remove()
675 if (pde == NULL || lvl != 2) { in pmap_gpu_remove()
680 pte = smmu_pmap_l2_to_l3(pde, va); in pmap_gpu_remove()
700 pd_entry_t *pde; in smmu_pmap_enter() local
728 pde = smmu_pmap_pde(pmap, va, &lvl); in smmu_pmap_enter()
[all …]
/freebsd/usr.sbin/bhyve/
H A Dpci_emul.c273 struct pci_devemu *pde; in pci_parse_slot() local
313 pde = pci_emul_finddev(emul); in pci_parse_slot()
314 if (pde == NULL) { in pci_parse_slot()
329 if (pde->pe_alias != NULL) in pci_parse_slot()
330 set_config_value_node(nvl, "device", pde->pe_alias); in pci_parse_slot()
332 set_config_value_node(nvl, "device", pde->pe_emu); in pci_parse_slot()
334 if (pde->pe_legacy_config != NULL) in pci_parse_slot()
335 error = pde->pe_legacy_config(nvl, config); in pci_parse_slot()
1139 pci_emul_init(struct vmctx *ctx, struct pci_devemu *pde, int bus, int slot, in pci_emul_init() argument
1155 pdi->pi_d = pde; in pci_emul_init()
[all …]
/freebsd/sys/arm64/arm64/
H A Dpmap.c2115 pd_entry_t *pde; in pmap_kenter() local
2133 pde = pmap_pde(kernel_pmap, va, &lvl); in pmap_kenter()
2134 KASSERT(pde != NULL, in pmap_kenter()
2144 mpte = PTE_TO_VM_PAGE(pmap_load(pde)); in pmap_kenter()
2159 pmap_update_entry(kernel_pmap, pde, in pmap_kenter()
2184 pte = pmap_l2_to_l3(pde, va); in pmap_kenter()
2327 pd_entry_t *pde; in pmap_qenter() local
2336 pde = pmap_pde(kernel_pmap, va, &lvl); in pmap_qenter()
2337 KASSERT(pde != NULL, in pmap_qenter()
2346 pte = pmap_l2_to_l3(pde, va); in pmap_qenter()
[all …]
/freebsd/sys/i386/include/
H A Dpmap.h150 #define pde_store(pdep, pde) pte_store(pdep, pde) argument
/freebsd/sys/contrib/openzfs/module/os/linux/spl/
H A Dspl-kstat.c386 struct proc_dir_entry *pde; in kstat_create_module() local
388 pde = proc_mkdir(name, proc_spl_kstat); in kstat_create_module()
389 if (pde == NULL) in kstat_create_module()
393 module->ksm_proc = pde; in kstat_create_module()
/freebsd/sys/x86/iommu/
H A Damd_idpgtbl.c291 iommu_pte_t *pde; in amdiommu_free_pgtbl_pde() local
295 pde = amdiommu_pgtbl_map_pte(domain, base, lvl, flags, &idx, &sf); in amdiommu_free_pgtbl_pde()
296 amdiommu_unmap_clear_pte(domain, base, lvl, flags, pde, &sf, entry, in amdiommu_free_pgtbl_pde()
H A Damd_cmd.c219 c.pde = 1; in amdiommu_qi_invalidate_emit()
243 c.pde = 1; in amdiommu_qi_invalidate_all_pages_locked_nowait()
H A Dintel_idpgtbl.c553 iommu_pte_t *pde; in dmar_free_pgtbl_pde() local
557 pde = dmar_pgtbl_map_pte(domain, base, lvl, flags, &idx, &sf); in dmar_free_pgtbl_pde()
558 dmar_unmap_clear_pte(domain, base, lvl, flags, pde, &sf, in dmar_free_pgtbl_pde()
/freebsd/sys/dev/bnxt/bnxt_re/
H A Dqplib_res.c422 hctx->tqm_ctx.pde.level = hctx->tqm_ctx.pde_level; in bnxt_qplib_free_hwctx()
423 bnxt_qplib_free_hwq(res, &hctx->tqm_ctx.pde); in bnxt_qplib_free_hwctx()
445 rc = bnxt_qplib_alloc_init_hwq(&tqmctx->pde, &hwq_attr); in bnxt_qplib_alloc_tqm_rings()
449 tqmctx->pde_level = tqmctx->pde.level; in bnxt_qplib_alloc_tqm_rings()
473 pbl_ptr = (__le64 **)ctx->pde.pbl_ptr; in bnxt_qplib_map_tqm_pgtbl()
503 ctx->pde.level = (ctx->qtbl[fnz_idx].level == PBL_LVL_2) ? PBL_LVL_2 : in bnxt_qplib_map_tqm_pgtbl()
/freebsd/sys/geom/raid/
H A Dmd_ddf.c571 struct ddf_pd_entry *pde; in ddf_meta_create() local
706 pde = &meta->pdr->entry[0]; in ddf_meta_create()
710 snprintf(pde->PD_GUID, 25, "DISK%20s", serial_buffer); in ddf_meta_create()
712 snprintf(pde->PD_GUID, 25, "DISK%04d%02d%02d%08x%04x", in ddf_meta_create()
715 SET32D(meta, pde->PD_Reference, arc4random()); in ddf_meta_create()
716 SET16D(meta, pde->PD_Type, DDF_PDE_GUID_FORCE); in ddf_meta_create()
717 SET16D(meta, pde->PD_State, 0); in ddf_meta_create()
718 SET64D(meta, pde->Configured_Size, in ddf_meta_create()
720 SET16D(meta, pde->Block_Size, ss); in ddf_meta_create()
741 memcpy(meta->pdd->PD_GUID, pde->PD_GUID, 24); in ddf_meta_create()
[all …]
/freebsd/sys/amd64/include/
H A Dpmap.h346 #define pde_store(pdep, pde) pte_store(pdep, pde) argument
/freebsd/sys/powerpc/aim/
H A Dmmu_radix.c568 static bool pmap_demote_l3e(pmap_t pmap, pml3_entry_t *pde, vm_offset_t va);
575 static bool pmap_remove_page(pmap_t pmap, vm_offset_t va, pml3_entry_t *pde,
2723 pmap_promote_l3e(pmap_t pmap, pml3_entry_t *pde, vm_offset_t va, in pmap_promote_l3e() argument
2737 firstpte = (pt_entry_t *)PHYS_TO_DMAP(be64toh(*pde) & PG_FRAME); in pmap_promote_l3e()
2794 mpte = PHYS_TO_VM_PAGE(be64toh(*pde) & PG_FRAME); in pmap_promote_l3e()
2813 pte_store(pde, PG_PROMOTED | newpde); in pmap_promote_l3e()
3261 KASSERT(be64toh(*l3e) == 0, ("pmap_enter_pde: non-zero pde %p", in pmap_enter_l3e()
4879 pmap_pv_insert_l3e(pmap_t pmap, vm_offset_t va, pml3_entry_t pde, u_int flags, in pmap_pv_insert_l3e() argument
4892 pa = pde & PG_PS_FRAME; in pmap_pv_insert_l3e()
4915 pmap_demote_l3e(pmap_t pmap, pml3_entry_t *pde, vm_offset_ argument
6016 pml3_entry_t *firstpde, newpde, *pde; pmap_demote_l2e() local
6427 pml3_entry_t *pde; mmu_radix_page_array_startup() local
[all...]
/freebsd/sys/fs/tmpfs/
H A Dtmpfs_subr.c1423 struct tmpfs_dirent *de, *pde; in tmpfs_dir_attach_dup() local
1444 pde = de; in tmpfs_dir_attach_dup()
1446 if (de == NULL && pde->td_cookie != TMPFS_DIRCOOKIE_DUP_MIN) { in tmpfs_dir_attach_dup()
1452 LIST_INSERT_AFTER(pde, nde, uh.td_dup.index_entries); in tmpfs_dir_attach_dup()
1468 if (de->td_cookie + 1 == pde->td_cookie || in tmpfs_dir_attach_dup()
1473 MPASS(pde->td_cookie > nde->td_cookie); in tmpfs_dir_attach_dup()

12