Home
last modified time | relevance | path

Searched refs:kobj (Results 1 – 25 of 39) sorted by relevance

12

/netbsd-src/sys/external/bsd/drm2/dist/drm/ttm/
H A Dttm_memory.c54 struct kobject kobj; member
87 static void ttm_mem_zone_kobj_release(struct kobject *kobj) in ttm_mem_zone_kobj_release() argument
90 container_of(kobj, struct ttm_mem_zone, kobj); in ttm_mem_zone_kobj_release()
97 static ssize_t ttm_mem_zone_show(struct kobject *kobj, in ttm_mem_zone_show() argument
102 container_of(kobj, struct ttm_mem_zone, kobj); in ttm_mem_zone_show()
124 static ssize_t ttm_mem_zone_store(struct kobject *kobj, in ttm_mem_zone_store() argument
130 container_of(kobj, struct ttm_mem_zone, kobj); in ttm_mem_zone_store()
187 static ssize_t ttm_mem_global_show(struct kobject *kobj, in ttm_mem_global_show() argument
192 container_of(kobj, struct ttm_mem_global, kobj); in ttm_mem_global_show()
204 static ssize_t ttm_mem_global_store(struct kobject *kobj, in ttm_mem_global_store() argument
[all …]
H A Dttm_module.c66 struct kobject *kobj = &ttm_drm_class_device.kobj; in ttm_get_kobj() local
67 BUG_ON(kobj == NULL); in ttm_get_kobj()
68 return kobj; in ttm_get_kobj()
H A Dttm_page_alloc.c114 struct kobject kobj; member
151 static void ttm_pool_kobj_release(struct kobject *kobj) in ttm_pool_kobj_release() argument
154 container_of(kobj, struct ttm_pool_manager, kobj); in ttm_pool_kobj_release()
158 static ssize_t ttm_pool_store(struct kobject *kobj, in ttm_pool_store() argument
162 container_of(kobj, struct ttm_pool_manager, kobj); in ttm_pool_store()
192 static ssize_t ttm_pool_show(struct kobject *kobj, in ttm_pool_show() argument
196 container_of(kobj, struct ttm_pool_manager, kobj); in ttm_pool_show()
1002 ret = kobject_init_and_add(&_manager->kobj, &ttm_pool_kobj_type, in ttm_page_alloc_init()
1003 &glob->kobj, "pool"); in ttm_page_alloc_init()
1013 kobject_put(&_manager->kobj); in ttm_page_alloc_init()
[all …]
H A Dttm_page_alloc_dma.c173 struct kobject kobj; member
198 static void ttm_pool_kobj_release(struct kobject *kobj) in ttm_pool_kobj_release() argument
201 container_of(kobj, struct ttm_pool_manager, kobj); in ttm_pool_kobj_release()
205 static ssize_t ttm_pool_store(struct kobject *kobj, struct attribute *attr, in ttm_pool_store() argument
209 container_of(kobj, struct ttm_pool_manager, kobj); in ttm_pool_store()
240 static ssize_t ttm_pool_show(struct kobject *kobj, struct attribute *attr, in ttm_pool_show() argument
244 container_of(kobj, struct ttm_pool_manager, kobj); in ttm_pool_show()
1185 ret = kobject_init_and_add(&_manager->kobj, &ttm_pool_kobj_type, in ttm_dma_page_alloc_init()
1186 &glob->kobj, "dma_pool"); in ttm_dma_page_alloc_init()
1196 kobject_put(&_manager->kobj); in ttm_dma_page_alloc_init()
[all …]
H A Dttm_bo.c61 static void ttm_bo_global_kobj_release(struct kobject *kobj);
141 static ssize_t ttm_bo_global_show(struct kobject *kobj, in ttm_bo_global_show() argument
146 container_of(kobj, struct ttm_bo_global, kobj); in ttm_bo_global_show()
1637 static void ttm_bo_global_kobj_release(struct kobject *kobj) in ttm_bo_global_kobj_release() argument
1640 container_of(kobj, struct ttm_bo_global, kobj); in ttm_bo_global_kobj_release()
1655 kobject_del(&glob->kobj); in ttm_bo_global_release()
1656 kobject_put(&glob->kobj); in ttm_bo_global_release()
1709 &glob->kobj, &ttm_bo_glob_kobj_type, ttm_get_kobj(), "buffer_objects"); in ttm_bo_global_init()
1711 kobject_put(&glob->kobj); in ttm_bo_global_init()
/netbsd-src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/
H A Damdgpu_xgmi.c92 if (WARN_ON(hive->kobj)) in amdgpu_xgmi_sysfs_create()
95 hive->kobj = kobject_create_and_add("xgmi_hive_info", &adev->dev->kobj); in amdgpu_xgmi_sysfs_create()
96 if (!hive->kobj) { in amdgpu_xgmi_sysfs_create()
110 ret = sysfs_create_file(hive->kobj, &hive->dev_attr.attr); in amdgpu_xgmi_sysfs_create()
113 kobject_del(hive->kobj); in amdgpu_xgmi_sysfs_create()
114 kobject_put(hive->kobj); in amdgpu_xgmi_sysfs_create()
115 hive->kobj = NULL; in amdgpu_xgmi_sysfs_create()
126 sysfs_remove_file(hive->kobj, &hive->dev_attr.attr); in amdgpu_xgmi_sysfs_destroy()
127 kobject_del(hive->kobj); in amdgpu_xgmi_sysfs_destroy()
128 kobject_put(hive->kobj); in amdgpu_xgmi_sysfs_destroy()
[all …]
H A Damdgpu_xgmi.h35 struct kobject *kobj; member
H A Damdgpu_ras.c906 struct kobject *kobj, struct bin_attribute *attr, in amdgpu_ras_sysfs_badpages_read() argument
984 return sysfs_create_group(&adev->dev->kobj, &group); in amdgpu_ras_sysfs_create_feature_node()
1004 sysfs_remove_group(&adev->dev->kobj, &group); in amdgpu_ras_sysfs_remove_feature_node()
1035 if (sysfs_add_file_to_group(&adev->dev->kobj, in amdgpu_ras_sysfs_create()
1057 sysfs_remove_file_from_group(&adev->dev->kobj, in amdgpu_ras_sysfs_remove()
H A Damdgpu_ucode.c449 return sysfs_create_group(&adev->dev->kobj, &fw_attr_group); in amdgpu_ucode_sysfs_init()
456 sysfs_remove_group(&adev->dev->kobj, &fw_attr_group); in amdgpu_ucode_sysfs_fini()
/netbsd-src/sys/external/bsd/drm2/dist/drm/i915/
H A Di915_sysfs.c168 i915_l3_read(struct file *filp, struct kobject *kobj, in i915_l3_read() argument
172 struct device *kdev = kobj_to_dev(kobj); in i915_l3_read()
196 i915_l3_write(struct file *filp, struct kobject *kobj, in i915_l3_write() argument
200 struct device *kdev = kobj_to_dev(kobj); in i915_l3_write()
499 static ssize_t error_state_read(struct file *filp, struct kobject *kobj, in error_state_read() argument
504 struct device *kdev = kobj_to_dev(kobj); in error_state_read()
526 static ssize_t error_state_write(struct file *file, struct kobject *kobj, in error_state_write() argument
530 struct device *kdev = kobj_to_dev(kobj); in error_state_write()
549 if (sysfs_create_bin_file(&kdev->kobj, &error_state_attr)) in i915_setup_error_capture()
555 sysfs_remove_bin_file(&kdev->kobj, &error_state_attr); in i915_teardown_error_capture()
[all …]
/netbsd-src/sys/external/bsd/drm2/dist/drm/amd/amdkfd/
H A Dkfd_process.c78 struct kobject *kobj; member
83 static ssize_t kfd_procfs_show(struct kobject *kobj, struct attribute *attr, in kfd_procfs_show() argument
100 static void kfd_procfs_kobj_release(struct kobject *kobj) in kfd_procfs_kobj_release() argument
102 kfree(kobj); in kfd_procfs_kobj_release()
118 procfs.kobj = kfd_alloc_struct(procfs.kobj); in kfd_procfs_init()
119 if (!procfs.kobj) in kfd_procfs_init()
122 ret = kobject_init_and_add(procfs.kobj, &procfs_type, in kfd_procfs_init()
123 &kfd_device->kobj, "proc"); in kfd_procfs_init()
133 if (procfs.kobj) { in kfd_procfs_shutdown()
134 kobject_del(procfs.kobj); in kfd_procfs_shutdown()
[all …]
H A Dkfd_topology.c229 static ssize_t sysprops_show(struct kobject *kobj, struct attribute *attr, in sysprops_show() argument
253 static void kfd_topology_kobj_release(struct kobject *kobj) in kfd_topology_kobj_release() argument
255 kfree(kobj); in kfd_topology_kobj_release()
267 static ssize_t iolink_show(struct kobject *kobj, struct attribute *attr, in iolink_show() argument
305 static ssize_t mem_show(struct kobject *kobj, struct attribute *attr, in mem_show() argument
335 static ssize_t kfd_cache_show(struct kobject *kobj, struct attribute *attr, in kfd_cache_show() argument
390 static ssize_t perf_show(struct kobject *kobj, struct kobj_attribute *attrs, in perf_show() argument
416 static ssize_t node_show(struct kobject *kobj, struct attribute *attr, in node_show() argument
544 static void kfd_remove_sysfs_file(struct kobject *kobj, struct attribute *attr) in kfd_remove_sysfs_file() argument
546 sysfs_remove_file(kobj, attr); in kfd_remove_sysfs_file()
[all …]
H A Dkfd_topology.h110 struct kobject *kobj; member
132 struct kobject *kobj; member
151 struct kobject *kobj; member
/netbsd-src/sys/external/bsd/drm2/dist/drm/i915/gvt/
H A Dgvt.c72 static ssize_t available_instances_show(struct kobject *kobj, in available_instances_show() argument
79 type = intel_gvt_find_vgpu_type(gvt, kobject_name(kobj)); in available_instances_show()
88 static ssize_t device_api_show(struct kobject *kobj, struct device *dev, in device_api_show() argument
94 static ssize_t description_show(struct kobject *kobj, struct device *dev, in description_show() argument
100 type = intel_gvt_find_vgpu_type(gvt, kobject_name(kobj)); in description_show()
/netbsd-src/crypto/external/bsd/heimdal/dist/lib/gssapi/mech/
H A Dgss_mech_switch.c237 char *name, *oid, *lib, *kobj; in _gss_load_mech() local
282 kobj = strsep(&p, "\t\n "); in _gss_load_mech()
283 if (!name || !oid || !lib || !kobj) in _gss_load_mech()
/netbsd-src/sys/sys/
H A Dkobj.h39 typedef struct kobj *kobj_t;
H A Dkobj_impl.h105 struct kobj { struct
H A Dmodule.h95 struct kobj *mod_kobj;
/netbsd-src/external/cddl/osnet/sys/sys/
H A Dkobj.h36 #include_next <sys/kobj.h>
/netbsd-src/sys/external/bsd/drm2/dist/include/drm/ttm/
H A Dttm_memory.h70 struct kobject kobj; member
/netbsd-src/sys/external/bsd/drm2/dist/drm/i915/gt/
H A Dintel_reset.c1178 struct kobject *kobj = &gt->i915->drm.primary->kdev->kobj; in intel_gt_reset_global() local
1186 kobject_uevent_env(kobj, KOBJ_CHANGE, error_event); in intel_gt_reset_global()
1191 kobject_uevent_env(kobj, KOBJ_CHANGE, reset_event); in intel_gt_reset_global()
1208 kobject_uevent_env(kobj, KOBJ_CHANGE, reset_done_event); in intel_gt_reset_global()
/netbsd-src/sys/external/bsd/drm2/dist/drm/
H A Ddrm_drv.c992 ret = sysfs_create_link(minor->kdev->kobj.parent, in create_compat_control_link()
993 &minor->kdev->kobj, in create_compat_control_link()
1019 sysfs_remove_link(minor->kdev->kobj.parent, name); in remove_compat_control_link()
/netbsd-src/external/mpl/dhcp/bind/dist/lib/isccfg/
H A Dkaspconf.c334 cfg_obj_t *kobj = cfg_listelt_value(element); in cfg_kasp_fromconfig() local
335 result = cfg_kaspkey_fromconfig(kobj, kasp, logctx); in cfg_kasp_fromconfig()
/netbsd-src/sys/modules/solaris/
H A DMakefile.solmod53 SRCS+= kobj.c
/netbsd-src/external/mpl/bind/dist/lib/isccfg/
H A Dkaspconf.c648 cfg_obj_t *kobj = cfg_listelt_value(element);
650 kobj, kasp, check_algorithms, logctx,
654 cfg_obj_log(kobj, logctx, ISC_LOG_ERROR,
445 cfg_obj_t *kobj = cfg_listelt_value(element); cfg_kasp_fromconfig() local

12