Home
last modified time | relevance | path

Searched refs:shift (Results 1 – 11 of 11) sorted by relevance

/subsys/bluetooth/mesh/
A Drpl.c240 int shift = 0; in bt_mesh_rpl_reset() local
250 shift++; in bt_mesh_rpl_reset()
254 if (shift > 0) { in bt_mesh_rpl_reset()
263 (void)memset(&replay_list[last - shift + 1], 0, sizeof(struct bt_mesh_rpl) * shift); in bt_mesh_rpl_reset()
346 int shift = 0; in bt_mesh_rpl_pending_store() local
373 shift++; in bt_mesh_rpl_pending_store()
375 if (shift > 0) { in bt_mesh_rpl_pending_store()
376 replay_list[i - shift] = *rpl; in bt_mesh_rpl_pending_store()
387 replay_list[i - shift] = *rpl; in bt_mesh_rpl_pending_store()
390 shift++; in bt_mesh_rpl_pending_store()
[all …]
/subsys/sensing/sensor/phy_3d_sensor/
A Dphy_3d_sensor.c26 static int64_t shifted_q31_to_scaled_int64(q31_t q, int8_t shift, int64_t scale) in shifted_q31_to_scaled_int64() argument
31 shifted_value = (int64_t)q << shift; in shifted_q31_to_scaled_int64()
35 FIELD_GET(GENMASK64(31 + shift, 31), shifted_value) * scale + in shifted_q31_to_scaled_int64()
46 int8_t shift) in scaled_int64_to_shifted_q31() argument
48 return (q31_t)((val * BIT(31 - shift) / scale)); in scaled_int64_to_shifted_q31()
71 .shift = SENSING_ACCEL_Q31_SHIFT,
96 .shift = SENSING_GYRO_Q31_SHIFT,
200 sample->shift = custom->shift; in phy_3d_sensor_submit()
A Dphy_3d_sensor.h17 const int8_t shift; member
/subsys/shell/
A 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()
A Dshell_utils.c240 uint16_t shift; in z_shell_pattern_remove() local
254 shift = z_shell_strlen(pattern_addr) - pattern_len + 1; /* +1 for EOS */ in z_shell_pattern_remove()
257 memmove(pattern_addr, pattern_addr + pattern_len, shift); in z_shell_pattern_remove()
429 uint16_t shift = 0U; in z_shell_spaces_trim() local
439 shift++; in z_shell_spaces_trim()
443 if (shift > 0) { in z_shell_spaces_trim()
448 len -= shift; in z_shell_spaces_trim()
449 shift = 0U; in z_shell_spaces_trim()
A Dshell_ops.c149 int16_t shift; in z_shell_op_cursor_word_move() local
160 shift = shift_calc(sh->ctx->cmd_buff, in z_shell_op_cursor_word_move()
163 z_shell_op_cursor_move(sh, sign * shift); in z_shell_op_cursor_word_move()
/subsys/bluetooth/controller/util/
A 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()
/subsys/dsp/cmsis/public/
A Dzdsp_backend.h80 static inline void zdsp_scale_q7(const q7_t *src, q7_t scale_fract, int8_t shift, q7_t *dst, in zdsp_scale_q7() argument
83 arm_scale_q7(src, scale_fract, shift, dst, block_size); in zdsp_scale_q7()
85 static inline void zdsp_scale_q15(const q15_t *src, q15_t scale_fract, int8_t shift, q15_t *dst, in zdsp_scale_q15() argument
88 arm_scale_q15(src, scale_fract, shift, dst, block_size); in zdsp_scale_q15()
90 static inline void zdsp_scale_q31(const q31_t *src, q31_t scale_fract, int8_t shift, q31_t *dst, in zdsp_scale_q31() argument
93 arm_scale_q31(src, scale_fract, shift, dst, block_size); in zdsp_scale_q31()
/subsys/dsp/arcmwdt/public/
A Dzdsp_backend.h85 static inline void zdsp_scale_q7(const DSP_DATA q7_t *src, q7_t scale_fract, int8_t shift, in zdsp_scale_q7() argument
88 dsp_scale_q7(src, scale_fract, shift, dst, block_size); in zdsp_scale_q7()
90 static inline void zdsp_scale_q15(const DSP_DATA q15_t *src, q15_t scale_fract, int8_t shift, in zdsp_scale_q15() argument
93 dsp_scale_q15(src, scale_fract, shift, dst, block_size); in zdsp_scale_q15()
95 static inline void zdsp_scale_q31(const DSP_DATA q31_t *src, q31_t scale_fract, int8_t shift, in zdsp_scale_q31() argument
98 dsp_scale_q31(src, scale_fract, shift, dst, block_size); in zdsp_scale_q31()
/subsys/bluetooth/controller/
A DKconfig.df278 bool "Conversion of IQ samples to 8 bits wide by 4 bits shift"
284 8 bits by ordinary right shift operation by 4 bits. That means there is loss in accuracy
288 bool "Conversion of IQ samples to 8 bits wide by 2 bits shift"
294 8 bits by ordinary right shift operation by 2 bits and a cast to int8_t. That means there
/subsys/net/lib/mqtt/
A Dmqtt_decoder.c160 uint8_t shift = 0U; in unpack_variable_int() local
174 << shift; in unpack_variable_int()
175 shift += MQTT_LENGTH_SHIFT; in unpack_variable_int()

Completed in 83 milliseconds