/drivers/base/firmware_loader/ |
D | firmware.h | 66 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 …]
|
D | main.c | 83 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 …]
|
D | sysfs.c | 15 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 …]
|
D | fallback.c | 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() [all …]
|
D | fallback_platform.c | 11 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()
|
D | sysfs_upload.c | 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() 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 …]
|
D | sysfs.h | 79 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()
|
D | fallback.h | 37 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/ |
D | rtl8712_hal.h | 54 struct fw_priv { /*8-bytes alignment required*/ struct 130 struct fw_priv fwpriv; argument
|
D | hal_init.c | 92 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/ |
D | fw.h | 52 struct fw_priv { struct 176 struct fw_priv fwpriv;
|
D | fw.c | 101 struct fw_priv *pfw_priv) in _rtl92s_firmwareheader_priveupdate() 319 struct fw_priv *pfw_priv = NULL; in rtl92s_download_fw()
|
/drivers/media/dvb-frontends/ |
D | mxl5xx.h | 33 void *fw_priv; member
|
D | mxl5xx.c | 1598 cfg->fw_read(cfg->fw_priv, buf, 0x40000); in load_fw()
|
/drivers/media/pci/ddbridge/ |
D | ddbridge-max.c | 410 cfg.fw_priv = link; in ddb_fe_attach_mxl5xx()
|