Home
last modified time | relevance | path

Searched refs:shift (Results 26 – 50 of 170) sorted by relevance

1234567

/Zephyr-latest/include/zephyr/sys/
Dutil.h475 static inline int64_t arithmetic_shift_right(int64_t value, uint8_t shift) in arithmetic_shift_right() argument
479 if (shift == 0U) { in arithmetic_shift_right()
490 return (value >> shift) | (sign_ext << (64 - shift)); in arithmetic_shift_right()
627 uint8_t shift = 31 - index; in sign_extend() local
629 return (int32_t)(value << shift) >> shift; in sign_extend()
642 uint8_t shift = 63 - index; in sign_extend_64() local
644 return (int64_t)(value << shift) >> shift; in sign_extend_64()
/Zephyr-latest/include/zephyr/sensing/
Dsensing_datatypes.h70 int8_t shift; /**< The shift value for the q31_t v[3] reading. */ member
119 int8_t shift; /**< The shift value for the q31_t v reading. */ member
/Zephyr-latest/include/zephyr/dt-bindings/clock/
Dstm32_common_clocks.h47 #define STM32_MCO_CFGR(val, mask, shift, reg) \ argument
49 (((shift) & STM32_MCO_CFGR_SHIFT_MASK) << STM32_MCO_CFGR_SHIFT_SHIFT) | \
Dstm32l1_clock.h51 #define STM32_DOMAIN_CLOCK(val, mask, shift, reg) \ argument
53 (((shift) & STM32_CLOCK_SHIFT_MASK) << STM32_CLOCK_SHIFT_SHIFT) | \
Dstm32wb0_clock.h52 #define STM32_DOMAIN_CLOCK(val, mask, shift, reg) \ argument
54 (((shift) & STM32_CLOCK_SHIFT_MASK) << STM32_CLOCK_SHIFT_SHIFT) | \
Dstm32f1_clock.h53 #define STM32_DOMAIN_CLOCK(val, mask, shift, reg) \ argument
55 (((shift) & STM32_CLOCK_SHIFT_MASK) << STM32_CLOCK_SHIFT_SHIFT) | \
Dstm32l0_clock.h56 #define STM32_DOMAIN_CLOCK(val, mask, shift, reg) \ argument
58 (((shift) & STM32_CLOCK_SHIFT_MASK) << STM32_CLOCK_SHIFT_SHIFT) | \
Dstm32f0_clock.h55 #define STM32_DOMAIN_CLOCK(val, mask, shift, reg) \ argument
57 (((shift) & STM32_CLOCK_SHIFT_MASK) << STM32_CLOCK_SHIFT_SHIFT) | \
Dstm32f4_clock.h68 #define STM32_DOMAIN_CLOCK(val, mask, shift, reg) \ argument
70 (((shift) & STM32_CLOCK_SHIFT_MASK) << STM32_CLOCK_SHIFT_SHIFT) | \
Dstm32c0_clock.h54 #define STM32_DOMAIN_CLOCK(val, mask, shift, reg) \ argument
56 (((shift) & STM32_CLOCK_SHIFT_MASK) << STM32_CLOCK_SHIFT_SHIFT) | \
Dstm32wb_clock.h63 #define STM32_DOMAIN_CLOCK(val, mask, shift, reg) \ argument
65 (((shift) & STM32_CLOCK_SHIFT_MASK) << STM32_CLOCK_SHIFT_SHIFT) | \
Dstm32wl_clock.h63 #define STM32_DOMAIN_CLOCK(val, mask, shift, reg) \ argument
65 (((shift) & STM32_CLOCK_SHIFT_MASK) << STM32_CLOCK_SHIFT_SHIFT) | \
/Zephyr-latest/samples/sensor/bme280/src/
Dmain.c97 PRIq_arg(temp_data.readings[0].temperature, 6, temp_data.shift), in main()
98 PRIq_arg(press_data.readings[0].pressure, 6, press_data.shift), in main()
99 PRIq_arg(hum_data.readings[0].humidity, 6, hum_data.shift)); in main()
/Zephyr-latest/drivers/sensor/memsic/mmc56x3/
Dmmc56x3_decoder.c86 out->shift = MMC56X3_TEMP_SHIFT; in mmc56x3_decoder_decode()
98 out->shift = MMC56X3_MAGN_SHIFT; in mmc56x3_decoder_decode()
110 out->shift = MMC56X3_MAGN_SHIFT; in mmc56x3_decoder_decode()
122 out->shift = MMC56X3_MAGN_SHIFT; in mmc56x3_decoder_decode()
133 out_3->shift = MMC56X3_MAGN_SHIFT; in mmc56x3_decoder_decode()
/Zephyr-latest/drivers/watchdog/
Dwdt_iwdg_stm32.c67 uint8_t shift = 0U; in iwdg_stm32_convert_timeout() local
73 shift++; in iwdg_stm32_convert_timeout()
74 divider = 4U << shift; in iwdg_stm32_convert_timeout()
81 *prescaler = shift; in iwdg_stm32_convert_timeout()
/Zephyr-latest/include/zephyr/dt-bindings/adc/
Dstm32_adc.h37 #define STM32_ADC(real_val, reg_val, mask, shift, reg) \ argument
39 (((shift) & STM32_ADC_SHIFT_MASK) << STM32_ADC_SHIFT_SHIFT) | \
/Zephyr-latest/drivers/sensor/bosch/bme280/
Dbme280_decoder.c79 out->shift = BME280_TEMP_SHIFT; in bme280_decoder_decode()
92 out->shift = BME280_PRESS_SHIFT; in bme280_decoder_decode()
100 out->shift = BME280_HUM_SHIFT; in bme280_decoder_decode()
/Zephyr-latest/drivers/sensor/
Ddefault_rtio_sensor.c147 header->shift = 0; in sensor_submit_fallback_sync()
208 if (header->shift < new_shift) { in sensor_submit_fallback_sync()
215 q[q_idx] = q[q_idx] >> (new_shift - header->shift); in sensor_submit_fallback_sync()
217 header->shift = new_shift; in sensor_submit_fallback_sync()
244 ((value_u * ((INT64_C(1) << 31) - 1)) / 1000000) >> header->shift; in sensor_submit_fallback_sync()
250 q[sample_idx + sample], header->shift); in sensor_submit_fallback_sync()
410 data_out->shift = header->shift; in decode_three_axis()
438 data_out->shift = header->shift; in decode_q31()
/Zephyr-latest/soc/mediatek/mt8xxx/
Dcpuclk.c111 static void setclk(int clk, int shift, int updreg, int ubit, int val) in setclk() argument
113 MTK_CLK_GEN.clk_cfg[clk].clr = (0xf << shift); in setclk()
115 MTK_CLK_GEN.clk_cfg[clk].set = (val << shift); in setclk()
/Zephyr-latest/dts/arm/broadcom/
Dvalkyrie.dtsi39 reg-shift = <2>;
48 reg-shift = <2>;
/Zephyr-latest/drivers/gpio/
Dgpio_mcux_igpio.c278 int shift; in mcux_igpio_pin_interrupt_configure() local
308 shift = 2 * pin; in mcux_igpio_pin_interrupt_configure()
309 base->ICR1 = (base->ICR1 & ~(3 << shift)) | (icr << shift); in mcux_igpio_pin_interrupt_configure()
311 shift = 2 * (pin - 16); in mcux_igpio_pin_interrupt_configure()
312 base->ICR2 = (base->ICR2 & ~(3 << shift)) | (icr << shift); in mcux_igpio_pin_interrupt_configure()
/Zephyr-latest/arch/arm64/core/
Delf.c301 int shift = 10; /* shift of the immediate in instruction encoding */ in imm_reloc_handler() local
339 shift = 5; in imm_reloc_handler()
353 shift = 5; in imm_reloc_handler()
369 shift = 0; in imm_reloc_handler()
391 shift = 0; in imm_reloc_handler()
396 opcode &= ~(bitmask << shift); in imm_reloc_handler()
397 opcode |= (imm & bitmask) << shift; in imm_reloc_handler()
/Zephyr-latest/soc/andestech/ae350/
Dpma.c96 uint8_t shift = PMACFG_SHIFT(entry_index); in write_pmacfg_entry() local
108 pmacfg &= ~(0xFF << shift); in write_pmacfg_entry()
110 pmacfg |= entry_value << shift; in write_pmacfg_entry()
/Zephyr-latest/subsys/shell/
Dshell_wildcard.c19 uint16_t shift; in command_add() local
32 shift = z_shell_strlen(completion_addr); in command_add()
35 memmove(completion_addr + cmd_len + 1, completion_addr, shift + 1); in command_add()
/Zephyr-latest/subsys/bluetooth/controller/util/
Dutil.c327 uint8_t shift, byteIdx, bits; in util_get_bits() local
330 shift = 0; in util_get_bits()
335 value |= ((data[byteIdx] >> bit_offs) & BIT_MASK(bits)) << shift; in util_get_bits()
336 shift += bits; in util_get_bits()

1234567