Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/base/firmware_loader/
Dfirmware.h66 struct fw_priv { struct
91 static inline bool __fw_state_check(struct fw_priv *fw_priv, in __fw_state_check() argument
94 struct fw_state *fw_st = &fw_priv->fw_st; in __fw_state_check()
99 static inline int __fw_state_wait_common(struct fw_priv *fw_priv, long timeout) in __fw_state_wait_common() argument
101 struct fw_state *fw_st = &fw_priv->fw_st; in __fw_state_wait_common()
113 static inline void __fw_state_set(struct fw_priv *fw_priv, in __fw_state_set() argument
116 struct fw_state *fw_st = &fw_priv->fw_st; in __fw_state_set()
126 list_del_init(&fw_priv->pending_list); in __fw_state_set()
132 static inline void fw_state_aborted(struct fw_priv *fw_priv) in fw_state_aborted() argument
134 __fw_state_set(fw_priv, FW_STATUS_ABORTED); in fw_state_aborted()
[all …]
Dfallback.c61 static inline bool fw_sysfs_done(struct fw_priv *fw_priv) in fw_sysfs_done() argument
63 return __fw_state_check(fw_priv, FW_STATUS_DONE); in fw_sysfs_done()
66 static inline bool fw_sysfs_loading(struct fw_priv *fw_priv) in fw_sysfs_loading() argument
68 return __fw_state_check(fw_priv, FW_STATUS_LOADING); in fw_sysfs_loading()
71 static inline int fw_sysfs_wait_timeout(struct fw_priv *fw_priv, long timeout) in fw_sysfs_wait_timeout() argument
73 return __fw_state_wait_common(fw_priv, timeout); in fw_sysfs_wait_timeout()
79 struct fw_priv *fw_priv; member
88 static void __fw_load_abort(struct fw_priv *fw_priv) in __fw_load_abort() argument
94 if (fw_state_is_aborted(fw_priv) || fw_sysfs_done(fw_priv)) in __fw_load_abort()
97 fw_state_aborted(fw_priv); in __fw_load_abort()
[all …]
Dmain.c81 static inline struct fw_priv *to_fw_priv(struct kref *ref) in to_fw_priv()
83 return container_of(ref, struct fw_priv, ref); in to_fw_priv()
155 static void fw_state_init(struct fw_priv *fw_priv) in fw_state_init() argument
157 struct fw_state *fw_st = &fw_priv->fw_st; in fw_state_init()
163 static inline int fw_state_wait(struct fw_priv *fw_priv) in fw_state_wait() argument
165 return __fw_state_wait_common(fw_priv, MAX_SCHEDULE_TIMEOUT); in fw_state_wait()
168 static void fw_cache_piggyback_on_request(struct fw_priv *fw_priv);
170 static struct fw_priv *__allocate_fw_priv(const char *fw_name, in __allocate_fw_priv()
177 struct fw_priv *fw_priv; in __allocate_fw_priv() local
187 fw_priv = kzalloc(sizeof(*fw_priv), GFP_ATOMIC); in __allocate_fw_priv()
[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()
Dfallback.h70 int firmware_fallback_platform(struct fw_priv *fw_priv);
72 static inline int firmware_fallback_platform(struct fw_priv *fw_priv) in firmware_fallback_platform() argument
/kernel/linux/linux-5.10/drivers/staging/rtl8712/
Drtl8712_hal.h54 struct fw_priv { /*8-bytes alignment required*/ struct
130 struct fw_priv fwpriv; argument
Dhal_init.c93 static void fill_fwpriv(struct _adapter *adapter, struct fw_priv *fwpriv) in fill_fwpriv()
98 memset(fwpriv, 0, sizeof(struct fw_priv)); in fill_fwpriv()
145 if (pfwhdr->fw_priv_sz != sizeof(struct fw_priv)) in chk_fwhdr()
/kernel/linux/linux-5.10/drivers/media/dvb-frontends/
Dmxl5xx.h42 void *fw_priv; member
Dmxl5xx.c1607 cfg->fw_read(cfg->fw_priv, buf, 0x40000); in load_fw()
/kernel/linux/linux-5.10/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()
/kernel/linux/patches/linux-5.10/imx8mm_patch/patches/drivers/
D0013_linux_drivers_base.patch103 @@ -464,11 +464,13 @@ static int fw_decompress_xz(struct device *dev, struct fw_priv *fw_priv,
D0020_linux_drivers_gpu.patch33762 + fu = dpu->fw_priv[i];
33818 + fu = dpu->fw_priv[i];
33850 + dpu->fw_priv[i] = fu;
35498 + struct dpu_fetchunit *fw_priv[1];
/kernel/linux/linux-5.10/drivers/media/pci/ddbridge/
Dddbridge-max.c419 cfg.fw_priv = link; in ddb_fe_attach_mxl5xx()