Lines Matching refs:fwrt

120 	debugfs_create_file(alias, mode, parent, fwrt,			\
126 static int iwl_fw_send_timestamp_marker_cmd(struct iwl_fw_runtime *fwrt) in iwl_fw_send_timestamp_marker_cmd() argument
135 .timestamp = cpu_to_le64(fwrt->timestamp.seq++), in iwl_fw_send_timestamp_marker_cmd()
145 return iwl_trans_send_cmd(fwrt->trans, &hcmd); in iwl_fw_send_timestamp_marker_cmd()
148 static int iwl_dbgfs_enabled_severities_write(struct iwl_fw_runtime *fwrt, in iwl_dbgfs_enabled_severities_write() argument
166 ret = iwl_trans_send_cmd(fwrt->trans, &hcmd); in iwl_dbgfs_enabled_severities_write()
167 IWL_INFO(fwrt, in iwl_dbgfs_enabled_severities_write()
179 struct iwl_fw_runtime *fwrt = in iwl_fw_timestamp_marker_wk() local
181 unsigned long delay = fwrt->timestamp.delay; in iwl_fw_timestamp_marker_wk()
183 ret = iwl_fw_send_timestamp_marker_cmd(fwrt); in iwl_fw_timestamp_marker_wk()
185 schedule_delayed_work(&fwrt->timestamp.wk, in iwl_fw_timestamp_marker_wk()
188 IWL_INFO(fwrt, in iwl_fw_timestamp_marker_wk()
193 void iwl_fw_trigger_timestamp(struct iwl_fw_runtime *fwrt, u32 delay) in iwl_fw_trigger_timestamp() argument
195 IWL_INFO(fwrt, in iwl_fw_trigger_timestamp()
199 iwl_fw_cancel_timestamp(fwrt); in iwl_fw_trigger_timestamp()
201 fwrt->timestamp.delay = msecs_to_jiffies(delay * 1000); in iwl_fw_trigger_timestamp()
203 schedule_delayed_work(&fwrt->timestamp.wk, in iwl_fw_trigger_timestamp()
204 round_jiffies_relative(fwrt->timestamp.delay)); in iwl_fw_trigger_timestamp()
207 static ssize_t iwl_dbgfs_timestamp_marker_write(struct iwl_fw_runtime *fwrt, in iwl_dbgfs_timestamp_marker_write() argument
217 iwl_fw_trigger_timestamp(fwrt, delay); in iwl_dbgfs_timestamp_marker_write()
222 static ssize_t iwl_dbgfs_timestamp_marker_read(struct iwl_fw_runtime *fwrt, in iwl_dbgfs_timestamp_marker_read() argument
225 u32 delay_secs = jiffies_to_msecs(fwrt->timestamp.delay) / 1000; in iwl_dbgfs_timestamp_marker_read()
239 static ssize_t iwl_dbgfs_send_hcmd_write(struct iwl_fw_runtime *fwrt, char *buf, in iwl_dbgfs_send_hcmd_write() argument
251 if (fwrt->ops && fwrt->ops->fw_running && in iwl_dbgfs_send_hcmd_write()
252 !fwrt->ops->fw_running(fwrt->ops_ctx)) in iwl_dbgfs_send_hcmd_write()
272 IWL_ERR(fwrt, in iwl_dbgfs_send_hcmd_write()
278 if (fwrt->ops && fwrt->ops->send_hcmd) in iwl_dbgfs_send_hcmd_write()
279 ret = fwrt->ops->send_hcmd(fwrt->ops_ctx, &hcmd); in iwl_dbgfs_send_hcmd_write()
295 static ssize_t iwl_dbgfs_fw_dbg_domain_read(struct iwl_fw_runtime *fwrt, in iwl_dbgfs_fw_dbg_domain_read() argument
299 fwrt->trans->dbg.domains_bitmap); in iwl_dbgfs_fw_dbg_domain_read()
305 struct iwl_fw_runtime *fwrt; member
317 const struct iwl_fw *fw = priv->fwrt->fw; in iwl_dbgfs_fw_info_seq_next()
335 const struct iwl_fw *fw = priv->fwrt->fw; in iwl_dbgfs_fw_info_seq_start()
352 const struct iwl_fw *fw = priv->fwrt->fw; in iwl_dbgfs_fw_info_seq_show()
365 iwl_get_cmd_string(priv->fwrt->trans, cmd_id)); in iwl_dbgfs_fw_info_seq_show()
388 priv->fwrt = inode->i_private; in iwl_dbgfs_fw_info_open()
400 void iwl_fwrt_dbgfs_register(struct iwl_fw_runtime *fwrt, in iwl_fwrt_dbgfs_register() argument
403 INIT_DELAYED_WORK(&fwrt->timestamp.wk, iwl_fw_timestamp_marker_wk); in iwl_fwrt_dbgfs_register()