Lines Matching refs:fwrt
176 debugfs_create_file(alias, mode, parent, fwrt, \
182 static int iwl_fw_send_timestamp_marker_cmd(struct iwl_fw_runtime *fwrt) in iwl_fw_send_timestamp_marker_cmd() argument
191 .timestamp = cpu_to_le64(fwrt->timestamp.seq++), in iwl_fw_send_timestamp_marker_cmd()
201 return iwl_trans_send_cmd(fwrt->trans, &hcmd); in iwl_fw_send_timestamp_marker_cmd()
207 struct iwl_fw_runtime *fwrt = in iwl_fw_timestamp_marker_wk() local
209 unsigned long delay = fwrt->timestamp.delay; in iwl_fw_timestamp_marker_wk()
211 ret = iwl_fw_send_timestamp_marker_cmd(fwrt); in iwl_fw_timestamp_marker_wk()
213 schedule_delayed_work(&fwrt->timestamp.wk, in iwl_fw_timestamp_marker_wk()
216 IWL_INFO(fwrt, in iwl_fw_timestamp_marker_wk()
221 void iwl_fw_trigger_timestamp(struct iwl_fw_runtime *fwrt, u32 delay) in iwl_fw_trigger_timestamp() argument
223 IWL_INFO(fwrt, in iwl_fw_trigger_timestamp()
227 iwl_fw_cancel_timestamp(fwrt); in iwl_fw_trigger_timestamp()
229 fwrt->timestamp.delay = msecs_to_jiffies(delay * 1000); in iwl_fw_trigger_timestamp()
231 schedule_delayed_work(&fwrt->timestamp.wk, in iwl_fw_trigger_timestamp()
232 round_jiffies_relative(fwrt->timestamp.delay)); in iwl_fw_trigger_timestamp()
235 static ssize_t iwl_dbgfs_timestamp_marker_write(struct iwl_fw_runtime *fwrt, in iwl_dbgfs_timestamp_marker_write() argument
245 iwl_fw_trigger_timestamp(fwrt, delay); in iwl_dbgfs_timestamp_marker_write()
250 static ssize_t iwl_dbgfs_timestamp_marker_read(struct iwl_fw_runtime *fwrt, in iwl_dbgfs_timestamp_marker_read() argument
253 u32 delay_secs = jiffies_to_msecs(fwrt->timestamp.delay) / 1000; in iwl_dbgfs_timestamp_marker_read()
267 static ssize_t iwl_dbgfs_send_hcmd_write(struct iwl_fw_runtime *fwrt, char *buf, in iwl_dbgfs_send_hcmd_write() argument
279 if (fwrt->ops && fwrt->ops->fw_running && in iwl_dbgfs_send_hcmd_write()
280 !fwrt->ops->fw_running(fwrt->ops_ctx)) in iwl_dbgfs_send_hcmd_write()
300 IWL_ERR(fwrt, in iwl_dbgfs_send_hcmd_write()
306 if (fwrt->ops && fwrt->ops->send_hcmd) in iwl_dbgfs_send_hcmd_write()
307 ret = fwrt->ops->send_hcmd(fwrt->ops_ctx, &hcmd); in iwl_dbgfs_send_hcmd_write()
323 void iwl_fwrt_dbgfs_register(struct iwl_fw_runtime *fwrt, in iwl_fwrt_dbgfs_register() argument
326 INIT_DELAYED_WORK(&fwrt->timestamp.wk, iwl_fw_timestamp_marker_wk); in iwl_fwrt_dbgfs_register()