Lines Matching refs:fwrt
120 debugfs_create_file(alias, mode, parent, fwrt, \
126 static int iwl_dbgfs_enabled_severities_write(struct iwl_fw_runtime *fwrt, in iwl_dbgfs_enabled_severities_write() argument
144 if (fwrt->ops && fwrt->ops->send_hcmd) in iwl_dbgfs_enabled_severities_write()
145 ret = fwrt->ops->send_hcmd(fwrt->ops_ctx, &hcmd); in iwl_dbgfs_enabled_severities_write()
149 IWL_INFO(fwrt, in iwl_dbgfs_enabled_severities_write()
161 struct iwl_fw_runtime *fwrt = in iwl_fw_timestamp_marker_wk() local
163 unsigned long delay = fwrt->timestamp.delay; in iwl_fw_timestamp_marker_wk()
165 ret = iwl_fw_send_timestamp_marker_cmd(fwrt); in iwl_fw_timestamp_marker_wk()
167 schedule_delayed_work(&fwrt->timestamp.wk, in iwl_fw_timestamp_marker_wk()
170 IWL_INFO(fwrt, in iwl_fw_timestamp_marker_wk()
175 void iwl_fw_trigger_timestamp(struct iwl_fw_runtime *fwrt, u32 delay) in iwl_fw_trigger_timestamp() argument
177 IWL_INFO(fwrt, in iwl_fw_trigger_timestamp()
181 iwl_fw_cancel_timestamp(fwrt); in iwl_fw_trigger_timestamp()
183 fwrt->timestamp.delay = msecs_to_jiffies(delay * 1000); in iwl_fw_trigger_timestamp()
185 schedule_delayed_work(&fwrt->timestamp.wk, in iwl_fw_trigger_timestamp()
186 round_jiffies_relative(fwrt->timestamp.delay)); in iwl_fw_trigger_timestamp()
189 static ssize_t iwl_dbgfs_timestamp_marker_write(struct iwl_fw_runtime *fwrt, in iwl_dbgfs_timestamp_marker_write() argument
199 iwl_fw_trigger_timestamp(fwrt, delay); in iwl_dbgfs_timestamp_marker_write()
204 static ssize_t iwl_dbgfs_timestamp_marker_read(struct iwl_fw_runtime *fwrt, in iwl_dbgfs_timestamp_marker_read() argument
207 u32 delay_secs = jiffies_to_msecs(fwrt->timestamp.delay) / 1000; in iwl_dbgfs_timestamp_marker_read()
221 static ssize_t iwl_dbgfs_send_hcmd_write(struct iwl_fw_runtime *fwrt, char *buf, in iwl_dbgfs_send_hcmd_write() argument
233 if (!iwl_trans_fw_running(fwrt->trans)) in iwl_dbgfs_send_hcmd_write()
253 IWL_ERR(fwrt, in iwl_dbgfs_send_hcmd_write()
259 if (fwrt->ops && fwrt->ops->send_hcmd) in iwl_dbgfs_send_hcmd_write()
260 ret = fwrt->ops->send_hcmd(fwrt->ops_ctx, &hcmd); in iwl_dbgfs_send_hcmd_write()
276 static ssize_t iwl_dbgfs_fw_dbg_domain_read(struct iwl_fw_runtime *fwrt, in iwl_dbgfs_fw_dbg_domain_read() argument
280 fwrt->trans->dbg.domains_bitmap); in iwl_dbgfs_fw_dbg_domain_read()
286 struct iwl_fw_runtime *fwrt; member
298 const struct iwl_fw *fw = priv->fwrt->fw; in iwl_dbgfs_fw_info_seq_next()
318 const struct iwl_fw *fw = priv->fwrt->fw; in iwl_dbgfs_fw_info_seq_start()
335 const struct iwl_fw *fw = priv->fwrt->fw; in iwl_dbgfs_fw_info_seq_show()
363 iwl_get_cmd_string(priv->fwrt->trans, cmd_id)); in iwl_dbgfs_fw_info_seq_show()
386 priv->fwrt = inode->i_private; in iwl_dbgfs_fw_info_open()
398 void iwl_fwrt_dbgfs_register(struct iwl_fw_runtime *fwrt, in iwl_fwrt_dbgfs_register() argument
401 INIT_DELAYED_WORK(&fwrt->timestamp.wk, iwl_fw_timestamp_marker_wk); in iwl_fwrt_dbgfs_register()