Searched refs:PAGE_SIZE (Results 101 - 125 of 876) sorted by relevance

1234567891011>>

/drivers/xen/
H A Dgntalloc.c136 gref->file_index = op->index + i * PAGE_SIZE;
224 index += PAGE_SIZE;
312 priv->index += op.count * PAGE_SIZE;
393 index = op.index & ~(PAGE_SIZE - 1);
394 pgoff = op.index & (PAGE_SIZE - 1);
544 rv = vm_insert_page(vma, vma->vm_start + i * PAGE_SIZE,
/drivers/media/common/
H A Dsaa7146_video.c289 m1 = ((size+PAGE_SIZE)/PAGE_SIZE)-1;
290 m2 = ((size+(size/4)+PAGE_SIZE)/PAGE_SIZE)-1;
291 m3 = ((size+(size/2)+PAGE_SIZE)/PAGE_SIZE)-1;
292 o1 = size%PAGE_SIZE;
293 o2 = (size+(size/4))%PAGE_SIZE;
300 m1 = ((size+PAGE_SIZE)/PAGE_SIZE)
[all...]
/drivers/char/
H A Dmem.c43 sz = PAGE_SIZE - (start & (PAGE_SIZE - 1));
75 cursor += PAGE_SIZE;
109 if (p < PAGE_SIZE) {
169 if (p < PAGE_SIZE) {
376 pfn = *ppos / PAGE_SIZE;
380 offset = (unsigned long)(*ppos % PAGE_SIZE);
381 if (count > PAGE_SIZE - offset)
382 csize = PAGE_SIZE - offset;
418 if (p < PAGE_SIZE
[all...]
/drivers/infiniband/hw/mthca/
H A Dmthca_eq.c231 return eq->page_list[off / PAGE_SIZE].buf + off % PAGE_SIZE;
480 npages = ALIGN(eq->nent * MTHCA_EQ_ENTRY_SIZE, PAGE_SIZE) / PAGE_SIZE;
501 PAGE_SIZE, &t, GFP_KERNEL);
520 0, npages * PAGE_SIZE,
573 dma_free_coherent(&dev->pdev->dev, PAGE_SIZE,
593 int npages = (eq->nent * MTHCA_EQ_ENTRY_SIZE + PAGE_SIZE - 1) /
594 PAGE_SIZE;
620 pci_free_consistent(dev->pdev, PAGE_SIZE,
[all...]
/drivers/scsi/bfa/
H A Dbfad_attr.c694 return snprintf(buf, PAGE_SIZE, "%s\n", serial_num);
708 return snprintf(buf, PAGE_SIZE, "%s\n", model);
796 return snprintf(buf, PAGE_SIZE, "%s\n", model_descr);
810 return snprintf(buf, PAGE_SIZE, "0x%llx\n", cpu_to_be64(nwwn));
827 return snprintf(buf, PAGE_SIZE, "%s\n", symname);
841 return snprintf(buf, PAGE_SIZE, "%s\n", hw_ver);
848 return snprintf(buf, PAGE_SIZE, "%s\n", BFAD_DRIVER_VERSION);
862 return snprintf(buf, PAGE_SIZE, "%s\n", optrom_ver);
876 return snprintf(buf, PAGE_SIZE, "%s\n", fw_ver);
888 return snprintf(buf, PAGE_SIZE, "
[all...]
/drivers/base/
H A Dtopology.c51 ptrdiff_t len = PTR_ALIGN(buf + PAGE_SIZE - 1, PAGE_SIZE) - buf;
/drivers/gpu/drm/
H A Ddrm_hashtab.c47 if (size <= PAGE_SIZE / sizeof(*ht->table))
190 if ((PAGE_SIZE / sizeof(*ht->table)) >> ht->order)
/drivers/gpu/drm/radeon/
H A Dradeon_benchmark.c106 r = radeon_bo_create(rdev, size, PAGE_SIZE, true, sdomain, &sobj);
118 r = radeon_bo_create(rdev, size, PAGE_SIZE, true, ddomain, &dobj);
H A Dradeon_gart.c82 PAGE_SIZE, true, RADEON_GEM_DOMAIN_VRAM,
157 p = t / (PAGE_SIZE / RADEON_GPU_PAGE_SIZE);
163 for (j = 0; j < (PAGE_SIZE / RADEON_GPU_PAGE_SIZE); j++, t++) {
188 p = t / (PAGE_SIZE / RADEON_GPU_PAGE_SIZE);
195 for (j = 0; j < (PAGE_SIZE / RADEON_GPU_PAGE_SIZE); j++, t++) {
216 for (j = 0; j < (PAGE_SIZE / RADEON_GPU_PAGE_SIZE); j++, t++) {
232 /* We need PAGE_SIZE >= RADEON_GPU_PAGE_SIZE */
233 if (PAGE_SIZE < RADEON_GPU_PAGE_SIZE) {
241 rdev->gart.num_cpu_pages = rdev->mc.gtt_size / PAGE_SIZE;
/drivers/gpu/drm/ttm/
H A Dttm_page_alloc.c55 #define NUM_PAGES_TO_ALLOC (PAGE_SIZE/sizeof(struct page *))
165 val = val / (PAGE_SIZE >> 10);
174 NUM_PAGES_TO_ALLOC*(PAGE_SIZE >> 7),
175 NUM_PAGES_TO_ALLOC*(PAGE_SIZE >> 10));
179 NUM_PAGES_TO_ALLOC*(PAGE_SIZE >> 10));
201 val = val * (PAGE_SIZE >> 10);
203 return snprintf(buffer, PAGE_SIZE, "%u\n", val);
481 (unsigned)(PAGE_SIZE/sizeof(struct page *)));
H A Dttm_tt.c191 ttm->num_pages = (size + PAGE_SIZE - 1) >> PAGE_SHIFT;
223 ttm->num_pages = (size + PAGE_SIZE - 1) >> PAGE_SHIFT;
316 memcpy(to_virtual, from_virtual, PAGE_SIZE);
372 memcpy(to_virtual, from_virtual, PAGE_SIZE);
/drivers/gpu/drm/udl/
H A Dudl_fb.c119 PAGE_SIZE, &bytes_identical, &bytes_sent))
121 bytes_rendered += PAGE_SIZE;
226 if (remap_pfn_range(vma, start, page, PAGE_SIZE, PAGE_SHARED))
229 start += PAGE_SIZE;
230 pos += PAGE_SIZE;
231 if (size > PAGE_SIZE)
232 size -= PAGE_SIZE;
439 size = ALIGN(size, PAGE_SIZE);
/drivers/infiniband/hw/ipath/
H A Dipath_mmap.c145 dev->mmap_offset = PAGE_SIZE;
167 dev->mmap_offset = PAGE_SIZE;
/drivers/infiniband/hw/qib/
H A Dqib_mmap.c145 dev->mmap_offset = PAGE_SIZE;
167 dev->mmap_offset = PAGE_SIZE;
H A Dqib_user_pages.c70 start_page + got * PAGE_SIZE,
/drivers/net/
H A Dnetconsole.c248 return snprintf(buf, PAGE_SIZE, "%d\n", nt->enabled);
253 return snprintf(buf, PAGE_SIZE, "%s\n", nt->np.dev_name);
258 return snprintf(buf, PAGE_SIZE, "%d\n", nt->np.local_port);
263 return snprintf(buf, PAGE_SIZE, "%d\n", nt->np.remote_port);
268 return snprintf(buf, PAGE_SIZE, "%pI4\n", &nt->np.local_ip);
273 return snprintf(buf, PAGE_SIZE, "%pI4\n", &nt->np.remote_ip);
281 return snprintf(buf, PAGE_SIZE, "%pM\n", dev ? dev->dev_addr : bcast);
286 return snprintf(buf, PAGE_SIZE, "%pM\n", nt->np.remote_mac);
/drivers/net/wireless/mwifiex/
H A Ddebugfs.c480 size_t buf_size = min(count, (size_t) (PAGE_SIZE - 1));
532 pos += snprintf(buf, PAGE_SIZE, "0");
540 pos += snprintf(buf, PAGE_SIZE, "%u 0x%x 0x%x\n",
556 pos += snprintf(buf, PAGE_SIZE, "%u 0x%x 0x%x\n", saved_reg_type,
581 size_t buf_size = min(count, (size_t) (PAGE_SIZE - 1));
632 pos += snprintf(buf, PAGE_SIZE, "0");
644 pos += snprintf(buf, PAGE_SIZE, "%d %d ", saved_offset, saved_bytes);
647 pos += snprintf(buf + strlen(buf), PAGE_SIZE, "%d ", value[i]);
/drivers/s390/block/
H A Ddasd_erp.c36 BUG_ON( magic == NULL || datasize > PAGE_SIZE ||
37 (cplength*sizeof(struct ccw1)) > PAGE_SIZE);
/drivers/s390/char/
H A Dsclp_ocf.c95 rc = snprintf(page, PAGE_SIZE, "%s\n", cpc_name);
109 rc = snprintf(page, PAGE_SIZE, "%s\n", hmc_network);
/drivers/s390/scsi/
H A Dzfcp_fc.h20 #define ZFCP_FC_CT_SIZE_PAGE (PAGE_SIZE - sizeof(struct fc_ct_hdr))
25 #define ZFCP_FC_GPN_FT_MAX_SIZE (ZFCP_FC_GPN_FT_NUM_BUFS * PAGE_SIZE \
/drivers/usb/host/
H A Dehci-sysfs.c29 int count = PAGE_SIZE;
89 n = scnprintf(buf, PAGE_SIZE, "%d\n", ehci->uframe_periodic_max);
/drivers/video/omap2/displays/
H A Dpanel-acx565akm.c399 len = snprintf(buf, PAGE_SIZE, "%s\n", mode_str);
401 return len < PAGE_SIZE - 1 ? len : PAGE_SIZE - 1;
446 return snprintf(buf, PAGE_SIZE, "%s\n", cabc_modes[0]);
449 len < PAGE_SIZE && i < ARRAY_SIZE(cabc_modes); i++)
450 len += snprintf(&buf[len], PAGE_SIZE - len, "%s%s%s",
454 return len < PAGE_SIZE ? len : PAGE_SIZE - 1;
/drivers/media/video/omap/
H A Domap_voutlib.c314 addr += PAGE_SIZE;
315 size -= PAGE_SIZE;
335 addr += PAGE_SIZE;
336 size -= PAGE_SIZE;
/drivers/mtd/chips/
H A Dmap_absent.c63 mtd->erasesize = PAGE_SIZE;
/drivers/net/fddi/skfp/h/
H A Dtargetos.h72 #define SMT_PAGESIZE PAGE_SIZE // Size of a memory page (power of 2).

Completed in 2051 milliseconds

1234567891011>>