Lines Matching defs:nvctr
354 * Get SOTP Trusted nvctr
361 unsigned int nvctr;
364 nvctr = SOTP_NUM_BITS_PER_ROW;
381 nvctr += SOTP_NUM_BITS_PER_ROW;
391 nvctr--;
395 nvctr -= SOTP_NUM_BITS_PER_ROW;
397 INFO("CTR %i\n", nvctr);
398 return nvctr;
402 * Get SOTP NonTrusted nvctr
409 unsigned int nvctr;
411 nvctr = SOTP_NUM_BITS_PER_ROW;
429 nvctr += SOTP_NUM_BITS_PER_ROW;
441 nvctr--;
445 nvctr -= SOTP_NUM_BITS_PER_ROW;
447 INFO("NCTR %i\n", nvctr);
448 return nvctr;
452 * Set SOTP Trusted nvctr
454 int sotp_set_trusted_nvctr(unsigned int nvctr)
464 * NON Trusted nvctr
476 * Calculate maximum value we can have for nvctr based on
489 if (nvctr > maxnvctr) {
496 * It is safe to write the nvctr, fill all 1's up to the
502 while (nvctr >= SOTP_NUM_BITS_PER_ROW) {
504 nvctr -= SOTP_NUM_BITS_PER_ROW;
507 rowdata <<= (SOTP_NUM_BITS_PER_ROW - nvctr);
513 * Set SOTP NonTrusted nvctr
515 int sotp_set_nontrusted_nvctr(unsigned int nvctr)
525 * Trusted nvctr
537 * Calculate maximum value we can have for nvctr based on
550 if (nvctr > maxnvctr) {
557 * It is safe to write the nvctr, fill all 1's up to the
563 while (nvctr >= SOTP_NUM_BITS_PER_ROW) {
565 nvctr -= SOTP_NUM_BITS_PER_ROW;
568 rowdata >>= (SOTP_NUM_BITS_PER_ROW - nvctr);