Lines Matching refs:p
477 pte_t *p = pte; in kvmppc_unmap_free_pte() local
480 for (it = 0; it < PTRS_PER_PTE; ++it, ++p) { in kvmppc_unmap_free_pte()
481 if (pte_val(*p) == 0) in kvmppc_unmap_free_pte()
483 kvmppc_unmap_pte(kvm, p, in kvmppc_unmap_free_pte()
484 pte_pfn(*p) << PAGE_SHIFT, in kvmppc_unmap_free_pte()
496 pmd_t *p = pmd; in kvmppc_unmap_free_pmd() local
498 for (im = 0; im < PTRS_PER_PMD; ++im, ++p) { in kvmppc_unmap_free_pmd()
499 if (!pmd_present(*p)) in kvmppc_unmap_free_pmd()
501 if (pmd_is_leaf(*p)) { in kvmppc_unmap_free_pmd()
503 pmd_clear(p); in kvmppc_unmap_free_pmd()
506 kvmppc_unmap_pte(kvm, (pte_t *)p, in kvmppc_unmap_free_pmd()
507 pte_pfn(*(pte_t *)p) << PAGE_SHIFT, in kvmppc_unmap_free_pmd()
513 pte = pte_offset_kernel(p, 0); in kvmppc_unmap_free_pmd()
515 pmd_clear(p); in kvmppc_unmap_free_pmd()
525 pud_t *p = pud; in kvmppc_unmap_free_pud() local
527 for (iu = 0; iu < PTRS_PER_PUD; ++iu, ++p) { in kvmppc_unmap_free_pud()
528 if (!pud_present(*p)) in kvmppc_unmap_free_pud()
530 if (pud_is_leaf(*p)) { in kvmppc_unmap_free_pud()
531 pud_clear(p); in kvmppc_unmap_free_pud()
535 pmd = pmd_offset(p, 0); in kvmppc_unmap_free_pud()
537 pud_clear(p); in kvmppc_unmap_free_pud()
1273 struct debugfs_radix_state *p; in debugfs_radix_open() local
1275 p = kzalloc(sizeof(*p), GFP_KERNEL); in debugfs_radix_open()
1276 if (!p) in debugfs_radix_open()
1280 p->kvm = kvm; in debugfs_radix_open()
1281 mutex_init(&p->mutex); in debugfs_radix_open()
1282 file->private_data = p; in debugfs_radix_open()
1289 struct debugfs_radix_state *p = file->private_data; in debugfs_radix_release() local
1291 kvm_put_kvm(p->kvm); in debugfs_radix_release()
1292 kfree(p); in debugfs_radix_release()
1299 struct debugfs_radix_state *p = file->private_data; in debugfs_radix_read() local
1314 kvm = p->kvm; in debugfs_radix_read()
1318 ret = mutex_lock_interruptible(&p->mutex); in debugfs_radix_read()
1322 if (p->chars_left) { in debugfs_radix_read()
1323 n = p->chars_left; in debugfs_radix_read()
1326 r = copy_to_user(buf, p->buf + p->buf_index, n); in debugfs_radix_read()
1328 p->chars_left -= n; in debugfs_radix_read()
1329 p->buf_index += n; in debugfs_radix_read()
1340 gpa = p->gpa; in debugfs_radix_read()
1343 while (len != 0 && p->lpid >= 0) { in debugfs_radix_read()
1351 p->lpid = kvmhv_nested_next_lpid(kvm, p->lpid); in debugfs_radix_read()
1352 p->hdr = 0; in debugfs_radix_read()
1353 if (p->lpid < 0) in debugfs_radix_read()
1357 if (p->lpid == 0) { in debugfs_radix_read()
1360 nested = kvmhv_get_nested(kvm, p->lpid, false); in debugfs_radix_read()
1369 if (!p->hdr) { in debugfs_radix_read()
1370 if (p->lpid > 0) in debugfs_radix_read()
1371 n = scnprintf(p->buf, sizeof(p->buf), in debugfs_radix_read()
1372 "\nNested LPID %d: ", p->lpid); in debugfs_radix_read()
1373 n += scnprintf(p->buf + n, sizeof(p->buf) - n, in debugfs_radix_read()
1375 p->hdr = 1; in debugfs_radix_read()
1419 n = scnprintf(p->buf, sizeof(p->buf), in debugfs_radix_read()
1423 p->chars_left = n; in debugfs_radix_read()
1426 r = copy_to_user(buf, p->buf, n); in debugfs_radix_read()
1428 p->chars_left -= n; in debugfs_radix_read()
1429 p->buf_index = n; in debugfs_radix_read()
1439 p->gpa = gpa; in debugfs_radix_read()
1444 mutex_unlock(&p->mutex); in debugfs_radix_read()