Lines Matching refs:kobj
342 struct xfs_kobj *kobj = to_kobj(kobject); in to_xstats() local
344 return container_of(kobj, struct xstats, xs_kobj); in to_xstats()
398 struct xfs_kobj *kobj = to_kobj(kobject); in to_xlog() local
400 return container_of(kobj, struct xlog, l_kobj); in to_xlog()
483 struct xfs_kobj *kobj = to_kobj(kobject); in to_error_cfg() local
484 return container_of(kobj, struct xfs_error_cfg, kobj); in to_error_cfg()
490 struct xfs_kobj *kobj = to_kobj(kobject); in err_to_mp() local
491 return container_of(kobj, struct xfs_mount, m_error_kobj); in err_to_mp()
681 error = xfs_sysfs_init(&cfg->kobj, &xfs_error_cfg_ktype, in xfs_error_sysfs_init_class()
699 xfs_sysfs_del(&cfg->kobj); in xfs_error_sysfs_init_class()
705 static inline struct xfs_mount *zoned_to_mp(struct kobject *kobj) in zoned_to_mp() argument
707 return container_of(to_kobj(kobj), struct xfs_mount, m_zoned_kobj); in zoned_to_mp()
712 struct kobject *kobj, in max_open_zones_show() argument
717 zoned_to_mp(kobj)->m_max_open_zones - XFS_OPEN_GC_ZONES); in max_open_zones_show()
723 struct kobject *kobj, in zonegc_low_space_store() argument
737 zoned_to_mp(kobj)->m_zonegc_low_space = val; in zonegc_low_space_store()
744 struct kobject *kobj, in zonegc_low_space_show() argument
748 zoned_to_mp(kobj)->m_zonegc_low_space); in zonegc_low_space_show()
838 xfs_sysfs_del(&cfg->kobj); in xfs_mount_sysfs_del()