Home
last modified time | relevance | path

Searched refs:fw_status (Results 1 – 25 of 47) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/net/ethernet/pensando/ionic/
Dionic_dev.c109 u8 fw_status; in ionic_heartbeat_check() local
120 fw_status = ioread8(&idev->dev_info_regs->fw_status); in ionic_heartbeat_check()
121 if (fw_status != 0xff) in ionic_heartbeat_check()
122 fw_status &= IONIC_FW_STS_F_RUNNING; /* use only the run bit */ in ionic_heartbeat_check()
125 if (fw_status != idev->last_fw_status && in ionic_heartbeat_check()
130 if (!fw_status || fw_status == 0xff) { in ionic_heartbeat_check()
131 dev_info(ionic->dev, "FW stopped %u\n", fw_status); in ionic_heartbeat_check()
135 dev_info(ionic->dev, "FW running %u\n", fw_status); in ionic_heartbeat_check()
148 if (fw_status & IONIC_FW_STS_F_RUNNING && in ionic_heartbeat_check()
149 fw_status != 0xff) in ionic_heartbeat_check()
[all …]
/kernel/linux/linux-5.10/drivers/base/firmware_loader/
Dfirmware.h49 enum fw_status { enum
63 enum fw_status status;
92 enum fw_status status) in __fw_state_check()
114 enum fw_status status) in __fw_state_set()
/kernel/linux/linux-5.10/drivers/misc/mei/
Dhw-me.c205 struct mei_fw_status *fw_status) in mei_me_fw_status() argument
208 const struct mei_fw_status *fw_src = &hw->cfg->fw_status; in mei_me_fw_status()
212 if (!fw_status || !hw->read_fws) in mei_me_fw_status()
215 fw_status->count = fw_src->count; in mei_me_fw_status()
218 &fw_status->status[i]); in mei_me_fw_status()
221 fw_status->status[i]); in mei_me_fw_status()
1327 .fw_status = mei_me_fw_status,
1443 .fw_status.count = 0
1446 .fw_status.count = 1, \
1447 .fw_status.status[0] = PCI_CFG_HFS_1
[all …]
Dmei_dev.h314 int (*fw_status)(struct mei_device *dev, struct mei_fw_status *fw_sts); member
756 struct mei_fw_status *fw_status) in mei_fw_status() argument
758 return dev->ops->fw_status(dev, fw_status); in mei_fw_status()
795 struct mei_fw_status fw_status; in mei_fw_status_str() local
800 ret = mei_fw_status(dev, &fw_status); in mei_fw_status_str()
804 ret = mei_fw_status2str(&fw_status, buf, MEI_FW_STATUS_STR_SZ); in mei_fw_status_str()
Dinit.c56 ssize_t mei_fw_status2str(struct mei_fw_status *fw_status, in mei_fw_status2str() argument
67 for (i = 0; i < fw_status->count; i++) in mei_fw_status2str()
69 fw_status->status[i]); in mei_fw_status2str()
Dhw-txe.c638 struct mei_fw_status *fw_status) in mei_txe_fw_status() argument
645 if (!fw_status) in mei_txe_fw_status()
648 fw_status->count = fw_src->count; in mei_txe_fw_status()
651 &fw_status->status[i]); in mei_txe_fw_status()
654 fw_status->status[i]); in mei_txe_fw_status()
1163 .fw_status = mei_txe_fw_status,
Dhw-me.h28 const struct mei_fw_status fw_status; member
Dmain.c961 struct mei_fw_status fw_status; in fw_status_show() local
966 err = mei_fw_status(dev, &fw_status); in fw_status_show()
973 for (i = 0; i < fw_status.count; i++) in fw_status_show()
975 fw_status.status[i]); in fw_status_show()
978 static DEVICE_ATTR_RO(fw_status);
/kernel/linux/linux-5.10/drivers/scsi/pm8001/
Dpm8001_ctl.c688 pm8001_ha->fw_status = FAIL_FILE_SIZE; in pm8001_set_nvmd()
694 pm8001_ha->fw_status = FAIL_OUT_MEMORY; in pm8001_set_nvmd()
706 pm8001_ha->fw_status = FAIL_OUT_MEMORY; in pm8001_set_nvmd()
729 pm8001_ha->fw_status = FAIL_FILE_SIZE; in pm8001_update_flash()
734 pm8001_ha->fw_status = FAIL_OUT_MEMORY; in pm8001_update_flash()
776 pm8001_ha->fw_status = FAIL_OUT_MEMORY; in pm8001_update_flash()
781 pm8001_ha->fw_status = fwControl->retcode; in pm8001_update_flash()
808 if (pm8001_ha->fw_status == FLASH_IN_PROGRESS) in pm8001_store_update_fw()
810 pm8001_ha->fw_status = FLASH_IN_PROGRESS; in pm8001_store_update_fw()
814 pm8001_ha->fw_status = FAIL_OUT_MEMORY; in pm8001_store_update_fw()
[all …]
/kernel/linux/linux-5.10/drivers/usb/host/
Dxhci-pci-renesas.c58 u8 fw_status; in renesas_fw_download_image() local
77 err = pci_read_config_byte(dev, status_reg, &fw_status); in renesas_fw_download_image()
83 if (!(fw_status & BIT(data0_or_data1))) in renesas_fw_download_image()
295 u8 fw_status; in renesas_fw_download() local
330 &fw_status); in renesas_fw_download()
333 if (!(fw_status & (BIT(0) | BIT(1)))) in renesas_fw_download()
351 err = pci_read_config_byte(pdev, RENESAS_FW_STATUS, &fw_status); in renesas_fw_download()
354 if (fw_status & RENESAS_FW_STATUS_SUCCESS) in renesas_fw_download()
/kernel/linux/linux-5.10/drivers/net/wireless/ti/wl18xx/
Dtx.c135 (struct wl18xx_fw_status_priv *)wl->fw_status->priv; in wl18xx_tx_immediate_complete()
144 hlid = wl->fw_status->counters.hlid; in wl18xx_tx_immediate_complete()
148 wl->fw_status->counters.tx_last_rate; in wl18xx_tx_immediate_complete()
150 wl->fw_status->counters.tx_last_rate_mbps; in wl18xx_tx_immediate_complete()
Dmain.c1181 struct wl_fw_status *fw_status) in wl18xx_convert_fw_status() argument
1185 fw_status->intr = le32_to_cpu(int_fw_status->intr); in wl18xx_convert_fw_status()
1186 fw_status->fw_rx_counter = int_fw_status->fw_rx_counter; in wl18xx_convert_fw_status()
1187 fw_status->drv_rx_counter = int_fw_status->drv_rx_counter; in wl18xx_convert_fw_status()
1188 fw_status->tx_results_counter = int_fw_status->tx_results_counter; in wl18xx_convert_fw_status()
1189 fw_status->rx_pkt_descs = int_fw_status->rx_pkt_descs; in wl18xx_convert_fw_status()
1191 fw_status->fw_localtime = le32_to_cpu(int_fw_status->fw_localtime); in wl18xx_convert_fw_status()
1192 fw_status->link_ps_bitmap = le32_to_cpu(int_fw_status->link_ps_bitmap); in wl18xx_convert_fw_status()
1193 fw_status->link_fast_bitmap = in wl18xx_convert_fw_status()
1195 fw_status->total_released_blks = in wl18xx_convert_fw_status()
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/ti/wl12xx/
Dmain.c1365 if (wl->fw_status->tx_results_counter == in wl12xx_tx_delayed_compl()
1426 struct wl_fw_status *fw_status) in wl12xx_convert_fw_status() argument
1430 fw_status->intr = le32_to_cpu(int_fw_status->intr); in wl12xx_convert_fw_status()
1431 fw_status->fw_rx_counter = int_fw_status->fw_rx_counter; in wl12xx_convert_fw_status()
1432 fw_status->drv_rx_counter = int_fw_status->drv_rx_counter; in wl12xx_convert_fw_status()
1433 fw_status->tx_results_counter = int_fw_status->tx_results_counter; in wl12xx_convert_fw_status()
1434 fw_status->rx_pkt_descs = int_fw_status->rx_pkt_descs; in wl12xx_convert_fw_status()
1436 fw_status->fw_localtime = le32_to_cpu(int_fw_status->fw_localtime); in wl12xx_convert_fw_status()
1437 fw_status->link_ps_bitmap = le32_to_cpu(int_fw_status->link_ps_bitmap); in wl12xx_convert_fw_status()
1438 fw_status->link_fast_bitmap = in wl12xx_convert_fw_status()
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/mvm/
Dd3.c1774 struct iwl_wowlan_status *fw_status; in iwl_mvm_query_wakeup_reasons() local
1779 fw_status = iwl_mvm_get_wakeup_status(mvm); in iwl_mvm_query_wakeup_reasons()
1780 if (IS_ERR_OR_NULL(fw_status)) in iwl_mvm_query_wakeup_reasons()
1784 le32_to_cpu(fw_status->wakeup_reasons)); in iwl_mvm_query_wakeup_reasons()
1786 status.pattern_number = le16_to_cpu(fw_status->pattern_number); in iwl_mvm_query_wakeup_reasons()
1789 le16_to_cpu(fw_status->qos_seq_ctr[i]); in iwl_mvm_query_wakeup_reasons()
1790 status.wakeup_reasons = le32_to_cpu(fw_status->wakeup_reasons); in iwl_mvm_query_wakeup_reasons()
1792 le32_to_cpu(fw_status->wake_packet_length); in iwl_mvm_query_wakeup_reasons()
1794 le32_to_cpu(fw_status->wake_packet_bufsize); in iwl_mvm_query_wakeup_reasons()
1795 status.wake_packet = fw_status->wake_packet; in iwl_mvm_query_wakeup_reasons()
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/rsi/
Drsi_91x_sdio_ops.c241 u8 fw_status = 0; in rsi_rx_handler() local
297 &fw_status); in rsi_rx_handler()
305 __func__ , fw_status); in rsi_rx_handler()
Drsi_91x_usb.c788 u16 fw_status; in rsi_probe() local
825 status = rsi_usb_reg_read(dev->usbdev, FW_STATUS_REG, &fw_status, 2); in rsi_probe()
829 fw_status &= 1; in rsi_probe()
831 if (!fw_status) { in rsi_probe()
/kernel/linux/linux-5.10/drivers/net/wireless/marvell/mwifiex/
Dpcie.c41 .fw_status = PCIE_SCRATCH_3_REG,
73 .fw_status = PCIE_SCRATCH_3_REG,
110 .fw_status = PCIE_SCRATCH_3_REG,
434 u32 fw_status; in mwifiex_pcie_remove() local
447 ret = mwifiex_read_reg(adapter, reg->fw_status, &fw_status); in mwifiex_pcie_remove()
449 fw_status = -1; in mwifiex_pcie_remove()
451 if (fw_status == FIRMWARE_READY_PCIE && !adapter->mfg_mode) { in mwifiex_pcie_remove()
667 adapter, reg->fw_status, FIRMWARE_READY_PCIE)) { in mwifiex_pm_wakeup_card()
672 adapter, reg->fw_status, FIRMWARE_READY_PCIE)) { in mwifiex_pm_wakeup_card()
2494 if (mwifiex_read_reg(adapter, reg->fw_status, in mwifiex_check_fw_status()
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/realtek/rtlwifi/rtl8192se/
Dfw.c56 static enum fw_status _rtl92s_firmware_get_nextstatus( in _rtl92s_firmware_get_nextstatus()
57 enum fw_status fw_currentstatus) in _rtl92s_firmware_get_nextstatus()
59 enum fw_status next_fwstatus = 0; in _rtl92s_firmware_get_nextstatus()
201 firmware->fwstatus = (enum fw_status)loadfw_status; in _rtl92s_firmware_checkready()
Dfw.h180 enum fw_status { enum
190 enum fw_status fwstatus;
/kernel/linux/linux-5.10/drivers/net/wireless/ti/wlcore/
Dhw_ops.h97 struct wl_fw_status *fw_status) in wlcore_hw_convert_fw_status() argument
101 wl->ops->convert_fw_status(wl, raw_fw_status, fw_status); in wlcore_hw_convert_fw_status()
Dwlcore.h66 struct wl_fw_status *fw_status);
350 struct wl_fw_status *fw_status; member
/kernel/linux/linux-5.10/drivers/media/pci/saa7164/
Dsaa7164-core.c713 struct saa7164_fw_status *s = &dev->fw_status; in saa7164_getfirmwarestatus()
715 dev->fw_status.status = saa7164_readl(SAA_DEVICE_SYSINIT_STATUS); in saa7164_getfirmwarestatus()
716 dev->fw_status.mode = saa7164_readl(SAA_DEVICE_SYSINIT_MODE); in saa7164_getfirmwarestatus()
717 dev->fw_status.spec = saa7164_readl(SAA_DEVICE_SYSINIT_SPEC); in saa7164_getfirmwarestatus()
718 dev->fw_status.inst = saa7164_readl(SAA_DEVICE_SYSINIT_INST); in saa7164_getfirmwarestatus()
719 dev->fw_status.cpuload = saa7164_readl(SAA_DEVICE_SYSINIT_CPULOAD); in saa7164_getfirmwarestatus()
720 dev->fw_status.remainheap = in saa7164_getfirmwarestatus()
/kernel/linux/linux-5.10/drivers/scsi/qla2xxx/
Dqla_isr.c1973 uint32_t fw_status[3]; in qla24xx_els_ct_entry() local
2015 comp_status = fw_status[0] = le16_to_cpu(pkt->comp_status); in qla24xx_els_ct_entry()
2016 fw_status[1] = le32_to_cpu(ese->error_subcode_1); in qla24xx_els_ct_entry()
2017 fw_status[2] = le32_to_cpu(ese->error_subcode_2); in qla24xx_els_ct_entry()
2021 els->u.els_plogi.fw_status[0] = cpu_to_le32(fw_status[0]); in qla24xx_els_ct_entry()
2022 els->u.els_plogi.fw_status[1] = cpu_to_le32(fw_status[1]); in qla24xx_els_ct_entry()
2023 els->u.els_plogi.fw_status[2] = cpu_to_le32(fw_status[2]); in qla24xx_els_ct_entry()
2024 els->u.els_plogi.comp_status = cpu_to_le16(fw_status[0]); in qla24xx_els_ct_entry()
2039 type, sp->handle, comp_status, fw_status[1], fw_status[2], in qla24xx_els_ct_entry()
2050 bsg_job->reply_len = sizeof(struct fc_bsg_reply) + sizeof(fw_status); in qla24xx_els_ct_entry()
[all …]
Dqla_iocb.c2829 const __le32 *fw_status = sp->u.iocb_cmd.u.els_plogi.fw_status; in qla2x00_els_dcmd2_sp_done() local
2842 switch (le32_to_cpu(fw_status[0])) { in qla2x00_els_dcmd2_sp_done()
2852 switch (le32_to_cpu(fw_status[1])) { in qla2x00_els_dcmd2_sp_done()
2854 lid = le32_to_cpu(fw_status[2]) & 0xffff; in qla2x00_els_dcmd2_sp_done()
2888 cid.b.domain = (le32_to_cpu(fw_status[2]) >> 16) in qla2x00_els_dcmd2_sp_done()
2890 cid.b.area = (le32_to_cpu(fw_status[2]) >> 8) in qla2x00_els_dcmd2_sp_done()
2892 cid.b.al_pa = le32_to_cpu(fw_status[2]) & 0xff; in qla2x00_els_dcmd2_sp_done()
2921 fw_status[0], fw_status[1], fw_status[2]); in qla2x00_els_dcmd2_sp_done()
2933 fw_status[0], fw_status[1], fw_status[2]); in qla2x00_els_dcmd2_sp_done()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx4/
Dcmd.c133 u8 fw_status; member
218 static int mlx4_closing_cmd_fatal_error(u16 op, u8 fw_status) in mlx4_closing_cmd_fatal_error() argument
236 if (op == MLX4_CMD_HW2SW_MPT && fw_status != CMD_STAT_REG_BOUND) in mlx4_closing_cmd_fatal_error()
373 if (err && context->fw_status != CMD_STAT_MULTI_FUNC_REQ) { in mlx4_comm_cmd_wait()
375 vhcr_cmd, context->fw_status); in mlx4_comm_cmd_wait()
376 if (mlx4_closing_cmd_fatal_error(op, context->fw_status)) in mlx4_comm_cmd_wait()
670 context->fw_status = status; in mlx4_cmd_event()
714 context->fw_status = 0; in mlx4_cmd_wait()
744 context->fw_status == CMD_STAT_BAD_SIZE) in mlx4_cmd_wait()
746 op, context->fw_status); in mlx4_cmd_wait()
[all …]

12