Lines Matching refs:PAGE_SIZE
790 memory_object_data_initialize(pager, paging_offset, PAGE_SIZE);
2754 if (kmem_alloc(kernel_map, &addr, PAGE_SIZE * pg_count) == KERN_SUCCESS) {
2755 kmem_free(kernel_map, addr, PAGE_SIZE * pg_count);
2881 PAGE_SIZE,
3327 size = PAGE_SIZE;
3333 page_field_size = ((size/PAGE_SIZE) + 7) >> 3;
3342 (sizeof(struct upl_page_info) * (size/PAGE_SIZE))
3459 if ((size / PAGE_SIZE) > MAX_UPL_SIZE)
3460 size = MAX_UPL_SIZE * PAGE_SIZE;
3473 ((size/PAGE_SIZE) * sizeof(upl_page_info_t)));
3581 size_in_pages = size / PAGE_SIZE;
3770 pg_num = (unsigned int) ((dst_offset-offset)/PAGE_SIZE);
3771 assert(pg_num == (dst_offset-offset)/PAGE_SIZE);
4035 pg_num = (unsigned int) ((dst_offset-offset)/PAGE_SIZE);
4036 assert(pg_num == (dst_offset-offset)/PAGE_SIZE);
4165 xfer_size -= PAGE_SIZE;
4384 if ((*upl_size/PAGE_SIZE) > MAX_UPL_SIZE)
4385 *upl_size = MAX_UPL_SIZE * PAGE_SIZE;
4648 + ((upl->size/PAGE_SIZE) * sizeof(upl_page_info_t)));
4670 pg_num = (unsigned int) (new_offset / PAGE_SIZE);
4671 assert(pg_num == new_offset / PAGE_SIZE);
4728 size -= PAGE_SIZE;
4766 for (addr = *dst_addr; size > 0; size -= PAGE_SIZE, addr += PAGE_SIZE) {
4993 + ((upl->size/PAGE_SIZE) * sizeof(upl_page_info_t)));
5005 entry = offset/PAGE_SIZE;
5053 pg_num = (unsigned int) (target_offset/PAGE_SIZE);
5054 assert(pg_num == target_offset/PAGE_SIZE);
5326 xfer_size -= PAGE_SIZE;
5359 pg_num = upl->size/PAGE_SIZE;
5517 + ((upl->size/PAGE_SIZE) * sizeof(upl_page_info_t)));
5532 entry = offset/PAGE_SIZE;
5558 pg_num = (unsigned int) (target_offset/PAGE_SIZE);
5559 assert(pg_num == target_offset/PAGE_SIZE);
5731 xfer_size -= PAGE_SIZE;
5764 pg_num = upl->size/PAGE_SIZE;
5943 if (((size/PAGE_SIZE) > MAX_UPL_SIZE) && !object->phys_contiguous)
5944 size = MAX_UPL_SIZE * PAGE_SIZE;
5959 psize = PAGE_SIZE;
5968 ((psize / PAGE_SIZE) * sizeof(upl_page_info_t)));
5988 size_in_pages = size / PAGE_SIZE;
6358 pg_num = (unsigned int) ((dst_offset-offset)/PAGE_SIZE);
6359 assert(pg_num == (dst_offset-offset)/PAGE_SIZE);
6390 xfer_size -= PAGE_SIZE;
6433 for (; offset < dst_offset; offset += PAGE_SIZE) {
6587 size_in_pages = upl->size / PAGE_SIZE;
6668 VM_PAGING_NUM_PAGES * PAGE_SIZE,
6719 if (page != VM_PAGE_NULL && *size == PAGE_SIZE) {
6738 (i * PAGE_SIZE);
6912 + (VM_PAGING_NUM_PAGES * PAGE_SIZE)))) {
6932 assert(end - start == PAGE_SIZE);
7011 PAGE_SIZE / AES_BLOCK_SIZE,
7017 PAGE_SIZE / AES_BLOCK_SIZE,
7031 PAGE_SIZE / AES_BLOCK_SIZE,
7037 PAGE_SIZE / AES_BLOCK_SIZE,
7111 kernel_mapping_size = PAGE_SIZE;
7158 PAGE_SIZE / AES_BLOCK_SIZE,
7239 kernel_mapping_size = PAGE_SIZE;
7281 PAGE_SIZE / AES_BLOCK_SIZE,
7294 kernel_vaddr + PAGE_SIZE);
7384 upl_encrypt_pages += crypt_size / PAGE_SIZE;
7426 offset_in_upl += PAGE_SIZE) {
7552 kfree(vector_upl->pagelist,(sizeof(struct upl_page_info)*(vector_upl->size/PAGE_SIZE)));
7590 if(io_size < PAGE_SIZE)
7591 io_size = PAGE_SIZE;
7636 vector_upl->pagelist = (upl_page_info_array_t)kalloc(sizeof(struct upl_page_info)*(vector_upl->size/PAGE_SIZE));
7639 cur_upl_pagelist_size = sizeof(struct upl_page_info) * vector_upl->upl_elems[i]->size/PAGE_SIZE;
7645 assert( pagelist_size == (sizeof(struct upl_page_info)*(vector_upl->size/PAGE_SIZE)) );
7761 if(size < PAGE_SIZE)
7762 size = PAGE_SIZE;
7919 kernel_mapping_size = PAGE_SIZE;
7943 pageIndex = (uint32_t)((page->offset - slide_info.start)/PAGE_SIZE);
7953 kernel_vaddr + PAGE_SIZE);