/openbmc/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 …]
|
/openbmc/linux/arch/sh/kernel/ |
H A D | traps_32.c | 48 static inline void sign_extend(unsigned int count, unsigned char *dst) in sign_extend() function 141 sign_extend(count, dst); in handle_unaligned_ins() 203 sign_extend(count, dst); in handle_unaligned_ins() 233 sign_extend(2, dst); in handle_unaligned_ins() 252 sign_extend(2, dst); in handle_unaligned_ins()
|
/openbmc/linux/include/linux/iio/ |
H A D | backend.h | 27 bool sign_extend; member
|
/openbmc/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)
|
/openbmc/qemu/disas/ |
H A D | hppa.c | 181 static inline int sign_extend (int, int) ATTRIBUTE_UNUSED; 203 sign_extend (int x, int len) in sign_extend() function 1899 return sign_extend (word, 16); in extract_16() 1920 return sign_extend (val, 21) << 11; in extract_21() 1928 return sign_extend (GET_FIELD (word, 19, 28) in extract_12() 1939 return sign_extend (GET_FIELD (word, 19, 28) in extract_17() 1948 return sign_extend (GET_FIELD (word, 19, 28) in extract_22()
|
H A D | nanomips.c | 72 static int64 sign_extend(int64 data, int msb) in sign_extend() function 554 value = sign_extend(value, 9); in extract_s__se9_20_19_18_17_16_15_14_13_12_11() 564 value = sign_extend(value, 11); in extract_s__se11_0_10_9_8_7_6_5_4_3_2_1_0_s1() 632 value = sign_extend(value, 31); in extract_s__se31_0_11_to_2_20_to_12_s12() 642 value = sign_extend(value, 7); in extract_s__se7_0_6_5_4_3_2_1_s1() 716 value = sign_extend(value, 10); in extract_s__se10_0_9_8_7_6_5_4_3_2_1_s1() 855 value = sign_extend(value, 21); in extract_s__se21_0_20_to_1_s1() 897 value = sign_extend(value, 5); in extract_shift__se5_21_20_19_18_17_16() 932 value = sign_extend(value, 8); in extract_s__se8_15_7_6_5_4_3_2_s2() 958 value = sign_extend(value, 8); in extract_s__se8_15_7_6_5_4_3_2_1_0() [all …]
|
/openbmc/linux/arch/arm64/net/ |
H A D | bpf_jit_comp.c | 783 bool sign_extend; in build_insn() local 1180 sign_extend = (BPF_MODE(insn->code) == BPF_MEMSX || in build_insn() 1185 if (sign_extend) in build_insn() 1191 if (sign_extend) in build_insn() 1199 if (sign_extend) in build_insn() 1205 if (sign_extend) in build_insn() 1213 if (sign_extend) in build_insn() 1219 if (sign_extend) in build_insn()
|
/openbmc/linux/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/ |
H A D | dma_local.h | 148 bool sign_extend; member
|
H A D | dma.c | 259 ch->sign_extend = DMA_GET_EXTENSION(dma_reg_load(ID, in dma_get_state()
|
/openbmc/linux/drivers/iio/adc/ |
H A D | adi-axi-adc.c | 98 if (data->sign_extend) in axi_adc_data_format_set()
|
H A D | ad9467.c | 448 .sign_extend = true, in ad9467_setup()
|
/openbmc/linux/arch/s390/net/ |
H A D | bpf_jit_comp.c | 744 static int sign_extend(struct bpf_jit *jit, int r, u8 size, u8 flags) in sign_extend() function 1441 if (sign_extend(jit, BPF_REG_1 + j, in bpf_jit_insn() 2156 if (sign_extend(jit, REG_2, m->ret_size, m->ret_flags)) in invoke_bpf_prog()
|
/openbmc/linux/arch/powerpc/kvm/ |
H A D | powerpc.c | 1257 int is_default_endian, int sign_extend) in __kvmppc_handle_load() argument 1281 vcpu->arch.mmio_sign_extend = sign_extend; in __kvmppc_handle_load()
|
/openbmc/linux/drivers/staging/media/atomisp/pci/runtime/debug/src/ |
H A D | ia_css_debug.c | 1127 ch->sign_extend); in ia_css_debug_dump_dma_state()
|
/openbmc/qemu/target/sparc/ |
H A D | translate.c | 209 #define GET_FIELDs(x,a,b) sign_extend (GET_FIELD(x,a,b), (b) - (a) + 1) 210 #define GET_FIELD_SPs(x,a,b) sign_extend (GET_FIELD_SP(x,a,b), ((b) - (a) + 1))
|
/openbmc/qemu/target/mips/tcg/ |
H A D | nanomips_translate.c.inc | 4570 /* imm = sign_extend(s[3] . s[2:0] , from_nbits = 4) */
|