Home
last modified time | relevance | path

Searched refs:patch_length (Results 1 – 2 of 2) sorted by relevance

/freebsd/usr.sbin/bluetooth/rtlbtfw/
H A Drtlbt_fw.c320 uint16_t patch_length, num_patches; in rtlbt_parse_fwfile_v1() local
338 patch_length = le16dec(chip_id_base + 2 * (num_patches + i)); in rtlbt_parse_fwfile_v1()
350 "index=%d length=%x offset=%x", i, patch_length, patch_offset); in rtlbt_parse_fwfile_v1()
351 if (fw->len < patch_offset + patch_length) { in rtlbt_parse_fwfile_v1()
356 patch_buf = malloc(patch_length); in rtlbt_parse_fwfile_v1()
362 memcpy(patch_buf, fw->buf + patch_offset, patch_length - 4); in rtlbt_parse_fwfile_v1()
363 memcpy(patch_buf + patch_length - 4, &fw_header->fw_version, 4); in rtlbt_parse_fwfile_v1()
367 fw->len = patch_length; in rtlbt_parse_fwfile_v1()
/freebsd/contrib/llvm-project/compiler-rt/lib/interception/
H A Dinterception_win.cpp1053 uptr patch_length = kDetourHeaderLen + kShortJumpInstructionLength; in OverrideFunctionWithDetour() local
1062 if (!ChangeMemoryProtection(header, patch_length, &protection)) in OverrideFunctionWithDetour()
1072 if (!RestoreMemoryProtection(header, patch_length, protection)) in OverrideFunctionWithDetour()
1122 uptr patch_length = kHotPatchHeaderLen + kShortJumpInstructionLength; in OverrideFunctionWithHotPatch() local
1153 if (!ChangeMemoryProtection(header, patch_length, &protection)) in OverrideFunctionWithHotPatch()
1161 if (!RestoreMemoryProtection(header, patch_length, protection)) in OverrideFunctionWithHotPatch()
1208 uptr patch_length = instructions_length + padding_length; in OverrideFunctionWithTrampoline() local
1210 if (!ChangeMemoryProtection(patch_address, patch_length, &protection)) in OverrideFunctionWithTrampoline()
1217 if (!RestoreMemoryProtection(patch_address, patch_length, protection)) in OverrideFunctionWithTrampoline()