Lines Matching refs:val
83 TEE_Result imx_ocotp_read(unsigned int bank, unsigned int word, uint32_t *val) in imx_ocotp_read() argument
87 if (!val) in imx_ocotp_read()
110 *val = io_read32(g_base_addr + OCOTP_SHADOW_OFFSET(bank, word)); in imx_ocotp_read()
112 DMSG("OCOTP Bank %d Word %d Fuse 0x%" PRIx32, bank, word, *val); in imx_ocotp_read()
122 uint32_t val = 0; in ocotp_get_die_id_mx7ulp() local
125 res = imx_ocotp_read(1, 6, &val); in ocotp_get_die_id_mx7ulp()
128 uid = val & GENMASK_32(15, 0); in ocotp_get_die_id_mx7ulp()
130 res = imx_ocotp_read(1, 5, &val); in ocotp_get_die_id_mx7ulp()
133 uid = SHIFT_U64(uid, 16) | (val & GENMASK_32(15, 0)); in ocotp_get_die_id_mx7ulp()
135 res = imx_ocotp_read(1, 4, &val); in ocotp_get_die_id_mx7ulp()
138 uid = SHIFT_U64(uid, 16) | (val & GENMASK_32(15, 0)); in ocotp_get_die_id_mx7ulp()
140 res = imx_ocotp_read(1, 3, &val); in ocotp_get_die_id_mx7ulp()
143 uid = SHIFT_U64(uid, 16) | (val & GENMASK_32(15, 0)); in ocotp_get_die_id_mx7ulp()
155 uint32_t val = 0; in ocotp_get_die_id_mx() local
158 res = imx_ocotp_read(0, 2, &val); in ocotp_get_die_id_mx()
161 uid = val; in ocotp_get_die_id_mx()
163 res = imx_ocotp_read(0, 1, &val); in ocotp_get_die_id_mx()
166 uid = SHIFT_U64(uid, 32) | val; in ocotp_get_die_id_mx()