Lines Matching refs:m
59 struct msg m; in metairq_fn() local
61 message_dev_fetch(&m); in metairq_fn()
62 m.metairq_latency = k_cycle_get_32() - m.timestamp; in metairq_fn()
64 int ret = k_msgq_put(&threads[m.target].msgq, &m, K_NO_WAIT); in metairq_fn()
68 m.target, m.seq); in metairq_fn()
111 static void record_latencies(struct msg *m, uint32_t latency) in record_latencies() argument
117 if (IS_ENABLED(CONFIG_QEMU_TARGET) && m->seq == 0) { in record_latencies()
125 if (m->seq >= MAX_EVENTS) { in record_latencies()
129 int t = m->target; in record_latencies()
136 stats.mirq_latencies[atomic_inc(&stats.num_mirq)] = m->metairq_latency; in record_latencies()
144 if (m->seq == MAX_EVENTS - 1) { in record_latencies()
182 struct msg m; in thread_fn() local
188 int ret = k_msgq_get(&threads[id].msgq, &m, K_FOREVER); in thread_fn()
199 while (k_cycle_get_32() - start < m.proc_cyc) { in thread_fn()
216 m.seq, id, m.metairq_latency, in thread_fn()
217 start - m.timestamp, m.proc_cyc, dur); in thread_fn()
221 record_latencies(&m, start - m.timestamp); in thread_fn()