/drivers/staging/lustre/lustre/libcfs/ |
H A D | prng.c | 106 * @size: size of passed in buffer 110 void cfs_get_random_bytes(void *buf, int size) argument 115 LASSERT(size >= 0); 117 rem = min((int)((unsigned long)buf & (sizeof(int) - 1)), size); 123 size -= rem; 126 while (size >= sizeof(int)) { 129 size -= sizeof(int); 133 if (size) { 136 memcpy(buf, &tmp, size); [all...] |
/drivers/staging/octeon/ |
H A D | ethernet-mem.c | 41 * @size: Size of the buffer needed for the pool 46 static int cvm_oct_fill_hw_skbuff(int pool, int size, int elements) argument 51 struct sk_buff *skb = dev_alloc_skb(size + 256); 57 cvmx_fpa_free(skb->data, pool, DONT_WRITEBACK(size / 128)); 66 * @size: Size of the buffer needed for the pool 69 static void cvm_oct_free_hw_skbuff(int pool, int size, int elements) argument 94 * @size: Size of each buffer in the pool 99 static int cvm_oct_fill_hw_memory(int pool, int size, int elements) argument 116 memory = kmalloc(size + 256, GFP_ATOMIC); 119 elements * size, poo 136 cvm_oct_free_hw_memory(int pool, int size, int elements) argument 159 cvm_oct_mem_fill_fpa(int pool, int size, int elements) argument 170 cvm_oct_mem_empty_fpa(int pool, int size, int elements) argument [all...] |
/drivers/usb/core/ |
H A D | buffer.c | 55 int i, size; local 62 size = pool_max[i]; 63 if (!size) 65 snprintf(name, sizeof name, "buffer-%d", size); 67 size, size, 0); 104 size_t size, 116 return kmalloc(size, mem_flags); 120 if (size <= pool_max[i]) 123 return dma_alloc_coherent(hcd->self.controller, size, dm 102 hcd_buffer_alloc( struct usb_bus *bus, size_t size, gfp_t mem_flags, dma_addr_t *dma ) argument 126 hcd_buffer_free( struct usb_bus *bus, size_t size, void *addr, dma_addr_t dma ) argument [all...] |
/drivers/usb/gadget/ |
H A D | epautoconf.c | 133 /* endpoint maxpacket size is an input parameter, except for bulk 180 int size = ep->maxpacket_limit; local 183 if (size > 64) 184 size = 64; 185 desc->wMaxPacketSize = cpu_to_le16(size); 209 * size must also be initialized. This is modified on 326 * size must also be initialized. This is modified on success.
|
/drivers/uwb/ |
H A D | driver.c | 87 const char *buf, size_t size) 95 return size; 85 beacon_timeout_ms_store(struct class *class, struct class_attribute *attr, const char *buf, size_t size) argument
|
H A D | scan.c | 118 const char *buf, size_t size) 131 return result < 0 ? result : size; 116 uwb_rc_scan_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t size) argument
|
/drivers/video/console/ |
H A D | softcursor.c | 27 unsigned int i, size, dsize, s_pitch, d_pitch; local 53 size = d_pitch * image->height + buf_align; 54 size &= ~buf_align; 55 dst = fb_get_buffer_offset(info, &info->pixmap, size);
|
/drivers/xen/xenfs/ |
H A D | xenstored.c | 12 size_t size, loff_t *off) 15 return simple_read_from_buffer(buf, size, off, str, strlen(str)); 35 size_t size = vma->vm_end - vma->vm_start; local 37 if ((size > PAGE_SIZE) || (vma->vm_pgoff != 0)) 42 size, vma->vm_page_prot)) 11 xsd_read(struct file *file, char __user *buf, size_t size, loff_t *off) argument
|
/drivers/char/hw_random/ |
H A D | pseries-rng.c | 31 size_t size = max < 8 ? max : 8; local 39 memcpy(data, buffer, size); 42 return size;
|
/drivers/dma/bestcomm/ |
H A D | sram.c | 62 /* Get address and size of the sram */ 74 bcom_sram->size = (unsigned int) size64; 77 if (!request_mem_region(bcom_sram->base_phys, bcom_sram->size, owner)) { 86 bcom_sram->base_virt = (void*) ioremap(bcom_sram->base_phys, bcom_sram->size); 91 owner, (long)bcom_sram->base_phys, bcom_sram->size ); 110 rh_attach_region(bcom_sram->rh, 0, bcom_sram->size); 127 release_mem_region(bcom_sram->base_phys, bcom_sram->size); 142 release_mem_region(bcom_sram->base_phys, bcom_sram->size); 149 void* bcom_sram_alloc(int size, int align, phys_addr_t *phys) argument 154 offset = rh_alloc_align(bcom_sram->rh, size, alig [all...] |
/drivers/fmc/ |
H A D | fmc-match.c | 16 void *fru_alloc(size_t size) argument 18 return kzalloc(size, GFP_KERNEL);
|
/drivers/gpu/drm/armada/ |
H A D | armada_fbdev.c | 43 int size, ret; local 53 size = mode.pitches[0] * mode.height; 54 obj = armada_gem_alloc_private_object(dev, size); 100 info->fix.smem_len = obj->obj.size; 101 info->screen_size = obj->obj.size;
|
/drivers/gpu/drm/ |
H A D | drm_cache.c | 46 const int size = boot_cpu_data.x86_clflush_size; local 52 for (i = 0; i < PAGE_SIZE; i += size)
|
H A D | drm_scatter.c | 41 static inline void *drm_vmalloc_dma(unsigned long size) argument 44 return __vmalloc(size, GFP_KERNEL, PAGE_KERNEL | _PAGE_NO_CACHE); 46 return vmalloc_32(size); 104 pages = (request->size + PAGE_SIZE - 1) / PAGE_SIZE; 105 DRM_DEBUG("size=%ld pages=%ld\n", request->size, pages);
|
/drivers/gpu/drm/exynos/ |
H A D | exynos_drm_gem.h | 33 * @size: size of allocated memory region. 45 unsigned long size; member in struct:exynos_drm_gem_buf 60 * @size: size requested from user, in bytes and this size is aligned 71 unsigned long size; member in struct:exynos_drm_gem_obj 83 unsigned long size); 88 unsigned long size); 91 * request gem object creation and buffer allocation as the size [all...] |
/drivers/gpu/drm/nouveau/core/core/ |
H A D | notify.c | 96 nvkm_notify_send(struct nvkm_notify *notify, void *data, u32 size) argument 102 BUG_ON(size != notify->size); 113 memcpy((void *)notify->data, data, size); 139 void *data, u32 size, u32 reply, 145 ret = event->func->ctor(object, data, size, notify); 146 if (ret == 0 && (ret = -EINVAL, notify->size == reply)) { 137 nvkm_notify_init(struct nouveau_object *object, struct nvkm_event *event, int (*func)(struct nvkm_notify *), bool work, void *data, u32 size, u32 reply, struct nvkm_notify *notify) argument
|
H A D | ramht.c | 61 if (co >= nv_gpuobj(ramht)->size) 93 u32 size, u32 align, struct nouveau_ramht **pramht) 100 &nouveau_ramht_oclass, 0, pargpu, size, 106 ramht->bits = order_base_2(nv_gpuobj(ramht)->size >> 3); 92 nouveau_ramht_new(struct nouveau_object *parent, struct nouveau_object *pargpu, u32 size, u32 align, struct nouveau_ramht **pramht) argument
|
/drivers/gpu/drm/nouveau/core/engine/disp/ |
H A D | nv84.c | 227 struct nouveau_oclass *oclass, void *data, u32 size, 226 nv84_disp_ctor(struct nouveau_object *parent, struct nouveau_object *engine, struct nouveau_oclass *oclass, void *data, u32 size, struct nouveau_object **pobject) argument
|
H A D | nve0.c | 223 struct nouveau_oclass *oclass, void *data, u32 size, 222 nve0_disp_ctor(struct nouveau_object *parent, struct nouveau_object *engine, struct nouveau_oclass *oclass, void *data, u32 size, struct nouveau_object **pobject) argument
|
/drivers/gpu/drm/nouveau/core/engine/fifo/ |
H A D | nv10.c | 60 struct nouveau_oclass *oclass, void *data, u32 size, 70 nv_ioctl(parent, "create channel dma size %d\n", size); 148 struct nouveau_oclass *oclass, void *data, u32 size, 58 nv10_fifo_chan_ctor(struct nouveau_object *parent, struct nouveau_object *engine, struct nouveau_oclass *oclass, void *data, u32 size, struct nouveau_object **pobject) argument 147 nv10_fifo_ctor(struct nouveau_object *parent, struct nouveau_object *engine, struct nouveau_oclass *oclass, void *data, u32 size, struct nouveau_object **pobject) argument
|
/drivers/gpu/drm/nouveau/core/engine/graph/ |
H A D | nv30.c | 46 struct nouveau_oclass *oclass, void *data, u32 size, 134 struct nouveau_oclass *oclass, void *data, u32 size, 44 nv30_graph_context_ctor(struct nouveau_object *parent, struct nouveau_object *engine, struct nouveau_oclass *oclass, void *data, u32 size, struct nouveau_object **pobject) argument 133 nv30_graph_ctor(struct nouveau_object *parent, struct nouveau_object *engine, struct nouveau_oclass *oclass, void *data, u32 size, struct nouveau_object **pobject) argument
|
/drivers/gpu/drm/nouveau/core/include/core/ |
H A D | gpuobj.h | 24 u32 size; member in struct:nouveau_gpuobj 44 struct nouveau_object *, u32 size, u32 align, 49 u32 size, u32 align, u32 flags,
|
/drivers/gpu/drm/nouveau/core/subdev/bus/ |
H A D | nv04.c | 67 struct nouveau_oclass *oclass, void *data, u32 size, 66 nv04_bus_ctor(struct nouveau_object *parent, struct nouveau_object *engine, struct nouveau_oclass *oclass, void *data, u32 size, struct nouveau_object **pobject) argument
|
/drivers/gpu/drm/nouveau/core/subdev/fb/ |
H A D | nv04.c | 58 struct nouveau_oclass *oclass, void *data, u32 size, 57 nv04_fb_ctor(struct nouveau_object *parent, struct nouveau_object *engine, struct nouveau_oclass *oclass, void *data, u32 size, struct nouveau_object **pobject) argument
|
/drivers/gpu/drm/nouveau/core/subdev/fuse/ |
H A D | g80.c | 55 struct nouveau_oclass *oclass, void *data, u32 size, 54 g80_fuse_ctor(struct nouveau_object *parent, struct nouveau_object *engine, struct nouveau_oclass *oclass, void *data, u32 size, struct nouveau_object **pobject) argument
|