Home
last modified time | relevance | path

Searched refs:otp (Results 1 – 25 of 46) sorted by relevance

12

/external/u-boot/arch/arm/mach-stm32mp/
Dbsec.c61 static u32 bsec_check_error(u32 base, u32 otp) in bsec_check_error() argument
66 bit = 1 << (otp & OTP_LOCK_MASK); in bsec_check_error()
67 bank = ((otp >> OTP_LOCK_BANK_SHIFT) & OTP_LOCK_MASK) * sizeof(u32); in bsec_check_error()
83 static bool bsec_read_lock(u32 address, u32 otp) in bsec_read_lock() argument
88 bit = 1 << (otp & OTP_LOCK_MASK); in bsec_read_lock()
89 bank = ((otp >> OTP_LOCK_BANK_SHIFT) & OTP_LOCK_MASK) * sizeof(u32); in bsec_read_lock()
100 static bool bsec_read_SR_lock(u32 base, u32 otp) in bsec_read_SR_lock() argument
102 return bsec_read_lock(base + BSEC_SRLOCK_OFF, otp); in bsec_read_SR_lock()
111 static bool bsec_read_SP_lock(u32 base, u32 otp) in bsec_read_SP_lock() argument
113 return bsec_read_lock(base + BSEC_SPLOCK_OFF, otp); in bsec_read_SP_lock()
[all …]
Dcpu.c247 u32 otp = 0; in get_otp() local
255 &otp, sizeof(otp)); in get_otp()
257 return (otp >> shift) & mask; in get_otp()
457 u32 otp[2]; in setup_mac_address() local
472 otp, sizeof(otp)); in setup_mac_address()
477 enetaddr[i] = ((uint8_t *)&otp)[i]; in setup_mac_address()
496 u32 otp[3] = {0, 0, 0 }; in setup_serial_number() local
510 otp, sizeof(otp)); in setup_serial_number()
514 sprintf(serial_string, "%08X%08X%08X", otp[0], otp[1], otp[2]); in setup_serial_number()
/external/arm-trusted-firmware/drivers/st/bsec/
Dbsec.c60 static void enable_non_secure_access(uint32_t otp) in enable_non_secure_access() argument
62 otp_nsec_access[otp / __WORD_BIT] |= BIT(otp % __WORD_BIT); in enable_non_secure_access()
64 if (bsec_shadow_register(otp) != BSEC_OK) { in enable_non_secure_access()
69 static bool non_secure_can_access(uint32_t otp) in non_secure_can_access() argument
71 return (otp_nsec_access[otp / __WORD_BIT] & in non_secure_can_access()
72 BIT(otp % __WORD_BIT)) != 0; in non_secure_can_access()
116 static uint32_t otp_bank_offset(uint32_t otp) in otp_bank_offset() argument
118 assert(otp <= STM32MP1_OTP_MAX_ID); in otp_bank_offset()
120 return ((otp & ~BSEC_OTP_MASK) >> BSEC_OTP_BANK_SHIFT) * in otp_bank_offset()
124 static uint32_t bsec_check_error(uint32_t otp) in bsec_check_error() argument
[all …]
/external/u-boot/drivers/misc/
Drockchip-otp.c56 static int rockchip_otp_wait_status(struct rockchip_otp_platdata *otp, in rockchip_otp_wait_status() argument
61 while (!(readl(otp->base + OTPC_INT_STATUS) & flag)) { in rockchip_otp_wait_status()
71 writel(flag, otp->base + OTPC_INT_STATUS); in rockchip_otp_wait_status()
76 static int rockchip_otp_ecc_enable(struct rockchip_otp_platdata *otp, in rockchip_otp_ecc_enable() argument
82 otp->base + OTPC_SBPI_CTRL); in rockchip_otp_ecc_enable()
84 writel(SBPI_CMD_VALID_MASK | 0x1, otp->base + OTPC_SBPI_CMD_VALID_PRE); in rockchip_otp_ecc_enable()
86 otp->base + OTPC_SBPI_CMD0_OFFSET); in rockchip_otp_ecc_enable()
89 writel(SBPI_ECC_ENABLE, otp->base + OTPC_SBPI_CMD1_OFFSET); in rockchip_otp_ecc_enable()
91 writel(SBPI_ECC_DISABLE, otp->base + OTPC_SBPI_CMD1_OFFSET); in rockchip_otp_ecc_enable()
93 writel(SBPI_ENABLE_MASK | SBPI_ENABLE, otp->base + OTPC_SBPI_CTRL); in rockchip_otp_ecc_enable()
[all …]
DMakefile56 obj-$(CONFIG_ROCKCHIP_OTP) += rockchip-otp.o
/external/u-boot/board/st/stm32mp1/
Dcmd_stboard.c31 static void display_stboard(u32 otp) in display_stboard() argument
34 otp >> 16, in display_stboard()
35 (otp >> 12) & 0xF, in display_stboard()
36 ((otp >> 8) & 0xF) - 1 + 'A', in display_stboard()
37 otp & 0xF); in display_stboard()
44 u32 otp; in do_stboard() local
61 &otp, sizeof(otp)); in do_stboard()
69 if (!otp) in do_stboard()
72 display_stboard(otp); in do_stboard()
76 if (otp) { in do_stboard()
[all …]
Dstm32mp1.c84 u32 otp; in checkboard() local
109 &otp, sizeof(otp)); in checkboard()
110 if (ret > 0 && otp) { in checkboard()
112 otp >> 16, in checkboard()
113 (otp >> 12) & 0xF, in checkboard()
114 ((otp >> 8) & 0xF) - 1 + 'A', in checkboard()
115 otp & 0xF); in checkboard()
466 u32 otp = 0; in sysconf_init() local
510 ret = misc_read(dev, STM32_BSEC_SHADOW(18), &otp, 4); in sysconf_init()
512 otp = otp & BIT(13); in sysconf_init()
[all …]
DREADME337 Mac id storage and retrieval in stm32mp otp :
502 $> dfu-util -d 0483:5720 -a 25 -U otp.bin
/external/arm-trusted-firmware/include/drivers/st/
Dbsec.h176 uint32_t bsec_shadow_register(uint32_t otp);
177 uint32_t bsec_read_otp(uint32_t *val, uint32_t otp);
178 uint32_t bsec_write_otp(uint32_t val, uint32_t otp);
179 uint32_t bsec_program_otp(uint32_t val, uint32_t otp);
180 uint32_t bsec_permanent_lock_otp(uint32_t otp);
193 bool bsec_write_sr_lock(uint32_t otp, uint32_t value);
194 bool bsec_read_sr_lock(uint32_t otp);
195 bool bsec_write_sw_lock(uint32_t otp, uint32_t value);
196 bool bsec_read_sw_lock(uint32_t otp);
197 bool bsec_write_sp_lock(uint32_t otp, uint32_t value);
[all …]
/external/u-boot/board/imgtec/ci20/
Dci20.c167 struct ci20_otp otp; in misc_init_r() local
172 jz4780_efuse_read(0x18, 16, (u8 *)&otp); in misc_init_r()
175 if (!is_valid_ethaddr(otp.mac)) { in misc_init_r()
177 jz4780_efuse_read(0x8, 4, &otp.mac[0]); in misc_init_r()
178 jz4780_efuse_read(0x12, 2, &otp.mac[4]); in misc_init_r()
179 otp.mac[0] = (otp.mac[0] | 0x02) & ~0x01; in misc_init_r()
181 eth_env_set_enetaddr("ethaddr", otp.mac); in misc_init_r()
184 env_set_ulong("serial#", otp.serial_number); in misc_init_r()
185 env_set_ulong("board_date", otp.date); in misc_init_r()
186 manufacturer[0] = otp.manufacturer[0]; in misc_init_r()
[all …]
/external/wpa_supplicant_8/src/eap_peer/
Deap_otp.c35 int otp; in eap_otp_process() local
47 otp = 1; in eap_otp_process()
50 otp = 0; in eap_otp_process()
74 if (otp) { in eap_otp_process()
Deap_gtc.c52 int otp; in eap_gtc_process() local
79 otp = 1; in eap_gtc_process()
82 otp = 0; in eap_gtc_process()
118 if (otp) { in eap_gtc_process()
Deap_config.h521 u8 *otp; member
Deap.c2899 return config->otp; in eap_get_config_otp()
2916 os_memset(config->otp, 0, config->otp_len); in eap_clear_config_otp()
2917 os_free(config->otp); in eap_clear_config_otp()
2918 config->otp = NULL; in eap_clear_config_otp()
/external/tcpdump/
Dprint-llc.c408 const struct oui_tok *otp; in oui_to_struct_tok() local
410 for (otp = &oui_to_tok[0]; otp->tok != NULL; otp++) { in oui_to_struct_tok()
411 if (otp->oui == orgcode) { in oui_to_struct_tok()
412 tok = otp->tok; in oui_to_struct_tok()
/external/cpuinfo/test/dmesg/
Dzenfone-2.log1536 [ 5.637201] t4k37 4-0036: read otp bank fail, find next...
1538 [ 5.649281] t4k37 4-0036: read otp bank fail, find next...
1576 [ 5.800317] ov5670 4-0010: read otp bank fail, find next...
1578 [ 5.819595] ov5670 4-0010: read otp bank fail, find next...
1910 [ 10.316130] otp[0]:0x00
1911 [ 10.316174] otp[1]:0x00
1912 [ 10.316180] otp[2]:0x00
1913 [ 10.316184] otp[3]:0x00
1914 [ 10.316189] otp[4]:0x00
1915 [ 10.316193] otp[5]:0x00
[all …]
Dgalaxy-grand-prime-value-edition.log274 <6>[ 0.429290] [0: swapper/0: 1] [c0] regu: @@@set_regu_offset: vddcore otp delta: -18,…
278 <6>[ 0.429656] [0: swapper/0: 1] [c0] regu: @@@set_regu_offset: vddarm otp delta: -17, …
282 <6>[ 0.429962] [0: swapper/0: 1] [c0] regu: @@@set_regu_offset: vddmem otp delta: -24, …
286 <6>[ 0.430297] [0: swapper/0: 1] [c0] regu: @@@set_regu_offset: vddgen otp delta: -46, …
290 <6>[ 0.430603] [0: swapper/0: 1] [c0] regu: @@@set_regu_offset: vddrf otp delta: -28, v…
294 <6>[ 0.430847] [0: swapper/0: 1] [c0] regu: @@@set_regu_offset: vddwpa otp delta: 0, vo…
298 <6>[ 0.431152] [0: swapper/0: 1] [c0] regu: @@@set_regu_offset: vddcon otp delta: -64, …
302 <6>[ 0.431427] [0: swapper/0: 1] [c0] regu: @@@set_regu_offset: vddrf0 otp delta: -4, v…
306 <6>[ 0.431701] [0: swapper/0: 1] [c0] regu: @@@set_regu_offset: vddemmccore otp delta: …
310 <6>[ 0.431976] [0: swapper/0: 1] [c0] regu: @@@set_regu_offset: vddgen1 otp delta: -4, …
[all …]
Dalcatel-revvl.log82 [ 16.376101] (4)[318:ccci_fsd]otp: write_prot_grpsz is 15
83 [ 16.376119] (4)[318:ccci_fsd]otp: non-hc unit sg_wp_size 8388608
1096 [ 36.838171] (4)[2542:initCamdevice]TCL ov5675 otp info otp_flag:0x40,module_integrator_id:0x44,…
1098 [ 36.838771] (5)[2542:initCamdevice][ov5675 otp read] addr = 7027
1102 [ 36.844859] (4)[2542:initCamdevice][ov5675 otp read]rg_h = 0x71, rg_l = 0x1, bg_h = 0x85, bg_l …
1103 [ 36.844877] (4)[2542:initCamdevice][ov5675 otp read]rg = 0x1c5, bg = 0x215,g_rg = 0x1e1,g_bg = …
1104 [ 36.870267] (4)[2542:initCamdevice][ov5675 otp write]rg = 0x1c5, bg = 0x215
1105 [ 36.870285] (4)[2542:initCamdevice][ov5675 otp write]g_rg = 0x1e4, g_bg = 0x215
1106 [ 36.870293] (4)[2542:initCamdevice][ov5675 otp write]rg=0x1c5, bg=0x215, R_gain=0x445, B_gain=0…
/external/wpa_supplicant_8/wpa_supplicant/doc/docbook/
Dwpa_cli.sgml79 <emphasis>otp</emphasis> commands. &lt;id&gt; needs to be copied from
81 <emphasis>otp</emphasis> commands can be used regardless of whether
85 with <emphasis>otp</emphasis> are used only once and then forgotten,
101 > otp 2 9876
304 <term>otp &lt;network id&gt; &lt;password&gt;</term>
/external/u-boot/doc/
DREADME.dfu263 "virt 0=otp" \
269 dev: VIRT alt: 1 name: otp layout: RAW_ADDR
/external/python/cryptography/docs/hazmat/primitives/
Dtwofactor.rst132 otp = HOTP(key, 6, default_backend())
135 otp.verify(hotp, count)
/external/u-boot/arch/arm/dts/
Dpx30.dtsi665 otp: nvmem@ff290000 { label
666 compatible = "rockchip,px30-otp";
670 clock-names = "otp", "apb_pclk", "phy";
1206 tsadc_otp_gpio: tsadc-otp-gpio {
1211 tsadc_otp_out: tsadc-otp-out {
Drk322x.dtsi710 otp_gpio: otp-gpio {
714 otp_out: otp-out {
/external/wpa_supplicant_8/wpa_supplicant/
Dtodo.txt32 - consider redesigning pending EAP requests (identity/password/otp from
DREADME725 and 'otp' commands. <id> needs to be copied from the the matching
726 request. 'password' and 'otp' commands can be used regardless of
730 with 'otp' are used only once and then forgotten, i.e., wpa_supplicant
743 > otp 2 9876
764 otp <network id> <password> = configure one-time-password for an SSID

12