Lines Matching refs:nvctr
361 unsigned int nvctr; in sotp_get_trusted_nvctr() local
364 nvctr = SOTP_NUM_BITS_PER_ROW; in sotp_get_trusted_nvctr()
381 nvctr += SOTP_NUM_BITS_PER_ROW; in sotp_get_trusted_nvctr()
391 nvctr--; in sotp_get_trusted_nvctr()
395 nvctr -= SOTP_NUM_BITS_PER_ROW; in sotp_get_trusted_nvctr()
397 INFO("CTR %i\n", nvctr); in sotp_get_trusted_nvctr()
398 return nvctr; in sotp_get_trusted_nvctr()
409 unsigned int nvctr; in sotp_get_nontrusted_nvctr() local
411 nvctr = SOTP_NUM_BITS_PER_ROW; in sotp_get_nontrusted_nvctr()
429 nvctr += SOTP_NUM_BITS_PER_ROW; in sotp_get_nontrusted_nvctr()
441 nvctr--; in sotp_get_nontrusted_nvctr()
445 nvctr -= SOTP_NUM_BITS_PER_ROW; in sotp_get_nontrusted_nvctr()
447 INFO("NCTR %i\n", nvctr); in sotp_get_nontrusted_nvctr()
448 return nvctr; in sotp_get_nontrusted_nvctr()
454 int sotp_set_trusted_nvctr(unsigned int nvctr) in sotp_set_trusted_nvctr() argument
489 if (nvctr > maxnvctr) { in sotp_set_trusted_nvctr()
502 while (nvctr >= SOTP_NUM_BITS_PER_ROW) { in sotp_set_trusted_nvctr()
504 nvctr -= SOTP_NUM_BITS_PER_ROW; in sotp_set_trusted_nvctr()
507 rowdata <<= (SOTP_NUM_BITS_PER_ROW - nvctr); in sotp_set_trusted_nvctr()
515 int sotp_set_nontrusted_nvctr(unsigned int nvctr) in sotp_set_nontrusted_nvctr() argument
550 if (nvctr > maxnvctr) { in sotp_set_nontrusted_nvctr()
563 while (nvctr >= SOTP_NUM_BITS_PER_ROW) { in sotp_set_nontrusted_nvctr()
565 nvctr -= SOTP_NUM_BITS_PER_ROW; in sotp_set_nontrusted_nvctr()
568 rowdata >>= (SOTP_NUM_BITS_PER_ROW - nvctr); in sotp_set_nontrusted_nvctr()