Lines Matching refs:cf
138 struct apds990x_chip_factors cf; member
293 APDS_PARAM_SCALE * 64) / (chip->cf.ga * chip->cf.df); in apds990x_lux_to_threshold()
455 iac1 = (chip->cf.cf1 * clear - chip->cf.irf1 * ir) / APDS_PARAM_SCALE; in apds990x_get_lux()
456 iac2 = (chip->cf.cf2 * clear - chip->cf.irf2 * ir) / APDS_PARAM_SCALE; in apds990x_get_lux()
461 lpc = APDS990X_LUX_OUTPUT_SCALE * (chip->cf.df * chip->cf.ga) / in apds990x_get_lux()
1081 if (chip->pdata->cf.ga == 0) { in apds990x_probe()
1083 chip->cf.ga = 1966; /* 0.48 * APDS_PARAM_SCALE */ in apds990x_probe()
1084 chip->cf.cf1 = 4096; /* 1.00 * APDS_PARAM_SCALE */ in apds990x_probe()
1085 chip->cf.irf1 = 9134; /* 2.23 * APDS_PARAM_SCALE */ in apds990x_probe()
1086 chip->cf.cf2 = 2867; /* 0.70 * APDS_PARAM_SCALE */ in apds990x_probe()
1087 chip->cf.irf2 = 5816; /* 1.42 * APDS_PARAM_SCALE */ in apds990x_probe()
1088 chip->cf.df = 52; in apds990x_probe()
1090 chip->cf = chip->pdata->cf; in apds990x_probe()
1095 (chip->cf.irf1 - chip->cf.irf2) * APDS_PARAM_SCALE / in apds990x_probe()
1096 (chip->cf.cf1 - chip->cf.cf2); in apds990x_probe()
1098 chip->cf.cf1; in apds990x_probe()
1099 chip->rcf.irf1 = chip->cf.irf1 * APDS_PARAM_SCALE / in apds990x_probe()
1100 chip->cf.cf1; in apds990x_probe()
1102 chip->cf.cf2; in apds990x_probe()
1103 chip->rcf.irf2 = chip->cf.irf2 * APDS_PARAM_SCALE / in apds990x_probe()
1104 chip->cf.cf2; in apds990x_probe()