Home
last modified time | relevance | path

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

123

/linux-6.3-rc2/drivers/base/firmware_loader/
A 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.3-rc2/drivers/staging/rtl8712/
A 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()
A 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()
A 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.3-rc2/drivers/bluetooth/
A 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.3-rc2/drivers/usb/host/
A 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.3-rc2/drivers/infiniband/hw/hfi1/
A Dfirmware.c126 enum fw_state { enum
133 static enum fw_state fw_state = FW_EMPTY; variable
552 if (fw_state == FW_TRY) { in __obtain_firmware()
616 fw_state = FW_TRY; in __obtain_firmware()
620 fw_state = FW_ERR; in __obtain_firmware()
657 fw_state = FW_ERR; in obtain_firmware()
668 if (fw_state == FW_EMPTY) in obtain_firmware()
694 if (fw_state != FW_ERR) in dispose_firmware()
695 fw_state = FW_EMPTY; in dispose_firmware()
714 if (fw_state == FW_TRY) in retry_firmware()
[all …]
/linux-6.3-rc2/drivers/net/wireless/intersil/p54/
A 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()
A Dp54spi.h108 enum fw_state fw_state; member
/linux-6.3-rc2/drivers/net/wireless/quantenna/qtnfmac/
A 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.3-rc2/sound/soc/sof/
A 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()
458 if (sdev->fw_state > SOF_FW_BOOT_NOT_STARTED) { in snd_sof_device_remove()
486 if (sdev->fw_state == SOF_FW_BOOT_COMPLETE) in snd_sof_device_shutdown()
A 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()
A 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()
A 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.3-rc2/drivers/net/wireless/mediatek/mt76/mt7915/
A Dcoredump.c156 strscpy(dump->fw_state, "normal", sizeof(dump->fw_state)); in mt7915_coredump_fw_state()
158 strscpy(dump->fw_state, "assert", sizeof(dump->fw_state)); in mt7915_coredump_fw_state()
160 strscpy(dump->fw_state, "exception", sizeof(dump->fw_state)); in mt7915_coredump_fw_state()
A Dcoredump.h33 char fw_state[12]; member
/linux-6.3-rc2/drivers/staging/rtl8723bs/include/
A 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.3-rc2/drivers/staging/rtl8723bs/hal/
A 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.3-rc2/arch/arm64/kernel/
A 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()
996 enum mitigation_state fw_state, state = SPECTRE_VULNERABLE; in spectre_bhb_enable_mitigation() local
1036 fw_state = spectre_bhb_get_cpu_fw_mitigation_state(); in spectre_bhb_enable_mitigation()
1037 if (fw_state == SPECTRE_MITIGATED) { in spectre_bhb_enable_mitigation()
/linux-6.3-rc2/sound/soc/sof/intel/
A 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()
A 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.3-rc2/drivers/media/usb/s2255/
A 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()
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()
1437 ((atomic_read(&dev->fw_data->fw_state) in s2255_open()
1439 (atomic_read(&dev->fw_data->fw_state) in s2255_open()
1468 atomic_set(&dev->fw_data->fw_state, in s2255_open()
[all …]
/linux-6.3-rc2/drivers/net/wireless/quantenna/qtnfmac/pcie/
A 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.3-rc2/drivers/gpu/drm/amd/display/dmub/src/
A 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()
598 dmub->fw_state = fw_state_fb->cpu_addr; in dmub_srv_hw_init()
/linux-6.3-rc2/drivers/scsi/
A 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 …]

Completed in 107 milliseconds

123