Home
last modified time | relevance | path

Searched refs:imm (Results 1 – 4 of 4) sorted by relevance

/xen-4.10.0-shim-comet/xen/arch/arm/arm32/
A Dinsn.c28 uint32_t imm; in branch_insn_encode_immediate() local
36 imm = ((offset >> 2) & BRANCH_INSN_IMM_MASK) << BRANCH_INSN_IMM_SHIFT; in branch_insn_encode_immediate()
40 insn |= imm; in branch_insn_encode_immediate()
52 uint32_t imm; in aarch32_get_branch_offset() local
55 imm = ( insn >> BRANCH_INSN_IMM_SHIFT ) & BRANCH_INSN_IMM_MASK; in aarch32_get_branch_offset()
61 if ( imm & BIT(23) ) in aarch32_get_branch_offset()
62 imm |= GENMASK(31, 24); in aarch32_get_branch_offset()
64 return (int32_t)(imm << 2); in aarch32_get_branch_offset()
/xen-4.10.0-shim-comet/xen/arch/arm/arm64/
A Dinsn.c126 u32 insn, u64 imm) in aarch64_insn_encode_immediate() argument
137 immlo = (imm & ADR_IMM_LOMASK) << ADR_IMM_LOSHIFT; in aarch64_insn_encode_immediate()
138 imm >>= ADR_IMM_HILOSPLIT; in aarch64_insn_encode_immediate()
139 immhi = (imm & ADR_IMM_HIMASK) << ADR_IMM_HISHIFT; in aarch64_insn_encode_immediate()
140 imm = immlo | immhi; in aarch64_insn_encode_immediate()
154 insn |= (imm & mask) << shift; in aarch64_insn_encode_immediate()
227 s32 imm; in aarch64_get_branch_offset() local
230 imm = aarch64_insn_decode_immediate(AARCH64_INSN_IMM_26, insn); in aarch64_get_branch_offset()
231 return (imm << 6) >> 4; in aarch64_get_branch_offset()
237 return (imm << 13) >> 11; in aarch64_get_branch_offset()
[all …]
A Dlivepatch.c157 u64 imm; in reloc_insn_movw() local
162 imm = sval >> lsb; in reloc_insn_movw()
185 imm = ~imm; in reloc_insn_movw()
190 insn = aarch64_insn_encode_immediate(AARCH64_INSN_IMM_16, insn, imm); in reloc_insn_movw()
193 if ( imm > UINT16_MAX ) in reloc_insn_movw()
202 u64 imm, imm_mask; in reloc_insn_imm() local
212 imm = sval & imm_mask; in reloc_insn_imm()
215 insn = aarch64_insn_encode_immediate(imm_type, insn, imm); in reloc_insn_imm()
/xen-4.10.0-shim-comet/xen/include/asm-arm/arm64/
A Dinsn.h76 u32 insn, u64 imm);

Completed in 6 milliseconds