Home
last modified time | relevance | path

Searched refs:mbft (Results 1 – 5 of 5) sorted by relevance

/external/syslinux/utils/
Dmemdiskfind.c34 static bool valid_mbft(const struct mBFT *mbft, size_t space) in valid_mbft() argument
39 if (memcmp(mbft->acpi.signature, "mBFT", 4)) in valid_mbft()
42 if (mbft->acpi.length < MBFT_MIN_LENGTH) in valid_mbft()
45 if (mbft->acpi.length > space) in valid_mbft()
48 if ((size_t)mbft->acpi.length != (size_t)mbft->mdi.bytes + 36+4) in valid_mbft()
52 for (i = 0; i < mbft->acpi.length; i++) in valid_mbft()
53 csum += ((const uint8_t *)mbft)[i]; in valid_mbft()
61 static void output_params(const struct mBFT *mbft) in output_params() argument
63 int sector_shift = mbft->mdi.sector_shift; in output_params()
69 mbft->mdi.diskbuf, mbft->mdi.disksize << sector_shift); in output_params()
/external/syslinux/dosutil/
Dmdiskchk.c211 const struct mBFT far *mbft; in MDISKCHK_FUNC_DECL() local
216 mbft = MK_FP(seg, 0); in MDISKCHK_FUNC_DECL()
218 if (mbft->acpi.signature[0] != 'm' || in MDISKCHK_FUNC_DECL()
219 mbft->acpi.signature[1] != 'B' || in MDISKCHK_FUNC_DECL()
220 mbft->acpi.signature[2] != 'F' || in MDISKCHK_FUNC_DECL()
221 mbft->acpi.signature[3] != 'T') in MDISKCHK_FUNC_DECL()
223 if (mbft->acpi.length != sizeof(struct mBFT)) in MDISKCHK_FUNC_DECL()
228 chksum += ((const uint8_t far *)mbft)[i]; in MDISKCHK_FUNC_DECL()
232 _fmemcpy((void far *)&m, &mbft->mdi, sizeof(struct mdi)); in MDISKCHK_FUNC_DECL()
236 patch_area = (struct patch_area far *)&mbft->mdi; in MDISKCHK_FUNC_DECL()
[all …]
/external/syslinux/com32/modules/
Difmemdsk.c253 const s_mbft * mbft; in is_memdisk_hook() local
259 mbft = MK_PTR(hook->mbft >> 4, 0); in is_memdisk_hook()
260 return &mbft->mdi; in is_memdisk_hook()
267 const s_mbft * mbft; in scan_mbfts() local
272 if (!(mbft = is_mbft(addr))) in scan_mbfts()
275 memdisk_info(&mbft->mdi); in scan_mbfts()
/external/syslinux/memdisk/
Dsetup.c763 struct mBFT *mbft; in setup() local
1142 mbft = (struct mBFT *)(((const char *)hptr) + hptr->safe_hook.mbft); in setup()
1143 hptr->safe_hook.mbft = (size_t)mbft; in setup()
1180 mbft->acpi.signature[0] = 'm'; /* "mBFT" */ in setup()
1181 mbft->acpi.signature[1] = 'B'; in setup()
1182 mbft->acpi.signature[2] = 'F'; in setup()
1183 mbft->acpi.signature[3] = 'T'; in setup()
1184 mbft->safe_hook = (size_t)&hptr->safe_hook; in setup()
1185 mbft->acpi.checksum = -checksum_buf(mbft, mbft->acpi.length); in setup()
Dmstructs.h42 uint32_t mbft; member