Searched refs:fw_sysfs (Results 1 – 4 of 4) sorted by relevance
/linux-5.19.10/drivers/base/firmware_loader/ |
D | sysfs.c | 67 static int do_firmware_uevent(struct fw_sysfs *fw_sysfs, struct kobj_uevent_env *env) in do_firmware_uevent() argument 69 if (add_uevent_var(env, "FIRMWARE=%s", fw_sysfs->fw_priv->fw_name)) in do_firmware_uevent() 73 if (add_uevent_var(env, "ASYNC=%d", fw_sysfs->nowait)) in do_firmware_uevent() 81 struct fw_sysfs *fw_sysfs = to_fw_sysfs(dev); in firmware_uevent() local 85 if (fw_sysfs->fw_priv) in firmware_uevent() 86 err = do_firmware_uevent(fw_sysfs, env); in firmware_uevent() 94 struct fw_sysfs *fw_sysfs = to_fw_sysfs(dev); in fw_dev_release() local 96 if (fw_sysfs->fw_upload_priv) in fw_dev_release() 97 fw_upload_free(fw_sysfs); in fw_dev_release() 99 kfree(fw_sysfs); in fw_dev_release() [all …]
|
D | sysfs.h | 76 struct fw_sysfs { struct 84 static inline struct fw_sysfs *to_fw_sysfs(struct device *dev) in to_fw_sysfs() argument 86 return container_of(dev, struct fw_sysfs, dev); in to_fw_sysfs() 91 static inline void fw_load_abort(struct fw_sysfs *fw_sysfs) in fw_load_abort() argument 93 struct fw_priv *fw_priv = fw_sysfs->fw_priv; in fw_load_abort() 98 struct fw_sysfs * 108 int fw_upload_start(struct fw_sysfs *fw_sysfs); 109 void fw_upload_free(struct fw_sysfs *fw_sysfs); 112 static inline int fw_upload_start(struct fw_sysfs *fw_sysfs) in fw_upload_start() argument 117 static inline void fw_upload_free(struct fw_sysfs *fw_sysfs) in fw_upload_free() argument
|
D | sysfs_upload.c | 124 static struct fw_sysfs *fw_sysfs; in fw_upload_is_visible() local 126 fw_sysfs = to_fw_sysfs(kobj_to_dev(kobj)); in fw_upload_is_visible() 128 if (fw_sysfs->fw_upload_priv || attr == &dev_attr_loading.attr) in fw_upload_is_visible() 161 struct fw_sysfs *fw_sysfs; in fw_upload_main() local 169 fw_sysfs = (struct fw_sysfs *)fwl->priv; in fw_upload_main() 170 fw_dev = &fw_sysfs->dev; in fw_upload_main() 214 fw_free_paged_buf(fw_sysfs->fw_priv); in fw_upload_main() 215 fw_state_init(fw_sysfs->fw_priv); in fw_upload_main() 225 int fw_upload_start(struct fw_sysfs *fw_sysfs) in fw_upload_start() argument 227 struct fw_priv *fw_priv = fw_sysfs->fw_priv; in fw_upload_start() [all …]
|
D | fallback.c | 70 static int fw_load_sysfs_fallback(struct fw_sysfs *fw_sysfs, long timeout) in fw_load_sysfs_fallback() argument 73 struct device *f_dev = &fw_sysfs->dev; in fw_load_sysfs_fallback() 74 struct fw_priv *fw_priv = fw_sysfs->fw_priv; in fw_load_sysfs_fallback() 101 kobject_uevent(&fw_sysfs->dev.kobj, KOBJ_ADD); in fw_load_sysfs_fallback() 109 fw_load_abort(fw_sysfs); in fw_load_sysfs_fallback() 130 struct fw_sysfs *fw_sysfs; in fw_load_from_user_helper() local 151 fw_sysfs = fw_create_instance(firmware, name, device, opt_flags); in fw_load_from_user_helper() 152 if (IS_ERR(fw_sysfs)) { in fw_load_from_user_helper() 153 ret = PTR_ERR(fw_sysfs); in fw_load_from_user_helper() 157 fw_sysfs->fw_priv = firmware->priv; in fw_load_from_user_helper() [all …]
|