• Home
  • Raw
  • Download

Lines Matching refs:kobj

19 static struct intel_engine_cs *kobj_to_engine(struct kobject *kobj)  in kobj_to_engine()  argument
21 return container_of(kobj, struct kobj_engine, base)->engine; in kobj_to_engine()
25 name_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) in name_show() argument
27 return sprintf(buf, "%s\n", kobj_to_engine(kobj)->name); in name_show()
34 class_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) in class_show() argument
36 return sprintf(buf, "%d\n", kobj_to_engine(kobj)->uabi_class); in class_show()
43 inst_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) in inst_show() argument
45 return sprintf(buf, "%d\n", kobj_to_engine(kobj)->uabi_instance); in inst_show()
52 mmio_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) in mmio_show() argument
54 return sprintf(buf, "0x%x\n", kobj_to_engine(kobj)->mmio_base); in mmio_show()
127 caps_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) in caps_show() argument
129 struct intel_engine_cs *engine = kobj_to_engine(kobj); in caps_show()
138 all_caps_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) in all_caps_show() argument
140 return __caps_show(kobj_to_engine(kobj), -1, buf, false); in all_caps_show()
147 max_spin_store(struct kobject *kobj, struct kobj_attribute *attr, in max_spin_store() argument
150 struct intel_engine_cs *engine = kobj_to_engine(kobj); in max_spin_store()
184 max_spin_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) in max_spin_show() argument
186 struct intel_engine_cs *engine = kobj_to_engine(kobj); in max_spin_show()
195 max_spin_default(struct kobject *kobj, struct kobj_attribute *attr, char *buf) in max_spin_default() argument
197 struct intel_engine_cs *engine = kobj_to_engine(kobj); in max_spin_default()
206 timeslice_store(struct kobject *kobj, struct kobj_attribute *attr, in timeslice_store() argument
209 struct intel_engine_cs *engine = kobj_to_engine(kobj); in timeslice_store()
237 timeslice_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) in timeslice_show() argument
239 struct intel_engine_cs *engine = kobj_to_engine(kobj); in timeslice_show()
248 timeslice_default(struct kobject *kobj, struct kobj_attribute *attr, char *buf) in timeslice_default() argument
250 struct intel_engine_cs *engine = kobj_to_engine(kobj); in timeslice_default()
259 stop_store(struct kobject *kobj, struct kobj_attribute *attr, in stop_store() argument
262 struct intel_engine_cs *engine = kobj_to_engine(kobj); in stop_store()
287 stop_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) in stop_show() argument
289 struct intel_engine_cs *engine = kobj_to_engine(kobj); in stop_show()
298 stop_default(struct kobject *kobj, struct kobj_attribute *attr, char *buf) in stop_default() argument
300 struct intel_engine_cs *engine = kobj_to_engine(kobj); in stop_default()
309 preempt_timeout_store(struct kobject *kobj, struct kobj_attribute *attr, in preempt_timeout_store() argument
312 struct intel_engine_cs *engine = kobj_to_engine(kobj); in preempt_timeout_store()
341 preempt_timeout_show(struct kobject *kobj, struct kobj_attribute *attr, in preempt_timeout_show() argument
344 struct intel_engine_cs *engine = kobj_to_engine(kobj); in preempt_timeout_show()
353 preempt_timeout_default(struct kobject *kobj, struct kobj_attribute *attr, in preempt_timeout_default() argument
356 struct intel_engine_cs *engine = kobj_to_engine(kobj); in preempt_timeout_default()
365 heartbeat_store(struct kobject *kobj, struct kobj_attribute *attr, in heartbeat_store() argument
368 struct intel_engine_cs *engine = kobj_to_engine(kobj); in heartbeat_store()
397 heartbeat_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) in heartbeat_show() argument
399 struct intel_engine_cs *engine = kobj_to_engine(kobj); in heartbeat_show()
408 heartbeat_default(struct kobject *kobj, struct kobj_attribute *attr, char *buf) in heartbeat_default() argument
410 struct intel_engine_cs *engine = kobj_to_engine(kobj); in heartbeat_default()
418 static void kobj_engine_release(struct kobject *kobj) in kobj_engine_release() argument
420 kfree(kobj); in kobj_engine_release()
506 dir = kobject_create_and_add("engine", &kdev->kobj); in intel_engines_add_sysfs()
511 struct kobject *kobj; in intel_engines_add_sysfs() local
513 kobj = kobj_engine(dir, engine); in intel_engines_add_sysfs()
514 if (!kobj) in intel_engines_add_sysfs()
517 if (sysfs_create_files(kobj, files)) in intel_engines_add_sysfs()
521 sysfs_create_file(kobj, &timeslice_duration_attr.attr)) in intel_engines_add_sysfs()
525 sysfs_create_file(kobj, &preempt_timeout_attr.attr)) in intel_engines_add_sysfs()
528 add_defaults(container_of(kobj, struct kobj_engine, base)); in intel_engines_add_sysfs()
532 kobject_put(kobj); in intel_engines_add_sysfs()