/drivers/mtd/tests/ |
H A D | mtd_test.h | 9 int mtdtest_read(struct mtd_info *mtd, loff_t addr, size_t size, void *buf); 10 int mtdtest_write(struct mtd_info *mtd, loff_t addr, size_t size,
|
/drivers/gpu/drm/ |
H A D | drm_memory.c | 53 static void *agp_remap(unsigned long offset, unsigned long size, argument 57 PAGE_ALIGN(size) / PAGE_SIZE; 63 size = PAGE_ALIGN(size); 72 (offset + size)) 115 static inline void *agp_remap(unsigned long offset, unsigned long size, argument 126 map->handle = agp_remap(map->offset, map->size, dev); 128 map->handle = ioremap(map->offset, map->size); 135 map->handle = agp_remap(map->offset, map->size, dev); 137 map->handle = ioremap_wc(map->offset, map->size); [all...] |
/drivers/infiniband/hw/ipath/ |
H A D | ipath_dma.c | 56 void *cpu_addr, size_t size, 64 u64 addr, size_t size, 73 size_t size, 80 if (offset + size > PAGE_SIZE) { 95 u64 addr, size_t size, 135 size_t size, 142 size_t size, 147 static void *ipath_dma_alloc_coherent(struct ib_device *dev, size_t size, argument 153 p = alloc_pages(flag, get_order(size)); 161 static void ipath_dma_free_coherent(struct ib_device *dev, size_t size, argument 55 ipath_dma_map_single(struct ib_device *dev, void *cpu_addr, size_t size, enum dma_data_direction direction) argument 63 ipath_dma_unmap_single(struct ib_device *dev, u64 addr, size_t size, enum dma_data_direction direction) argument 70 ipath_dma_map_page(struct ib_device *dev, struct page *page, unsigned long offset, size_t size, enum dma_data_direction direction) argument 94 ipath_dma_unmap_page(struct ib_device *dev, u64 addr, size_t size, enum dma_data_direction direction) argument 133 ipath_sync_single_for_cpu(struct ib_device *dev, u64 addr, size_t size, enum dma_data_direction dir) argument 140 ipath_sync_single_for_device(struct ib_device *dev, u64 addr, size_t size, enum dma_data_direction dir) argument [all...] |
H A D | ipath_mmap.c | 93 unsigned long size = vma->vm_end - vma->vm_start; local 109 if (size > ip->size) 132 u32 size, 141 size = PAGE_ALIGN(size); 147 dev->mmap_offset += size; 151 ip->size = size; 162 u32 size, voi 131 ipath_create_mmap_info(struct ipath_ibdev *dev, u32 size, struct ib_ucontext *context, void *obj) argument 160 ipath_update_mmap_info(struct ipath_ibdev *dev, struct ipath_mmap_info *ip, u32 size, void *obj) argument [all...] |
/drivers/infiniband/hw/qib/ |
H A D | qib_dma.c | 54 size_t size, enum dma_data_direction direction) 60 static void qib_dma_unmap_single(struct ib_device *dev, u64 addr, size_t size, argument 67 unsigned long offset, size_t size, 74 if (offset + size > PAGE_SIZE) { 88 static void qib_dma_unmap_page(struct ib_device *dev, u64 addr, size_t size, argument 127 size_t size, enum dma_data_direction dir) 132 size_t size, 137 static void *qib_dma_alloc_coherent(struct ib_device *dev, size_t size, argument 143 p = alloc_pages(flag, get_order(size)); 151 static void qib_dma_free_coherent(struct ib_device *dev, size_t size, argument 53 qib_dma_map_single(struct ib_device *dev, void *cpu_addr, size_t size, enum dma_data_direction direction) argument 66 qib_dma_map_page(struct ib_device *dev, struct page *page, unsigned long offset, size_t size, enum dma_data_direction direction) argument 126 qib_sync_single_for_cpu(struct ib_device *dev, u64 addr, size_t size, enum dma_data_direction dir) argument 131 qib_sync_single_for_device(struct ib_device *dev, u64 addr, size_t size, enum dma_data_direction dir) argument [all...] |
H A D | qib_mmap.c | 93 unsigned long size = vma->vm_end - vma->vm_start; local 109 if (size > ip->size) 132 u32 size, 141 size = PAGE_ALIGN(size); 147 dev->mmap_offset += size; 151 ip->size = size; 161 u32 size, voi 131 qib_create_mmap_info(struct qib_ibdev *dev, u32 size, struct ib_ucontext *context, void *obj) argument 160 qib_update_mmap_info(struct qib_ibdev *dev, struct qib_mmap_info *ip, u32 size, void *obj) argument [all...] |
/drivers/gpu/drm/msm/ |
H A D | msm_ringbuffer.h | 25 int size; member in struct:msm_ringbuffer 30 struct msm_ringbuffer *msm_ringbuffer_new(struct msm_gpu *gpu, int size);
|
/drivers/gpu/drm/nouveau/ |
H A D | nouveau_nvif.c | 43 nvkm_client_unmap(void *priv, void __iomem *ptr, u32 size) argument 49 nvkm_client_map(void *priv, u64 handle, u32 size) argument 51 return ioremap(handle, size); 55 nvkm_client_ioctl(void *priv, bool super, void *data, u32 size, void **hack) argument 57 return nvkm_ioctl(priv, super, data, size, hack); 82 nvkm_client_ntfy(const void *header, u32 length, const void *data, u32 size) argument 98 return nvif_notify(header, length, data, size); 100 return usif_notify(header, length, data, size);
|
/drivers/media/usb/usbtv/ |
H A D | usbtv-core.c | 33 int usbtv_set_regs(struct usbtv *usbtv, const u16 regs[][2], int size) argument 39 for (i = 0; i < size; i++) { 57 int size; local 67 /* Packet size is split into 11 bits of base size and count of 69 size = usb_endpoint_maxp(&intf->altsetting[1].endpoint[0].desc); 70 size = (size & 0x07ff) * (((size & 0x1800) >> 11) + 1); 79 usbtv->iso_size = size; [all...] |
/drivers/net/wireless/rt2x00/ |
H A D | rt2x00firmware.c | 57 if (!fw || !fw->size || !fw->data) { 64 fw->data[fw->size - 4], fw->data[fw->size - 3]); 67 fw->data[fw->size - 4], fw->data[fw->size - 3]); 69 retval = rt2x00dev->ops->lib->check_firmware(rt2x00dev, fw->data, fw->size); 78 fw->size); 113 rt2x00dev->fw->size);
|
/drivers/scsi/ |
H A D | gdth_proc.h | 14 static char *gdth_ioctl_alloc(gdth_ha_str *ha, int size, int scratch, 16 static void gdth_ioctl_free(gdth_ha_str *ha, int size, char *buf, u64 paddr);
|
/drivers/rapidio/ |
H A D | rio-sysfs.c | 130 unsigned int size = 0x100; local 136 size = RIO_MAINT_SPACE_SZ; 138 if (off >= size) 140 if (off + count > size) { 141 size -= off; 142 count = size; 144 size = count; 147 if ((off & 1) && size) { 152 size--; 155 if ((off & 3) && size > 202 unsigned int size = count; local [all...] |
/drivers/staging/android/ion/ |
H A D | ion_carveout_heap.c | 35 unsigned long size, 40 unsigned long offset = gen_pool_alloc(carveout_heap->pool, size); 49 unsigned long size) 56 gen_pool_free(carveout_heap->pool, addr, size); 68 *len = buffer->size; 74 unsigned long size, unsigned long align, 91 paddr = ion_carveout_allocate(heap, size, align); 97 sg_set_page(table->sgl, pfn_to_page(PFN_DOWN(paddr)), size, 0); 122 ion_carveout_free(heap, paddr, buffer->size); 155 size_t size; local 34 ion_carveout_allocate(struct ion_heap *heap, unsigned long size, unsigned long align) argument 48 ion_carveout_free(struct ion_heap *heap, ion_phys_addr_t addr, unsigned long size) argument 72 ion_carveout_heap_allocate(struct ion_heap *heap, struct ion_buffer *buffer, unsigned long size, unsigned long align, unsigned long flags) argument [all...] |
/drivers/uwb/i1480/dfu/ |
H A D | phy.c | 41 * @size: Size of the data array 52 int i1480_mpi_write(struct i1480 *i1480, const void *data, size_t size) argument 58 BUG_ON(size > 480); 62 cmd->size = cpu_to_le16(size); 63 memcpy(cmd->data, data, size); 66 result = i1480_cmd(i1480, "MPI-WRITE", sizeof(*cmd) + size, sizeof(*reply)); 85 * @size: Size of the data read array 100 int i1480_mpi_read(struct i1480 *i1480, u8 *data, u16 srcaddr, size_t size) argument 110 BUG_ON(size > (i148 [all...] |
/drivers/media/dvb-core/ |
H A D | dvb_ringbuffer.c | 46 rbuf->size=len; 69 free += rbuf->size; 81 avail += rbuf->size; 116 split = (rbuf->pread + len > rbuf->size) ? rbuf->size - rbuf->pread : 0; 127 rbuf->pread = (rbuf->pread + todo) % rbuf->size; 137 split = (rbuf->pread + len > rbuf->size) ? rbuf->size - rbuf->pread : 0; 146 rbuf->pread = (rbuf->pread + todo) % rbuf->size; 155 split = (rbuf->pwrite + len > rbuf->size) [all...] |
/drivers/gpu/drm/nouveau/core/subdev/bios/ |
H A D | base.c | 35 nvbios_checksum(const u8 *data, int size) argument 38 while (size--) 44 nvbios_findstr(const u8 *data, int size, const char *str, int len) argument 48 for (i = 0; i <= (size - len); i++) { 66 int size; local 74 data = of_get_property(dn, "NVDA,BMP", &size); 75 if (data && size) { 76 bios->size = size; 77 bios->data = kmalloc(bios->size, GFP_KERNE 265 size_t size; local 287 size_t size; local 324 u32 size; member in struct:methods 460 nouveau_bios_ctor(struct nouveau_object *parent, struct nouveau_object *engine, struct nouveau_oclass *oclass, void *data, u32 size, struct nouveau_object **pobject) argument [all...] |
/drivers/gpu/drm/radeon/ |
H A D | uvd_v2_2.c | 72 uint32_t chip_id, size; local 85 size = RADEON_GPU_PAGE_ALIGN(rdev->uvd_fw->size + 4) >> 3; 87 WREG32(UVD_VCPU_CACHE_SIZE0, size); 89 addr += size; 90 size = RADEON_UVD_STACK_SIZE >> 3; 92 WREG32(UVD_VCPU_CACHE_SIZE1, size); 94 addr += size; 95 size = RADEON_UVD_HEAP_SIZE >> 3; 97 WREG32(UVD_VCPU_CACHE_SIZE2, size); [all...] |
H A D | radeon_atpx_handler.c | 40 u16 size; /* structure size in bytes (includes size field) */ member in struct:atpx_verify_interface 46 u16 size; /* structure size in bytes (includes size field) */ member in struct:atpx_px_params 52 u16 size; member in struct:atpx_power_control 57 u16 size; member in struct:atpx_mux 151 size_t size; local 160 size 201 size_t size; local [all...] |
H A D | radeon_benchmark.c | 35 static int radeon_benchmark_do_move(struct radeon_device *rdev, unsigned size, argument 49 size / RADEON_GPU_PAGE_SIZE, 54 size / RADEON_GPU_PAGE_SIZE, 74 static void radeon_benchmark_log_results(int n, unsigned size, argument 79 unsigned int throughput = (n * (size >> 10)) / time; 82 kind, n, size >> 10, sdomain, ddomain, time, 86 static void radeon_benchmark_move(struct radeon_device *rdev, unsigned size, argument 96 r = radeon_bo_create(rdev, size, PAGE_SIZE, true, sdomain, 0, NULL, NULL, &sobj); 108 r = radeon_bo_create(rdev, size, PAGE_SIZE, true, ddomain, 0, NULL, NULL, &dobj); 122 time = radeon_benchmark_do_move(rdev, size, sadd [all...] |
/drivers/usb/host/ |
H A D | ehci-dbg.c | 418 unsigned size = *sizep; local 438 temp = scnprintf (next, size, 448 size -= temp; 466 temp = snprintf (next, size, 478 if (size < temp) 479 temp = size; 480 size -= temp; 482 if (temp == size) 486 temp = snprintf (next, size, "\n"); 487 if (size < tem 502 unsigned temp, size; local 541 unsigned temp, size; local 626 unsigned temp, size, seen_count; local 783 unsigned temp, size, i; local [all...] |
/drivers/acpi/acpica/ |
H A D | uttrack.c | 70 acpi_size size, 116 * PARAMETERS: size - Size of the allocation 127 void *acpi_ut_allocate_and_track(acpi_size size, argument 133 /* Check for an inadvertent size of zero bytes */ 135 if (!size) { 138 size = 1; 142 acpi_os_allocate(size + sizeof(struct acpi_debug_mem_header)); 148 "Could not allocate size %u", (u32)size)); 153 status = acpi_ut_track_allocation(allocation, size, 188 acpi_ut_allocate_zeroed_and_track(acpi_size size, u32 component, const char *module, u32 line) argument 365 acpi_ut_track_allocation(struct acpi_debug_mem_block *allocation, acpi_size size, u8 alloc_type, u32 component, const char *module, u32 line) argument [all...] |
/drivers/net/wireless/ath/wil6210/ |
H A D | ioctl.c | 28 uint32_t size, enum wil_memio_op op) 49 if (size >= WIL6210_MEM_SIZE - off) { 51 "off = 0x%08x size = 0x%08x\n", off, size); 112 wil_dbg_ioctl(wil, "IO: addr = 0x%08x size = 0x%08x op = 0x%08x\n", 113 io.addr, io.size, io.op); 115 /* size */ 116 if (io.size % 4) { 117 wil_err(wil, "size is not multiple of 4: 0x%08x\n", io.size); 27 wil_ioc_addr(struct wil6210_priv *wil, uint32_t addr, uint32_t size, enum wil_memio_op op) argument [all...] |
/drivers/mtd/maps/ |
H A D | netsc520.c | 53 * single flash device into. If the size if zero we use up to the end of the 59 .size = 0xc0000 64 .size = 0x40000 69 .size = 0xe80000 74 .size = 0x80000 84 .size = WINDOW_SIZE, 96 (unsigned long long)netsc520_map.size, 98 netsc520_map.virt = ioremap_nocache(netsc520_map.phys, netsc520_map.size);
|
/drivers/media/usb/pwc/ |
H A D | pwc-ctrl.c | 153 static int set_video_mode_Nala(struct pwc_device *pdev, int size, int pixfmt, argument 178 if (size < 0 || size > PSZ_CIF) 182 else if (size > PSZ_QCIF && frames > 15) 188 pEntry = &Nala_table[size][fps]; 205 pdev->width = pwc_image_sizes[size][0]; 206 pdev->height = pwc_image_sizes[size][1]; 228 static int set_video_mode_Timon(struct pwc_device *pdev, int size, int pixfmt, argument 234 if (size >= PSZ_MAX || *compression < 0 || *compression > 3) 238 else if (size 279 set_video_mode_Kiara(struct pwc_device *pdev, int size, int pixfmt, int frames, int *compression, int send_to_cam) argument 333 int ret, size; local 359 pwc_get_fps_Nala(struct pwc_device *pdev, unsigned int index, unsigned int size) argument 371 pwc_get_fps_Kiara(struct pwc_device *pdev, unsigned int index, unsigned int size) argument 383 pwc_get_fps_Timon(struct pwc_device *pdev, unsigned int index, unsigned int size) argument 395 pwc_get_fps(struct pwc_device *pdev, unsigned int index, unsigned int size) argument [all...] |
/drivers/isdn/hardware/mISDN/ |
H A D | iohelper.h | 31 typedef void (fifo_func)(void *hwp, u8 offset, u8 *datap, int size); 47 static void ReadFiFo##name##_IO(void *p, u8 off, u8 *dp, int size) { \ 49 insb(hw->ap.port + off, dp, size); \ 51 static void WriteFiFo##name##_IO(void *p, u8 off, u8 *dp, int size) { \ 53 outsb(hw->ap.port + off, dp, size); \ 67 static void ReadFiFo##name##_IND(void *p, u8 off, u8 *dp, int size) { \ 70 insb(hw->ap.port, dp, size); \ 72 static void WriteFiFo##name##_IND(void *p, u8 off, u8 *dp, int size) { \ 75 outsb(hw->ap.port, dp, size); \ 87 static void ReadFiFo##name##_MIO(void *p, u8 off, u8 *dp, int size) { \ [all...] |