Lines Matching refs:ctor
189 struct ctor { struct
197 struct ctor *ctor = container_of(object->data, typeof(*ctor), new.data); in nvif_object_fini() argument
211 kfree(ctor); in nvif_object_fini()
222 struct ctor *ctor; in nvif_object_init() local
238 if (!(ctor = kmalloc(sizeof(*ctor) + size, GFP_KERNEL))) { in nvif_object_init()
242 object->data = ctor->new.data; in nvif_object_init()
246 ctor->ioctl.version = 0; in nvif_object_init()
247 ctor->ioctl.type = NVIF_IOCTL_V0_NEW; in nvif_object_init()
248 ctor->new.version = 0; in nvif_object_init()
249 ctor->new.route = NVIF_IOCTL_V0_ROUTE_NVIF; in nvif_object_init()
250 ctor->new.token = (unsigned long)(void *)object; in nvif_object_init()
251 ctor->new.handle = handle; in nvif_object_init()
252 ctor->new.oclass = oclass; in nvif_object_init()
254 ret = nvif_object_ioctl(parent, ctor, sizeof(*ctor) + in nvif_object_init()