Lines Matching refs:rowdata
344 uint64_t rowdata; in sotp_dump_rows() local
347 rowdata = sotp_mem_read(rownum, SOTP_ROW_NO_ECC); in sotp_dump_rows()
348 INFO("%d 0x%" PRIx64 "\n", rownum, rowdata); in sotp_dump_rows()
358 uint64_t rowdata; in sotp_get_trusted_nvctr() local
369 rowdata = sotp_mem_read(rownum, SOTP_ROW_NO_ECC); in sotp_get_trusted_nvctr()
370 while ((rowdata & SOTP_NVCTR_TRUSTED_IN_USE) && in sotp_get_trusted_nvctr()
371 (rowdata & SOTP_NVCTR_TRUSTED_NEAR_END) && in sotp_get_trusted_nvctr()
382 rowdata = nextrowdata; in sotp_get_trusted_nvctr()
389 if (rowdata & SOTP_NVCTR_TRUSTED_IN_USE) { in sotp_get_trusted_nvctr()
390 while ((rowdata & 0x1) == 0) { in sotp_get_trusted_nvctr()
392 rowdata >>= 1; in sotp_get_trusted_nvctr()
406 uint64_t rowdata; in sotp_get_nontrusted_nvctr() local
417 rowdata = sotp_mem_read(rownum, SOTP_ROW_NO_ECC); in sotp_get_nontrusted_nvctr()
418 while ((rowdata & SOTP_NVCTR_NON_TRUSTED_NEAR_END) && in sotp_get_nontrusted_nvctr()
419 (rowdata & SOTP_NVCTR_NON_TRUSTED_IN_USE) && in sotp_get_nontrusted_nvctr()
430 rowdata = nextrowdata; in sotp_get_nontrusted_nvctr()
437 if (rowdata & SOTP_NVCTR_NON_TRUSTED_IN_USE) { in sotp_get_nontrusted_nvctr()
438 while ((rowdata & ((uint64_t)0x1 << (SOTP_NUM_BITS_PER_ROW-1))) in sotp_get_nontrusted_nvctr()
442 rowdata <<= 1; in sotp_get_nontrusted_nvctr()
459 uint64_t rowdata; in sotp_set_trusted_nvctr() local
468 rowdata = sotp_mem_read(nontrusted_rownum, SOTP_ROW_NO_ECC); in sotp_set_trusted_nvctr()
469 if (rowdata & SOTP_NVCTR_NON_TRUSTED_IN_USE) in sotp_set_trusted_nvctr()
500 rowdata = SOTP_NVCTR_ROW_ALL_ONES; in sotp_set_trusted_nvctr()
503 sotp_mem_write(trusted_rownum, SOTP_ROW_NO_ECC, rowdata); in sotp_set_trusted_nvctr()
507 rowdata <<= (SOTP_NUM_BITS_PER_ROW - nvctr); in sotp_set_trusted_nvctr()
508 sotp_mem_write(trusted_rownum, SOTP_ROW_NO_ECC, rowdata); in sotp_set_trusted_nvctr()
520 uint64_t rowdata; in sotp_set_nontrusted_nvctr() local
529 rowdata = sotp_mem_read(trusted_rownum, SOTP_ROW_NO_ECC); in sotp_set_nontrusted_nvctr()
530 if (rowdata & SOTP_NVCTR_TRUSTED_IN_USE) in sotp_set_nontrusted_nvctr()
561 rowdata = SOTP_NVCTR_ROW_ALL_ONES; in sotp_set_nontrusted_nvctr()
564 sotp_mem_write(nontrusted_rownum, SOTP_ROW_NO_ECC, rowdata); in sotp_set_nontrusted_nvctr()
568 rowdata >>= (SOTP_NUM_BITS_PER_ROW - nvctr); in sotp_set_nontrusted_nvctr()
569 sotp_mem_write(nontrusted_rownum, SOTP_ROW_NO_ECC, rowdata); in sotp_set_nontrusted_nvctr()