Lines Matching refs:tfix

248 static struct ptunit_result invalidate(struct test_fixture *tfix)  in invalidate()  argument
253 status = pt_msec_cache_invalidate(&tfix->mcache); in invalidate()
256 section = pt_msec_section(&tfix->mcache.msec); in invalidate()
259 ptu_uint_eq(tfix->section.mcount, 0); in invalidate()
260 ptu_uint_eq(tfix->section.ucount, 0); in invalidate()
265 static struct ptunit_result read_nomap(struct test_fixture *tfix) in read_nomap() argument
272 status = pt_msec_cache_read(&tfix->mcache, &msec, &tfix->image, 0ull); in read_nomap()
279 static struct ptunit_result read(struct test_fixture *tfix) in read() argument
285 status = pt_msec_cache_read(&tfix->mcache, &msec, &tfix->image, 0ull); in read()
288 ptu_ptr_eq(msec, &tfix->mcache.msec); in read()
291 ptu_ptr_eq(section, &tfix->section); in read()
296 static struct ptunit_result fill_nomap(struct test_fixture *tfix) in fill_nomap() argument
305 status = pt_msec_cache_fill(&tfix->mcache, &msec, &tfix->image, &asid, in fill_nomap()
309 section = pt_msec_section(&tfix->mcache.msec); in fill_nomap()
313 ptu_uint_eq(tfix->section.mcount, 0); in fill_nomap()
314 ptu_uint_eq(tfix->section.ucount, 0); in fill_nomap()
319 static struct ptunit_result fill(struct test_fixture *tfix) in fill() argument
326 status = pt_msec_cache_fill(&tfix->mcache, &msec, &tfix->image, &asid, in fill()
330 ptu_ptr_eq(msec, &tfix->mcache.msec); in fill()
333 ptu_ptr_eq(section, &tfix->section); in fill()
341 static struct ptunit_result sfix_init(struct test_fixture *tfix) in sfix_init() argument
343 memset(&tfix->section, 0, sizeof(tfix->section)); in sfix_init()
344 memset(&tfix->mcache, 0, sizeof(tfix->mcache)); in sfix_init()
345 memset(&tfix->image, 0, sizeof(tfix->image)); in sfix_init()
350 static struct ptunit_result ifix_init(struct test_fixture *tfix) in ifix_init() argument
352 ptu_test(sfix_init, tfix); in ifix_init()
354 tfix->image.section = &tfix->section; in ifix_init()
359 static struct ptunit_result cfix_init(struct test_fixture *tfix) in cfix_init() argument
361 ptu_test(sfix_init, tfix); in cfix_init()
363 tfix->mcache.msec.section = &tfix->section; in cfix_init()
365 tfix->section.ucount = 1; in cfix_init()
366 tfix->section.mcount = 1; in cfix_init()
371 static struct ptunit_result cifix_init(struct test_fixture *tfix) in cifix_init() argument
373 ptu_test(cfix_init, tfix); in cifix_init()
375 tfix->image.section = &tfix->section; in cifix_init()