/device/google/contexthub/firmware/src/platform/stm32f4xx/ |
D | eeData.c | 36 uint32_t sz = info / (EE_DATA_NAME_MAX + 1); in eeFind() local 40 p += (sz + 3) / 4; in eeFind() 44 *szP = sz; in eeFind() 69 uint32_t sz = 0; in eeDataGetEx() local 76 data = eeFind(name, offsetP, first, &sz); in eeDataGetEx() 81 if (sz > *szP) in eeDataGetEx() 82 sz = *szP; in eeDataGetEx() 83 *szP = sz; in eeDataGetEx() 84 memcpy(buf, data, sz); in eeDataGetEx() 87 *szP = sz; in eeDataGetEx() [all …]
|
/device/moto/shamu/bdAddrLoader/ |
D | addrloader.c | 61 char sz[BD_ADDR_STR_LEN]; member 141 … if (!readBDAddrData(inArg.szSrc, (unsigned char *)loadedBDAddr->data.sz, BD_ADDR_STR_LEN)) { in readBDAddr() 161 strlcpy(loadedBDAddr->data.sz, prop_value, BD_ADDR_STR_LEN); in readBDAddr() 189 memcpy(loadedBDAddr->data.sz, szTmp, BD_ADDR_STR_LEN); in writeBDAddr() 199 if (strchr(loadedBDAddr->data.sz, '.') == NULL in writeBDAddr() 200 && strchr(loadedBDAddr->data.sz, ':') == NULL) { in writeBDAddr() 201 formattingBdAddr(loadedBDAddr->data.sz, outArg.cSeperator); in writeBDAddr() 207 && strlen(loadedBDAddr->data.sz)==(BD_ADDR_STR_LEN-1)) { in writeBDAddr() 208 printf("%s",loadedBDAddr->data.sz); in writeBDAddr() 209 if (property_set(DEFAULT_BDADDR_PROP, loadedBDAddr->data.sz) < 0) in writeBDAddr() [all …]
|
/device/google/contexthub/firmware/src/ |
D | heap.c | 115 void* heapAlloc(uint32_t sz) in heapAlloc() argument 126 sz = (sz + 3) &~ 3; in heapAlloc() 130 if (!node->used && node->size >= sz && (!best || best->size > node->size)) { in heapAlloc() 132 if (best->size == sz) in heapAlloc() 142 if (best->size - sz > sizeof(struct HeapNode)) { //there is a point to split up the chunk in heapAlloc() 144 node = (struct HeapNode*)(best->data + sz); in heapAlloc() 148 node->size = best->size - sz - sizeof(struct HeapNode); in heapAlloc() 156 best->size = sz; in heapAlloc()
|
D | simpleQ.c | 51 …uint32_t i, sz = sizeof(struct SimpleQueue) + (sizeof(struct SimpleQueueEntry) + entrySz) * numEnt… in simpleQueueAlloc() local 57 sq = heapAlloc(sz); in simpleQueueAlloc() 61 memset(sq, 0, sz); in simpleQueueAlloc()
|
D | nanohubCommand.c | 196 uint32_t sz = sizeof(struct SeosEedataEncrKeyData); in osSecretKeyLookup() local 198 if (!eeDataGetAllVersions(EE_DATA_NAME_ENCR_KEY, &kd, &sz, &state)) in osSecretKeyLookup() 201 if (sz == sizeof(struct SeosEedataEncrKeyData) && kd.keyID == keyId) { in osSecretKeyLookup() 219 uint32_t sz = sizeof(struct SeosEedataEncrKeyData); in osSecretKeyDelete() local 220 void *addr = eeDataGetAllVersions(EE_DATA_NAME_ENCR_KEY, &kd, &sz, &state); in osSecretKeyDelete() 225 if (sz == sizeof(kd) && kd.keyID == keyId) { in osSecretKeyDelete()
|
D | osApi.c | 215 uint32_t sz = va_arg(args, uint32_t); in osExpApiHeapAlloc() local 217 *retValP = (uintptr_t)heapAlloc(sz); in osExpApiHeapAlloc()
|
D | seos.c | 428 uint32_t sz; in osSegmentIteratorInit() local 429 uint8_t *start = platGetSharedAreaInfo(&sz); in osSegmentIteratorInit() 432 it->sharedEnd = (const struct Segment *)(start + sz); in osSegmentIteratorInit()
|
/device/asus/fugu/recovery/ |
D | fw_version_check.cpp | 194 int get_image_fw_rev(void *data, unsigned sz, struct firmware_versions *v) in get_image_fw_rev() argument 207 while (sz >= sizeof(fip)) { in get_image_fw_rev() 210 while (sz >= sizeof(fip)) { in get_image_fw_rev() 217 sz -= sizeof(magic); in get_image_fw_rev() 224 if (sz < sizeof(fip)) { in get_image_fw_rev() 261 sz -= sizeof(magic); in get_image_fw_rev()
|
D | fw_version_check.h | 44 int get_image_fw_rev(void *data, unsigned sz, struct firmware_versions *v);
|
/device/google/contexthub/util/nanoapp_encr/ |
D | nanoapp_encr.c | 133 int32_t sz = encr.dataLen - (i * sizeof(uint32_t)); in handleEncrypt() local 134 sz = sz > AES_BLOCK_SIZE ? AES_BLOCK_SIZE : sz; in handleEncrypt() 135 if (sz > 0) { in handleEncrypt() 136 sha2processBytes(&shaState, data + i, sz); in handleEncrypt()
|
/device/google/contexthub/firmware/inc/ |
D | heap.h | 31 void* heapAlloc(uint32_t sz);
|
D | syscallDo.h | 231 static inline void* eOsHeapAlloc(uint32_t sz) in eOsHeapAlloc() argument 233 …CALL_NO(SYSCALL_DOMAIN_OS, SYSCALL_OS_MAIN, SYSCALL_OS_MAIN_HEAP, SYSCALL_OS_MAIN_HEAP_ALLOC), sz); in eOsHeapAlloc()
|
/device/generic/goldfish/qemud/ |
D | qemud.c | 119 xalloc( size_t sz ) in xalloc() argument 123 if (sz == 0) in xalloc() 126 p = malloc(sz); in xalloc() 136 xalloc0( size_t sz ) in xalloc0() argument 138 void* p = xalloc(sz); in xalloc0() 139 memset( p, 0, sz ); in xalloc0()
|