Lines Matching refs:p0
28 uint8_t *p0, *ptr; in test_align() local
32 p0 = (uint8_t *)buf; in test_align()
33 ptr = p0; in test_align()
36 TEST_EQ(vb2_offset_of(p0, ptr), 0, "ptr"); in test_align()
42 ptr = p0 + 1; in test_align()
45 TEST_EQ(vb2_offset_of(p0, ptr), 4, "ptr"); in test_align()
49 ptr = p0 + 1; in test_align()
55 ptr = p0 + 1; in test_align()
67 uint8_t *p0 = (uint8_t *)buf, *ptr; in test_workbuf() local
74 vb2_workbuf_init(&wb, p0, 64); in test_workbuf()
75 TEST_EQ(vb2_offset_of(p0, wb.buf), 0, "Workbuf init aligned"); in test_workbuf()
78 vb2_workbuf_init(&wb, p0 + 4, 64); in test_workbuf()
79 TEST_EQ(vb2_offset_of(p0, wb.buf), VB2_WORKBUF_ALIGN, in test_workbuf()
83 vb2_workbuf_init(&wb, p0 + 2, 5); in test_workbuf()
87 vb2_workbuf_init(&wb, p0, 64); in test_workbuf()
89 TEST_EQ(vb2_offset_of(p0, ptr), 0, "Workbuf alloc"); in test_workbuf()
90 TEST_EQ(vb2_offset_of(p0, wb.buf), 32, " buf"); in test_workbuf()
93 vb2_workbuf_init(&wb, p0, 32); in test_workbuf()
97 vb2_workbuf_init(&wb, p0, 32); in test_workbuf()
100 TEST_EQ(vb2_offset_of(p0, wb.buf), 0, "Workbuf free buf"); in test_workbuf()
104 vb2_workbuf_init(&wb, p0, 64); in test_workbuf()
107 TEST_EQ(vb2_offset_of(p0, ptr), 0, "Workbuf realloc"); in test_workbuf()
108 TEST_EQ(vb2_offset_of(p0, wb.buf), 32, " buf"); in test_workbuf()