Lines Matching refs:otpmk
156 static void otpmk_make_code_word_256(uint8_t *otpmk, bool minimal_flag) in otpmk_make_code_word_256() argument
168 otpmk[252/8] |= (1 << (252%8)); in otpmk_make_code_word_256()
169 otpmk[253/8] |= (1 << (253%8)); in otpmk_make_code_word_256()
170 otpmk[254/8] |= (1 << (254%8)); in otpmk_make_code_word_256()
171 otpmk[255/8] |= (1 << (255%8)); in otpmk_make_code_word_256()
178 if ((otpmk[i/8] & (1 << (i%8))) != 0) { in otpmk_make_code_word_256()
188 otpmk[code_bit/8] ^= (1 << (code_bit % 8)); in otpmk_make_code_word_256()
194 otpmk[(code_bit - 4)/8] ^= (1 << ((code_bit - 4) % 8)); in otpmk_make_code_word_256()
195 otpmk[4/8] ^= (1 << (4 % 8)); in otpmk_make_code_word_256()
201 otpmk[0] ^= parity_bit; in otpmk_make_code_word_256()
218 memset(fuse_hdr->otpmk, 0, sizeof(fuse_hdr->otpmk)); in prog_otpmk()
221 fuse_hdr->otpmk[0] |= OTPMK_MIM_BITS_MASK; in prog_otpmk()
242 fuse_hdr->otpmk[0] = otpmk_random[7]; in prog_otpmk()
243 fuse_hdr->otpmk[1] = otpmk_random[6]; in prog_otpmk()
244 fuse_hdr->otpmk[2] = otpmk_random[5]; in prog_otpmk()
245 fuse_hdr->otpmk[3] = otpmk_random[4]; in prog_otpmk()
246 fuse_hdr->otpmk[4] = otpmk_random[3]; in prog_otpmk()
247 fuse_hdr->otpmk[5] = otpmk_random[2]; in prog_otpmk()
248 fuse_hdr->otpmk[6] = otpmk_random[1]; in prog_otpmk()
249 fuse_hdr->otpmk[7] = otpmk_random[0]; in prog_otpmk()
277 fuse_hdr->otpmk[0] = otpmk_random[7]; in prog_otpmk()
278 fuse_hdr->otpmk[1] = otpmk_random[6]; in prog_otpmk()
279 fuse_hdr->otpmk[2] = otpmk_random[5]; in prog_otpmk()
280 fuse_hdr->otpmk[3] = otpmk_random[4]; in prog_otpmk()
281 fuse_hdr->otpmk[4] = otpmk_random[3]; in prog_otpmk()
282 fuse_hdr->otpmk[5] = otpmk_random[2]; in prog_otpmk()
283 fuse_hdr->otpmk[6] = otpmk_random[1]; in prog_otpmk()
284 fuse_hdr->otpmk[7] = otpmk_random[0]; in prog_otpmk()
293 if ((fuse_hdr->otpmk[0] & OTPMK_MIM_BITS_MASK) != in prog_otpmk()
305 ret = write_fuses(sfp_ccsr_regs->otpmk, fuse_hdr->otpmk, 8); in prog_otpmk()