/device/google/contexthub/firmware/app/chre/chre_test2.app/ |
D | main.cpp | 68 uint64_t appId = chreGetAppId(); in nanoappHandleEvent() local 77 appId, instanceId); in nanoappHandleEvent() 80 info.appId, info.version, info.instanceId); in nanoappHandleEvent() 84 if (chreGetNanoappInfoByAppId(appId, &info)) { in nanoappHandleEvent() 86 info.appId, info.version, info.instanceId); in nanoappHandleEvent() 121 const uint64_t appId = msg->appId; in nanoappHandleEvent() local 125 appId, version, instanceId); in nanoappHandleEvent() 131 const uint64_t appId = msg->appId; in nanoappHandleEvent() local 135 appId, version, instanceId); in nanoappHandleEvent()
|
/device/google/contexthub/firmware/os/core/ |
D | seos.c | 306 uint64_t appId; in osTaskRelease() local 309 appId = task->app->hdr.appId; in osTaskRelease() 311 appId = 0; in osTaskRelease() 319 …:%08" PRIx32 " sensor:%08" PRIx32 " tim:%d heap:%d; TID %04" PRIX32 "\n", appId, platErr, sensorEr… in osTaskRelease() 321 osLog(LOG_INFO, "released app ID 0x%" PRIx64 "; TID %04" PRIX32 "\n", appId, taskTid); in osTaskRelease() 455 if (task->app && task->app->hdr.appId == appID) in osTaskFindByAppID() 718 …app id %016" PRIX64 " @ %p cannot be used as too many apps already exist.\n", app->hdr.appId, app); in osLoadApp() 727 osLog(LOG_WARN, "App @ %p ID %016" PRIX64 " failed to load\n", app, app->hdr.appId); in osLoadApp() 756 … task->app->hdr.appId, (uintptr_t) task->app, (uintptr_t) task->platInfo.data, task->tid); in osStartApp() 761 … osLog(LOG_WARN, "App @ %p ID %016" PRIX64 " failed to init\n", task->app, task->app->hdr.appId); in osStartApp() [all …]
|
D | nanohubCommand.c | 153 if (osAppInfoById(le64toh(unaligned_u64(&req->appId)), &appIdx, &appVer, &appSize)) { in getAppVersion() 165 uint64_t appId; in queryAppInfo() local 168 if (osAppInfoByIndex(le32toh(unaligned_u32(&req->appIdx)), &appId, &appVer, &appSize)) { in queryAppInfo() 169 resp->appId = htole64(appId); in queryAppInfo() 359 uint64_t keyId = KEY_ID_MAKE(APP_ID_GET_VENDOR(app->hdr.appId), ki->id); in updateKey() 978 osTidById(&hostPacket->appId, &tid)) { in writeEvent() 990 osTidById(&hostPacket->appId, &tid)) { in writeEvent() 1015 osTidById(&hostPacketV10->appId, &tid)) { in writeEvent() 1129 .appId = APP_ID_MAKE(NANOHUB_VENDOR_GOOGLE, 0), in halSendLegacyMgmtResponse() 1142 …nse(NANOHUB_HAL_LEGACY_EXT_APPS_ON, osExtAppStartAppsByAppId(le64toh(unaligned_u64(&req->appId)))); in halLegacyExtAppsOn() [all …]
|
D | nanohub_chre.c | 59 return app ? app->hdr.appId : 0; in osChreGetAppId() 64 uint64_t *appId = va_arg(args, uint64_t *); in osChreApiGetAppId() local 65 if (appId) in osChreApiGetAppId() 66 *appId = osChreGetAppId(); in osChreApiGetAppId() 146 task->app->hdr.appId, task->tid, abortCode); in osChreAbort() 222 hostMsg->appId = osChreGetAppId(); in osChreSendMessageToHost() 503 info->appId = task->app->hdr.appId; in chreInfoByTid() 517 uint64_t appId = (((uint64_t)app_hi) << 32) | app_lo; in osChreEventInfoByAppId() local 520 if (osTidById(&appId, &tid)) in osChreEventInfoByAppId()
|
/device/google/contexthub/contexthubhal/test/ |
D | main.cpp | 26 inline std::ostream &operator << (std::ostream &os, const hub_app_name_t &appId) in operator <<() argument 29 __be64 beAppId = htobe64(appId.id); in operator <<() 30 uint32_t seqId = appId.id & NANOAPP_VENDOR_ALL_APPS; in operator <<() 38 os << "#" << std::hex << appId.id; in operator <<() 44 void dumpBuffer(std::ostream &os, const char *pfx, const hub_app_name_t &appId, uint32_t evtId, con… in dumpBuffer() argument 47 os << pfx << ": [ID=" << appId << "; SZ=" << std::dec << len; in dumpBuffer() 226 uint64_t appId = 0; in main() local 240 appId = strtoull(optarg, &end, 16); in main() 266 const hub_app_name_t app_name = { .id = appId }; in main() 274 req.app_name.id = appId; in main() [all …]
|
/device/google/contexthub/util/nanoapp_cmd/ |
D | nanoapp_cmd.c | 81 uint64_t appId; member 237 struct App *findApp(uint64_t appId) in findApp() argument 242 if (apps[i].id == appId) { in findApp() 250 int findAppIdByName(char *name, uint64_t *appId) in findAppIdByName() argument 266 …sscanf(line, "%" STRINGIFY(MAX_APP_NAME_LEN) "s %" PRIx64 " %" PRIx32 "\n", entry, appId, &appVers… in findAppIdByName() 297 uint64_t appId; in parseConfigAppInfo() local 301 …(MAX_APP_NAME_LEN) "s %" PRIx64 " %" PRIx32 "\n", appsToInstall[*installCnt], &appId, &appVersion); in parseConfigAppInfo() 303 installedApp = findApp(appId); in parseConfigAppInfo() 306 appsToUninstall[*uninstallCnt] = appId; in parseConfigAppInfo() 353 bool sendCmd(uint8_t cmd, uint64_t appId) in sendCmd() argument [all …]
|
/device/google/contexthub/firmware/os/inc/ |
D | seos.h | 130 uint64_t appId; member 180 bool osTidById(const uint64_t *appId, uint32_t *tid); 181 bool osAppInfoById(uint64_t appId, uint32_t *appIdx, uint32_t *appVer, uint32_t *appSize); 182 bool osAppInfoByIndex(uint32_t appIdx, uint64_t *appId, uint32_t *appVer, uint32_t *appSize); 183 bool osExtAppInfoByIndex(uint32_t appIdx, uint64_t *appId, uint32_t *appVer, uint32_t *appSize); 293 uint32_t osExtAppStopAppsByAppId(uint64_t appId); 294 uint32_t osExtAppEraseAppsByAppId(uint64_t appId); 295 uint32_t osExtAppStartAppsByAppId(uint64_t appId); 319 .hdr.appId = (_id), \ 337 .hdr.appId = (_id), \
|
D | nanohubPacket.h | 111 __le64 appId; member 131 __le64 appId; member 306 uint64_t appId; member 318 __le64 appId; member 342 __le64 appId; member 418 __le64 appId; member 435 __le64 appId; member
|
D | eventnums.h | 53 uint64_t appId; member 63 uint64_t appId; member
|
/device/google/contexthub/contexthubhal/ |
D | nanohubhal.cpp | 50 inline std::ostream &operator << (std::ostream &os, const hub_app_name_t &appId) in operator <<() argument 53 __be64 beAppId = htobe64(appId.id); in operator <<() 54 uint32_t seqId = appId.id & NANOAPP_VENDOR_ALL_APPS; in operator <<() 62 os << "#" << std::hex << appId.id; in operator <<() 68 void dumpBuffer(const char *pfx, const hub_app_name_t &appId, uint32_t evtId, uint16_t endpoint, co… in dumpBuffer() argument 72 os << pfx << ": [ID=" << appId << "; SZ=" << std::dec << len; in dumpBuffer() 175 .appId = name.id, in doSendToDevice() 277 hub_app_name_t app_name = { .id = msg.raw.hdr.appId }; in runDeviceRx() 287 hub_app_name_t app_name = { .id = msg.chre.hdr.appId }; in runDeviceRx()
|
D | NanohubHidlAdapter.h | 57 uint64_t appId, 61 uint64_t appId, 65 uint64_t appId,
|
D | NanohubHidlAdapter.cpp | 263 app.appId = query_info.app_name.id; in handleOsMessage() 355 uint64_t appId, in unloadNanoApp() argument 372 req.app_name.id = appId; in unloadNanoApp() 404 .app_id.id = htole64(appBinary.appId), in loadNanoApp() 434 uint64_t appId, in enableNanoApp() argument 450 req.app_name.id = appId; in enableNanoApp() 465 uint64_t appId, in disableNanoApp() argument 481 req.app_name.id = appId; in disableNanoApp() 536 appBinary->appId = header->app_id.id; in readApp()
|
D | system_comms.h | 450 int doHandleRx(uint64_t appId, uint32_t transactionId, const char *data, int len, bool chre); 454 …return doHandleRx(rxMsg->hdr.appId, 0, reinterpret_cast<const char*>(rxMsg->data), rxMsg->hdr.len,… in doHandleRx() 458 …return doHandleRx(rxMsg->hdr.appId, rxMsg->hdr.appEventId, reinterpret_cast<const char*>(rxMsg->da… in doHandleRx()
|
D | nanohubhal.h | 41 void dumpBuffer(const char *pfx, const hub_app_name_t &appId, uint32_t evtId, uint16_t endpoint, co…
|
/device/google/contexthub/firmware/app/chre/common/ |
D | chre11_app_syscalls.c | 36 uint64_t appId = 0; in chreGetAppId() local 37 (void)syscallDo1P(SYSCALL_CHRE_API(GET_APP_ID), &appId); in chreGetAppId() 38 return appId; in chreGetAppId() 172 bool chreGetNanoappInfoByAppId(uint64_t appId, struct chreNanoappInfo *info) in chreGetNanoappInfoByAppId() argument 174 uint32_t app_lo = appId; in chreGetNanoappInfoByAppId() 175 uint32_t app_hi = appId >> 32; in chreGetNanoappInfoByAppId()
|
D | chre_app_syscalls.c | 36 uint64_t appId = 0; in chreGetAppId() local 37 (void)syscallDo1P(SYSCALL_CHRE_API(GET_APP_ID), &appId); in chreGetAppId() 38 return appId; in chreGetAppId() 172 bool chreGetNanoappInfoByAppId(uint64_t appId, struct chreNanoappInfo *info) in chreGetNanoappInfoByAppId() argument 174 uint32_t app_lo = appId; in chreGetNanoappInfoByAppId() 175 uint32_t app_hi = appId >> 32; in chreGetNanoappInfoByAppId()
|
D | chre10_app_syscalls.c | 39 uint64_t appId = 0; in chreGetAppId() local 40 (void)syscallDo1P(SYSCALL_CHRE_API(GET_APP_ID), &appId); in chreGetAppId() 41 return appId; in chreGetAppId()
|
D | chre_app.c | 286 u.info.appId = msg->appId; in chreappHandle()
|
/device/google/contexthub/lib/include/nanohub/ |
D | nanohub.h | 69 uint64_t appId; member 75 uint64_t appId; member 82 uint64_t appId; member 94 uint64_t appId; // external: copy from AOSP header; internal: defined locally member
|
/device/google/contexthub/util/nanotool/ |
D | apptohostevent.h | 27 uint64_t appId; member 56 constexpr uint64_t MakeAppId(uint64_t vendorId, uint32_t appId) { in MakeAppId() argument 57 return (vendorId << 24) | (appId & 0x00FFFFFF); in MakeAppId()
|
D | apptohostevent.cpp | 38 return GetTypedData()->appId; in GetAppId()
|
/device/google/contexthub/util/nanoapp_postprocess/ |
D | postprocess.c | 238 …atic int finalizeAndWrite(struct NanoAppInfo *inf, FILE *out, uint32_t layoutFlags, uint64_t appId) in finalizeAndWrite() argument 248 .app_id = appId, in finalizeAndWrite() 403 …nt8_t **pbuf, uint32_t bufUsed, FILE *out, uint32_t layoutFlags, uint64_t appId, uint32_t appVer, … in handleApp() argument 566 ret = finalizeAndWrite(&app, out, layoutFlags, appId); in handleApp() 573 …(uint8_t **pbuf, uint32_t bufUsed, FILE *out, uint32_t layoutFlags, uint64_t appId, uint64_t keyId) in handleKey() argument 583 .app_id = appId, in handleKey() 638 uint64_t appId = 0; in main() local 664 u64Arg = &appId; in main() 717 if (layoutId == LAYOUT_APP && !appId) in main() 721 if (layoutId == LAYOUT_OS && (keyId || appId)) in main() [all …]
|
D | postprocess_elf.c | 229 …int32_t bufUsed, uint32_t bufSz, FILE *out, uint32_t layoutFlags, uint64_t appId, uint32_t chreApi) in finalizeAndWrite() argument 239 .app_id = appId, in finalizeAndWrite() 291 …nt8_t **pbuf, uint32_t bufUsed, FILE *out, uint32_t layoutFlags, uint64_t appId, uint32_t appVer, … in handleApp() argument 535 ret = finalizeAndWrite(buf, bufUsed, bufSz, out, layoutFlags, appId, chreApi); in handleApp() 792 static int handleAppStatic(const char *fileName, FILE *out, uint32_t layoutFlags, uint64_t appId, u… in handleAppStatic() argument 829 return finalizeAndWrite(buf, offset, bufSize, out, layoutFlags, appId, chreApi); in handleAppStatic() 834 …(uint8_t **pbuf, uint32_t bufUsed, FILE *out, uint32_t layoutFlags, uint64_t appId, uint64_t keyId) in handleKey() argument 844 .app_id = appId, in handleKey() 899 uint64_t appId = 0; in main() local 929 u64Arg = &appId; in main() [all …]
|
/device/google/contexthub/firmware/app/test0.app/ |
D | test_app0.c | 61 extMsg->hdr.appId = APP_ID_MAKE(NANOHUB_VENDOR_GOOGLE, 0x548000); in handle_event()
|
/device/google/contexthub/firmware/os/cpu/cortexm4/ |
D | appSupport.c | 205 …osLog(LOG_INFO, "App ID %016" PRIX64 "; TID=%04" PRIX32 " terminated\n", app->hdr.appId, osGetCurr… in cpuAppEnd()
|