Lines Matching refs:fwrt
70 static ssize_t iwl_dbgfs_##name##_read(struct iwl_fw_runtime *fwrt, \
80 static ssize_t iwl_dbgfs_##name##_write(struct iwl_fw_runtime *fwrt, \
87 struct iwl_fw_runtime *fwrt = file->private_data; \
94 return iwl_dbgfs_##name##_write(fwrt, buf, buf_size, ppos); \
115 if (!debugfs_create_file(alias, mode, parent, fwrt, \
122 static int iwl_fw_send_timestamp_marker_cmd(struct iwl_fw_runtime *fwrt) in iwl_fw_send_timestamp_marker_cmd() argument
131 .timestamp = cpu_to_le64(fwrt->timestamp.seq++), in iwl_fw_send_timestamp_marker_cmd()
141 return iwl_trans_send_cmd(fwrt->trans, &hcmd); in iwl_fw_send_timestamp_marker_cmd()
147 struct iwl_fw_runtime *fwrt = in iwl_fw_timestamp_marker_wk() local
149 unsigned long delay = fwrt->timestamp.delay; in iwl_fw_timestamp_marker_wk()
151 ret = iwl_fw_send_timestamp_marker_cmd(fwrt); in iwl_fw_timestamp_marker_wk()
153 schedule_delayed_work(&fwrt->timestamp.wk, in iwl_fw_timestamp_marker_wk()
156 IWL_INFO(fwrt, in iwl_fw_timestamp_marker_wk()
161 void iwl_fw_trigger_timestamp(struct iwl_fw_runtime *fwrt, u32 delay) in iwl_fw_trigger_timestamp() argument
163 IWL_INFO(fwrt, in iwl_fw_trigger_timestamp()
167 iwl_fw_cancel_timestamp(fwrt); in iwl_fw_trigger_timestamp()
169 fwrt->timestamp.delay = msecs_to_jiffies(delay * 1000); in iwl_fw_trigger_timestamp()
171 schedule_delayed_work(&fwrt->timestamp.wk, in iwl_fw_trigger_timestamp()
172 round_jiffies_relative(fwrt->timestamp.delay)); in iwl_fw_trigger_timestamp()
175 static ssize_t iwl_dbgfs_timestamp_marker_write(struct iwl_fw_runtime *fwrt, in iwl_dbgfs_timestamp_marker_write() argument
186 iwl_fw_trigger_timestamp(fwrt, delay); in iwl_dbgfs_timestamp_marker_write()
193 int iwl_fwrt_dbgfs_register(struct iwl_fw_runtime *fwrt, in iwl_fwrt_dbgfs_register() argument
196 INIT_DELAYED_WORK(&fwrt->timestamp.wk, iwl_fw_timestamp_marker_wk); in iwl_fwrt_dbgfs_register()
200 IWL_ERR(fwrt, "Can't create the fwrt debugfs directory\n"); in iwl_fwrt_dbgfs_register()