Lines Matching refs:offs
64 size_t offs; member
230 params[1].u.memref.offs = 0; in rpc_load()
253 size_t offs = 0; in ree_fs_ta_open() local
288 offs = shdr_sz; in ree_fs_ta_open()
293 if (offs > ta_size) { in ree_fs_ta_open()
298 res = shdr_load_pub_key(shdr, offs, (const void *)ta, in ree_fs_ta_open()
304 if (ADD_OVERFLOW(offs, shdr->img_size, &offs) || in ree_fs_ta_open()
305 ADD_OVERFLOW(offs, pub_key.name_size, &offs) || in ree_fs_ta_open()
306 offs > ta_size) { in ree_fs_ta_open()
323 shdr = shdr_alloc_and_copy(offs, ta, ta_size); in ree_fs_ta_open()
339 offs += shdr_sz; in ree_fs_ta_open()
340 if (offs > ta_size) { in ree_fs_ta_open()
399 memcpy(bs_hdr, (uint8_t *)ta + offs, sizeof(*bs_hdr)); in ree_fs_ta_open()
417 offs += sizeof(*bs_hdr); in ree_fs_ta_open()
433 memcpy(&img_ehdr, ((uint8_t *)ta + offs), sizeof(img_ehdr)); in ree_fs_ta_open()
446 if (ta_size != offs + ehdr_sz + shdr->img_size) { in ree_fs_ta_open()
459 (uint8_t *)ta + offs + sizeof(img_ehdr), in ree_fs_ta_open()
471 offs += ehdr_sz; in ree_fs_ta_open()
475 if (ta_size != offs + shdr->img_size) { in ree_fs_ta_open()
482 handle->offs = offs; in ree_fs_ta_open()
556 uint8_t *src = (uint8_t *)handle->nw_ta + handle->offs; in ree_fs_ta_read()
566 if (ADD_OVERFLOW(handle->offs, len, &next_offs) || in ree_fs_ta_read()
616 handle->offs = next_offs; in ree_fs_ta_read()
617 if (handle->offs == handle->nw_ta_size) { in ree_fs_ta_read()
687 size_t offs; member
776 uint8_t *src = handle->buf + handle->offs; in buf_ta_read()
780 if (ADD_OVERFLOW(handle->offs, len, &next_offs) || in buf_ta_read()
791 handle->offs = next_offs; in buf_ta_read()