Lines Matching refs:pcdac
615 * Returns: the pcdac value
627 if (pRD->pcdac[i] != 63)
628 return pRD->pcdac[i];
632 if (pRD->pcdac[i] != 63 && pRD->pcdac[i-1] != 63) {
633 interp = (350 * (pRD->pcdac[i] - pRD->pcdac[i-1])) + 999;
634 interp = (interp / 1000) + pRD->pcdac[i-1];
640 if (pRD->pcdac[i] != 63)
641 return pRD->pcdac[i];
647 if (pRD->pcdac[i] != 63)
648 return pRD->pcdac[i];
662 uint8_t pcdac, uint8_t *dBm)
670 if(pRD->pcdac[i] == 63)
672 if (pcdac == pRD->pcdac[i]) {
676 if (pcdac > pRD->pcdac[i])
678 if (pcdac < pRD->pcdac[i]) {
682 /* PCDAC is lower than lowest setting */
692 "%s: no valid entries in the pcdac table: %d\n",
693 __func__, pcdac);
698 /* PCDAC setting was above the max setting in the table */
707 * linearly scale the pcdac between low and high
709 interp = ((pcdac - pRD->pcdac[low]) * 1000) /
710 (pRD->pcdac[high] - pRD->pcdac[low]);