Searched refs:seg (Results 1 – 5 of 5) sorted by relevance
/device/google/contexthub/firmware/os/inc/ |
D | seos.h | 190 bool osSegmentSetSize(struct Segment *seg, uint32_t size); 196 static inline int32_t osSegmentGetSize(const struct Segment *seg) in osSegmentGetSize() argument 198 return seg ? seg->size[0] | (seg->size[1] << 8) | (seg->size[2] << 16) : SEG_SIZE_INVALID; in osSegmentGetSize() 201 static inline uint32_t osSegmentGetState(const struct Segment *seg) in osSegmentGetState() argument 203 return seg ? seg->state : SEG_STATE_INVALID; in osSegmentGetState() 206 static inline struct AppHdr *osSegmentGetData(const struct Segment *seg) in osSegmentGetData() argument 208 return (struct AppHdr*)(&seg[1]); in osSegmentGetData() 218 static inline uint32_t osSegmentGetCrc(const struct Segment *seg) in osSegmentGetCrc() argument 220 struct SegmentFooter *footer = (struct SegmentFooter *)(((uint8_t*)seg) + in osSegmentGetCrc() 221 ((osSegmentGetSize(seg) + 3) & ~3) + sizeof(*seg)); in osSegmentGetCrc() [all …]
|
/device/google/contexthub/firmware/os/core/ |
D | seos.c | 469 it->seg = NULL; in osSegmentIteratorInit() 475 struct Segment *seg = osGetSegment(app); in osAppSegmentSetState() local 478 if (!seg) in osAppSegmentSetState() 483 done = BL.blProgramShared(&seg->state, &state, sizeof(state), BL_FLASH_KEY1, BL_FLASH_KEY2); in osAppSegmentSetState() 490 bool osSegmentSetSize(struct Segment *seg, uint32_t size) in osSegmentSetSize() argument 494 if (!seg) in osSegmentSetSize() 498 seg->state = SEG_ST_ERASED; in osSegmentSetSize() 502 seg->size[0] = size; in osSegmentSetSize() 503 seg->size[1] = size >> 8; in osSegmentSetSize() 504 seg->size[2] = size >> 16; in osSegmentSetSize() [all …]
|
D | nanohubCommand.c | 335 struct Segment *seg = osGetSegment(app); in deferredUpdateOs() local 336 uint32_t segSize = osSegmentGetSize(seg); in deferredUpdateOs() 1610 state = osSegmentGetState(it.seg); in halAppInfo() 1618 if (le32toh(req->addr) <= (uint32_t)osSegmentGetData(it.seg)) { in halAppInfo() 1619 …ret = processAppTags(osSegmentGetData(it.seg), osSegmentGetCrc(it.seg), osSegmentGetSize(it.seg), … in halAppInfo()
|
/device/google/contexthub/util/nanoapp_postprocess/ |
D | postprocess.c | 492 const char *seg; in handleApp() local 495 seg = ".bss"; in handleApp() 497 seg = ".data"; in handleApp() 499 seg = ".got"; in handleApp() 501 seg = "APPHDR"; in handleApp() 503 seg = "???"; in handleApp() 506 i, reloc->where, reloc->info & 0xff, whichSym, sym->addr, seg); in handleApp()
|
D | postprocess_elf.c | 371 const char *seg; in handleApp() local 377 seg = ".bss"; in handleApp() 379 seg = ".data"; in handleApp() 381 seg = ".got"; in handleApp() 383 seg = "APPHDR"; in handleApp() 385 seg = "???"; in handleApp() 387 fprintf(stderr, "in %s}\n", seg); in handleApp()
|