Home
last modified time | relevance | path

Searched refs:page_shift (Results 1 – 22 of 22) sorted by relevance

/external/linux-kselftest/tools/testing/selftests/kvm/lib/aarch64/
Dprocessor.c24 unsigned int shift = (vm->pgtable_levels - 1) * (vm->page_shift - 3) + vm->page_shift; in pgd_index()
32 unsigned int shift = 2 * (vm->page_shift - 3) + vm->page_shift; in pud_index()
33 uint64_t mask = (1UL << (vm->page_shift - 3)) - 1; in pud_index()
43 unsigned int shift = (vm->page_shift - 3) + vm->page_shift; in pmd_index()
44 uint64_t mask = (1UL << (vm->page_shift - 3)) - 1; in pmd_index()
54 uint64_t mask = (1UL << (vm->page_shift - 3)) - 1; in pte_index()
55 return (gva >> vm->page_shift) & mask; in pte_index()
60 uint64_t mask = ((1UL << (vm->va_bits - vm->page_shift)) - 1) << vm->page_shift; in pte_addr()
66 unsigned int shift = (vm->pgtable_levels - 1) * (vm->page_shift - 3) + vm->page_shift; in ptrs_per_pgd()
72 return 1 << (vm->page_shift - 3); in ptrs_per_pte()
[all …]
/external/linux-kselftest/tools/testing/selftests/kvm/lib/
Dkvm_util.c141 vm->page_shift = 12; in vm_create()
148 vm->page_shift = 16; in vm_create()
156 vm->page_shift = 12; in vm_create()
163 vm->page_shift = 16; in vm_create()
172 0, (1ULL << (vm->va_bits - 1)) >> vm->page_shift); in vm_create()
174 (~((1ULL << (vm->va_bits - 1)) - 1)) >> vm->page_shift, in vm_create()
175 (1ULL << (vm->va_bits - 1)) >> vm->page_shift); in vm_create()
178 vm->max_gfn = ((1ULL << vm->pa_bits) >> vm->page_shift) - 1; in vm_create()
462 if ((ptr1 >> vm->page_shift) != ((ptr1 + amt) >> vm->page_shift)) in kvm_memcmp_hva_gva()
464 if ((ptr2 >> vm->page_shift) != ((ptr2 + amt) >> vm->page_shift)) in kvm_memcmp_hva_gva()
[all …]
Dkvm_util_internal.h51 unsigned int page_shift; member
/external/u-boot/drivers/mtd/nand/
Dmxs_nand_spl.c120 chip->page_shift = ffs(mtd->writesize) - 1; in mxs_flash_onfi_ident()
123 chip->pagemask = (chip->chipsize >> chip->page_shift) - 1; in mxs_flash_onfi_ident()
127 debug("writesize=%d (>>%d)\n", mtd->writesize, chip->page_shift); in mxs_flash_onfi_ident()
165 unsigned int page = offs >> chip->page_shift; in is_badblock()
217 page = offs >> chip->page_shift; in nand_spl_load_image()
243 if (page >= mtd->size >> chip->page_shift) in nand_spl_load_image()
Dnand_bbt.c183 from = ((loff_t)page) << this->page_shift; in read_bbt()
393 scan_read(mtd, buf, (loff_t)td->pages[0] << this->page_shift, in read_abs_bbts()
402 scan_read(mtd, buf, (loff_t)md->pages[0] << this->page_shift, in read_abs_bbts()
529 int blocktopage = this->bbt_erase_shift - this->page_shift; in search_bbt()
685 (this->bbt_erase_shift - this->page_shift); in write_bbt()
713 to = ((loff_t)page) << this->page_shift; in write_bbt()
729 ops.ooblen = (len >> this->page_shift) * mtd->oobsize; in write_bbt()
736 pageoffs = page - (int)(to >> this->page_shift); in write_bbt()
737 offs = pageoffs << this->page_shift; in write_bbt()
764 (len >> this->page_shift)* mtd->oobsize); in write_bbt()
[all …]
Dnand_base.c355 page = (int)(ofs >> chip->page_shift) & chip->pagemask; in nand_block_bad()
377 page = (int)(ofs >> chip->page_shift) & chip->pagemask; in nand_block_bad()
1707 realpage = (int)(from >> chip->page_shift); in nand_do_read_ops()
2060 ops->ooboffs + readlen > ((mtd->size >> chip->page_shift) - in nand_do_read_oob()
2061 (from >> chip->page_shift)) * len)) { in nand_do_read_oob()
2071 realpage = (int)(from >> chip->page_shift); in nand_do_read_oob()
2561 realpage = (int)(to >> chip->page_shift); in nand_do_write_ops()
2565 if (to <= ((loff_t)chip->pagebuf << chip->page_shift) && in nand_do_write_ops()
2566 ((loff_t)chip->pagebuf << chip->page_shift) < (to + ops->len)) in nand_do_write_ops()
2739 ((mtd->size >> chip->page_shift) - in nand_do_write_oob()
[all …]
Dnand_util.c285 page = (int)(offset >> chip->page_shift); in nand_get_lock_status()
334 page = (int)(start >> chip->page_shift); in nand_unlock()
366 page += (int)(length >> chip->page_shift); in nand_unlock()
Dtegra_nand.c539 bounce_buffer_start(&bbstate, (void *)buf, 1 << chip->page_shift, in nand_rw_page()
541 writel((1 << chip->page_shift) - 1, &info->reg->dma_cfg_a); in nand_rw_page()
631 1 << chip->page_shift, in nand_rw_page()
Dpxa3xx_nand.c1228 info->reg_ndcr |= (chip->page_shift == 6) ? NDCR_PG_PER_BLK : 0; in pxa3xx_nand_config_flash()
1471 if ((mtd->size >> chip->page_shift) > 65536) in pxa3xx_nand_scan()
Dfsl_elbc_nand.c188 chip->phys_erase_shift, chip->page_shift); in set_addr()
Dmxc_nand.c666 nand_chip->page_shift;
Ddenali.c1212 chip->page_shift += 1; in denali_multidev_fixup()
Dsunxi_nand.c438 NFC_PAGE_SHIFT(nand->page_shift - 10); in sunxi_nfc_select_chip()
/external/u-boot/drivers/nvme/
Dnvme.c336 unsigned page_shift = 12; in nvme_configure_admin_queue() local
340 if (page_shift < dev_page_min) { in nvme_configure_admin_queue()
342 1 << dev_page_min, 1 << page_shift); in nvme_configure_admin_queue()
346 if (page_shift > dev_page_max) { in nvme_configure_admin_queue()
348 1 << dev_page_max, 1 << page_shift); in nvme_configure_admin_queue()
349 page_shift = dev_page_max; in nvme_configure_admin_queue()
367 dev->page_size = 1 << page_shift; in nvme_configure_admin_queue()
370 dev->ctrl_config |= (page_shift - 12) << NVME_CC_MPS_SHIFT; in nvme_configure_admin_queue()
/external/linux-kselftest/tools/testing/selftests/kvm/lib/x86_64/
Dprocessor.c275 (vaddr >> vm->page_shift)), in virt_pg_map()
282 TEST_ASSERT((paddr >> vm->page_shift) <= vm->max_gfn, in virt_pg_map()
297 >> vm->page_shift; in virt_pg_map()
308 >> vm->page_shift; in virt_pg_map()
319 >> vm->page_shift; in virt_pg_map()
327 pte[index[0]].address = paddr >> vm->page_shift; in virt_pg_map()
/external/u-boot/drivers/mtd/onenand/
Donenand_base.c366 - onenand_addr(this, block)) >> this->page_shift; in onenand_command()
626 page = (int) (addr >> (this->page_shift + 1)) & this->page_mask; in onenand_get_2x_blockpage()
649 blockpage = (int) (addr >> this->page_shift); in onenand_check_bufferram()
692 blockpage = (int)(addr >> this->page_shift); in onenand_update_bufferram()
726 loff_t buf_addr = this->bufferram[i].blockpage << this->page_shift; in onenand_invalidate_bufferram()
1031 column + len > ((mtd->size >> this->page_shift) - in onenand_read_oob_nolock()
1032 (from >> this->page_shift)) * oobsize)) { in onenand_read_oob_nolock()
1572 column + len > ((mtd->size >> this->page_shift) - in onenand_write_oob_nolock()
1573 (to >> this->page_shift)) * oobsize)) { in onenand_write_oob_nolock()
2641 this->page_shift = ffs(mtd->writesize) - 1; in onenand_probe()
[all …]
Dsamsung.c281 fpa = (int) (addr >> this->page_shift); in s3c_onenand_command()
/external/u-boot/include/linux/mtd/
Donenand.h84 unsigned int page_shift; member
Drawnand.h910 int page_shift; member
/external/kernel-headers/original/uapi/rdma/
Dvmw_pvrdma-abi.h261 __u32 page_shift; member
/external/kernel-headers/original/uapi/linux/
Dvfio.h887 __u32 page_shift; member
Dkvm.h727 __u32 page_shift; /* Page shift (or 0) */ member
732 __u32 page_shift; /* Base page shift of segment (or 0) */ member