Home
last modified time | relevance | path

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

12

/device/google/contexthub/firmware/os/inc/
Dseos.h190 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/
Dseos.c469 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 …]
DnanohubCommand.c335 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/linaro/bootloader/edk2/OvmfPkg/XenPvBlkDxe/
DBlockFront.c472 Request->seg[Index].first_sect = 0; in XenPvBlockAsyncIo()
473 Request->seg[Index].last_sect = EFI_PAGE_SIZE / 512 - 1; in XenPvBlockAsyncIo()
475 Request->seg[0].first_sect = (UINT8)(((UINTN) IoData->Buffer & EFI_PAGE_MASK) / 512); in XenPvBlockAsyncIo()
476 Request->seg[NumSegments - 1].last_sect = in XenPvBlockAsyncIo()
482 &Request->seg[Index].gref); in XenPvBlockAsyncIo()
483 IoData->GrantRef[Index] = Request->seg[Index].gref; in XenPvBlockAsyncIo()
/device/google/contexthub/util/nanoapp_postprocess/
Dpostprocess.c492 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()
Dpostprocess_elf.c371 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()
/device/linaro/bootloader/edk2/OvmfPkg/Include/IndustryStandard/Xen/io/
Dblkif.h547 struct blkif_request_segment seg[BLKIF_MAX_SEGMENTS_PER_REQUEST]; member
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/
DEnablePaging64.asm40 add dword ptr [rsp], @F - @Base ; offset for far retf, seg is the 1st arg
/device/linaro/bootloader/edk2/MdePkg/Library/BaseLib/Ia32/
DEnablePaging64.S39 movl $LongStart, (%esp) # offset for far retf, seg is the 1st arg
DEnablePaging64.nasm40 mov DWORD [esp], .0 ; offset for far retf, seg is the 1st arg
DEnablePaging64.asm41 mov DWORD PTR [esp], @F ; offset for far retf, seg is the 1st arg
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/Ia32/
DEnablePaging64.asm39 mov [esp], @F ; offset for far retf, seg is the 1st arg
/device/linaro/bootloader/edk2/DuetPkg/BootSector/bin/
Defi64.com6 …lid opcode -�07h Device not available -�08h Double fault -�09h Coprocessor seg overrun (reserved) …
/device/linaro/bootloader/edk2/UefiCpuPkg/PiSmmCpuDxeSmm/X64/
DSmiEntry.S172 addl $(LongMode - Base), (%rsp) # offset for far retf, seg is the 1st arg
DSmiEntry.nasm150 add dword [rsp], @LongMode - Base; offset for far retf, seg is the 1st arg
DSmiEntry.asm167 add dword ptr [rsp], @LongMode - Base; offset for far retf, seg is the 1st arg
/device/linaro/bootloader/edk2/UefiCpuPkg/Library/SmmCpuFeaturesLib/X64/
DSmiEntry.nasm151 add dword [rsp], @LongMode - Base; offset for far retf, seg is the 1st arg
DSmiEntry.S173 addl $(LongMode - Base), (%rsp) # offset for far retf, seg is the 1st arg
DSmiEntry.asm168 add dword ptr [rsp], @LongMode - Base; offset for far retf, seg is the 1st arg
/device/linaro/bootloader/edk2/DuetPkg/BootSector/
Dstart16.S241 andw $0x7f, %ax # ax = Number of blocks into current seg
Dstart.S247 andw $0x7f, %ax # ax = Number of blocks into current seg
Dstart16.asm237 and ax,07fh ; ax = Number of blocks into current seg
Dstart32.S256 andw $0x7f, %ax # ax = Number of blocks into current seg
Dstart.asm244 and ax,07fh ; ax = Number of blocks into current seg
Dstart32.asm252 and ax,07fh ; ax = Number of blocks into current seg

12