Home
last modified time | relevance | path

Searched refs:kobj_stats (Results 1 – 7 of 7) sorted by relevance

/Linux-v5.10/drivers/infiniband/ulp/rtrs/
Drtrs-srv-sysfs.c221 stats = container_of(kobj, struct rtrs_srv_stats, kobj_stats); in rtrs_srv_sess_stats_release()
236 err = kobject_init_and_add(&sess->stats->kobj_stats, &ktype_stats, in rtrs_srv_create_stats_files()
242 err = sysfs_create_group(&sess->stats->kobj_stats, in rtrs_srv_create_stats_files()
252 kobject_del(&sess->stats->kobj_stats); in rtrs_srv_create_stats_files()
253 kobject_put(&sess->stats->kobj_stats); in rtrs_srv_create_stats_files()
306 kobject_del(&sess->stats->kobj_stats); in rtrs_srv_destroy_sess_files()
307 kobject_put(&sess->stats->kobj_stats); in rtrs_srv_destroy_sess_files()
Drtrs-clt-sysfs.c37 stats = container_of(kobj, struct rtrs_clt_stats, kobj_stats); in rtrs_clt_sess_stats_release()
418 err = kobject_init_and_add(&sess->stats->kobj_stats, &ktype_stats, in rtrs_clt_create_sess_files()
425 err = sysfs_create_group(&sess->stats->kobj_stats, in rtrs_clt_create_sess_files()
435 kobject_del(&sess->stats->kobj_stats); in rtrs_clt_create_sess_files()
436 kobject_put(&sess->stats->kobj_stats); in rtrs_clt_create_sess_files()
449 kobject_del(&sess->stats->kobj_stats); in rtrs_clt_destroy_sess_files()
450 kobject_put(&sess->stats->kobj_stats); in rtrs_clt_destroy_sess_files()
Drtrs-pri.h371 type *stats = container_of(kobj, type, kobj_stats); \
388 type *stats = container_of(kobj, type, kobj_stats); \
Drtrs-srv.h38 struct kobject kobj_stats; member
Drtrs-clt.h64 struct kobject kobj_stats; member
/Linux-v5.10/drivers/gpu/drm/amd/amdkfd/
Dkfd_process.c524 struct kobject *kobj_stats; in kfd_procfs_add_sysfs_stats() local
528 kobj_stats = kfd_alloc_struct(kobj_stats); in kfd_procfs_add_sysfs_stats()
529 if (!kobj_stats) in kfd_procfs_add_sysfs_stats()
532 ret = kobject_init_and_add(kobj_stats, in kfd_procfs_add_sysfs_stats()
540 kobject_put(kobj_stats); in kfd_procfs_add_sysfs_stats()
544 pdd->kobj_stats = kobj_stats; in kfd_procfs_add_sysfs_stats()
548 ret = sysfs_create_file(kobj_stats, &pdd->attr_evict); in kfd_procfs_add_sysfs_stats()
558 ret = sysfs_create_file(kobj_stats, in kfd_procfs_add_sysfs_stats()
979 kobject_del(pdd->kobj_stats); in kfd_process_wq_release()
980 kobject_put(pdd->kobj_stats); in kfd_process_wq_release()
[all …]
Dkfd_priv.h706 struct kobject *kobj_stats; member