Home
last modified time | relevance | path

Searched refs:fw_state (Results 1 – 25 of 63) sorted by relevance

123

/linux-6.6.21/drivers/base/firmware_loader/
Dfirmware.h59 struct fw_state { struct
68 struct fw_state fw_st; argument
93 struct fw_state *fw_st = &fw_priv->fw_st; in __fw_state_check()
100 struct fw_state *fw_st = &fw_priv->fw_st; in __fw_state_wait_common()
115 struct fw_state *fw_st = &fw_priv->fw_st; in __fw_state_set()
/linux-6.6.21/drivers/staging/rtl8712/
Drtl871x_mlme.h82 sint fw_state; /*shall we protect this variable? */ member
112 if (pmlmepriv->fw_state & state) in check_fwstate()
119 return pmlmepriv->fw_state; in get_fwstate()
131 pmlmepriv->fw_state |= state; in set_fwstate()
136 pmlmepriv->fw_state &= ~state; in _clr_fwstate_()
149 pmlmepriv->fw_state ^= state; in clr_fwstate()
Drtl871x_ioctl_set.c50 pmlmepriv->fw_state |= _FW_UNDER_LINKING; in do_join()
57 if (pmlmepriv->fw_state & _FW_UNDER_LINKING) in do_join()
58 pmlmepriv->fw_state ^= _FW_UNDER_LINKING; in do_join()
79 pmlmepriv->fw_state = WIFI_ADHOC_MASTER_STATE; in do_join()
91 if (pmlmepriv->fw_state & _FW_UNDER_LINKING) in do_join()
92 pmlmepriv->fw_state ^= in do_join()
Drtl871x_cmd.c361 pmlmepriv->fw_state |= WIFI_ADHOC_STATE; in r8712_joinbss_cmd()
364 pmlmepriv->fw_state |= WIFI_STATION_STATE; in r8712_joinbss_cmd()
692 if ((pmlmepriv->fw_state) & WIFI_AP_STATE) { in r8712_createbss_cmd_callback()
719 if (pmlmepriv->fw_state & _FW_UNDER_LINKING) in r8712_createbss_cmd_callback()
720 pmlmepriv->fw_state ^= _FW_UNDER_LINKING; in r8712_createbss_cmd_callback()
766 pmlmepriv->fw_state ^= _FW_UNDER_LINKING; in r8712_setassocsta_cmdrsp_callback()
/linux-6.6.21/drivers/bluetooth/
Dath3k.c335 unsigned char fw_state; in ath3k_set_normal_mode() local
338 ret = ath3k_get_state(udev, &fw_state); in ath3k_set_normal_mode()
344 if ((fw_state & ATH3K_MODE_MASK) == ATH3K_NORMAL_MODE) { in ath3k_set_normal_mode()
356 unsigned char fw_state; in ath3k_load_patch() local
363 ret = ath3k_get_state(udev, &fw_state); in ath3k_load_patch()
369 if (fw_state & ATH3K_PATCH_UPDATE) { in ath3k_load_patch()
409 unsigned char fw_state; in ath3k_load_syscfg() local
415 ret = ath3k_get_state(udev, &fw_state); in ath3k_load_syscfg()
/linux-6.6.21/drivers/usb/host/
Dxhci-pci-renesas.c221 u8 fw_state; in renesas_fw_check_running() local
229 err = pci_read_config_byte(pdev, RENESAS_FW_STATUS, &fw_state); in renesas_fw_check_running()
238 if (fw_state & RENESAS_FW_STATUS_LOCK) { in renesas_fw_check_running()
241 if (fw_state & RENESAS_FW_STATUS_SUCCESS) in renesas_fw_check_running()
254 if (fw_state & RENESAS_FW_STATUS_DOWNLOAD_ENABLE) { in renesas_fw_check_running()
261 switch (fw_state & RENESAS_FW_STATUS_RESULT) { in renesas_fw_check_running()
280 (fw_state & RENESAS_FW_STATUS_RESULT) >> 4); in renesas_fw_check_running()
/linux-6.6.21/drivers/infiniband/hw/hfi1/
Dfirmware.c126 enum fw_state { enum
133 static enum fw_state fw_state = FW_EMPTY; variable
545 if (fw_state == FW_FINAL) /* nothing more to obtain */ in __obtain_firmware()
547 if (fw_state == FW_ERR) /* already in error */ in __obtain_firmware()
552 if (fw_state == FW_TRY) { in __obtain_firmware()
614 if (fw_state == FW_EMPTY && dd->icode == ICODE_RTL_SILICON) { in __obtain_firmware()
616 fw_state = FW_TRY; in __obtain_firmware()
620 fw_state = FW_ERR; in __obtain_firmware()
624 if (fw_state == FW_EMPTY && in __obtain_firmware()
626 fw_state = FW_TRY; /* may retry later */ in __obtain_firmware()
[all …]
/linux-6.6.21/drivers/net/wireless/intersil/p54/
Dp54spi.c313 switch (priv->fw_state) { in p54spi_int_ready()
315 priv->fw_state = FW_STATE_READY; in p54spi_int_ready()
319 priv->fw_state = FW_STATE_READY; in p54spi_int_ready()
487 if (priv->fw_state == FW_STATE_OFF) in p54spi_work()
497 if (priv->fw_state != FW_STATE_READY) in p54spi_work()
529 priv->fw_state = FW_STATE_BOOTING; in p54spi_op_start()
557 WARN_ON(priv->fw_state != FW_STATE_READY); in p54spi_op_start()
572 WARN_ON(priv->fw_state != FW_STATE_READY); in p54spi_op_stop()
579 priv->fw_state = FW_STATE_OFF; in p54spi_op_stop()
Dp54spi.h108 enum fw_state fw_state; member
/linux-6.6.21/drivers/net/wireless/quantenna/qtnfmac/
Dbus.h54 enum qtnf_fw_state fw_state; member
77 enum qtnf_fw_state state = bus->fw_state; in qtnf_fw_is_up()
85 enum qtnf_fw_state state = bus->fw_state; in qtnf_fw_is_attached()
/linux-6.6.21/drivers/net/wireless/mediatek/mt76/mt7996/
Dcoredump.c110 strscpy(dump->fw_state, "normal", sizeof(dump->fw_state)); in mt7996_coredump_fw_state()
112 strscpy(dump->fw_state, "exception", sizeof(dump->fw_state)); in mt7996_coredump_fw_state()
Dcoredump.h28 char fw_state[12]; member
/linux-6.6.21/sound/soc/sof/
Dpm.c221 if (sdev->fw_state != SOF_FW_BOOT_COMPLETE) in sof_suspend()
272 if (sdev->fw_state == SOF_FW_BOOT_NOT_STARTED) in sof_suspend()
351 if (sdev->fw_state == SOF_FW_CRASHED || in snd_sof_prepare()
352 sdev->fw_state == SOF_FW_BOOT_FAILED) in snd_sof_prepare()
Dcore.c128 if (sdev->fw_state == new_state) in sof_set_fw_state()
131 dev_dbg(sdev->dev, "fw_state change: %d -> %d\n", sdev->fw_state, new_state); in sof_set_fw_state()
132 sdev->fw_state = new_state; in sof_set_fw_state()
480 if (sdev->fw_state > SOF_FW_BOOT_NOT_STARTED) { in snd_sof_device_remove()
510 if (sdev->fw_state == SOF_FW_BOOT_COMPLETE) { in snd_sof_device_shutdown()
Dloader.c155 sdev->fw_state > SOF_FW_BOOT_IN_PROGRESS, in snd_sof_run_firmware()
164 if (sdev->fw_state == SOF_FW_BOOT_READY_FAILED) in snd_sof_run_firmware()
Ddebug.c356 return snd_sof_debugfs_buf_item(sdev, &sdev->fw_state, in snd_sof_dbg_init()
357 sizeof(sdev->fw_state), in snd_sof_dbg_init()
388 if (sdev->fw_state == fw_state_dbg[i].state) { in snd_sof_dbg_print_fw_state()
395 dev_printk(level, sdev->dev, "fw_state: UNKNOWN (%d)\n", sdev->fw_state); in snd_sof_dbg_print_fw_state()
/linux-6.6.21/drivers/net/wireless/mediatek/mt76/mt7915/
Dcoredump.c157 strscpy(dump->fw_state, "normal", sizeof(dump->fw_state)); in mt7915_coredump_fw_state()
159 strscpy(dump->fw_state, "assert", sizeof(dump->fw_state)); in mt7915_coredump_fw_state()
161 strscpy(dump->fw_state, "exception", sizeof(dump->fw_state)); in mt7915_coredump_fw_state()
/linux-6.6.21/drivers/staging/rtl8723bs/include/
Drtw_mlme.h287 signed int fw_state; /* shall we protect this variable? maybe not necessarily... */ member
458 if (pmlmepriv->fw_state & state) in check_fwstate()
466 return pmlmepriv->fw_state; in get_fwstate()
478 pmlmepriv->fw_state |= state; in set_fwstate()
486 pmlmepriv->fw_state &= ~state; in _clr_fwstate_()
/linux-6.6.21/drivers/staging/rtl8723bs/hal/
Dhal_intf.c65 signed int fw_state; in rtw_hal_init_opmode() local
67 fw_state = get_fwstate(pmlmepriv); in rtw_hal_init_opmode()
69 if (fw_state & WIFI_ADHOC_STATE) in rtw_hal_init_opmode()
71 else if (fw_state & WIFI_STATION_STATE) in rtw_hal_init_opmode()
73 else if (fw_state & WIFI_AP_STATE) in rtw_hal_init_opmode()
/linux-6.6.21/arch/arm64/kernel/
Dproton-pack.c910 enum mitigation_state fw_state; in is_spectre_bhb_fw_affected() local
923 fw_state = spectre_bhb_get_cpu_fw_mitigation_state(); in is_spectre_bhb_fw_affected()
924 if (cpu_in_list || (has_smccc && fw_state == SPECTRE_MITIGATED)) { in is_spectre_bhb_fw_affected()
993 enum mitigation_state fw_state, state = SPECTRE_VULNERABLE; in spectre_bhb_enable_mitigation() local
1033 fw_state = spectre_bhb_get_cpu_fw_mitigation_state(); in spectre_bhb_enable_mitigation()
1034 if (fw_state == SPECTRE_MITIGATED) { in spectre_bhb_enable_mitigation()
/linux-6.6.21/sound/soc/codecs/
Dtas2781-i2c.c387 tas_priv->fw_state = TASDEVICE_DSP_FW_PENDING; in tasdevice_fw_ready()
394 tas_priv->fw_state = TASDEVICE_DSP_FW_FAIL; in tasdevice_fw_ready()
399 tas_priv->fw_state = TASDEVICE_DSP_FW_ALL_OK; in tasdevice_fw_ready()
418 if (tas_priv->fw_state == TASDEVICE_DSP_FW_FAIL) { in tasdevice_fw_ready()
469 if (tas_priv->fw_state != TASDEVICE_DSP_FW_ALL_OK) { in tasdevice_startup()
577 tas_priv->fw_state = TASDEVICE_DSP_FW_PENDING; in tasdevice_deinit()
/linux-6.6.21/sound/soc/sof/intel/
Dhda-ipc.c191 if (likely(sdev->fw_state == SOF_FW_BOOT_COMPLETE)) { in hda_dsp_ipc4_irq_thread()
280 if (likely(sdev->fw_state == SOF_FW_BOOT_COMPLETE)) { in hda_dsp_ipc_irq_thread()
324 if (sdev->fw_state == SOF_FW_BOOT_IN_PROGRESS && in hda_dsp_ipc_irq_thread()
Dcnl.c66 if (likely(sdev->fw_state == SOF_FW_BOOT_COMPLETE)) { in cnl_ipc4_irq_thread()
142 if (likely(sdev->fw_state == SOF_FW_BOOT_COMPLETE)) { in cnl_ipc_irq_thread()
180 if (sdev->fw_state == SOF_FW_BOOT_IN_PROGRESS && in cnl_ipc_irq_thread()
/linux-6.6.21/drivers/media/usb/s2255/
Ds2255drv.c183 atomic_t fw_state; member
478 atomic_set(&data->fw_state, S2255_FW_FAILED); in s2255_timer()
499 atomic_set(&data->fw_state, S2255_FW_FAILED); in s2255_fwchunk_complete()
506 atomic_set(&data->fw_state, S2255_FW_FAILED); in s2255_fwchunk_complete()
531 atomic_set(&data->fw_state, S2255_FW_FAILED); in s2255_fwchunk_complete()
538 atomic_set(&data->fw_state, S2255_FW_LOADED_DSPWAIT); in s2255_fwchunk_complete()
1414 state = atomic_read(&dev->fw_data->fw_state); in s2255_open()
1423 ((atomic_read(&dev->fw_data->fw_state) in s2255_open()
1425 (atomic_read(&dev->fw_data->fw_state) in s2255_open()
1429 state = atomic_read(&dev->fw_data->fw_state); in s2255_open()
[all …]
/linux-6.6.21/drivers/net/wireless/quantenna/qtnfmac/pcie/
Dpcie.c59 bus->fw_state = QTNF_FW_STATE_DEAD; in qtnf_pcie_control_tx()
137 bus->fw_state = QTNF_FW_STATE_BOOT_DONE; in qtnf_pcie_fw_boot_done()
341 bus->fw_state = QTNF_FW_STATE_DETACHED; in qtnf_pcie_probe()

123