Lines Matching refs:ke
427 struct kobj_engine *ke; in kobj_engine() local
429 ke = kzalloc(sizeof(*ke), GFP_KERNEL); in kobj_engine()
430 if (!ke) in kobj_engine()
433 kobject_init(&ke->base, &kobj_engine_type); in kobj_engine()
434 ke->engine = engine; in kobj_engine()
436 if (kobject_add(&ke->base, dir, "%s", engine->name)) { in kobj_engine()
437 kobject_put(&ke->base); in kobj_engine()
442 return &ke->base; in kobj_engine()
455 struct kobj_engine *ke; in add_defaults() local
457 ke = kzalloc(sizeof(*ke), GFP_KERNEL); in add_defaults()
458 if (!ke) in add_defaults()
461 kobject_init(&ke->base, &kobj_engine_type); in add_defaults()
462 ke->engine = parent->engine; in add_defaults()
464 if (kobject_add(&ke->base, &parent->base, "%s", ".defaults")) { in add_defaults()
465 kobject_put(&ke->base); in add_defaults()
469 if (sysfs_create_files(&ke->base, files)) in add_defaults()
472 if (intel_engine_has_timeslices(ke->engine) && in add_defaults()
473 sysfs_create_file(&ke->base, ×lice_duration_def.attr)) in add_defaults()
476 if (intel_engine_has_preempt_reset(ke->engine) && in add_defaults()
477 sysfs_create_file(&ke->base, &preempt_timeout_def.attr)) in add_defaults()