Lines Matching refs:rp
160 static struct init_record *rp = init_records; variable
165 rp->pre_kernel = pre_kernel; in add_init_record()
166 rp->is_pre_kernel = k_is_pre_kernel(); in add_init_record()
167 rp->is_in_isr = k_is_in_isr(); in add_init_record()
168 rp->could_yield = k_can_yield(); in add_init_record()
169 ++rp; in add_init_record()
217 struct init_record *rpe = rp; in ZTEST()
219 zassert_equal(rp - init_records, 4U, in ZTEST()
221 rp = init_records; in ZTEST()
222 while ((rp < rpe) && rp->pre_kernel) { in ZTEST()
223 zassert_equal(rp->is_in_isr, false, in ZTEST()
224 "rec %zu isr", rp - init_records); in ZTEST()
225 zassert_equal(rp->is_pre_kernel, true, in ZTEST()
226 "rec %zu pre-kernel", rp - init_records); in ZTEST()
227 zassert_equal(rp->could_yield, false, in ZTEST()
228 "rec %zu could-yield", rp - init_records); in ZTEST()
229 ++rp; in ZTEST()
231 zassert_equal(rp - init_records, 2U, in ZTEST()
234 while (rp < rpe) { in ZTEST()
235 zassert_equal(rp->is_in_isr, false, in ZTEST()
236 "rec %zu isr", rp - init_records); in ZTEST()
237 zassert_equal(rp->is_pre_kernel, false, in ZTEST()
238 "rec %zu post-kernel", rp - init_records); in ZTEST()
239 zassert_equal(rp->could_yield, true, in ZTEST()
240 "rec %zu could-yield", rp - init_records); in ZTEST()
241 ++rp; in ZTEST()