Lines Matching refs:offs
31 uint8_t vers, size_t *offs, size_t *size) in test_get_offs_size() argument
71 *offs = sizeof(struct tee_fs_htree_image) * vers; in test_get_offs_size()
76 *offs = pbn * TEST_BLOCK_SIZE + in test_get_offs_size()
84 *offs = pbn * TEST_BLOCK_SIZE; in test_get_offs_size()
98 size_t offs = 0; in test_read_init() local
101 res = test_get_offs_size(type, idx, vers, &offs, &sz); in test_read_init()
105 op->params[0].u.value.b = offs; in test_read_init()
122 size_t offs = op->params[0].u.value.b; in test_read_final() local
125 if (offs + sz <= a->data_len) in test_read_final()
127 else if (offs <= a->data_len) in test_read_final()
128 *bytes = a->data_len - offs; in test_read_final()
132 memcpy(a->block, a->data + offs, *bytes); in test_read_final()
146 size_t offs = op->params[0].u.value.b; in test_write_final() local
148 size_t end = offs + sz; in test_write_final()
155 memcpy(a->data + offs, a->block, sz); in test_write_final()
476 size_t offs = 0; in test_corrupt_type() local
481 res = test_get_offs_size(type, idx, 0, &offs, &size0); in test_corrupt_type()
492 res = test_get_offs_size(type, idx, 0, &offs, &size); in test_corrupt_type()
494 aux2.data[offs + n]++; in test_corrupt_type()
495 res = test_get_offs_size(type, idx, 1, &offs, &size); in test_corrupt_type()
497 aux2.data[offs + n]++; in test_corrupt_type()