Lines Matching refs:offset
146 int offset; in test_sccb_unaligned() local
148 for (offset = 1; offset < 8; offset++) in test_sccb_unaligned()
149 if (!test_one_simple(valid_code, offset + pagebuf, 8, 8, PGM_BIT_SPEC, 0)) in test_sccb_unaligned()
151 report(offset == 8, "SCCB unaligned"); in test_sccb_unaligned()
161 int offset; in test_sccb_prefix() local
184 for (offset = 0; offset < LC_SIZE; offset += 8) in test_sccb_prefix()
185 if (!test_one_ro(valid_code, MKPTR(offset), PGM_BIT_SPEC, 0)) in test_sccb_prefix()
187 report(offset == LC_SIZE, "SCCB low pages"); in test_sccb_prefix()
194 for (offset = 0; offset < LC_SIZE; offset += 8) in test_sccb_prefix()
195 if (!test_one_simple(valid_code, MKPTR(new_prefix + offset), 8, 8, PGM_BIT_SPEC, 0)) in test_sccb_prefix()
197 report(offset == LC_SIZE, "SCCB prefix pages"); in test_sccb_prefix()
305 int len, offset; in test_boundary() local
310 offset = len & 7 ? len & ~7 : len - 8; in test_boundary()
311 for (offset = 4096 - offset; offset < 4096; offset += 8) { in test_boundary()
313 if (!test_one_sccb(cmd, offset + pagebuf, len, PGM_NONE, res)) in test_boundary()
318 report(len > 4096 && offset == 4096, "SCCB page boundary violation"); in test_boundary()