Home
last modified time | relevance | path

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

123

/linux-6.1.9/drivers/base/firmware_loader/
Dfirmware.h61 struct fw_state { struct
70 struct fw_state fw_st; argument
95 struct fw_state *fw_st = &fw_priv->fw_st; in __fw_state_check()
102 struct fw_state *fw_st = &fw_priv->fw_st; in __fw_state_wait_common()
117 struct fw_state *fw_st = &fw_priv->fw_st; in __fw_state_set()
/linux-6.1.9/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()
Drtl871x_mlme.c42 pmlmepriv->fw_state = 0; in r8712_init_mlme_priv()
542 pmlmepriv->fw_state ^= _FW_UNDER_SURVEY; in r8712_surveydone_event_callback()
550 pmlmepriv->fw_state = in r8712_surveydone_event_callback()
747 pmlmepriv->fw_state ^= in r8712_joinbss_event_callback()
795 pmlmepriv->fw_state ^= in r8712_joinbss_event_callback()
808 pmlmepriv->fw_state = WIFI_STATION_STATE; in r8712_joinbss_event_callback()
811 pmlmepriv->fw_state = WIFI_ADHOC_STATE; in r8712_joinbss_event_callback()
814 pmlmepriv->fw_state = WIFI_NULL_STATE; in r8712_joinbss_event_callback()
/linux-6.1.9/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.1.9/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.1.9/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.1.9/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.1.9/drivers/net/wireless/intersil/p54/
Dp54spi.c312 switch (priv->fw_state) { in p54spi_int_ready()
314 priv->fw_state = FW_STATE_READY; in p54spi_int_ready()
318 priv->fw_state = FW_STATE_READY; in p54spi_int_ready()
486 if (priv->fw_state == FW_STATE_OFF) in p54spi_work()
496 if (priv->fw_state != FW_STATE_READY) in p54spi_work()
528 priv->fw_state = FW_STATE_BOOTING; in p54spi_op_start()
556 WARN_ON(priv->fw_state != FW_STATE_READY); in p54spi_op_start()
571 WARN_ON(priv->fw_state != FW_STATE_READY); in p54spi_op_stop()
578 priv->fw_state = FW_STATE_OFF; in p54spi_op_stop()
Dp54spi.h108 enum fw_state fw_state; member
/linux-6.1.9/sound/soc/sof/
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()
454 if (sdev->fw_state > SOF_FW_BOOT_NOT_STARTED) { in snd_sof_device_remove()
482 if (sdev->fw_state == SOF_FW_BOOT_COMPLETE) in snd_sof_device_shutdown()
Dpm.c198 if (sdev->fw_state != SOF_FW_BOOT_COMPLETE) in sof_suspend()
253 if (sdev->fw_state == SOF_FW_BOOT_NOT_STARTED) in sof_suspend()
332 if (sdev->fw_state == SOF_FW_CRASHED || in snd_sof_prepare()
333 sdev->fw_state == SOF_FW_BOOT_FAILED) in snd_sof_prepare()
Dloader.c156 sdev->fw_state > SOF_FW_BOOT_IN_PROGRESS, in snd_sof_run_firmware()
165 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()
387 if (sdev->fw_state == fw_state_dbg[i].state) { in snd_sof_dbg_print_fw_state()
394 dev_printk(level, sdev->dev, "fw_state: UNKNOWN (%d)\n", sdev->fw_state); in snd_sof_dbg_print_fw_state()
/linux-6.1.9/drivers/staging/r8188eu/include/
Drtw_mlme.h300 int fw_state; /* shall we protect this variable? maybe not necessarily... */ member
440 if (pmlmepriv->fw_state & state) in check_fwstate()
448 return pmlmepriv->fw_state; in get_fwstate()
460 pmlmepriv->fw_state |= state; in set_fwstate()
468 pmlmepriv->fw_state &= ~state; in _clr_fwstate_()
482 pmlmepriv->fw_state ^= state; in clr_fwstate()
/linux-6.1.9/drivers/staging/rtl8723bs/include/
Drtw_mlme.h287 signed int fw_state; /* shall we protect this variable? maybe not necessarily... */ member
459 if (pmlmepriv->fw_state & state) in check_fwstate()
467 return pmlmepriv->fw_state; in get_fwstate()
479 pmlmepriv->fw_state |= state; in set_fwstate()
487 pmlmepriv->fw_state &= ~state; in _clr_fwstate_()
501 pmlmepriv->fw_state ^= state; in clr_fwstate()
/linux-6.1.9/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.1.9/arch/arm64/kernel/
Dproton-pack.c922 enum mitigation_state fw_state; in is_spectre_bhb_fw_affected() local
935 fw_state = spectre_bhb_get_cpu_fw_mitigation_state(); in is_spectre_bhb_fw_affected()
936 if (cpu_in_list || (has_smccc && fw_state == SPECTRE_MITIGATED)) { in is_spectre_bhb_fw_affected()
1008 enum mitigation_state fw_state, state = SPECTRE_VULNERABLE; in spectre_bhb_enable_mitigation() local
1048 fw_state = spectre_bhb_get_cpu_fw_mitigation_state(); in spectre_bhb_enable_mitigation()
1049 if (fw_state == SPECTRE_MITIGATED) { in spectre_bhb_enable_mitigation()
/linux-6.1.9/sound/soc/sof/intel/
Dhda-ipc.c152 if (likely(sdev->fw_state == SOF_FW_BOOT_COMPLETE)) { in hda_dsp_ipc4_irq_thread()
233 if (likely(sdev->fw_state == SOF_FW_BOOT_COMPLETE)) { in hda_dsp_ipc_irq_thread()
277 if (sdev->fw_state == SOF_FW_BOOT_IN_PROGRESS && in hda_dsp_ipc_irq_thread()
Dcnl.c64 if (likely(sdev->fw_state == SOF_FW_BOOT_COMPLETE)) { in cnl_ipc4_irq_thread()
132 if (likely(sdev->fw_state == SOF_FW_BOOT_COMPLETE)) { in cnl_ipc_irq_thread()
170 if (sdev->fw_state == SOF_FW_BOOT_IN_PROGRESS && in cnl_ipc_irq_thread()
/linux-6.1.9/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.1.9/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()
/linux-6.1.9/drivers/gpu/drm/amd/display/dmub/src/
Ddmub_srv.c375 struct dmub_region *fw_state = &out->regions[DMUB_WINDOW_6_FW_STATE]; in dmub_srv_calc_region_info() local
429 fw_state->base = dmub_align(trace_buff->top, 256); in dmub_srv_calc_region_info()
430 fw_state->top = fw_state->base + dmub_align(fw_state_size, 64); in dmub_srv_calc_region_info()
432 scratch_mem->base = dmub_align(fw_state->top, 256); in dmub_srv_calc_region_info()
595 dmub->fw_state = fw_state_fb->cpu_addr; in dmub_srv_hw_init()
/linux-6.1.9/drivers/scsi/
Dmvumi.c596 mhba->fw_state = FW_STATE_ABORT; in mvumi_wait_for_outstanding()
668 mhba->fw_state = FW_STATE_ABORT; in mvumi_reset_host_9580()
1097 if (mhba->fw_state == FW_STATE_STARTING) in mvumi_handshake()
1104 mhba->fw_state = FW_STATE_STARTING; in mvumi_handshake()
1112 mhba->fw_state = FW_STATE_HANDSHAKING; in mvumi_handshake()
1199 mhba->fw_state = FW_STATE_STARTED; in mvumi_handshake()
1220 if (mhba->fw_state == FW_STATE_STARTED) in mvumi_handshake_event()
1225 mhba->fw_state); in mvumi_handshake_event()
1259 mhba->fw_state = FW_STATE_STARTING; in mvumi_check_handshake()
1265 mhba->fw_state); in mvumi_check_handshake()
[all …]

123