Home
last modified time | relevance | path

Searched refs:Segment (Results 1 – 3 of 3) sorted by relevance

/device/google/contexthub/firmware/os/inc/
Dseos.h117 struct Segment { struct
190 bool osSegmentSetSize(struct Segment *seg, uint32_t size);
192 struct Segment *osSegmentGetEnd();
194 struct Segment *osGetSegment(const struct AppHdr *app);
196 static inline int32_t osSegmentGetSize(const struct Segment *seg) in osSegmentGetSize()
201 static inline uint32_t osSegmentGetState(const struct Segment *seg) in osSegmentGetState()
206 static inline struct AppHdr *osSegmentGetData(const struct Segment *seg) in osSegmentGetData()
218 static inline uint32_t osSegmentGetCrc(const struct Segment *seg) in osSegmentGetCrc()
230 static inline const struct Segment *osSegmentSizeGetNext(const struct Segment *seg, uint32_t size) in osSegmentSizeGetNext()
232 struct Segment *next = (struct Segment *)(((uint8_t*)seg) + in osSegmentSizeGetNext()
[all …]
/device/google/contexthub/firmware/os/core/
Dseos.c467 it->shared = (const struct Segment *)(start); in osSegmentIteratorInit()
468 it->sharedEnd = (const struct Segment *)(start + sz); in osSegmentIteratorInit()
475 struct Segment *seg = osGetSegment(app); in osAppSegmentSetState()
490 bool osSegmentSetSize(struct Segment *seg, uint32_t size) in osSegmentSetSize()
509 struct Segment *osSegmentGetEnd() in osSegmentGetEnd()
513 return (struct Segment *)(start + size); in osSegmentGetEnd()
519 const struct Segment *storageSeg = NULL; in osSegmentGetFree()
534 struct Segment *osGetSegment(const struct AppHdr *app) in osGetSegment()
539 return (struct Segment *)((uint8_t*)app && in osGetSegment()
542 (uint8_t*)app - sizeof(struct Segment) : NULL); in osGetSegment()
[all …]
DnanohubCommand.c335 struct Segment *seg = osGetSegment(app); in deferredUpdateOs()
425 struct Segment *storageSeg; in firmwareFinish()