Lines Matching refs:kobj
55 container_of(kobj, struct cache_stats, kobj); in SHOW()
97 int ret = kobject_add(&acc->total.kobj, parent, in bch_cache_accounting_add_kobjs()
99 ret = ret ?: kobject_add(&acc->five_minute.kobj, parent, in bch_cache_accounting_add_kobjs()
101 ret = ret ?: kobject_add(&acc->hour.kobj, parent, in bch_cache_accounting_add_kobjs()
103 ret = ret ?: kobject_add(&acc->day.kobj, parent, in bch_cache_accounting_add_kobjs()
120 kobject_put(&acc->total.kobj); in bch_cache_accounting_destroy()
121 kobject_put(&acc->five_minute.kobj); in bch_cache_accounting_destroy()
122 kobject_put(&acc->hour.kobj); in bch_cache_accounting_destroy()
123 kobject_put(&acc->day.kobj); in bch_cache_accounting_destroy()
225 kobject_init(&acc->total.kobj, &bch_stats_ktype); in bch_cache_accounting_init()
226 kobject_init(&acc->five_minute.kobj, &bch_stats_ktype); in bch_cache_accounting_init()
227 kobject_init(&acc->hour.kobj, &bch_stats_ktype); in bch_cache_accounting_init()
228 kobject_init(&acc->day.kobj, &bch_stats_ktype); in bch_cache_accounting_init()