| /linux/arch/arc/include/asm/ |
| H A D | disasm.h | 41 #define FIELD_s12(word) sign_extend(((BITS((word), 0, 5) << 6) | \ 46 #define FIELD_s9(word) sign_extend(((BITS(word, 15, 15) << 8) | \ 48 #define FIELD_s21(word) sign_extend(((BITS(word, 6, 15) << 11) | \ 50 #define FIELD_s25(word) sign_extend(((BITS(word, 0, 3) << 21) | \ 64 #define FIELD_S_s7(word) sign_extend(BITS((word), 0, 5) << 1, 9) 65 #define FIELD_S_s8(word) sign_extend(BITS((word), 0, 7) << 1, 9) 66 #define FIELD_S_s9(word) sign_extend(BITS((word), 0, 8), 9) 67 #define FIELD_S_s10(word) sign_extend(BITS((word), 0, 8) << 1, 10) 68 #define FIELD_S_s11(word) sign_extend(BITS((word), 0, 8) << 2, 11) 69 #define FIELD_S_s13(word) sign_extend(BITS((word), 0, 10) << 2, 13) [all …]
|
| /linux/arch/sh/kernel/ |
| H A D | traps_32.c | 49 static inline void sign_extend(unsigned int count, unsigned char *dst) in sign_extend() function 142 sign_extend(count, dst); in handle_unaligned_ins() 204 sign_extend(count, dst); in handle_unaligned_ins() 234 sign_extend(2, dst); in handle_unaligned_ins() 253 sign_extend(2, dst); in handle_unaligned_ins()
|
| /linux/arch/arm/probes/ |
| H A D | decode-arm.c | 19 #define sign_extend(x, signbit) ((x) | (0 - ((x) & (1 << (signbit))))) macro 21 #define branch_displacement(insn) sign_extend(((insn) & 0xffffff) << 2, 25)
|
| /linux/arch/loongarch/net/ |
| H A D | bpf_jit.c | 704 bool func_addr_fixed, sign_extend; in build_insn() local 1233 sign_extend = BPF_MODE(code) == BPF_MEMSX || in build_insn() 1244 if (sign_extend) in build_insn() 1250 if (sign_extend) in build_insn() 1258 if (sign_extend) in build_insn() 1264 if (sign_extend) in build_insn() 1272 if (sign_extend) in build_insn() 1278 if (sign_extend) in build_insn() 1781 static void sign_extend(struct jit_ctx *ctx, int rd, int rj, u8 size, bool sign) in sign_extend() function 2069 sign_extend(ctx, LOONGARCH_GPR_A0, regmap[BPF_REG_0], in __arch_prepare_bpf_trampoline()
|
| /linux/drivers/iio/adc/ |
| H A D | ad7606_par.c | 49 .sign_extend = true, in ad7606_par_bus_setup_iio_backend()
|
| H A D | adi-axi-adc.c | 175 if (data->sign_extend) in axi_adc_data_format_set()
|
| H A D | ad9467.c | 663 .sign_extend = true, in ad9467_backend_testmode_off()
|
| /linux/arch/arm64/net/ |
| H A D | bpf_jit_comp.c | 1224 bool sign_extend; in build_insn() local 1679 sign_extend = (BPF_MODE(insn->code) == BPF_MEMSX || in build_insn() 1685 if (sign_extend) in build_insn() 1691 if (sign_extend) in build_insn() 1699 if (sign_extend) in build_insn() 1705 if (sign_extend) in build_insn() 1713 if (sign_extend) in build_insn() 1719 if (sign_extend) in build_insn()
|
| /linux/include/linux/iio/ |
| H A D | backend.h | 53 bool sign_extend; member
|
| /linux/arch/powerpc/net/ |
| H A D | bpf_jit_comp64.c | 575 static int sign_extend(u32 *image, struct codegen_context *ctx, u32 src_reg, u32 dst_reg, u32 size) in sign_extend() function 621 if (sign_extend(image, ctx, reg, reg, size)) in prepare_for_kfunc_call() 1280 if (sign_extend(image, ctx, src_reg, dst_reg, off / 8)) in bpf_jit_build_body()
|
| /linux/arch/powerpc/kvm/ |
| H A D | powerpc.c | 1239 int is_default_endian, int sign_extend) in __kvmppc_handle_load() argument 1263 vcpu->arch.mmio_sign_extend = sign_extend; in __kvmppc_handle_load()
|
| /linux/arch/riscv/net/ |
| H A D | bpf_jit_comp64.c | 717 static int sign_extend(u8 rd, u8 rs, u8 sz, bool sign, struct rv_jit_context *ctx) in sign_extend() function 1265 ret = sign_extend(RV_REG_A0, regmap[BPF_REG_0], m->ret_size, in __arch_prepare_bpf_trampoline()
|