Lines Matching +full:firmware +full:- +full:initialized
2 /*-
3 * SPDX-License-Identifier: BSD-2-Clause
115 const struct firmware *fp; /* image handle */
116 const char *data; /* firmware image data */
117 size_t size; /* firmware image size */
162 * The card needs external firmware images to work, which is made of a
163 * bootloader, microcode and firmware proper. In version 3.00 and
166 * Old firmware < 3.0 has separate boot and ucode, so we need to
169 * dma-ble memory around until detach time, and reallocate it when
181 enum ieee80211_opmode fw_mode; /* mode of current firmware */
182 struct iwi_fw fw_boot; /* boot firmware */
199 unsigned int sc_running : 1, /* initialized */
217 int sc_state_timer; /* firmware state timer */
218 int sc_busy_timer; /* firmware cmd timer */
228 KASSERT(_sc->fw_state == IWI_FW_IDLE, \
229 ("iwi firmware not idle, state %s", iwi_fw_states[_sc->fw_state]));\
230 _sc->fw_state = _state; \
231 _sc->sc_state_timer = 5; \
236 if (_sc->fw_state == _state) \
240 iwi_fw_states[_state], iwi_fw_states[_sc->fw_state])); \
241 _sc->fw_state = IWI_FW_IDLE; \
243 _sc->sc_state_timer = 0; \
250 mtx_init(&(sc)->sc_mtx, device_get_nameunit((sc)->sc_dev), \
252 #define IWI_LOCK_DESTROY(sc) mtx_destroy(&(sc)->sc_mtx)
254 #define IWI_LOCK_ASSERT(sc) mtx_assert(&(sc)->sc_mtx, MA_OWNED)
256 if (!(__waslocked = mtx_owned(&(sc)->sc_mtx))) \
257 mtx_lock(&(sc)->sc_mtx); \
261 mtx_unlock(&(sc)->sc_mtx); \