Lines Matching refs:pagecount
166 pgoff_t pagecount; member
186 pgoff_t pagecount; member
540 mdev_state->pagecount = mdev_state->memsize >> PAGE_SHIFT; in mbochs_init_dev()
541 mdev_state->pages = kcalloc(mdev_state->pagecount, in mbochs_init_dev()
561 type->type.pretty_name, type->mbytes, mdev_state->pagecount); in mbochs_init_dev()
751 if (WARN_ON(pgoff >= mdev_state->pagecount)) in mbochs_get_page()
768 for (i = 0; i < mdev_state->pagecount; i++) { in mbochs_put_pages()
784 if (page_offset >= mdev_state->pagecount) in mbochs_region_vm_fault()
822 if (WARN_ON(vmf->pgoff >= dmabuf->pagecount)) in mbochs_dmabuf_vm_fault()
862 dmabuf->mode.offset, dmabuf->mode.size, dmabuf->pagecount); in mbochs_print_dmabuf()
877 if (sg_alloc_table_from_pages(sg, dmabuf->pages, dmabuf->pagecount, in mbochs_map_dmabuf()
916 for (pg = 0; pg < dmabuf->pagecount; pg++) in mbochs_release_dmabuf()
947 dmabuf->pagecount = DIV_ROUND_UP(mode->size, PAGE_SIZE); in mbochs_dmabuf_alloc()
948 dmabuf->pages = kcalloc(dmabuf->pagecount, sizeof(struct page *), in mbochs_dmabuf_alloc()
954 for (pg = 0; pg < dmabuf->pagecount; pg++) { in mbochs_dmabuf_alloc()