Lines Matching refs:dump_obj
20 struct dump_obj { struct
28 #define to_dump_obj(x) container_of(x, struct dump_obj, kobj) argument
32 ssize_t (*show)(struct dump_obj *dump, struct dump_attribute *attr,
34 ssize_t (*store)(struct dump_obj *dump, struct dump_attribute *attr,
39 static ssize_t dump_id_show(struct dump_obj *dump_obj, in dump_id_show() argument
43 return sprintf(buf, "0x%x\n", dump_obj->id); in dump_id_show()
56 static ssize_t dump_type_show(struct dump_obj *dump_obj, in dump_type_show() argument
61 return sprintf(buf, "0x%x %s\n", dump_obj->type, in dump_type_show()
62 dump_type_to_string(dump_obj->type)); in dump_type_show()
65 static ssize_t dump_ack_show(struct dump_obj *dump_obj, in dump_ack_show() argument
86 static ssize_t dump_ack_store(struct dump_obj *dump_obj, in dump_ack_store() argument
95 if (sysfs_remove_file_self(&dump_obj->kobj, &attr->attr)) { in dump_ack_store()
96 dump_send_ack(dump_obj->id); in dump_ack_store()
97 kobject_put(&dump_obj->kobj); in dump_ack_store()
113 static ssize_t init_dump_show(struct dump_obj *dump_obj, in init_dump_show() argument
131 static ssize_t init_dump_store(struct dump_obj *dump_obj, in init_dump_store() argument
164 struct dump_obj *dump; in dump_attr_show()
180 struct dump_obj *dump; in dump_attr_store()
198 struct dump_obj *dump; in dump_release()
243 static int64_t dump_read_data(struct dump_obj *dump) in dump_read_data()
294 struct dump_obj *dump = to_dump_obj(kobj); in dump_attr_read()
329 struct dump_obj *dump; in create_dump_obj()