/linux-master/virt/kvm/ |
H A D | pfncache.c | 70 return offset + len <= PAGE_SIZE; 105 return memremap(pfn_to_hpa(pfn), PAGE_SIZE, MEMREMAP_WB);
|
H A D | kvm_main.c | 643 gfn_range.end = hva_to_gfn_memslot(hva_end + PAGE_SIZE - 1, slot); 2036 if ((mem->memory_size & (PAGE_SIZE - 1)) || 2039 if (mem->guest_phys_addr & (PAGE_SIZE - 1)) 2042 if ((mem->userspace_addr & (PAGE_SIZE - 1)) || 2048 (mem->guest_memfd_offset & (PAGE_SIZE - 1) || 2687 size = PAGE_SIZE; 2691 return PAGE_SIZE; 3167 hva = memremap(pfn_to_hpa(pfn), PAGE_SIZE, MEMREMAP_WB); 3304 if (len > PAGE_SIZE - offset) 3305 return PAGE_SIZE [all...] |
/linux-master/tools/testing/selftests/kvm/ |
H A D | set_memory_region_test.c | 484 for (i = 1; i < PAGE_SIZE; i++)
|
/linux-master/net/sunrpc/xprtrdma/ |
H A D | svc_rdma_sendto.c | 636 len = min_t(u32, PAGE_SIZE - pageoff, remaining); 681 remaining -= min_t(u32, PAGE_SIZE - offset, remaining); 750 len = min_t(u32, PAGE_SIZE - pageoff, remaining);
|
H A D | svc_rdma_rw.c | 451 PAGE_SIZE - page_off); 752 PAGE_SIZE - head->rc_pageoff); 762 if (head->rc_pageoff == PAGE_SIZE) { 845 PAGE_SIZE - head->rc_pageoff); 855 if (head->rc_pageoff == PAGE_SIZE) {
|
/linux-master/include/linux/ |
H A D | blkdev.h | 258 if (bsize < 512 || bsize > PAGE_SIZE || !is_power_of_2(bsize))
|
/linux-master/fs/sysfs/ |
H A D | file.c | 51 /* acquire buffer and ensure that it's >= PAGE_SIZE and clear */ 53 if (count < PAGE_SIZE) { 57 memset(buf, 0, PAGE_SIZE); 64 * The code works fine with PAGE_SIZE return but it's likely to 67 if (count >= (ssize_t)PAGE_SIZE) { 71 count = PAGE_SIZE - 1; 308 PAGE_SIZE, ops, (void *)attr, ns, key); 736 * sysfs_emit - scnprintf equivalent, aware of PAGE_SIZE buffer. 737 * @buf: start of PAGE_SIZE buffer. 754 len = vscnprintf(buf, PAGE_SIZE, fm [all...] |
/linux-master/fs/smb/client/ |
H A D | smb2ops.c | 4369 unsigned int npages = DIV_ROUND_UP(size, PAGE_SIZE); 4388 seg = min_t(size_t, size - copied, PAGE_SIZE); 4469 size_t n, len = min_t(unsigned int, PAGE_SIZE - skip, data_size); 4568 cur_page_idx = pad_len / PAGE_SIZE; 4569 cur_off = pad_len % PAGE_SIZE; 4736 npages = DIV_ROUND_UP(len, PAGE_SIZE); 4755 iov_iter_xarray(&iter, ITER_DEST, &dw->buffer, 0, npages * PAGE_SIZE); 4763 if (rc < npages * PAGE_SIZE) 4764 iov_iter_zero(npages * PAGE_SIZE - rc, &iter); 4765 iov_iter_revert(&iter, npages * PAGE_SIZE); [all...] |
H A D | fscache.c | 186 bvec_set_page(&bvec, page, PAGE_SIZE, 0); 187 iov_iter_bvec(&iter, ITER_DEST, &bvec, 1, PAGE_SIZE); 270 start = first * PAGE_SIZE; 271 len = nr_pages * PAGE_SIZE; 272 ret = cres.ops->query_occupancy(&cres, start, len, PAGE_SIZE, 275 *_data_first = data_start / PAGE_SIZE; 276 *_data_nr_pages = len / PAGE_SIZE;
|
H A D | connect.c | 3456 round_down(server->ops->negotiate_wsize(tcon, ctx), PAGE_SIZE); 3458 * in the very unlikely event that the server sent a max write size under PAGE_SIZE, 3462 cifs_sb->ctx->wsize = PAGE_SIZE; 3463 cifs_dbg(VFS, "wsize too small, reset to minimum ie PAGE_SIZE, usually 4096\n");
|
H A D | fs_context.c | 1178 if (ctx->wsize % PAGE_SIZE != 0) { 1179 ctx->wsize = round_down(ctx->wsize, PAGE_SIZE); 1181 ctx->wsize = PAGE_SIZE; 1182 cifs_dbg(VFS, "wsize too small, reset to minimum %ld\n", PAGE_SIZE); 1185 "wsize rounded down to %d to multiple of PAGE_SIZE %ld\n", 1186 ctx->wsize, PAGE_SIZE);
|
H A D | cifsglob.h | 960 * pages. A 16M write means ~32kb page array with PAGE_SIZE == 4096. 2266 PAGE_SIZE); 2275 nents += DIV_ROUND_UP(offset_in_page(sig) + SMB2_SIGNATURE_SIZE, PAGE_SIZE); 2292 unsigned int len = min_t(unsigned int, buflen, PAGE_SIZE - off); 2298 addr += PAGE_SIZE;
|
H A D | cifsfs.c | 249 sb->s_bdi->ra_pages = cifs_sb->ctx->rasize / PAGE_SIZE; 251 sb->s_bdi->ra_pages = 2 * (cifs_sb->ctx->rsize / PAGE_SIZE); 1247 pgoff_t index = pos / PAGE_SIZE;
|
/linux-master/fs/bcachefs/ |
H A D | journal_io.c | 1137 ret = journal_read_buf_realloc(&buf, PAGE_SIZE);
|
H A D | btree_node_scan.c | 125 bch2_bio_map(bio, bn, PAGE_SIZE);
|
/linux-master/drivers/usb/gadget/function/ |
H A D | f_fs.c | 813 for (i = 0, ptr = vaddr; i < n_pages; ++i, ptr += PAGE_SIZE) 1054 io_data->use_sg = gadget->sg_supported && data_len > PAGE_SIZE; 1918 sb->s_blocksize = PAGE_SIZE;
|
/linux-master/block/ |
H A D | ioctl.c | 559 bdev->bd_disk->bdi->ra_pages = (arg * 512) / PAGE_SIZE; 615 (bdev->bd_disk->bdi->ra_pages * PAGE_SIZE) / 512); 675 (bdev->bd_disk->bdi->ra_pages * PAGE_SIZE) / 512);
|
H A D | bdev.c | 139 while (bsize < PAGE_SIZE) { 149 /* Size must be a power of two, and between 512 and PAGE_SIZE */ 150 if (size > PAGE_SIZE || size < 512 || !is_power_of_2(size)) 173 * and it's value is between 512 and PAGE_SIZE */
|
/linux-master/arch/x86/kvm/ |
H A D | x86.c | 6315 if (addr > (unsigned int)(-3 * PAGE_SIZE)) 7578 unsigned offset = addr & (PAGE_SIZE-1); 7579 unsigned toread = min(bytes, (unsigned)PAGE_SIZE - offset); 7616 offset = addr & (PAGE_SIZE-1); 7617 if (WARN_ON(offset + bytes > PAGE_SIZE)) 7618 bytes = (unsigned)PAGE_SIZE - offset; 7670 unsigned offset = addr & (PAGE_SIZE-1); 7671 unsigned towrite = min(bytes, (unsigned)PAGE_SIZE - offset); 7783 (gva & (PAGE_SIZE - 1)); 8136 vcpu->run->io.data_offset = KVM_PIO_PAGE_OFFSET * PAGE_SIZE; [all...] |
H A D | lapic.c | 2615 APIC_DEFAULT_PHYS_BASE, PAGE_SIZE);
|
/linux-master/arch/x86/kvm/vmx/ |
H A D | vmx.c | 302 memset(vmx_l1d_flush_pages + i * PAGE_SIZE, i + 1, 303 PAGE_SIZE); 2697 if ((vmx_msr_high & 0x1fff) > PAGE_SIZE) 2917 memset(loaded_vmcs->msr_bitmap, 0xff, PAGE_SIZE); 3842 if (__copy_to_user(ua + PAGE_SIZE * i, zero_page, PAGE_SIZE)) 3876 PAGE_SIZE); 3883 for (i = 0; i < (PAGE_SIZE / sizeof(tmp)); i++) { 5077 PAGE_SIZE * 3); 6212 WARN_ON(gpa & (PAGE_SIZE [all...] |
/linux-master/arch/x86/kvm/svm/ |
H A D | svm.c | 876 memset(msrpm, 0xff, PAGE_SIZE * (1 << order)); 5189 memset(iopm_va, 0xff, PAGE_SIZE * (1 << order));
|
H A D | svm.h | 30 #define IOPM_SIZE PAGE_SIZE * 3 31 #define MSRPM_SIZE PAGE_SIZE * 2
|
H A D | sev.c | 436 if (size > PAGE_SIZE) 486 clflush_cache_range(page_virtual, PAGE_SIZE); 502 if ((paddr + PAGE_SIZE) == next_paddr) { 553 offset = vaddr & (PAGE_SIZE - 1); 558 len = min_t(size_t, ((pages * PAGE_SIZE) - offset), size); 658 clflush_cache_range(svm->sev_es.vmsa, PAGE_SIZE); 663 vmsa.len = PAGE_SIZE; 973 src_p = sev_pin_memory(kvm, vaddr & PAGE_MASK, PAGE_SIZE, &n, 0); 977 dst_p = sev_pin_memory(kvm, dst_vaddr & PAGE_MASK, PAGE_SIZE, &n, 1); 997 len = min_t(size_t, (PAGE_SIZE [all...] |
/linux-master/arch/x86/kvm/mmu/ |
H A D | mmu.c | 4316 PAGE_SIZE, fault->write, fault->exec,
|