Home
last modified time | relevance | path

Searched refs:ir_data (Results 1 – 5 of 5) sorted by relevance

/drivers/staging/iio/light/
Disl29018.c231 int ir_data; in isl29018_read_ir() local
233 ir_data = isl29018_read_sensor_input(chip, COMMMAND1_OPMODE_IR_ONCE); in isl29018_read_ir()
235 if (ir_data < 0) in isl29018_read_ir()
236 return ir_data; in isl29018_read_ir()
238 *ir = ir_data; in isl29018_read_ir()
248 int ir_data = -1; in isl29018_read_proximity_ir() local
269 ir_data = isl29018_read_sensor_input(chip, COMMMAND1_OPMODE_IR_ONCE); in isl29018_read_proximity_ir()
271 if (ir_data < 0) in isl29018_read_proximity_ir()
272 return ir_data; in isl29018_read_proximity_ir()
274 if (prox_data >= ir_data) in isl29018_read_proximity_ir()
[all …]
Disl29028.c249 static int isl29028_ir_get(struct isl29028_chip *chip, int *ir_data) in isl29028_ir_get() argument
262 return isl29028_read_als_ir(chip, ir_data); in isl29028_ir_get()
/drivers/iommu/
Dintel_irq_remapping.c1141 struct intel_ir_data *ir_data = data->chip_data; in intel_ir_set_affinity() local
1142 struct irte *irte = &ir_data->irte_entry; in intel_ir_set_affinity()
1159 if (ir_data->irq_2_iommu.mode == IRQ_REMAPPING) in intel_ir_set_affinity()
1160 modify_irte(&ir_data->irq_2_iommu, irte); in intel_ir_set_affinity()
1175 struct intel_ir_data *ir_data = irq_data->chip_data; in intel_ir_compose_msi_msg() local
1177 *msg = ir_data->msi_entry; in intel_ir_compose_msi_msg()
1182 struct intel_ir_data *ir_data = data->chip_data; in intel_ir_set_vcpu_affinity() local
1187 modify_irte(&ir_data->irq_2_iommu, &ir_data->irte_entry); in intel_ir_set_vcpu_affinity()
1199 dmar_copy_shared_irte(&irte_pi, &ir_data->irte_entry); in intel_ir_set_vcpu_affinity()
1210 modify_irte(&ir_data->irq_2_iommu, &irte_pi); in intel_ir_set_vcpu_affinity()
Damd_iommu.c4058 struct amd_ir_data *ir_data = data->chip_data; in amd_ir_set_affinity() local
4059 struct irq_2_irte *irte_info = &ir_data->irq_2_irte; in amd_ir_set_affinity()
4072 ir_data->irte_entry.fields.vector = cfg->vector; in amd_ir_set_affinity()
4073 ir_data->irte_entry.fields.destination = cfg->dest_apicid; in amd_ir_set_affinity()
4074 modify_irte(irte_info->devid, irte_info->index, ir_data->irte_entry); in amd_ir_set_affinity()
4088 struct amd_ir_data *ir_data = irq_data->chip_data; in ir_compose_msi_msg() local
4090 *msg = ir_data->msi_entry; in ir_compose_msi_msg()
/drivers/iio/light/
Dltr501.c72 #define LTR501_LUX_CONV(vis_coeff, vis_data, ir_coeff, ir_data) \ argument
73 ((vis_coeff * vis_data) - (ir_coeff * ir_data))
308 static unsigned long ltr501_calculate_lux(u16 vis_data, u16 ir_data) in ltr501_calculate_lux() argument
316 ratio = DIV_ROUND_UP(ir_data * 100, ir_data + vis_data); in ltr501_calculate_lux()
319 lux = LTR501_LUX_CONV(1774, vis_data, -1105, ir_data); in ltr501_calculate_lux()
321 lux = LTR501_LUX_CONV(3772, vis_data, 1336, ir_data); in ltr501_calculate_lux()
323 lux = LTR501_LUX_CONV(1690, vis_data, 169, ir_data); in ltr501_calculate_lux()