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()
48 data, size, hack); in nvif_object_ioctl()
66 u32 size; in nvif_object_sclass_get() local
69 size = sizeof(*args) + cnt * sizeof(args->sclass.oclass[0]); in nvif_object_sclass_get()
70 if (!(args = kmalloc(size, GFP_KERNEL))) in nvif_object_sclass_get()
77 ret = nvif_object_ioctl(object, args, size, NULL); in nvif_object_sclass_get()
103 nvif_object_rd(struct nvif_object *object, int size, u64 addr) in nvif_object_rd() argument
110 .rd.size = size, in nvif_object_rd()
122 nvif_object_wr(struct nvif_object *object, int size, u64 addr, u32 data) in nvif_object_wr() argument
129 .wr.size = size, in nvif_object_wr()
140 nvif_object_mthd(struct nvif_object *object, u32 mthd, void *data, u32 size) in nvif_object_mthd() argument
149 if (sizeof(*args) + size > sizeof(stack)) { in nvif_object_mthd()
150 if (!(args = kmalloc(sizeof(*args) + size, GFP_KERNEL))) in nvif_object_mthd()
160 memcpy(args->mthd.data, data, size); in nvif_object_mthd()
161 ret = nvif_object_ioctl(object, args, sizeof(*args) + size, NULL); in nvif_object_mthd()
162 memcpy(data, args->mthd.data, size); in nvif_object_mthd()
171 if (object->map.size) { in nvif_object_unmap()
182 object->map.size); in nvif_object_unmap()
187 object->map.size = 0; in nvif_object_unmap()
203 object->map.size = args.map.length; in nvif_object_map()
205 object->map.size); in nvif_object_map()
233 void *data, u32 size, struct nvif_object *object) in nvif_object_init() argument
245 object->map.size = 0; in nvif_object_init()
248 if (!(args = kmalloc(sizeof(*args) + size, GFP_KERNEL))) { in nvif_object_init()
262 memcpy(args->new.data, data, size); in nvif_object_init()
263 ret = nvif_object_ioctl(parent, args, sizeof(*args) + size, in nvif_object_init()
265 memcpy(data, args->new.data, size); in nvif_object_init()