Searched refs:seg (Results 1 – 4 of 4) sorted by relevance
176 bool osSegmentSetSize(struct Segment *seg, uint32_t size);181 static inline int32_t osSegmentGetSize(const struct Segment *seg) in osSegmentGetSize() argument183 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() argument188 return seg ? seg->state : SEG_STATE_INVALID; in osSegmentGetState()191 static inline struct AppHdr *osSegmentGetData(const struct Segment *seg) in osSegmentGetData() argument193 return (struct AppHdr*)(&seg[1]); in osSegmentGetData()213 static inline const struct Segment *osSegmentSizeGetNext(const struct Segment *seg, uint32_t size) in osSegmentSizeGetNext() argument215 struct Segment *next = (struct Segment *)(((uint8_t*)seg) + in osSegmentSizeGetNext()217 sizeof(*seg) in osSegmentSizeGetNext()[all …]
433 it->seg = NULL; in osSegmentIteratorInit()439 struct Segment *seg = osGetSegment(app); in osAppSegmentSetState() local442 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() argument458 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 …]
315 struct Segment *seg = osGetSegment(app); in deferredUpdateOs() local316 uint32_t segSize = osSegmentGetSize(seg); in deferredUpdateOs()
172 const char *seg; in handleApp() local178 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()