Searched refs:PAGE_SIZE (Results 26 - 50 of 876) sorted by relevance

1234567891011>>

/drivers/memstick/core/
H A Dmspro_block.c304 if (PAGE_SIZE - rc)
308 rc += scnprintf(buffer + rc, PAGE_SIZE - rc, "%02x ",
338 rc += scnprintf(buffer + rc, PAGE_SIZE - rc, "class: %x\n",
340 rc += scnprintf(buffer + rc, PAGE_SIZE - rc, "block size: %x\n",
342 rc += scnprintf(buffer + rc, PAGE_SIZE - rc, "block count: %x\n",
344 rc += scnprintf(buffer + rc, PAGE_SIZE - rc, "user block count: %x\n",
346 rc += scnprintf(buffer + rc, PAGE_SIZE - rc, "page size: %x\n",
348 rc += scnprintf(buffer + rc, PAGE_SIZE - rc, "assembly date: "
355 rc += scnprintf(buffer + rc, PAGE_SIZE - rc, "serial number: %x\n",
357 rc += scnprintf(buffer + rc, PAGE_SIZE
[all...]
/drivers/net/wireless/b43/
H A Dsysfs.c70 snprintf(buf, PAGE_SIZE,
75 snprintf(buf, PAGE_SIZE,
80 snprintf(buf, PAGE_SIZE,
/drivers/scsi/qla2xxx/
H A Dqla_attr.c807 return snprintf(buf, PAGE_SIZE, "%s\n", qla2x00_version_str);
818 return snprintf(buf, PAGE_SIZE, "%s\n",
831 qla2xxx_get_vpd_field(vha, "SN", buf, PAGE_SIZE);
832 return snprintf(buf, PAGE_SIZE, "%s\n", buf);
836 return snprintf(buf, PAGE_SIZE, "%c%05d\n", 'A' + sn / 100000,
845 return snprintf(buf, PAGE_SIZE, "ISP%04X\n", vha->hw->pdev->device);
854 return snprintf(buf, PAGE_SIZE, "%04x %04x %04x %04x\n",
864 return snprintf(buf, PAGE_SIZE, "%s\n", vha->hw->model_number);
872 return snprintf(buf, PAGE_SIZE, "%s\n",
883 return snprintf(buf, PAGE_SIZE, "
[all...]
/drivers/gpu/drm/radeon/
H A Dradeon_cs.c284 p->chunks[p->chunk_ib_idx].kpage[0] = kmalloc(PAGE_SIZE, GFP_KERNEL);
285 p->chunks[p->chunk_ib_idx].kpage[1] = kmalloc(PAGE_SIZE, GFP_KERNEL);
293 ((p->chunks[p->chunk_ib_idx].length_dw * 4) - 1) / PAGE_SIZE;
556 int size = PAGE_SIZE;
560 size = (ibc->length_dw * 4) % PAGE_SIZE;
562 size = PAGE_SIZE;
565 if (DRM_COPY_FROM_USER(p->ib->ptr + (i * (PAGE_SIZE/4)),
566 ibc->user_ptr + (i * PAGE_SIZE),
578 int size = PAGE_SIZE;
581 if (DRM_COPY_FROM_USER(p->ib->ptr + (i * (PAGE_SIZE/
[all...]
/drivers/lguest/
H A Dcore.c83 if (SWITCHER_ADDR + (TOTAL_SWITCHER_PAGES+1)*PAGE_SIZE > FIXADDR_START){
95 switcher_vma = __get_vm_area(TOTAL_SWITCHER_PAGES * PAGE_SIZE,
97 + (TOTAL_SWITCHER_PAGES+1) * PAGE_SIZE);
174 return (addr+len) / PAGE_SIZE < lg->pfn_limit && (addr+len >= addr);
/drivers/net/wireless/iwlwifi/
H A Diwl-testmode.h304 #define DUMP_CHUNK_SIZE (PAGE_SIZE - 1024)
/drivers/usb/storage/
H A Dsierra_ms.c100 result = snprintf(buf, PAGE_SIZE, "Forced Mass Storage\n");
105 snprintf(buf, PAGE_SIZE, "Error\n");
112 snprintf(buf, PAGE_SIZE, "Error\n");
116 result = snprintf(buf, PAGE_SIZE,
/drivers/gpu/ion/
H A Dion_system_heap.c48 return PAGE_SIZE << order;
101 for (i = 0; i < order / PAGE_SIZE; i++) {
105 memset(addr, 0, PAGE_SIZE);
169 size_remaining -= (1 << info->order) * PAGE_SIZE;
179 ret = sg_alloc_table(table, PAGE_ALIGN(size) / PAGE_SIZE,
192 sg_set_page(sg, page + i, PAGE_SIZE, 0);
196 sg_set_page(sg, page, (1 << info->order) * PAGE_SIZE,
256 int npages = PAGE_ALIGN(buffer->size) / PAGE_SIZE;
269 int npages_this_entry = PAGE_ALIGN(sg_dma_len(sg)) / PAGE_SIZE;
333 (1 << pool->order) * PAGE_SIZE * poo
[all...]
/drivers/gpu/drm/gma500/
H A Dgem_glue.c63 obj->size / PAGE_SIZE, 0, 0);
71 obj->size / PAGE_SIZE, 0);
/drivers/media/video/
H A Dvideobuf2-dma-sg.c49 buf->sg_desc.num_pages = (size + PAGE_SIZE - 1) >> PAGE_SHIFT;
67 buf->pages[i], PAGE_SIZE, 0);
155 PAGE_SIZE - buf->offset, buf->offset);
156 size -= PAGE_SIZE - buf->offset;
159 min_t(size_t, PAGE_SIZE, size), 0);
160 size -= min_t(size_t, PAGE_SIZE, size);
246 uaddr += PAGE_SIZE;
247 usize -= PAGE_SIZE;
/drivers/hv/
H A Dhv_util.c66 PAGE_SIZE, &recvlen, &requestid);
191 PAGE_SIZE, &recvlen, &requestid);
230 PAGE_SIZE, &recvlen, &requestid);
263 srv->recv_buffer = kmalloc(PAGE_SIZE, GFP_KERNEL);
274 ret = vmbus_open(dev->channel, 2 * PAGE_SIZE, 2 * PAGE_SIZE, NULL, 0,
/drivers/w1/slaves/
H A Dw1_therm.c180 ssize_t c = PAGE_SIZE;
248 c -= snprintf(buf + PAGE_SIZE - c, c, "%02x ", rom[i]);
249 c -= snprintf(buf + PAGE_SIZE - c, c, ": crc=%02x %s\n",
257 c -= snprintf(buf + PAGE_SIZE - c, c, "%02x ", sl->rom[i]);
259 c -= snprintf(buf + PAGE_SIZE - c, c, "t=%d\n",
263 return PAGE_SIZE - c;
/drivers/infiniband/hw/qib/
H A Dqib_sysfs.c82 ret = scnprintf(buf, PAGE_SIZE, "%d\n", ret);
144 ret = scnprintf(buf, PAGE_SIZE, "0x%llx\n",
183 if (any && strlcat(buf, " ", PAGE_SIZE) >= PAGE_SIZE)
185 if (strlcat(buf, qib_status_str[i], PAGE_SIZE) >=
186 PAGE_SIZE)
193 strlcat(buf, "\n", PAGE_SIZE);
463 ret = scnprintf(buf, PAGE_SIZE, "%s\n", dd->boardname);
471 return scnprintf(buf, PAGE_SIZE, "%s", (char *)ib_qib_version);
482 return scnprintf(buf, PAGE_SIZE, "
[all...]
/drivers/staging/media/go7007/
H A Dsaa7134-go7007.c246 saa->bottom_dma, PAGE_SIZE, DMA_FROM_DEVICE);
247 go7007_parse_video_stream(go, saa->bottom, PAGE_SIZE);
251 saa->top_dma, PAGE_SIZE, DMA_FROM_DEVICE);
252 go7007_parse_video_stream(go, saa->top, PAGE_SIZE);
263 0, PAGE_SIZE, DMA_FROM_DEVICE);
268 0, PAGE_SIZE, DMA_FROM_DEVICE);
270 dma_unmap_page(&dev->pci->dev, saa->top_dma, PAGE_SIZE,
293 saa_writeb(SAA7134_TS_DMA0, (PAGE_SIZE >> 7) - 1);
336 dma_unmap_page(&dev->pci->dev, saa->top_dma, PAGE_SIZE,
338 dma_unmap_page(&dev->pci->dev, saa->bottom_dma, PAGE_SIZE,
[all...]
/drivers/block/aoe/
H A Daoeblk.c30 return snprintf(page, PAGE_SIZE,
45 return snprintf(page, PAGE_SIZE, "none\n");
46 return snprintf(page, PAGE_SIZE, "%pm\n", t->addr);
78 return snprintf(page, PAGE_SIZE, "none\n");
80 p += snprintf(p, PAGE_SIZE - (p-page), "%s%s",
82 p += snprintf(p, PAGE_SIZE - (p-page), "\n");
92 return snprintf(page, PAGE_SIZE, "0x%04x\n", (unsigned int) d->fw_ver);
/drivers/xen/
H A Dprivcmd.c85 if (size > PAGE_SIZE)
88 pageidx = PAGE_SIZE;
91 if (pageidx > PAGE_SIZE-size) {
131 BUG_ON(size > PAGE_SIZE);
133 pageidx = PAGE_SIZE;
137 if (pageidx > PAGE_SIZE-size) {
264 st->va += PAGE_SIZE;
H A Dxencomm.c40 offset = vaddr % PAGE_SIZE; /* handle partial pages */
41 chunksz = min(PAGE_SIZE - offset, bytes - recorded);
94 ((PAGE_SIZE << order) - sizeof(struct xencomm_desc)) /
/drivers/mfd/
H A Daat2870-core.c239 if (count >= PAGE_SIZE - 1)
244 count += snprintf(buf + count, PAGE_SIZE - count,
247 count += snprintf(buf + count, PAGE_SIZE - count,
250 if (count >= PAGE_SIZE - 1)
253 count += snprintf(buf + count, PAGE_SIZE - count, "\n");
254 if (count >= PAGE_SIZE - 1)
259 if (count >= PAGE_SIZE)
260 count = PAGE_SIZE - 1;
272 buf = kmalloc(PAGE_SIZE, GFP_KERNEL);
/drivers/mtd/devices/
H A Dblock2mtd.c60 max = page_address(page) + PAGE_SIZE;
64 memset(page_address(page), 0xff, PAGE_SIZE); local
104 int offset = from & (PAGE_SIZE-1);
108 if ((offset + len) > PAGE_SIZE)
109 cpylen = PAGE_SIZE - offset; // multiple pages
144 if ((offset+len) > PAGE_SIZE)
145 cpylen = PAGE_SIZE - offset; // multiple pages
269 dev->mtd.writebufsize = PAGE_SIZE;
363 size_t erase_size = PAGE_SIZE;
/drivers/video/
H A Dvfb.c58 adr += PAGE_SIZE;
59 size -= PAGE_SIZE;
75 adr += PAGE_SIZE;
76 size -= PAGE_SIZE;
431 if (remap_pfn_range(vma, start, page, PAGE_SIZE, PAGE_SHARED)) {
434 start += PAGE_SIZE;
435 pos += PAGE_SIZE;
436 if (size > PAGE_SIZE)
437 size -= PAGE_SIZE;
/drivers/infiniband/core/
H A Dumem.c46 ((PAGE_SIZE - offsetof(struct ib_umem_chunk, page_list)) / \
107 umem->page_size = PAGE_SIZE;
154 PAGE_SIZE / sizeof (struct page *)),
160 cur_base += ret * PAGE_SIZE;
180 sg_set_page(&chunk->page_list[i], page_list[i + off], PAGE_SIZE, 0);
/drivers/media/video/pvrusb2/
H A Dpvrusb2-sysfs.c98 return scnprintf(buf, PAGE_SIZE, "%s\n", name);
120 return scnprintf(buf, PAGE_SIZE, "%s\n", name);
133 return scnprintf(buf, PAGE_SIZE, "%ld\n", val);
146 return scnprintf(buf, PAGE_SIZE, "%ld\n", val);
161 buf, PAGE_SIZE - 1, &cnt);
180 buf, PAGE_SIZE - 1, &cnt);
199 buf, PAGE_SIZE - 1, &cnt);
218 PAGE_SIZE - bcnt, &ccnt);
221 if (bcnt >= PAGE_SIZE) break;
244 PAGE_SIZE
[all...]
/drivers/firmware/
H A Dmemmap.c205 return snprintf(buf, PAGE_SIZE, "0x%llx\n",
211 return snprintf(buf, PAGE_SIZE, "0x%llx\n",
217 return snprintf(buf, PAGE_SIZE, "%s\n", entry->type);
/drivers/gpu/drm/i915/
H A Di915_gem_debug.c157 for (page = 0; page < obj->size / PAGE_SIZE; page++) {
167 for (i = 0; i < PAGE_SIZE / 4; i++) {
176 page * PAGE_SIZE + i * 4),
/drivers/staging/media/easycap/
H A Deasycap.h123 #if (USB_2_0_MAXPACKETSIZE > PAGE_SIZE)
133 #define FIELD_BUFFER_SIZE (203 * PAGE_SIZE)
134 #define FRAME_BUFFER_SIZE (405 * PAGE_SIZE)
145 #define AUDIO_ISOC_BUFFER_SIZE (PAGE_SIZE << AUDIO_ISOC_ORDER)
342 [(FIELD_BUFFER_SIZE/PAGE_SIZE)];
344 [(FRAME_BUFFER_SIZE/PAGE_SIZE)];

Completed in 769 milliseconds

1234567891011>>