Lines Matching refs:pud
328 pud_t pud; in pud_basic_tests() local
334 pud = pfn_pud(args->fixed_pud_pfn, prot); in pud_basic_tests()
343 WARN_ON(pud_dirty(pud_wrprotect(pud))); in pud_basic_tests()
345 WARN_ON(!pud_same(pud, pud)); in pud_basic_tests()
346 WARN_ON(!pud_young(pud_mkyoung(pud_mkold(pud)))); in pud_basic_tests()
347 WARN_ON(!pud_dirty(pud_mkdirty(pud_mkclean(pud)))); in pud_basic_tests()
348 WARN_ON(pud_dirty(pud_mkclean(pud_mkdirty(pud)))); in pud_basic_tests()
349 WARN_ON(!pud_write(pud_mkwrite(pud_wrprotect(pud)))); in pud_basic_tests()
350 WARN_ON(pud_write(pud_wrprotect(pud_mkwrite(pud)))); in pud_basic_tests()
351 WARN_ON(pud_young(pud_mkold(pud_mkyoung(pud)))); in pud_basic_tests()
352 WARN_ON(pud_dirty(pud_wrprotect(pud_mkclean(pud)))); in pud_basic_tests()
353 WARN_ON(!pud_dirty(pud_wrprotect(pud_mkdirty(pud)))); in pud_basic_tests()
362 WARN_ON(!pud_bad(pud_mkhuge(pud))); in pud_basic_tests()
369 pud_t pud; in pud_advanced_tests() local
389 pud = pfn_pud(args->pud_pfn, args->page_prot); in pud_advanced_tests()
390 set_pud_at(args->mm, vaddr, args->pudp, pud); in pud_advanced_tests()
393 pud = READ_ONCE(*args->pudp); in pud_advanced_tests()
394 WARN_ON(pud_write(pud)); in pud_advanced_tests()
398 pud = READ_ONCE(*args->pudp); in pud_advanced_tests()
399 WARN_ON(!pud_none(pud)); in pud_advanced_tests()
401 pud = pfn_pud(args->pud_pfn, args->page_prot); in pud_advanced_tests()
402 pud = pud_wrprotect(pud); in pud_advanced_tests()
403 pud = pud_mkclean(pud); in pud_advanced_tests()
404 set_pud_at(args->mm, vaddr, args->pudp, pud); in pud_advanced_tests()
406 pud = pud_mkwrite(pud); in pud_advanced_tests()
407 pud = pud_mkdirty(pud); in pud_advanced_tests()
408 pudp_set_access_flags(args->vma, vaddr, args->pudp, pud, 1); in pud_advanced_tests()
409 pud = READ_ONCE(*args->pudp); in pud_advanced_tests()
410 WARN_ON(!(pud_write(pud) && pud_dirty(pud))); in pud_advanced_tests()
414 pud = READ_ONCE(*args->pudp); in pud_advanced_tests()
415 WARN_ON(!pud_none(pud)); in pud_advanced_tests()
418 pud = pfn_pud(args->pud_pfn, args->page_prot); in pud_advanced_tests()
419 pud = pud_mkyoung(pud); in pud_advanced_tests()
420 set_pud_at(args->mm, vaddr, args->pudp, pud); in pud_advanced_tests()
423 pud = READ_ONCE(*args->pudp); in pud_advanced_tests()
424 WARN_ON(pud_young(pud)); in pud_advanced_tests()
431 pud_t pud; in pud_leaf_tests() local
437 pud = pfn_pud(args->fixed_pud_pfn, args->page_prot); in pud_leaf_tests()
441 pud = pud_mkhuge(pud); in pud_leaf_tests()
442 WARN_ON(!pud_leaf(pud)); in pud_leaf_tests()
481 pud_t pud; in pud_huge_tests() local
494 pud = READ_ONCE(*args->pudp); in pud_huge_tests()
495 WARN_ON(!pud_none(pud)); in pud_huge_tests()
523 pud_t pud = READ_ONCE(*args->pudp); in pud_clear_tests() local
529 pud = __pud(pud_val(pud) | RANDOM_ORVALUE); in pud_clear_tests()
530 WRITE_ONCE(*args->pudp, pud); in pud_clear_tests()
532 pud = READ_ONCE(*args->pudp); in pud_clear_tests()
533 WARN_ON(!pud_none(pud)); in pud_clear_tests()
538 pud_t pud; in pud_populate_tests() local
549 pud = READ_ONCE(*args->pudp); in pud_populate_tests()
550 WARN_ON(pud_bad(pud)); in pud_populate_tests()
754 pud_t pud; in pud_devmap_tests() local
760 pud = pfn_pud(args->fixed_pud_pfn, args->page_prot); in pud_devmap_tests()
761 WARN_ON(!pud_devmap(pud_mkdevmap(pud))); in pud_devmap_tests()
969 pud_t pud; in pud_thp_tests() local
975 pud = pfn_pud(args->fixed_pud_pfn, args->page_prot); in pud_thp_tests()
976 WARN_ON(!pud_trans_huge(pud_mkhuge(pud))); in pud_thp_tests()