Home
last modified time | relevance | path

Searched refs:kobj (Results 1 - 25 of 40) sorted by relevance

12

/device/soc/rockchip/common/kernel/drivers/gpu/arm/bifrost/csf/
H A Dmali_kbase_csf_firmware_cfg.c35 * @kobj: Kobject corresponding to the sysfs sub-directory,
54 struct kobject kobj; member
74 static void fw_cfg_kobj_release(struct kobject *kobj) in fw_cfg_kobj_release() argument
77 container_of(kobj, struct firmware_config, kobj); in fw_cfg_kobj_release()
82 static ssize_t show_fw_cfg(struct kobject *kobj, in show_fw_cfg() argument
86 container_of(kobj, struct firmware_config, kobj); in show_fw_cfg()
113 static ssize_t store_fw_cfg(struct kobject *kobj, in store_fw_cfg() argument
119 container_of(kobj, struc in store_fw_cfg()
[all...]
H A Dmali_kbase_csf_timeout.c162 err = sysfs_create_file(&kbdev->dev->kobj, in kbase_csf_timeout_init()
172 sysfs_remove_file(&kbdev->dev->kobj, &dev_attr_progress_timeout.attr); in kbase_csf_timeout_term()
/device/soc/hisilicon/common/platform/wifi/hi3881v100/driver/oal/
H A Doal_kernel_file.h74 static inline hi_s32 oal_sysfs_create_group(oal_kobject *kobj, const struct attribute_group *grp) in oal_sysfs_create_group() argument
76 return sysfs_create_group(kobj, grp); in oal_sysfs_create_group()
79 static inline hi_void oal_sysfs_remove_group(oal_kobject *kobj, const struct attribute_group *grp) in oal_sysfs_remove_group() argument
81 sysfs_remove_group(kobj, grp); in oal_sysfs_remove_group()
84 static inline hi_s32 oal_debug_sysfs_create_group(oal_kobject *kobj, const struct attribute_group *grp) in oal_debug_sysfs_create_group() argument
86 return sysfs_create_group(kobj, grp); in oal_debug_sysfs_create_group()
89 static inline hi_void oal_debug_sysfs_remove_group(oal_kobject *kobj, const struct attribute_group *grp) in oal_debug_sysfs_remove_group() argument
91 sysfs_remove_group(kobj, grp); in oal_debug_sysfs_remove_group()
H A Doal_cfg80211.c89 kobject_uevent_env(&(net_device->dev.kobj), KOBJ_CHANGE, g_env.envp); in oal_kobject_uevent_env_sta_join()
91 kobject_uevent_env(&(net_device->dev.kobj), KOBJ_CHANGE, (char **)&g_env); in oal_kobject_uevent_env_sta_join()
105 kobject_uevent_env(&(net_device->dev.kobj), KOBJ_CHANGE, g_env.envp); in oal_kobject_uevent_env_sta_leave()
/device/soc/rockchip/common/sdk_linux/arch/arm64/kernel/
H A Dcpuinfo.c246 #define kobj_to_cpuinfo(kobj) container_of(kobj, struct cpuinfo_arm64, kobj)
248 static ssize_t _name##_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) \
250 struct cpuinfo_arm64 *info = kobj_to_cpuinfo(kobj); \
277 rc = kobject_add(&info->kobj, &dev->kobj, "regs"); in cpuid_cpu_online()
281 rc = sysfs_create_group(&info->kobj, &cpuregs_attr_group); in cpuid_cpu_online()
283 kobject_del(&info->kobj); in cpuid_cpu_online()
298 if (info->kobj in cpuid_cpu_offline()
[all...]
/device/soc/rockchip/common/sdk_linux/kernel/power/
H A Dwakeup_reason.c60 static struct kobject *kobj; variable
305 static ssize_t last_resume_reason_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) in last_resume_reason_show() argument
331 static ssize_t last_suspend_time_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) in last_suspend_time_show() argument
404 kobj = kobject_create_and_add("wakeup_reasons", kernel_kobj); in wakeup_reason_init()
405 if (!kobj) { in wakeup_reason_init()
410 if (sysfs_create_group(kobj, &attr_group)) { in wakeup_reason_init()
423 sysfs_remove_group(kobj, &attr_group); in wakeup_reason_init()
425 kobject_put(kobj); in wakeup_reason_init()
H A Dhibernate.c1113 static ssize_t disk_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) in disk_show() argument
1153 static ssize_t disk_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t n) in disk_store() argument
1207 static ssize_t resume_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) in resume_show() argument
1212 static ssize_t resume_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t n) in resume_store() argument
1243 static ssize_t resume_offset_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) in resume_offset_show() argument
1248 static ssize_t resume_offset_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t n) in resume_offset_store() argument
1264 static ssize_t image_size_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) in image_size_show() argument
1269 static ssize_t image_size_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t n) in image_size_store() argument
1283 static ssize_t reserved_size_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) in reserved_size_show() argument
1288 static ssize_t reserved_size_store(struct kobject *kobj, struc argument
[all...]
/device/soc/rockchip/rk3588/kernel/kernel/power/
H A Dwakeup_reason.c60 static struct kobject *kobj; variable
300 static ssize_t last_resume_reason_show(struct kobject *kobj, in last_resume_reason_show() argument
330 static ssize_t last_suspend_time_show(struct kobject *kobj, in last_suspend_time_show() argument
409 kobj = kobject_create_and_add("wakeup_reasons", kernel_kobj); in wakeup_reason_init()
410 if (!kobj) { in wakeup_reason_init()
415 if (sysfs_create_group(kobj, &attr_group)) { in wakeup_reason_init()
429 sysfs_remove_group(kobj, &attr_group); in wakeup_reason_init()
431 kobject_put(kobj); in wakeup_reason_init()
/device/soc/rockchip/common/sdk_linux/drivers/iommu/
H A Diommu.c37 struct kobject kobj; member
93 #define to_iommu_group(_kobj) container_of(_kobj, struct iommu_group, kobj)
336 static ssize_t iommu_group_attr_show(struct kobject *kobj, struct attribute *__attr, char *buf) in iommu_group_attr_show() argument
339 struct iommu_group *group = to_iommu_group(kobj); in iommu_group_attr_show()
348 static ssize_t iommu_group_attr_store(struct kobject *kobj, struct attribute *__attr, const char *buf, size_t count) in iommu_group_attr_store() argument
351 struct iommu_group *group = to_iommu_group(kobj); in iommu_group_attr_store()
367 return sysfs_create_file(&group->kobj, &attr->attr); in iommu_group_create_file()
372 sysfs_remove_file(&group->kobj, &attr->attr); in iommu_group_remove_file()
528 static void iommu_group_release(struct kobject *kobj) in iommu_group_release() argument
530 struct iommu_group *group = to_iommu_group(kobj); in iommu_group_release()
[all...]
/device/soc/rockchip/common/sdk_linux/include/linux/
H A Ddma-buf.h424 struct kobject kobj; member
507 struct kobject kobj; member
H A Di2c.h321 static inline struct i2c_client *kobj_to_i2c_client(struct kobject *kobj) in kobj_to_i2c_client() argument
323 struct device *const dev = kobj_to_dev(kobj); in kobj_to_i2c_client()
/device/soc/rockchip/common/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_wifi6/
H A Ddhd_linux_exportfs.c473 static ssize_t dhd_show(struct kobject *kobj, struct attribute *attr, char *buf) in dhd_show() argument
479 dhd_info_t *dhd = to_dhd(kobj); in dhd_show()
498 static ssize_t dhd_store(struct kobject *kobj, struct attribute *attr, in dhd_store() argument
505 dhd_info_t *dhd = to_dhd(kobj); in dhd_store()
1283 static ssize_t dhd_cntl_show(struct kobject *kobj, struct attribute *attr, char *buf) in dhd_cntl_show() argument
1289 dhd_info_t *dhd = to_cntl_dhd(kobj); in dhd_cntl_show()
1308 static ssize_t dhd_cntl_store(struct kobject *kobj, struct attribute *attr, in dhd_cntl_store() argument
1315 dhd_info_t *dhd = to_cntl_dhd(kobj); in dhd_cntl_store()
1343 static ssize_t read_csi_data(struct file *filp, struct kobject *kobj, in read_csi_data() argument
1346 dhd_info_t *dhd = to_dhd(kobj); in read_csi_data()
[all...]
/device/soc/hisilicon/common/platform/wifi/hi3881v100/driver/oam/
H A Doam_main.c42 static ssize_t log_level_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) in log_level_show() argument
/device/soc/hisilicon/common/platform/wifi/hi3881v100/driver/wal/
H A Dwal_cfg80211_apt.c810 kobject_uevent_env(&(netdev->dev.kobj), KOBJ_CHANGE, env.envp); in cfg80211_kobject_uevent_env_sta_join()
812 kobject_uevent_env(&(netdev->dev.kobj), KOBJ_CHANGE, (hi_s8 **)&env); in cfg80211_kobject_uevent_env_sta_join()
831 kobject_uevent_env(&(netdev->dev.kobj), KOBJ_CHANGE, env.envp); in cfg80211_kobject_uevent_env_sta_leave()
833 kobject_uevent_env(&(netdev->dev.kobj), KOBJ_CHANGE, (hi_s8 **)&env); in cfg80211_kobject_uevent_env_sta_leave()
/device/soc/rockchip/common/vendor/drivers/rockchip/
H A Drockchip_system_monitor.c57 ssize_t (*show)(struct kobject *kobj, struct kobj_attribute *attr, char *buf);
58 ssize_t (*store)(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t n);
68 struct kobject *kobj; member
177 if (!system_monitor || !system_monitor->kobj) { in rockchip_add_system_status_interface()
178 pr_err("failed to get system status kobj\n"); in rockchip_add_system_status_interface()
182 return compat_only_sysfs_link_entry_to_kobj(&dev->kobj, system_monitor->kobj, "system_status", NULL); in rockchip_add_system_status_interface()
367 static ssize_t status_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) in status_show() argument
374 static ssize_t status_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t n) in status_store() argument
1627 system_monitor->kobj in rockchip_system_monitor_probe()
[all...]
/device/soc/rockchip/rk3588/kernel/drivers/soc/rockchip/
H A Drockchip_system_monitor.c57 ssize_t (*show)(struct kobject *kobj, struct kobj_attribute *attr,
59 ssize_t (*store)(struct kobject *kobj, struct kobj_attribute *attr,
70 struct kobject *kobj; member
178 if (!system_monitor || !system_monitor->kobj) { in rockchip_add_system_status_interface()
179 pr_err("failed to get system status kobj\n"); in rockchip_add_system_status_interface()
183 return compat_only_sysfs_link_entry_to_kobj(&dev->kobj, in rockchip_add_system_status_interface()
184 system_monitor->kobj, in rockchip_add_system_status_interface()
371 static ssize_t status_show(struct kobject *kobj, struct kobj_attribute *attr, in status_show() argument
379 static ssize_t status_store(struct kobject *kobj, struct kobj_attribute *attr, in status_store() argument
1639 system_monitor->kobj in rockchip_system_monitor_probe()
[all...]
/device/soc/rockchip/common/sdk_linux/drivers/nvmem/
H A Dcore.c118 static ssize_t bin_attr_nvmem_read(struct file *filp, struct kobject *kobj, struct bin_attribute *attr, char *buf, in bin_attr_nvmem_read() argument
128 dev = kobj_to_dev(kobj); in bin_attr_nvmem_read()
162 static ssize_t bin_attr_nvmem_write(struct file *filp, struct kobject *kobj, struct bin_attribute *attr, char *buf, in bin_attr_nvmem_write() argument
172 dev = kobj_to_dev(kobj); in bin_attr_nvmem_write()
229 static umode_t nvmem_bin_attr_is_visible(struct kobject *kobj, struct bin_attribute *attr, int i) in nvmem_bin_attr_is_visible() argument
231 struct device *dev = kobj_to_dev(kobj); in nvmem_bin_attr_is_visible()
/device/soc/rockchip/common/sdk_linux/drivers/power/supply/
H A Dpower_supply_sysfs.c317 static umode_t power_supply_attr_is_visible(struct kobject *kobj, struct attribute *attr, int attrno) in power_supply_attr_is_visible() argument
319 struct device *dev = kobj_to_dev(kobj); in power_supply_attr_is_visible()
H A Dpower_supply_core.c113 kobject_uevent(&psy->dev.kobj, KOBJ_CHANGE); in power_supply_changed_work()
983 return sysfs_create_link(&psy->dev.kobj, &dev->kobj, "powers"); in power_supply_powers()
1415 sysfs_remove_link(&psy->dev.kobj, "powers"); in power_supply_unregister()
/device/soc/rockchip/common/sdk_linux/drivers/pwm/
H A Dsysfs.c297 kobject_uevent_env(&parent->kobj, KOBJ_CHANGE, pwm_prop); in pwm_export_child()
324 kobject_uevent_env(&parent->kobj, KOBJ_CHANGE, pwm_prop); in pwm_unexport_child()
/device/soc/rockchip/common/kernel/drivers/gpu/arm/bifrost/
H A Dmali_kbase_dummy_job_wa.c418 err = sysfs_create_file(&kbdev->dev->kobj, in kbase_dummy_job_wa_load()
441 sysfs_remove_file(&kbdev->dev->kobj, &dev_attr_dummy_job_wa_info.attr); in kbase_dummy_job_wa_cleanup()
H A Dmali_kbase_core_linux.c5141 err = sysfs_create_group(&kbdev->dev->kobj, &kbase_attr_group); in kbase_sysfs_init()
5145 err = sysfs_create_group(&kbdev->dev->kobj, in kbase_sysfs_init()
5150 sysfs_remove_group(&kbdev->dev->kobj, in kbase_sysfs_init()
5155 err = sysfs_create_group(&kbdev->dev->kobj, in kbase_sysfs_init()
5160 sysfs_remove_group(&kbdev->dev->kobj, in kbase_sysfs_init()
5162 sysfs_remove_group(&kbdev->dev->kobj, in kbase_sysfs_init()
5171 sysfs_remove_group(&kbdev->dev->kobj, &kbase_mempool_attr_group); in kbase_sysfs_term()
5172 sysfs_remove_group(&kbdev->dev->kobj, &kbase_scheduling_attr_group); in kbase_sysfs_term()
5173 sysfs_remove_group(&kbdev->dev->kobj, &kbase_attr_group); in kbase_sysfs_term()
/device/soc/rockchip/common/vendor/drivers/gpu/arm/bifrost/
H A Dmali_kbase_dummy_job_wa.c389 err = sysfs_create_file(&kbdev->dev->kobj, &dev_attr_dummy_job_wa_info.attr); in kbase_dummy_job_wa_load()
408 sysfs_remove_file(&kbdev->dev->kobj, &dev_attr_dummy_job_wa_info.attr); in kbase_dummy_job_wa_cleanup()
/device/soc/rockchip/rk3566/sdk_linux/drivers/iio/adc/
H A Drockchip_saradc.c368 sysfs_remove_group(&pdev->dev.kobj, &rockchip_saradc_attr_group); in rockchip_saradc_remove_sysgroup()
529 ret = sysfs_create_group(&pdev->dev.kobj, &rockchip_saradc_attr_group); in rockchip_saradc_probe()
/device/soc/rockchip/common/sdk_linux/drivers/thermal/
H A Dthermal_core.c893 result = sysfs_create_link(&tz->device.kobj, &cdev->device.kobj, dev->name); in thermal_zone_bind_cooling_device()
942 sysfs_remove_link(&tz->device.kobj, dev->name); in thermal_zone_bind_cooling_device()
989 sysfs_remove_link(&tz->device.kobj, pos->name); in thermal_zone_unbind_cooling_device()

Completed in 35 milliseconds

12