Searched refs:patch_length (Results 1 – 2 of 2) sorted by relevance
/freebsd/usr.sbin/bluetooth/rtlbtfw/ |
H A D | rtlbt_fw.c | 318 uint16_t patch_length, num_patches; in rtlbt_parse_fwfile_v1() local 336 patch_length = le16dec(chip_id_base + 2 * (num_patches + i)); in rtlbt_parse_fwfile_v1() 348 "index=%d length=%x offset=%x", i, patch_length, patch_offset); in rtlbt_parse_fwfile_v1() 349 if (fw->len < patch_offset + patch_length) { in rtlbt_parse_fwfile_v1() 354 patch_buf = malloc(patch_length); in rtlbt_parse_fwfile_v1() 360 memcpy(patch_buf, fw->buf + patch_offset, patch_length - 4); in rtlbt_parse_fwfile_v1() 361 memcpy(patch_buf + patch_length - 4, &fw_header->fw_version, 4); in rtlbt_parse_fwfile_v1() 365 fw->len = patch_length; in rtlbt_parse_fwfile_v1()
|
/freebsd/contrib/llvm-project/compiler-rt/lib/interception/ |
H A D | interception_win.cpp | 770 uptr patch_length = kDetourHeaderLen + kShortJumpInstructionLength; in OverrideFunctionWithDetour() local 779 if (!ChangeMemoryProtection(header, patch_length, &protection)) in OverrideFunctionWithDetour() 789 if (!RestoreMemoryProtection(header, patch_length, protection)) in OverrideFunctionWithDetour() 839 uptr patch_length = kHotPatchHeaderLen + kShortJumpInstructionLength; in OverrideFunctionWithHotPatch() local 870 if (!ChangeMemoryProtection(header, patch_length, &protection)) in OverrideFunctionWithHotPatch() 878 if (!RestoreMemoryProtection(header, patch_length, protection)) in OverrideFunctionWithHotPatch() 925 uptr patch_length = instructions_length + padding_length; in OverrideFunctionWithTrampoline() local 927 if (!ChangeMemoryProtection(patch_address, patch_length, &protection)) in OverrideFunctionWithTrampoline() 934 if (!RestoreMemoryProtection(patch_address, patch_length, protection)) in OverrideFunctionWithTrampoline()
|