Home
last modified time | relevance | path

Searched refs:start_bit (Results 1 – 25 of 30) sorted by relevance

12

/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/flashboot/drivers/efuse/
Defuse.c19 hi_u32 efuse_start_addr_unaligned_read(hi_u16 start_bit, hi_u16 size, hi_u8 diff_head_read, hi_u8 *… in efuse_start_addr_unaligned_read() argument
25 ret = efuse_read_bits(start_bit, size, data); in efuse_start_addr_unaligned_read()
31 ret = efuse_read_bits(start_bit, size, (hi_u8 *)&tmp_data); in efuse_start_addr_unaligned_read()
34 if (start_bit == 0xE0) { in efuse_start_addr_unaligned_read()
42 ret = efuse_read_bits(start_bit, SIZE_24_BITS, (hi_u8 *)&tmp_data); in efuse_start_addr_unaligned_read()
54 ret = efuse_read_bits(start_bit, SIZE_72_BITS, &tmp_data[0]); in efuse_start_addr_unaligned_read()
69 hi_u32 efuse_bits_read(hi_u16 start_bit, hi_u16 size, hi_u8 *data, hi_u32 data_len) in efuse_bits_read() argument
79 if ((start_bit & 0x7) != 0x0) { in efuse_bits_read()
80 diff_head_read = start_bit % SIZE_8_BITS; in efuse_bits_read()
82 start_bit = start_bit - diff_head_read; in efuse_bits_read()
[all …]
Defuse_drv.h68 hi_void get_efuse_cfg_by_id(hi_efuse_idx idx, hi_u16 *start_bit, hi_u16 *size, hi_u8 *attr);
69 hi_u32 efuse_read_bits(hi_u16 start_bit, hi_u16 size, hi_u8 *key_data);
70 hi_u32 efuse_write_bits(hi_u16 start_bit, hi_u16 size, const hi_u8 *key_data, hi_u8 *err_state);
Defuse.h30 hi_u32 efuse_bits_read(hi_u16 start_bit, hi_u16 size, hi_u8 *data, hi_u32 data_len);
/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/loaderboot/drivers/efuse/
Defuse.c18 hi_u32 efuse_start_addr_unaligned_read(hi_u16 start_bit, hi_u16 size, hi_u8 diff_head_read, hi_u8 *… in efuse_start_addr_unaligned_read() argument
21 if (efuse_read_bits(start_bit, size, data) != HI_ERR_SUCCESS) { in efuse_start_addr_unaligned_read()
28 if (efuse_read_bits(start_bit, size, (hi_u8 *)&tmp_data) != HI_ERR_SUCCESS) { in efuse_start_addr_unaligned_read()
33 if (start_bit == 0xE0) { in efuse_start_addr_unaligned_read()
40 if (efuse_read_bits(start_bit, SIZE_24_BITS, (hi_u8 *)&tmp_data) != HI_ERR_SUCCESS) { in efuse_start_addr_unaligned_read()
53 if (efuse_read_bits(start_bit, SIZE_72_BITS, &tmp_data[0]) != HI_ERR_SUCCESS) { in efuse_start_addr_unaligned_read()
72 hi_u32 efuse_bits_read(hi_u16 start_bit, hi_u16 size, hi_u8 *data, hi_u32 data_len) in efuse_bits_read() argument
82 if ((start_bit & 0x7) != 0x0) { in efuse_bits_read()
83 diff_head_read = start_bit % SIZE_8_BITS; in efuse_bits_read()
84 start_bit = start_bit - diff_head_read; /* Reads the 8-bit aligned start address. */ in efuse_bits_read()
[all …]
/device/soc/asrmicro/asr582x/liteos_m/sdk/drivers/driver/src/
Dduet_rf_spi.c72 void rf_sw_set_reg_bit(uint16_t reg, uint8_t start_bit, uint8_t len, uint16_t src_val) in rf_sw_set_reg_bit() argument
76 if ((reg < 0xFF) && (start_bit < 16) && (len <= 16) && (src_val < (1 << len))) { in rf_sw_set_reg_bit()
80 mask = ~(mask << start_bit); // ~(mask<<4):0xff0f: 1111 1111 0000 1111 in rf_sw_set_reg_bit()
84 src_val = (src_val << start_bit); in rf_sw_set_reg_bit()
94 uint16_t rf_sw_get_reg_bit(uint16_t reg, uint8_t start_bit, uint8_t len) in rf_sw_get_reg_bit() argument
98 if ((reg < 0xFF) && (start_bit < 16) && (len <= 16)) { in rf_sw_get_reg_bit()
102 mask = mask << start_bit; // 0x0f00; in rf_sw_get_reg_bit()
105 val = (val >> start_bit); // 3. ror in rf_sw_get_reg_bit()
186 FLASH_COMMON2_SEG void rf_set_reg_bit(uint16_t reg, uint8_t start_bit, uint8_t len, uint16_t src_va… in rf_set_reg_bit() argument
190 if ((reg < 0xFF) && (start_bit < 16) && (len <= 16) && (src_val < (1 << len))) { in rf_set_reg_bit()
[all …]
/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/commonboot/efuse/
Defuse_drv.c81 hi_void get_efuse_cfg_by_id(hi_efuse_idx idx, hi_u16 *start_bit, hi_u16 *size, hi_u8 *attr) in get_efuse_cfg_by_id() argument
86 if (start_bit != HI_NULL) { in get_efuse_cfg_by_id()
87 *start_bit = efuse_cfg[idx].id_start_bit; in get_efuse_cfg_by_id()
151 hi_u32 efuse_read_bits(hi_u16 start_bit, hi_u16 size, hi_u8 *key_data) in efuse_read_bits() argument
155 hi_u16 free_area_addr_start = start_bit; in efuse_read_bits()
156 hi_u32 free_area_addr_end = start_bit + size; in efuse_read_bits()
160 if (((start_bit & 0x7) != 0x0) || ((size & 0x7) != 0x0)) { in efuse_read_bits()
214 hi_u32 efuse_write_bits(hi_u16 start_bit, hi_u16 size, const hi_u8 *key_data, hi_u8 *err_state) in efuse_write_bits() argument
224 for (i = start_bit, j = 0; i < (start_bit + size); i++, j++) { in efuse_write_bits()
/device/soc/asrmicro/asr582x/liteos_m/sdk/drivers/platform/system/
Dduet_common.c158 void duet_write32_bit(uint32_t reg, uint8_t start_bit, uint8_t len, uint32_t src_val) in duet_write32_bit() argument
162 if ((start_bit < 32) && (len <= 32) && (src_val <= ((1 << len) - 1))) { in duet_write32_bit()
166 mask = ~(mask << start_bit); in duet_write32_bit()
170 src_val = (src_val << start_bit); in duet_write32_bit()
179 uint32_t duet_read32_bit(uint32_t reg, uint8_t start_bit, uint8_t len) in duet_read32_bit() argument
183 if ((start_bit < 32) && (len <= 32)) { in duet_read32_bit()
187 mask = mask << start_bit; in duet_read32_bit()
190 val = (val >> start_bit); in duet_read32_bit()
/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/loaderboot/common/
Defuse_opt.c20 hi_u32 efuse_read(hi_u16 start_bit, hi_u16 size) in efuse_read() argument
27 hi_u32 ret = efuse_bits_read(start_bit, size, data, EFUSE_MAX_INDEX_SIZE); in efuse_read()
47 boot_puthex(start_bit, 1); in efuse_read()
61 start_bit += line_cnt * WORD_WIDTH * BITS_PER_BYTE; in efuse_read()
118 ret = efuse_bits_write(item->start_bit, item->bit_width, item->value); in efuse_burn()
122 serial_puthex(item->start_bit, 1); in efuse_burn()
Dcmd_loop.c509 hi_u16 start_bit = *(hi_u16 *)(&cmd_ctx->packet.payload[0]); in loader_read_efuse() local
513 serial_puthex(start_bit, 1); in loader_read_efuse()
517 …if ((start_bit >= EFUSE_BIT_NUM) || ((start_bit + size) > EFUSE_BIT_NUM) || size > EFUSE_READ_MAX_… in loader_read_efuse()
522 ret = efuse_read(start_bit, size); in loader_read_efuse()
/device/soc/telink/b91/b91_ble_sdk/drivers/B91/
Dpwm.c44 unsigned char start_bit = (BIT_LOW_BIT(pin & 0xff) % 4) << 1; in pwm_set_pin() local
45 unsigned char mask = (unsigned char)~BIT_RNG(start_bit, start_bit + 1); in pwm_set_pin()
52 val = 1 << (start_bit); in pwm_set_pin()
54 val = 2 << (start_bit); in pwm_set_pin()
Dspi.c100 unsigned char start_bit = (BIT_LOW_BIT(pin & 0xff) % 4) << 1; in hspi_set_pin_mux() local
101 unsigned char mask = (unsigned char)~BIT_RNG(start_bit, start_bit + 1); in hspi_set_pin_mux()
108 val = 2 << (start_bit); // function 2 in hspi_set_pin_mux()
164 unsigned char start_bit = (BIT_LOW_BIT(pin & 0xff) % 4) << 1; in pspi_set_pin_mux() local
165 unsigned char mask = (unsigned char)~BIT_RNG(start_bit, start_bit + 1); in pspi_set_pin_mux()
172 val = 1 << (start_bit); // function 1 in pspi_set_pin_mux()
Daudio.c189 unsigned char start_bit = (BIT_LOW_BIT(pin & 0xff) % 4) << 1; in audio_i2s_set_pin_mux() local
190 unsigned char mask = (unsigned char)~BIT_RNG(start_bit, start_bit + 1); in audio_i2s_set_pin_mux()
195 val = 1 << (start_bit); // function 1 in audio_i2s_set_pin_mux()
/device/soc/hisilicon/hi3861v100/sdk_liteos/app/demo/src/
Dapp_demo_efuse.c49 hi_u16 start_bit = 0x75C; /* The offset address of customer_rsvd0 is 0x75C */ in efuse_usr_read() local
56 hi_u8 diff_head_read = start_bit % 8; /* The start address is read in 8-bit alignment mode. */ in efuse_usr_read()
57 start_bit = start_bit - diff_head_read; in efuse_usr_read()
60 ret = hi_efuse_usr_read(start_bit, align_size, (hi_u8 *)tmp_data); in efuse_usr_read()
89 hi_u16 start_bit = 0x75C; /* Offset address:0x75C */ in efuse_usr_write() local
97 ret = hi_efuse_usr_write(start_bit, rw_bits, (hi_u8 *)write_data); in efuse_usr_write()
/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/loaderboot/include/
Defuse_drv.h65 hi_void get_efuse_cfg_by_id(hi_efuse_idx idx, hi_u16 *start_bit, hi_u16 *size, hi_u8 *attr);
66 hi_u32 efuse_read_bits(hi_u16 start_bit, hi_u16 size, hi_u8 *key_data);
67 hi_u32 efuse_write_bits(hi_u16 start_bit, hi_u16 size, const hi_u8 *key_data, hi_u8 *err_state);
Defuse.h30 hi_u32 efuse_bits_read(hi_u16 start_bit, hi_u16 size, hi_u8 *data, hi_u32 data_len);
31 hi_u32 efuse_bits_write(hi_u16 start_bit, hi_u16 size, const hi_u8 *key_data);
Defuse_opt.h44 hi_u16 start_bit; /* Start bit of OTP */ member
51 hi_u32 efuse_read(hi_u16 start_bit, hi_u16 size);
/device/soc/asrmicro/asr582x/liteos_m/sdk/drivers/driver/inc/
Dduet_rf_spi.h35 void rf_set_reg_bit(uint16_t reg, uint8_t start_bit, uint8_t len, uint16_t src_val);
36 uint16_t rf_get_reg_bit(uint16_t reg, uint8_t start_bit, uint8_t len);
/device/soc/asrmicro/asr582x/liteos_m/sdk/drivers/common/
Dduet_common.h51 void duet_write32_bit(uint32_t reg, uint8_t start_bit, uint8_t len, uint32_t src_val);
52 uint32_t duet_read32_bit(uint32_t reg, uint8_t start_bit, uint8_t len);
/device/soc/hisilicon/hi3861v100/sdk_liteos/include/
Dhi_efuse.h261 hi_u32 hi_efuse_usr_read(hi_u16 start_bit, hi_u16 size, hi_u8 *key_data);
287 hi_u32 hi_efuse_usr_write(hi_u16 start_bit, hi_u16 size, const hi_u8 *key_data);
/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/flashboot/include/
Dhi_flashboot.h455 hi_u32 hi_efuse_usr_read(hi_u16 start_bit, hi_u16 size, hi_u8 *key_data);
481 hi_u32 hi_efuse_usr_write(hi_u16 start_bit, hi_u16 size, const hi_u8 *key_data);
/device/soc/hisilicon/hi3516dv300/sdk_liteos/include/adapt/
Dhi_isp_bin_adapt.h32 hi_u8 start_bit; /* start bit of register addr */ member
/device/soc/hisilicon/hi3516dv300/sdk_linux/include/adapt/
Dhi_isp_bin_adapt.h32 hi_u8 start_bit; /* start bit of register addr */ member
/device/soc/esp/esp32/components/efuse/src/
Desp_efuse_utility.c66 int start_bit = get_starting_bit_num_in_reg(field[i]->bit_start, i_reg); in esp_efuse_utility_process() local
72 (int)field[i]->efuse_block, num_reg, num_bits, start_bit); in esp_efuse_utility_process()
73 … err = func_proc(num_reg, field[i]->efuse_block, start_bit, num_bits, ptr, &bits_counter); in esp_efuse_utility_process()
/device/board/unionman/unionpi_tiger/kernel/drivers/media/drivers/include/linux/amlogic/
Dvmap_stack.h60 unsigned int start_bit; member
/device/soc/esp/esp32/components/driver/
Dsdspi_private.h66 uint8_t start_bit : 1; member

12