Lines Matching refs:fw_priv
42 static inline int fw_sysfs_wait_timeout(struct fw_priv *fw_priv, long timeout) in fw_sysfs_wait_timeout() argument
44 return __fw_state_wait_common(fw_priv, timeout); in fw_sysfs_wait_timeout()
51 struct fw_priv *fw_priv; in kill_pending_fw_fallback_reqs() local
52 struct fw_priv *next; in kill_pending_fw_fallback_reqs()
55 list_for_each_entry_safe(fw_priv, next, &pending_fw_head, in kill_pending_fw_fallback_reqs()
57 if (!fw_priv->need_uevent || !only_kill_custom) in kill_pending_fw_fallback_reqs()
58 __fw_load_abort(fw_priv); in kill_pending_fw_fallback_reqs()
74 struct fw_priv *fw_priv = fw_sysfs->fw_priv; in fw_load_sysfs_fallback() local
77 if (!fw_priv->data) in fw_load_sysfs_fallback()
78 fw_priv->is_paged_buf = true; in fw_load_sysfs_fallback()
89 if (fw_state_is_aborted(fw_priv)) { in fw_load_sysfs_fallback()
94 list_add(&fw_priv->pending_list, &pending_fw_head); in fw_load_sysfs_fallback()
97 if (fw_priv->opt_flags & FW_OPT_UEVENT) { in fw_load_sysfs_fallback()
98 fw_priv->need_uevent = true; in fw_load_sysfs_fallback()
100 dev_dbg(f_dev, "firmware: requesting %s\n", fw_priv->fw_name); in fw_load_sysfs_fallback()
106 retval = fw_sysfs_wait_timeout(fw_priv, timeout); in fw_load_sysfs_fallback()
113 if (fw_state_is_aborted(fw_priv)) { in fw_load_sysfs_fallback()
116 } else if (fw_priv->is_paged_buf && !fw_priv->data) in fw_load_sysfs_fallback()
157 fw_sysfs->fw_priv = firmware->priv; in fw_load_from_user_helper()