Home
last modified time | relevance | path

Searched refs:pos (Results 1 – 13 of 13) sorted by relevance

/trusty/user/base/lib/spi/common/
Dutils.c68 mb->pos = 0; in mb_init()
76 mb->pos = 0; in mb_destroy()
89 mb->pos = 0; in mb_resize()
102 assert(IS_ALIGNED(mb->pos, mb->align)); in mb_advance_pos()
103 assert(mb->curr_size >= mb->pos); in mb_advance_pos()
107 if (sz > (mb->curr_size - mb->pos)) { in mb_advance_pos()
111 p = (void*)(mb->buf + mb->pos); in mb_advance_pos()
112 mb->pos += sz; in mb_advance_pos()
113 assert(IS_ALIGNED(mb->pos, mb->align)); in mb_advance_pos()
/trusty/user/base/lib/spi/common/include/lib/spi/common/
Dutils.h55 size_t pos; member
65 return mb->pos; in mb_curr_pos()
93 mb->pos = 0; in mb_rewind_pos()
/trusty/user/app/storage/
Dtipc_ns.h36 ns_off_t pos,
41 ns_off_t pos,
Dtipc_ns.c279 ns_off_t pos, in ns_read_pos() argument
282 SS_DBG_IO("%s: handle %llu, pos %llu, size %d\n", __func__, handle, pos, in ns_read_pos()
287 .offset = pos, in ns_read_pos()
325 ns_off_t pos, in ns_write_pos() argument
331 SS_DBG_IO("%s: handle %llu, pos %llu, size %d\n", __func__, handle, pos, in ns_write_pos()
344 .offset = pos, in ns_write_pos()
/trusty/user/app/keymaster/
Dtrusty_secure_deletion_secret_storage.cpp157 bool WriteBlock(storage_off_t pos, const uint8_t* data, size_t size) const { in WriteBlock() argument
164 if (__builtin_add_overflow(pos, size, &end) || end > fileSize_) { in WriteBlock()
170 storage_write(*fileHandle_, pos, data, size, 0 /* opflags */); in WriteBlock()
173 bytesWritten, pos); in WriteBlock()
350 for (storage_off_t pos = begin; pos < end; pos += kSecretSize) { in zero_entries() local
355 if (!file.WriteBlock(pos, zero_buf, sizeof(zero_buf))) { in zero_entries()
356 LOG_E("Failed to zero secret at offset %" PRIu64, pos); in zero_entries()
Dtrusty_keymaster_context.cpp559 if (int pos = key->sw_enforced().find(TAG_OS_VERSION); in UpgradeKeyBlob() local
560 pos != -1 && in UpgradeKeyBlob()
561 key->sw_enforced()[pos].integer != boot_params_.boot_os_version) { in UpgradeKeyBlob()
563 key->sw_enforced()[pos].integer = boot_params_.boot_os_version; in UpgradeKeyBlob()
/trusty/user/app/storage/test/storage_host_test/
Dstorageproxy_shim.c292 ns_off_t pos, in ns_read_pos() argument
295 if (read_with_retry(handle, data, data_size, pos) != data_size) { in ns_read_pos()
305 ns_off_t pos, in ns_write_pos() argument
316 if (write_with_retry(handle, data, data_size, pos)) { in ns_write_pos()
/trusty/vendor/google/aosp/scripts/
Dlog_processor.py338 elif (pos := line.lower().find('error')) != -1:
339 line = self.colorize(line[:pos], self.color.bold) + \
341 self.colorize(line[pos + len('error'):],
343 elif (pos := line.lower().find('warning')) != -1:
344 line = self.colorize(line[:pos], self.color.bold) + \
346 self.colorize(line[pos + len('warning'):],
/trusty/user/app/confirmationui/src/
Dtrusty_confirmation_ui.cpp233 size_t pos = in renderAndSwap() local
235 TLOGD("pos: %zu, bufferSize: %" PRIu32 "\n", pos, fb_info_[idx].size); in renderAndSwap()
236 if (pos >= fb_info_[idx].size) { in renderAndSwap()
242 *reinterpret_cast<teeui::Color*>(fb_info_[idx].buffer + pos); in renderAndSwap()
Dtrusty_operation.cpp88 *responselen = result.pos() - reinterpret_cast<uint8_t*>(reponse); in handleMsg()
/trusty/user/base/app/acvp/
Dacvp.cpp323 size_t pos = loc - config.cbegin() + 1; in RewriteConfig() local
326 new (std::nothrow) uint8_t[pos + sizeof(kAdditionalConfig) - 1]); in RewriteConfig()
332 memcpy(buf.get(), config.cbegin(), pos); in RewriteConfig()
333 memcpy(&buf[pos], kAdditionalConfig, sizeof(kAdditionalConfig) - 1); in RewriteConfig()
335 buf.get(), pos + sizeof(kAdditionalConfig) - 1)}); in RewriteConfig()
/trusty/user/app/storage/rpmb_dev/
Drpmb_dev.c91 int pos = addr * RPMB_PACKET_DATA_SIZE + sizeof(s->header); in rpmb_file_seek() local
92 ret = lseek(s->data_fd, pos, SEEK_SET); in rpmb_file_seek()
93 if (ret != pos) { in rpmb_file_seek()
94 fprintf(stderr, "rpmb_dev: seek to %d failed, got %d\n", pos, ret); in rpmb_file_seek()
/trusty/user/base/lib/dlmalloc/
Ddlmalloc.c4948 char* pos = ((size_t)(br - (char*)(p)) >= MIN_CHUNK_SIZE)? in internal_memalign() local
4950 mchunkptr newp = (mchunkptr)pos; in internal_memalign()
4951 size_t leadsize = pos - (char*)(p); in internal_memalign()