Lines Matching defs:bytes
140 void *buf, size_t bytes)
163 num_bytes = round_up(offset + bytes - start, 4);
192 memcpy(buf, &shm_buf[offset % 4], bytes);
206 unsigned int offset, void *buf, size_t bytes)
219 if ((bytes % 4) || (offset % 4))
233 shm = tee_shm_alloc_kernel_buf(ctx, bytes);
241 param[1].u.memref.size = bytes;
252 memcpy(shm_buf, buf, bytes);
260 pr_debug("Write OTPs %d to %zu, ret=%d\n", offset / 4, (offset + bytes) / 4, ret);
263 if (!ret && ((offset + bytes) >= (lower * 4))) {
273 nb_lock = (offset + bytes - start) / 4;