/hal_espressif-latest/components/bt/host/bluedroid/external/sbc/decoder/srce/ |
D | bitalloc.c | 157 OI_INT bits = scale_factor[sb]; in computeBitneed() local 158 if (bits > maxBits) { in computeBitneed() 159 maxBits = bits; in computeBitneed() 161 if ((bitneeds[sb] = bits) > 1) { in computeBitneed() 162 bitcount += bits; in computeBitneed() 164 prefBits += 2 + bits; in computeBitneed() 174 OI_INT bits = scale_factor[sb]; in computeBitneed() local 175 if (bits > maxBits) { in computeBitneed() 176 maxBits = bits; in computeBitneed() 178 prefBits += 2 + bits; in computeBitneed() [all …]
|
D | dequant.c | 128 static INLINE float dequant_float(OI_UINT32 raw, OI_UINT scale_factor, OI_UINT bits) in dequant_float() argument 130 float result = (1 << (scale_factor + 1)) * ((raw * 2.0f + 1.0f) / ((1 << bits) - 1.0f) - 1.0f); in dequant_float() 147 INLINE OI_INT32 OI_SBC_Dequant(OI_UINT32 raw, OI_UINT scale_factor, OI_UINT bits) in OI_SBC_Dequant() argument 153 OI_ASSERT(bits <= 16); in OI_SBC_Dequant() 155 if (bits <= 1) { in OI_SBC_Dequant() 160 d *= dequant_long_scaled[bits]; in OI_SBC_Dequant() 168 float_result = dequant_float(raw, scale_factor, bits); in OI_SBC_Dequant() 186 INLINE OI_INT32 OI_SBC_Dequant_Unscaled(OI_UINT32 raw, OI_UINT scale_factor, OI_UINT bits) in OI_SBC_Dequant_Unscaled() argument 192 OI_ASSERT(bits <= 16); in OI_SBC_Dequant_Unscaled() 195 if (bits <= 1) { in OI_SBC_Dequant_Unscaled() [all …]
|
D | bitalloc-sbc.c | 74 … excess = allocAdjustedBits(&common->bits.uint8[sbL], bitneeds.uint8[sbL] + bitadjust, excess); in stereoBitAllocation() 76 … excess = allocAdjustedBits(&common->bits.uint8[sbR], bitneeds.uint8[sbR] + bitadjust, excess); in stereoBitAllocation() 82 excess = allocExcessBits(&common->bits.uint8[sbL], excess); in stereoBitAllocation() 87 excess = allocExcessBits(&common->bits.uint8[sbR], excess); in stereoBitAllocation() 138 OI_UINT16 bits; in OI_CODEC_SBC_CalculateBitpool() local 152 bits = 8 * (frameLen - SBC_HEADER_LEN) - hdr; in OI_CODEC_SBC_CalculateBitpool() 153 return DIVIDE(bits, nrof_blocks); in OI_CODEC_SBC_CalculateBitpool()
|
D | readsamplesjoint.inc | 69 OI_UINT8 *bits_array = &common->bits.uint8[0]; 79 OI_UINT8 bits = *bits_array++; 82 OI_BITSTREAM_READUINT(raw, bits, ptr, value, bitPtr); 83 dequant = OI_SBC_Dequant(raw, sf, bits); 93 OI_UINT8 bits = *bits_array++; 96 OI_BITSTREAM_READUINT(raw, bits, ptr, value, bitPtr); 97 dequant = OI_SBC_Dequant(raw, sf, bits);
|
D | decoder-private.c | 225 OI_UINT32 bits_by4 = common->bits.uint32[i]; in OI_SBC_ReadSamples() 229 OI_UINT bits; in OI_SBC_ReadSamples() local 233 bits = bits_by4 & 0xFF; in OI_SBC_ReadSamples() 238 bits = (bits_by4 >> 24) & 0xFF; in OI_SBC_ReadSamples() 243 if (bits) { in OI_SBC_ReadSamples() 245 OI_BITSTREAM_READUINT(raw, bits, ptr, value, bitPtr); in OI_SBC_ReadSamples() 246 dequant = OI_SBC_Dequant(raw, sf, bits); in OI_SBC_ReadSamples()
|
D | bitstream-decode.c | 51 PRIVATE OI_UINT32 OI_BITSTREAM_ReadUINT(OI_BITSTREAM *bs, OI_UINT bits) in OI_BITSTREAM_ReadUINT() argument 55 OI_BITSTREAM_READUINT(result, bits, bs->ptr.r, bs->value, bs->bitPtr); in OI_BITSTREAM_ReadUINT()
|
/hal_espressif-latest/components/bt/host/bluedroid/external/sbc/decoder/include/ |
D | oi_bitstream.h | 47 INLINE OI_UINT32 OI_BITSTREAM_ReadUINT(OI_BITSTREAM *bs, OI_UINT bits); 55 OI_UINT bits); 80 #define OI_BITSTREAM_READUINT(result, bits, ptr, value, bitPtr) \ argument 82 OI_ASSERT((bits) <= 16); \ 87 result >>= 32 - (bits); \ 89 bitPtr += (bits); \ 94 OI_ASSERT((bits == 0) || (result < (1u << (bits)))); \ 98 #define OI_BITSTREAM_WRITEUINT(ptr, value, bitPtr, datum, bits) \ argument 100 bitPtr -= bits;\
|
/hal_espressif-latest/components/wpa_supplicant/src/utils/ |
D | bitfield.c | 16 u8 *bits; member 28 bf->bits = (u8 *) (bf + 1); in bitfield_alloc() 44 bf->bits[bit / 8] |= BIT(bit % 8); in bitfield_set() 52 bf->bits[bit / 8] &= ~BIT(bit % 8); in bitfield_clear() 60 return !!(bf->bits[bit / 8] & BIT(bit % 8)); in bitfield_is_set() 80 if (bf->bits[i] != 0xff) in bitfield_get_first_zero() 85 i = i * 8 + first_zero(bf->bits[i]); in bitfield_get_first_zero()
|
/hal_espressif-latest/components/esp_adc/deprecated/esp32/ |
D | esp_adc_cal_legacy.c | 116 static inline int decode_bits(uint32_t bits, uint32_t mask, bool is_twos_compl) in decode_bits() argument 119 if (bits & (~(mask >> 1) & mask)) { //Check sign bit (MSB of mask) in decode_bits() 122 ret = -(((~bits) + 1) & (mask >> 1)); //2's complement in decode_bits() 124 ret = -(bits & (mask >> 1)); //Sign-magnitude in decode_bits() 128 ret = bits & (mask >> 1); in decode_bits() 137 uint32_t bits = efuse_ll_get_adc_vref(); in read_efuse_vref() local 138 ret += decode_bits(bits, VREF_MASK, VREF_FORMAT) * VREF_STEP_SIZE; in read_efuse_vref() 146 uint32_t bits; in read_efuse_tp_low() local 150 bits = efuse_ll_get_adc1_tp_low(); in read_efuse_tp_low() 153 bits = efuse_ll_get_adc2_tp_low(); in read_efuse_tp_low() [all …]
|
/hal_espressif-latest/zephyr/esp32/src/esp_adc_cal/ |
D | esp_adc_cal.c | 122 static inline int decode_bits(uint32_t bits, uint32_t mask, bool is_twos_compl) in decode_bits() argument 125 if (bits & (~(mask >> 1) & mask)) { //Check sign bit (MSB of mask) in decode_bits() 128 ret = -(((~bits) + 1) & (mask >> 1)); //2's complement in decode_bits() 130 ret = -(bits & (mask >> 1)); //Sign-magnitude in decode_bits() 134 ret = bits & (mask >> 1); in decode_bits() 143 uint32_t bits = REG_GET_FIELD(VREF_REG, EFUSE_ADC_VREF); in read_efuse_vref() local 144 ret += decode_bits(bits, VREF_MASK, VREF_FORMAT) * VREF_STEP_SIZE; in read_efuse_vref() 152 uint32_t bits; in read_efuse_tp_low() local 156 bits = REG_GET_FIELD(TP_REG, EFUSE_RD_ADC1_TP_LOW); in read_efuse_tp_low() 159 bits = REG_GET_FIELD(TP_REG, EFUSE_RD_ADC2_TP_LOW); in read_efuse_tp_low() [all …]
|
/hal_espressif-latest/components/esp_adc/esp32/ |
D | adc_cali_line_fitting.c | 105 static inline int decode_bits(uint32_t bits, uint32_t mask, bool is_twos_compl); 293 static inline int decode_bits(uint32_t bits, uint32_t mask, bool is_twos_compl) in decode_bits() argument 296 if (bits & (~(mask >> 1) & mask)) { //Check sign bit (MSB of mask) in decode_bits() 299 ret = -(((~bits) + 1) & (mask >> 1)); //2's complement in decode_bits() 301 ret = -(bits & (mask >> 1)); //Sign-magnitude in decode_bits() 305 ret = bits & (mask >> 1); in decode_bits() 314 uint32_t bits = efuse_ll_get_adc_vref(); in read_efuse_vref() local 315 ret += decode_bits(bits, VREF_MASK, VREF_FORMAT) * VREF_STEP_SIZE; in read_efuse_vref() 323 uint32_t bits; in read_efuse_tp_low() local 327 bits = efuse_ll_get_adc1_tp_low(); in read_efuse_tp_low() [all …]
|
/hal_espressif-latest/components/esp_rom/include/esp32s3/rom/ |
D | aes.h | 31 int ets_aes_setkey(enum AES_TYPE type, const void *key, enum AES_BITS bits); 33 int ets_aes_setkey_enc(const void *key, enum AES_BITS bits); 35 int ets_aes_setkey_dec(const void *key, enum AES_BITS bits);
|
/hal_espressif-latest/components/esp_rom/include/esp32c3/rom/ |
D | aes.h | 34 int ets_aes_setkey(enum AES_TYPE type, const void *key, enum AES_BITS bits); 36 int ets_aes_setkey_enc(const void *key, enum AES_BITS bits); 38 int ets_aes_setkey_dec(const void *key, enum AES_BITS bits);
|
/hal_espressif-latest/components/esp_rom/include/esp32c6/rom/ |
D | aes.h | 34 int ets_aes_setkey(enum AES_TYPE type, const void *key, enum AES_BITS bits); 36 int ets_aes_setkey_enc(const void *key, enum AES_BITS bits); 38 int ets_aes_setkey_dec(const void *key, enum AES_BITS bits);
|
/hal_espressif-latest/components/esp_rom/include/esp32h2/rom/ |
D | aes.h | 34 int ets_aes_setkey(enum AES_TYPE type, const void *key, enum AES_BITS bits); 36 int ets_aes_setkey_enc(const void *key, enum AES_BITS bits); 38 int ets_aes_setkey_dec(const void *key, enum AES_BITS bits);
|
/hal_espressif-latest/components/esp_rom/include/esp32s2/rom/ |
D | aes.h | 52 int ets_aes_setkey(enum AES_TYPE type, const void *key, enum AES_BITS bits); 54 int ets_aes_setkey_enc(const void *key, enum AES_BITS bits); 56 int ets_aes_setkey_dec(const void *key, enum AES_BITS bits);
|
/hal_espressif-latest/components/wpa_supplicant/src/common/ |
D | sae_pk.c | 206 static char *add_char(const char *start, char *pos, u8 idx, size_t *bits) in add_char() argument 208 if (*bits == 0) { in add_char() 211 if (*bits > 5) { in add_char() 212 *bits -= 5; in add_char() 214 *bits = 0; in add_char() 386 int bits; in sae_pk_set_password() local 416 bits = tmp->fingerprint_bits - 8 * tmp->sec; in sae_pk_set_password() 418 while (bits > 0) { in sae_pk_set_password() 427 if (bits < 8) { in sae_pk_set_password() 432 bits -= 8; in sae_pk_set_password() [all …]
|
/hal_espressif-latest/components/esp_rom/include/esp32/rom/ |
D | aes.h | 47 bool ets_aes_setkey_enc(const uint8_t *key, enum AES_BITS bits); 49 bool ets_aes_setkey_dec(const uint8_t *key, enum AES_BITS bits);
|
/hal_espressif-latest/components/esp_rom/linux/ |
D | esp_rom_md5.c | 47 context->bits[0] = 0; in esp_rom_md5_init() 48 context->bits[1] = 0; in esp_rom_md5_init() 57 t = context->bits[0]; in esp_rom_md5_update() 58 if ((context->bits[0] = t + ((uint32_t) len << 3)) < t) in esp_rom_md5_update() 59 context->bits[1]++; /* Carry from low to high */ in esp_rom_md5_update() 60 context->bits[1] += len >> 29; in esp_rom_md5_update() 101 count = (context->bits[0] >> 3) & 0x3F; in esp_rom_md5_final() 127 ((uint32_t *) context->in)[14] = context->bits[0]; in esp_rom_md5_final() 128 ((uint32_t *) context->in)[15] = context->bits[1]; in esp_rom_md5_final()
|
/hal_espressif-latest/components/hal/ |
D | spi_flash_hal_common.inc | 94 * the first 8 bits of the dummy bits as the bits. When the bits meet some pattern, the chip 105 // The CONTROL_DUMMY_OUTPUT feature is used to control M7-M0 bits. 109 * - On current chips, addr phase can support 32 bits at most. 110 * - Flash chip requires continuous mode bits 112 * We send continuous mode bits via the dummy output feature, so as to support 116 * addr phase to send the continuous mode bits:
|
/hal_espressif-latest/tools/esptool_py/docs/en/espefuse/inc/ |
D | summary_ESP32-C2.rst | 47 …SPI_BOOT_CRYPT_CNT (BLOCK0) Enables flash encryption when 1 or 3 bits are s… 49 … Flash encryption key length = 128 bits key R/W (0b0) 55 …BLOCK_KEY0 (BLOCK3) BLOCK_KEY0 - 256-bits. 256-bit key of Flash Enc… 58 …BLOCK_KEY0_LOW_128 (BLOCK3) BLOCK_KEY0 - lower 128-bits. 128-bit key of Fla… 61 …BLOCK_KEY0_HI_128 (BLOCK3) BLOCK_KEY0 - higher 128-bits. 128-bits key of S…
|
/hal_espressif-latest/components/wpa_supplicant/src/crypto/ |
D | md5-internal.c | 94 ctx->bits[0] = 0; in MD5Init() 95 ctx->bits[1] = 0; in MD5Init() 108 t = ctx->bits[0]; in MD5Update() 109 if ((ctx->bits[0] = t + ((u32) len << 3)) < t) in MD5Update() 110 ctx->bits[1]++; /* Carry from low to high */ in MD5Update() 111 ctx->bits[1] += len >> 29; in MD5Update() 156 count = (ctx->bits[0] >> 3) & 0x3F; in MD5Final() 182 ((u32 *) aliasing_hide_typecast(ctx->in, u32))[14] = ctx->bits[0]; in MD5Final() 183 ((u32 *) aliasing_hide_typecast(ctx->in, u32))[15] = ctx->bits[1]; in MD5Final()
|
/hal_espressif-latest/tools/esptool_py/docs/en/espefuse/ |
D | burn-key-cmd.rst | 20 …t is a raw binary file. It must contain 256 bits of binary key if the coding scheme is ``None`` an… 38 … not support post-write data changes. Forced write can damage RS encoding bits. The write-protecti… 66 :esp32s2 or esp32s3: - XTS_AES_256_KEY_1. The first 256 bits of 512bit flash encryption key. 67 … :esp32s2 or esp32s3: - XTS_AES_256_KEY_2. The second 256 bits of 512bit flash encryption key. 83 For NIST192p, the private key is 192 bits long, so 8 padding bytes ("0x00") are added. 97 …{IDF_TARGET_NAME} has only one eFuse key block (256 bits long). It is block #3 - ``BLOCK_KEY0``. T… 102 …bits flash encryption key. The secure boot key can not be used with this option. In addition, eFus… 103 …128_EFUSE_BITS. 128 bits flash encryption key. The 128 bits of this key will be burned to the low … 104 …- SECURE_BOOT_DIGEST. Secure boot key. The first 128 bits of key will be burned to the high part o… 108 …1. Both, Flash encryption (low 128 bits of eFuse block) and Secure boot key (high 128 bits of eFus… [all …]
|
/hal_espressif-latest/tools/esptool_py/docs/en/advanced-topics/ |
D | firmware-image-format.rst | 43 …| 3 | High four bits - Flash size (``0`` = 512KB, ``1`` = 256KB, ``2`` = 1MB, ``3`` = 2MB, ``… 46 …| | Low four bits - Flash frequency (``0`` = 40MHz, ``1`` = 26MHz, ``2`` = 20MHz, ``0xf`` =… 63 …| 3 | High four bits - Flash size (``0`` = 1MB, ``1`` = 2MB, ``2`` = 4MB, ``3`` = 8MB, ``4`` … 66 …| | Low four bits - Flash frequency (``0`` = {IDF_TARGET_FLASH_FREQ_0}MHz, ``1`` = {IDF_TAR… 83 …| 3 | High four bits - Flash size (``0`` = 1MB, ``1`` = 2MB, ``2`` = 4MB, ``3`` = 8MB, ``4`` … 85 …| | Low four bits - Flash frequency (``0`` = 80MHz, ``0`` = 40MHz, ``2`` = 20MHz) … 105 …| 3 | High four bits - Flash size (``0`` = 1MB, ``1`` = 2MB, ``2`` = 4MB, ``3`` = 8MB, ``4`` … 107 …| | Low four bits - Flash frequency (``0`` = {IDF_TARGET_FLASH_FREQ_0}MHz, ``1`` = {IDF_TAR…
|
/hal_espressif-latest/components/bt/host/bluedroid/api/ |
D | esp_avrc_api.c | 295 uint16_t *p = &psth->bits[(uint8_t)cmd >> 4]; in esp_avrc_psth_bit_mask_operation() 349 bool allowed = btc_avrc_tg_check_supported_command(cmd_set->bits); in esp_avrc_tg_set_psth_cmd_filter() 360 arg.set_psth_cmd = (uint16_t *)cmd_set->bits; in esp_avrc_tg_set_psth_cmd_filter() 383 evt_set->bits = btc_avrc_tg_get_rn_allowed_evt(); in esp_avrc_tg_get_rn_evt_cap() 385 evt_set->bits = btc_avrc_tg_get_rn_supported_evt(); in esp_avrc_tg_get_rn_evt_cap() 401 bool allowed = btc_avrc_tg_check_rn_supported_evt(evt_set->bits); in esp_avrc_tg_set_rn_evt_cap() 414 arg.set_rn_evt = evt_set->bits; in esp_avrc_tg_set_rn_evt_cap() 429 uint16_t *p = &events->bits; in esp_avrc_rn_evt_bit_mask_operation()
|