Lines Matching refs:size

31 nvif_object_ioctl(struct nvif_object *object, void *data, u32 size, void **hack)  in nvif_object_ioctl()  argument
38 if (size >= sizeof(*args) && args->v0.version == 0) { in nvif_object_ioctl()
50 return client->driver->ioctl(client->base.priv, client->super, data, size, hack); in nvif_object_ioctl()
60 u32 size = count * sizeof(args->sclass.oclass[0]); in nvif_object_sclass() local
63 if (!(args = kmalloc(sizeof(*args) + size, GFP_KERNEL))) in nvif_object_sclass()
70 memcpy(args->sclass.oclass, oclass, size); in nvif_object_sclass()
71 ret = nvif_object_ioctl(object, args, sizeof(*args) + size, NULL); in nvif_object_sclass()
73 memcpy(oclass, args->sclass.oclass, size); in nvif_object_sclass()
79 nvif_object_rd(struct nvif_object *object, int size, u64 addr) in nvif_object_rd() argument
86 .rd.size = size, in nvif_object_rd()
98 nvif_object_wr(struct nvif_object *object, int size, u64 addr, u32 data) in nvif_object_wr() argument
105 .wr.size = size, in nvif_object_wr()
116 nvif_object_mthd(struct nvif_object *object, u32 mthd, void *data, u32 size) in nvif_object_mthd() argument
125 if (sizeof(*args) + size > sizeof(stack)) { in nvif_object_mthd()
126 if (!(args = kmalloc(sizeof(*args) + size, GFP_KERNEL))) in nvif_object_mthd()
136 memcpy(args->mthd.data, data, size); in nvif_object_mthd()
137 ret = nvif_object_ioctl(object, args, sizeof(*args) + size, NULL); in nvif_object_mthd()
138 memcpy(data, args->mthd.data, size); in nvif_object_mthd()
147 if (object->map.size) { in nvif_object_unmap()
158 object->map.size); in nvif_object_unmap()
163 object->map.size = 0; in nvif_object_unmap()
179 object->map.size = args.map.length; in nvif_object_map()
181 object->map.size); in nvif_object_map()
209 object->size = 0; in nvif_object_fini()
219 u32 handle, u32 oclass, void *data, u32 size, in nvif_object_init() argument
232 object->size = 0; in nvif_object_init()
235 object->map.size = 0; in nvif_object_init()
238 if (!(ctor = kmalloc(sizeof(*ctor) + size, GFP_KERNEL))) { in nvif_object_init()
243 object->size = size; in nvif_object_init()
244 memcpy(object->data, data, size); in nvif_object_init()
255 object->size, &object->priv); in nvif_object_init()
272 void *data, u32 size, struct nvif_object **pobject) in nvif_object_new() argument
277 oclass, data, size, object); in nvif_object_new()