Lines Matching refs:cdev_record

77 struct cdev_record {  struct
223 static struct cdev_record *
227 struct cdev_record *cdev_record; in thermal_debugfs_cdev_record_alloc() local
229 cdev_record = kzalloc(sizeof(*cdev_record), GFP_KERNEL); in thermal_debugfs_cdev_record_alloc()
230 if (!cdev_record) in thermal_debugfs_cdev_record_alloc()
233 cdev_record->id = id; in thermal_debugfs_cdev_record_alloc()
234 INIT_LIST_HEAD(&cdev_record->node); in thermal_debugfs_cdev_record_alloc()
235 list_add_tail(&cdev_record->node, in thermal_debugfs_cdev_record_alloc()
236 &lists[cdev_record->id % CDEVSTATS_HASH_SIZE]); in thermal_debugfs_cdev_record_alloc()
238 return cdev_record; in thermal_debugfs_cdev_record_alloc()
241 static struct cdev_record *
245 struct cdev_record *entry; in thermal_debugfs_cdev_record_find()
254 static struct cdev_record *
258 struct cdev_record *cdev_record; in thermal_debugfs_cdev_record_get() local
260 cdev_record = thermal_debugfs_cdev_record_find(thermal_dbg, lists, id); in thermal_debugfs_cdev_record_get()
261 if (cdev_record) in thermal_debugfs_cdev_record_get()
262 return cdev_record; in thermal_debugfs_cdev_record_get()
270 struct cdev_record *entry, *tmp; in thermal_debugfs_cdev_clear()
318 struct cdev_record *entry; in cdev_tt_seq_show()
354 struct cdev_record *entry; in cdev_dt_seq_show()
413 struct cdev_record *cdev_record; in thermal_debug_cdev_state_update() local
431 cdev_record = thermal_debugfs_cdev_record_get(thermal_dbg, in thermal_debug_cdev_state_update()
434 if (cdev_record) { in thermal_debug_cdev_state_update()
437 cdev_record->residency = ktime_add(cdev_record->residency, delta); in thermal_debug_cdev_state_update()
458 cdev_record = thermal_debugfs_cdev_record_get(thermal_dbg, in thermal_debug_cdev_state_update()
461 if (cdev_record) in thermal_debug_cdev_state_update()
462 cdev_record->count++; in thermal_debug_cdev_state_update()