Lines Matching refs:fw_priv
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()
138 static inline bool fw_state_is_aborted(struct fw_priv *fw_priv) in fw_state_is_aborted() argument
140 return __fw_state_check(fw_priv, FW_STATUS_ABORTED); in fw_state_is_aborted()
143 static inline void fw_state_start(struct fw_priv *fw_priv) in fw_state_start() argument
145 __fw_state_set(fw_priv, FW_STATUS_LOADING); in fw_state_start()
148 static inline void fw_state_done(struct fw_priv *fw_priv) in fw_state_done() argument
150 __fw_state_set(fw_priv, FW_STATUS_DONE); in fw_state_done()
153 static inline bool fw_state_is_done(struct fw_priv *fw_priv) in fw_state_is_done() argument
155 return __fw_state_check(fw_priv, FW_STATUS_DONE); in fw_state_is_done()
158 static inline bool fw_state_is_loading(struct fw_priv *fw_priv) in fw_state_is_loading() argument
160 return __fw_state_check(fw_priv, FW_STATUS_LOADING); in fw_state_is_loading()
164 struct fw_priv **fw_priv, void *dbuf, size_t size,
167 void free_fw_priv(struct fw_priv *fw_priv);
168 void fw_state_init(struct fw_priv *fw_priv);
188 void fw_free_paged_buf(struct fw_priv *fw_priv);
189 int fw_grow_paged_buf(struct fw_priv *fw_priv, int pages_needed);
190 int fw_map_paged_buf(struct fw_priv *fw_priv);
191 bool fw_is_paged_buf(struct fw_priv *fw_priv);
193 static inline void fw_free_paged_buf(struct fw_priv *fw_priv) {} in fw_free_paged_buf() argument
194 static inline int fw_grow_paged_buf(struct fw_priv *fw_priv, int pages_needed) { return -ENXIO; } in fw_grow_paged_buf() argument
195 static inline int fw_map_paged_buf(struct fw_priv *fw_priv) { return -ENXIO; } in fw_map_paged_buf() argument
196 static inline bool fw_is_paged_buf(struct fw_priv *fw_priv) { return false; } in fw_is_paged_buf() argument