Home
last modified time | relevance | path

Searched refs:fw_priv (Results 1 – 15 of 15) sorted by relevance

/drivers/base/firmware_loader/
Dfirmware.h66 struct fw_priv { struct
92 static inline bool __fw_state_check(struct fw_priv *fw_priv, in __fw_state_check() argument
95 struct fw_state *fw_st = &fw_priv->fw_st; in __fw_state_check()
100 static inline int __fw_state_wait_common(struct fw_priv *fw_priv, long timeout) in __fw_state_wait_common() argument
102 struct fw_state *fw_st = &fw_priv->fw_st; in __fw_state_wait_common()
114 static inline void __fw_state_set(struct fw_priv *fw_priv, in __fw_state_set() argument
117 struct fw_state *fw_st = &fw_priv->fw_st; in __fw_state_set()
127 list_del_init(&fw_priv->pending_list); in __fw_state_set()
133 static inline void fw_state_aborted(struct fw_priv *fw_priv) in fw_state_aborted() argument
135 __fw_state_set(fw_priv, FW_STATUS_ABORTED); in fw_state_aborted()
[all …]
Dmain.c83 static inline struct fw_priv *to_fw_priv(struct kref *ref) in to_fw_priv()
85 return container_of(ref, struct fw_priv, ref); in to_fw_priv()
97 void fw_state_init(struct fw_priv *fw_priv) in fw_state_init() argument
99 struct fw_state *fw_st = &fw_priv->fw_st; in fw_state_init()
105 static inline int fw_state_wait(struct fw_priv *fw_priv) in fw_state_wait() argument
107 return __fw_state_wait_common(fw_priv, MAX_SCHEDULE_TIMEOUT); in fw_state_wait()
110 static void fw_cache_piggyback_on_request(struct fw_priv *fw_priv);
112 static struct fw_priv *__allocate_fw_priv(const char *fw_name, in __allocate_fw_priv()
119 struct fw_priv *fw_priv; in __allocate_fw_priv() local
129 fw_priv = kzalloc(sizeof(*fw_priv), GFP_ATOMIC); in __allocate_fw_priv()
[all …]
Dsysfs.c15 void __fw_load_abort(struct fw_priv *fw_priv) in __fw_load_abort() argument
21 if (fw_state_is_aborted(fw_priv) || fw_state_is_done(fw_priv)) in __fw_load_abort()
24 fw_state_aborted(fw_priv); in __fw_load_abort()
69 if (add_uevent_var(env, "FIRMWARE=%s", fw_sysfs->fw_priv->fw_name)) in do_firmware_uevent()
85 if (fw_sysfs->fw_priv) in firmware_uevent()
133 if (fw_sysfs->fw_priv) in firmware_loading_show()
134 loading = fw_state_is_loading(fw_sysfs->fw_priv); in firmware_loading_show()
158 struct fw_priv *fw_priv; in firmware_loading_store() local
163 fw_priv = fw_sysfs->fw_priv; in firmware_loading_store()
164 if (fw_state_is_aborted(fw_priv) || fw_state_is_done(fw_priv)) in firmware_loading_store()
[all …]
Dfallback.c42 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()
[all …]
Dfallback_platform.c11 int firmware_fallback_platform(struct fw_priv *fw_priv) in firmware_fallback_platform() argument
17 if (!(fw_priv->opt_flags & FW_OPT_FALLBACK_PLATFORM)) in firmware_fallback_platform()
24 rc = efi_get_embedded_fw(fw_priv->fw_name, &data, &size); in firmware_fallback_platform()
28 if (fw_priv->data && size > fw_priv->allocated_size) in firmware_fallback_platform()
36 if (!fw_priv->data) in firmware_fallback_platform()
37 fw_priv->data = vmalloc(size); in firmware_fallback_platform()
38 if (!fw_priv->data) in firmware_fallback_platform()
41 memcpy(fw_priv->data, data, size); in firmware_fallback_platform()
42 fw_priv->size = size; in firmware_fallback_platform()
43 fw_state_done(fw_priv); in firmware_fallback_platform()
Dsysfs_upload.c214 fw_free_paged_buf(fw_sysfs->fw_priv); in fw_upload_main()
215 fw_state_init(fw_sysfs->fw_priv); in fw_upload_main()
227 struct fw_priv *fw_priv = fw_sysfs->fw_priv; in fw_upload_start() local
234 if (!fw_priv->size) { in fw_upload_start()
235 fw_free_paged_buf(fw_priv); in fw_upload_start()
236 fw_state_init(fw_sysfs->fw_priv); in fw_upload_start()
253 fwlp->remaining_size = fw_priv->size; in fw_upload_start()
254 fwlp->data = fw_priv->data; in fw_upload_start()
257 __func__, fw_priv->fw_name, in fw_upload_start()
258 fw_priv, fw_priv->data, in fw_upload_start()
[all …]
Dsysfs.h79 struct fw_priv *fw_priv; member
89 void __fw_load_abort(struct fw_priv *fw_priv);
93 struct fw_priv *fw_priv = fw_sysfs->fw_priv; in fw_load_abort() local
95 __fw_load_abort(fw_priv); in fw_load_abort()
Dfallback.h37 int firmware_fallback_platform(struct fw_priv *fw_priv);
39 static inline int firmware_fallback_platform(struct fw_priv *fw_priv) in firmware_fallback_platform() argument
/drivers/staging/rtl8712/
Drtl8712_hal.h54 struct fw_priv { /*8-bytes alignment required*/ struct
130 struct fw_priv fwpriv; argument
Dhal_init.c92 static void fill_fwpriv(struct _adapter *adapter, struct fw_priv *fwpriv) in fill_fwpriv()
97 memset(fwpriv, 0, sizeof(struct fw_priv)); in fill_fwpriv()
144 if (pfwhdr->fw_priv_sz != sizeof(struct fw_priv)) in chk_fwhdr()
/drivers/net/wireless/realtek/rtlwifi/rtl8192se/
Dfw.h52 struct fw_priv { struct
176 struct fw_priv fwpriv;
Dfw.c101 struct fw_priv *pfw_priv) in _rtl92s_firmwareheader_priveupdate()
319 struct fw_priv *pfw_priv = NULL; in rtl92s_download_fw()
/drivers/media/dvb-frontends/
Dmxl5xx.h33 void *fw_priv; member
Dmxl5xx.c1598 cfg->fw_read(cfg->fw_priv, buf, 0x40000); in load_fw()
/drivers/media/pci/ddbridge/
Dddbridge-max.c410 cfg.fw_priv = link; in ddb_fe_attach_mxl5xx()