Home
last modified time | relevance | path

Searched refs:seg (Results 1 – 4 of 4) sorted by relevance

/device/google/contexthub/firmware/inc/
Dseos.h176 bool osSegmentSetSize(struct Segment *seg, uint32_t size);
181 static inline int32_t osSegmentGetSize(const struct Segment *seg) in osSegmentGetSize() argument
183 return seg ? seg->size[0] | (seg->size[1] << 8) | (seg->size[2] << 16) : SEG_SIZE_INVALID; in osSegmentGetSize()
186 static inline uint32_t osSegmentGetState(const struct Segment *seg) in osSegmentGetState() argument
188 return seg ? seg->state : SEG_STATE_INVALID; in osSegmentGetState()
191 static inline struct AppHdr *osSegmentGetData(const struct Segment *seg) in osSegmentGetData() argument
193 return (struct AppHdr*)(&seg[1]); in osSegmentGetData()
213 static inline const struct Segment *osSegmentSizeGetNext(const struct Segment *seg, uint32_t size) in osSegmentSizeGetNext() argument
215 struct Segment *next = (struct Segment *)(((uint8_t*)seg) + in osSegmentSizeGetNext()
217 sizeof(*seg) in osSegmentSizeGetNext()
[all …]
/device/google/contexthub/firmware/src/
Dseos.c433 it->seg = NULL; in osSegmentIteratorInit()
439 struct Segment *seg = osGetSegment(app); in osAppSegmentSetState() local
442 if (!seg) in osAppSegmentSetState()
447 done = BL.blProgramShared(&seg->state, &state, sizeof(state), BL_FLASH_KEY1, BL_FLASH_KEY2); in osAppSegmentSetState()
454 bool osSegmentSetSize(struct Segment *seg, uint32_t size) in osSegmentSetSize() argument
458 if (!seg) in osSegmentSetSize()
462 seg->state = SEG_ST_ERASED; in osSegmentSetSize()
466 seg->size[0] = size; in osSegmentSetSize()
467 seg->size[1] = size >> 8; in osSegmentSetSize()
468 seg->size[2] = size >> 16; in osSegmentSetSize()
[all …]
DnanohubCommand.c315 struct Segment *seg = osGetSegment(app); in deferredUpdateOs() local
316 uint32_t segSize = osSegmentGetSize(seg); in deferredUpdateOs()
/device/google/contexthub/util/nanoapp_postprocess/
Dpostprocess.c172 const char *seg; in handleApp() local
178 seg = ".bss"; in handleApp()
180 seg = ".data"; in handleApp()
182 seg = ".got"; in handleApp()
184 seg = "APPHDR"; in handleApp()
186 seg = "???"; in handleApp()
188 fprintf(stderr, "in %s}\n", seg); in handleApp()