/dragonfly/sys/dev/drm/ |
H A D | linux_kobject.c | 30 int kobject_init_and_add(struct kobject *kobj, struct kobj_type *ktype, in kobject_init_and_add() argument 35 kobj->ktype = ktype; in kobject_init_and_add() 36 kref_init(&kobj->kref); in kobject_init_and_add() 39 kobj->name = kvasprintf(M_WAITOK, fmt, ap); in kobject_init_and_add() 47 struct kobject *kobj = container_of(kref, struct kobject, kref); in kobject_release() local 49 if (kobj->ktype && kobj->ktype->release) in kobject_release() 50 kobj->ktype->release(kobj); in kobject_release()
|
H A D | drm_sysfs.c | 40 connector->kdev->kobj.name = kasprintf(GFP_KERNEL, "card%d-%s", in drm_sysfs_connector_add()
|
H A D | drm_drv.c | 847 ret = sysfs_create_link(minor->kdev->kobj.parent, in create_compat_control_link() 848 &minor->kdev->kobj, in create_compat_control_link() 876 sysfs_remove_link(minor->kdev->kobj.parent, name); in remove_compat_control_link()
|
/dragonfly/sys/dev/drm/ttm/ |
H A D | ttm_memory.c | 43 struct kobject kobj; member 77 container_of(kobj, struct ttm_mem_zone, kobj); in ttm_mem_zone_kobj_release() 89 container_of(kobj, struct ttm_mem_zone, kobj); in ttm_mem_zone_show() 117 container_of(kobj, struct ttm_mem_zone, kobj); in ttm_mem_zone_store() 172 container_of(kobj, struct ttm_mem_global, kobj); in ttm_mem_global_kobj_release() 258 &zone->kobj, &ttm_mem_zone_kobj_type, &glob->kobj, zone->name); in ttm_mem_init_kernel_zone() 260 kobject_put(&zone->kobj); in ttm_mem_init_kernel_zone() 301 &zone->kobj, &ttm_mem_zone_kobj_type, &glob->kobj, zone->name); in ttm_mem_init_dma32_zone() 303 kobject_put(&zone->kobj); in ttm_mem_init_dma32_zone() 379 kobject_del(&glob->kobj); in ttm_mem_global_release() [all …]
|
H A D | ttm_module.c | 64 struct kobject *kobj = &ttm_drm_class_device.kobj; in ttm_get_kobj() local 65 BUG_ON(kobj == NULL); in ttm_get_kobj() 66 return kobj; in ttm_get_kobj()
|
H A D | ttm_page_alloc.c | 115 struct kobject kobj; member 153 static void ttm_pool_kobj_release(struct kobject *kobj) in ttm_pool_kobj_release() argument 156 container_of(kobj, struct ttm_pool_manager, kobj); in ttm_pool_kobj_release() 160 static ssize_t ttm_pool_store(struct kobject *kobj, in ttm_pool_store() argument 164 container_of(kobj, struct ttm_pool_manager, kobj); in ttm_pool_store() 194 static ssize_t ttm_pool_show(struct kobject *kobj, in ttm_pool_show() argument 198 container_of(kobj, struct ttm_pool_manager, kobj); in ttm_pool_show() 838 ret = kobject_init_and_add(&_manager->kobj, &ttm_pool_kobj_type, in ttm_page_alloc_init() 839 &glob->kobj, "pool"); in ttm_page_alloc_init() 848 kobject_put(&_manager->kobj); in ttm_page_alloc_init() [all …]
|
H A D | ttm_page_alloc_dma.c | 169 struct kobject kobj; member 194 static void ttm_pool_kobj_release(struct kobject *kobj) in ttm_pool_kobj_release() argument 197 container_of(kobj, struct ttm_pool_manager, kobj); in ttm_pool_kobj_release() 201 static ssize_t ttm_pool_store(struct kobject *kobj, struct attribute *attr, in ttm_pool_store() argument 205 container_of(kobj, struct ttm_pool_manager, kobj); in ttm_pool_store() 236 static ssize_t ttm_pool_show(struct kobject *kobj, struct attribute *attr, in ttm_pool_show() argument 240 container_of(kobj, struct ttm_pool_manager, kobj); in ttm_pool_show() 1183 ret = kobject_init_and_add(&_manager->kobj, &ttm_pool_kobj_type, in ttm_dma_page_alloc_init() 1184 &glob->kobj, "dma_pool"); in ttm_dma_page_alloc_init() 1194 kobject_put(&_manager->kobj); in ttm_dma_page_alloc_init() [all …]
|
H A D | ttm_bo.c | 49 static void ttm_bo_global_kobj_release(struct kobject *kobj); 110 static ssize_t ttm_bo_global_show(struct kobject *kobj, in ttm_bo_global_show() argument 115 container_of(kobj, struct ttm_bo_global, kobj); in ttm_bo_global_show() 1450 static void ttm_bo_global_kobj_release(struct kobject *kobj) in ttm_bo_global_kobj_release() argument 1453 container_of(kobj, struct ttm_bo_global, kobj); in ttm_bo_global_kobj_release() 1462 kobject_del(&glob->kobj); in ttm_bo_global_release() 1463 kobject_put(&glob->kobj); in ttm_bo_global_release() 1492 &glob->kobj, &ttm_bo_glob_kobj_type, ttm_get_kobj(), "buffer_objects"); in ttm_bo_global_init() 1494 kobject_put(&glob->kobj); in ttm_bo_global_init()
|
/dragonfly/sys/dev/drm/include/linux/ |
H A D | kobject.h | 57 void (*release)(struct kobject *kobj); 63 kobject_uevent_env(struct kobject *kobj, enum kobject_action action, char *envp[]) in kobject_uevent_env() argument 69 int kobject_init_and_add(struct kobject *kobj, 76 kobject_put(struct kobject *kobj) in kobject_put() argument 78 if (kobj != NULL) in kobject_put() 79 kref_put(&kobj->kref, kobject_release); in kobject_put() 83 kobject_del(struct kobject *kobj) in kobject_del() argument
|
H A D | sysfs.h | 52 sysfs_create_link(struct kobject *kobj, struct kobject *target, const char *name) in sysfs_create_link() argument 58 sysfs_remove_link(struct kobject *kobj, const char *name) in sysfs_remove_link() argument
|
H A D | device.h | 47 struct kobject kobj; member
|
/dragonfly/sys/dev/drm/i915/ |
H A D | i915_sysfs.c | 141 i915_l3_read(struct file *filp, struct kobject *kobj, 145 struct device *kdev = kobj_to_dev(kobj); 180 struct device *kdev = kobj_to_dev(kobj); 501 struct device *kdev = kobj_to_dev(kobj); 530 struct device *kdev = kobj_to_dev(kobj); 571 ret = sysfs_merge_group(&kdev->kobj, in i915_setup_sysfs() 577 ret = sysfs_merge_group(&kdev->kobj, in i915_setup_sysfs() 583 ret = sysfs_merge_group(&kdev->kobj, in i915_setup_sysfs() 604 ret = sysfs_create_files(&kdev->kobj, vlv_attrs); in i915_setup_sysfs() 622 sysfs_remove_files(&kdev->kobj, vlv_attrs); in i915_teardown_sysfs() [all …]
|
H A D | intel_sdvo.c | 2182 return sysfs_create_link(&connector->kdev->kobj, in intel_sdvo_connector_register() 2183 &sdvo->ddc.dev.kobj, in intel_sdvo_connector_register() 2184 sdvo->ddc.dev.kobj.name); in intel_sdvo_connector_register() 2192 sysfs_remove_link(&connector->kdev->kobj, in intel_sdvo_connector_unregister() 2193 sdvo->ddc.dev.kobj.name); in intel_sdvo_connector_unregister()
|
/dragonfly/sys/sys/ |
H A D | kobj.h | 43 typedef struct kobj *kobj_t; 81 struct kobj { struct
|
/dragonfly/sys/dev/drm/include/drm/ttm/ |
H A D | ttm_memory.h | 67 struct kobject kobj; member
|
H A D | ttm_bo_driver.h | 416 struct kobject kobj; member
|
/dragonfly/sys/libiconv/ |
H A D | iconv_xlat.c | 74 kobj_delete((struct kobj*)data, M_ICONV); in iconv_xlat_close()
|
H A D | iconv_xlat16.c | 105 kobj_delete((struct kobj*)data, M_ICONV); in iconv_xlat16_close()
|
H A D | iconv_ucs.c | 161 kobj_delete((struct kobj*)data, M_ICONV); in iconv_ucs_close()
|
/dragonfly/sys/dev/sound/pcm/ |
H A D | ac97.h | 86 #define AC97_DECLARE(name) static DEFINE_CLASS(name, name ## _methods, sizeof(struct kobj))
|
H A D | mixer.h | 81 #define MIXER_SIZE (512 + sizeof(struct kobj) + \
|
H A D | channel_if.m | 184 * @param obj standard kobj object (usually @c channel->methods) 211 * @param obj standard kobj object (usually @c channel->methods)
|
H A D | channel.h | 445 #define CHANNEL_DECLARE(name) static DEFINE_CLASS(name, name ## _methods, sizeof(struct kobj))
|
/dragonfly/share/man/man9/ |
H A D | Makefile | 117 kobj.9 \ 626 MLINKS+=kobj.9 DEFINE_CLASS.9 \ 627 kobj.9 kobj_create.9 \ 628 kobj.9 kobj_delete.9 \ 629 kobj.9 kobj_init.9
|
/dragonfly/sys/kern/ |
H A D | subr_kobj.c | 57 SYSINIT(kobj, SI_BOOT1_LOCK, SI_ORDER_ANY, kobj_init_token, NULL);
|