Home
last modified time | relevance | path

Searched refs:fw_sysfs (Results 1 – 2 of 2) sorted by relevance

/linux/drivers/base/firmware_loader/
H A Dsysfs.c70 static int do_firmware_uevent(const struct fw_sysfs *fw_sysfs, struct kobj_uevent_env *env) in do_firmware_uevent() argument
72 if (add_uevent_var(env, "FIRMWARE=%s", fw_sysfs->fw_priv->fw_name)) in do_firmware_uevent()
76 if (add_uevent_var(env, "ASYNC=%d", fw_sysfs->nowait)) in do_firmware_uevent()
84 const struct fw_sysfs *fw_sysfs = to_fw_sysfs(dev); in firmware_uevent() local
88 if (fw_sysfs->fw_priv) in firmware_uevent()
89 err = do_firmware_uevent(fw_sysfs, env); in firmware_uevent()
97 struct fw_sysfs *fw_sysfs = to_fw_sysfs(dev); in fw_dev_release() local
99 if (fw_sysfs->fw_upload_priv) in fw_dev_release()
100 fw_upload_free(fw_sysfs); in fw_dev_release()
102 kfree(fw_sysfs); in fw_dev_release()
[all …]
H A Dsysfs.h76 struct fw_sysfs { struct
83 #define to_fw_sysfs(__dev) container_of_const(__dev, struct fw_sysfs, dev) argument
87 static inline void fw_load_abort(struct fw_sysfs *fw_sysfs) in fw_load_abort() argument
89 struct fw_priv *fw_priv = fw_sysfs->fw_priv; in fw_load_abort()
94 struct fw_sysfs *
104 int fw_upload_start(struct fw_sysfs *fw_sysfs);
105 void fw_upload_free(struct fw_sysfs *fw_sysfs);
108 static inline int fw_upload_start(struct fw_sysfs *fw_sysfs) in fw_upload_start() argument
113 static inline void fw_upload_free(struct fw_sysfs *fw_sysfs) in fw_upload_free() argument