Lines Matching refs:fwrt
16 void iwl_fw_runtime_init(struct iwl_fw_runtime *fwrt, struct iwl_trans *trans, in iwl_fw_runtime_init() argument
25 memset(fwrt, 0, sizeof(*fwrt)); in iwl_fw_runtime_init()
26 fwrt->trans = trans; in iwl_fw_runtime_init()
27 fwrt->fw = fw; in iwl_fw_runtime_init()
28 fwrt->dev = trans->dev; in iwl_fw_runtime_init()
29 fwrt->dump.conf = FW_DBG_INVALID; in iwl_fw_runtime_init()
30 fwrt->ops = ops; in iwl_fw_runtime_init()
31 fwrt->sanitize_ops = sanitize_ops; in iwl_fw_runtime_init()
32 fwrt->sanitize_ctx = sanitize_ctx; in iwl_fw_runtime_init()
33 fwrt->ops_ctx = ops_ctx; in iwl_fw_runtime_init()
35 fwrt->dump.wks[i].idx = i; in iwl_fw_runtime_init()
36 INIT_DELAYED_WORK(&fwrt->dump.wks[i].wk, iwl_fw_error_dump_wk); in iwl_fw_runtime_init()
38 iwl_fwrt_dbgfs_register(fwrt, dbgfs_dir); in iwl_fw_runtime_init()
42 void iwl_fw_runtime_suspend(struct iwl_fw_runtime *fwrt) in iwl_fw_runtime_suspend() argument
44 iwl_fw_suspend_timestamp(fwrt); in iwl_fw_runtime_suspend()
45 iwl_dbg_tlv_time_point(fwrt, IWL_FW_INI_TIME_POINT_HOST_D3_START, NULL); in iwl_fw_runtime_suspend()
49 void iwl_fw_runtime_resume(struct iwl_fw_runtime *fwrt) in iwl_fw_runtime_resume() argument
51 iwl_dbg_tlv_time_point(fwrt, IWL_FW_INI_TIME_POINT_HOST_D3_END, NULL); in iwl_fw_runtime_resume()
52 iwl_fw_resume_timestamp(fwrt); in iwl_fw_runtime_resume()
57 int iwl_set_soc_latency(struct iwl_fw_runtime *fwrt) in iwl_set_soc_latency() argument
73 if (!fwrt->trans->trans_cfg->integrated) in iwl_set_soc_latency()
85 if (fwrt->trans->trans_cfg->ltr_delay != IWL_CFG_TRANS_LTR_DELAY_NONE && in iwl_set_soc_latency()
86 !WARN_ON(!fwrt->trans->trans_cfg->integrated)) in iwl_set_soc_latency()
87 cmd.flags |= le32_encode_bits(fwrt->trans->trans_cfg->ltr_delay, in iwl_set_soc_latency()
90 if (iwl_fw_lookup_cmd_ver(fwrt->fw, SCAN_REQ_UMAC, in iwl_set_soc_latency()
92 fwrt->trans->trans_cfg->low_latency_xtal) in iwl_set_soc_latency()
95 cmd.latency = cpu_to_le32(fwrt->trans->trans_cfg->xtal_latency); in iwl_set_soc_latency()
97 ret = iwl_trans_send_cmd(fwrt->trans, &hcmd); in iwl_set_soc_latency()
99 IWL_ERR(fwrt, "Failed to set soc latency: %d\n", ret); in iwl_set_soc_latency()
104 int iwl_configure_rxq(struct iwl_fw_runtime *fwrt) in iwl_configure_rxq() argument
117 if (fwrt->trans->num_rx_queues == 1) in iwl_configure_rxq()
120 if (fwrt->trans->trans_cfg->device_family < IWL_DEVICE_FAMILY_22000) in iwl_configure_rxq()
124 num_queues = fwrt->trans->num_rx_queues - 1; in iwl_configure_rxq()
138 iwl_trans_get_rxq_dma_data(fwrt->trans, i + 1, &data); in iwl_configure_rxq()
150 ret = iwl_trans_send_cmd(fwrt->trans, &hcmd); in iwl_configure_rxq()
155 IWL_ERR(fwrt, "Failed to configure RX queues: %d\n", ret); in iwl_configure_rxq()