Lines Matching refs:keclass
506 struct kobj_eclass *keclass; in kobj_xe_hw_engine_class() local
509 keclass = kzalloc(sizeof(*keclass), GFP_KERNEL); in kobj_xe_hw_engine_class()
510 if (!keclass) in kobj_xe_hw_engine_class()
513 kobject_init(&keclass->base, &kobj_xe_hw_engine_type); in kobj_xe_hw_engine_class()
514 if (kobject_add(&keclass->base, parent, "%s", name)) { in kobj_xe_hw_engine_class()
515 kobject_put(&keclass->base); in kobj_xe_hw_engine_class()
518 keclass->xe = xe; in kobj_xe_hw_engine_class()
521 &keclass->base); in kobj_xe_hw_engine_class()
525 return keclass; in kobj_xe_hw_engine_class()
651 struct kobj_eclass *keclass; in xe_hw_engine_class_sysfs_init() local
667 keclass = kobj_xe_hw_engine_class(xe, kobj, name); in xe_hw_engine_class_sysfs_init()
668 if (!keclass) { in xe_hw_engine_class_sysfs_init()
673 keclass->eclass = hwe->eclass; in xe_hw_engine_class_sysfs_init()
674 err = xe_add_hw_engine_class_defaults(xe, &keclass->base); in xe_hw_engine_class_sysfs_init()
678 err = sysfs_create_files(&keclass->base, files); in xe_hw_engine_class_sysfs_init()