Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/iio/light/
Disl29018.c212 int ir_data; in isl29018_read_ir() local
214 ir_data = isl29018_read_sensor_input(chip, in isl29018_read_ir()
216 if (ir_data < 0) in isl29018_read_ir()
217 return ir_data; in isl29018_read_ir()
219 *ir = ir_data; in isl29018_read_ir()
229 int ir_data = -1; in isl29018_read_proximity_ir() local
251 ir_data = isl29018_read_sensor_input(chip, in isl29018_read_proximity_ir()
253 if (ir_data < 0) in isl29018_read_proximity_ir()
254 return ir_data; in isl29018_read_proximity_ir()
256 if (prox_data >= ir_data) in isl29018_read_proximity_ir()
[all …]
Dltr501.c66 #define LTR501_LUX_CONV(vis_coeff, vis_data, ir_coeff, ir_data) \ argument
67 ((vis_coeff * vis_data) - (ir_coeff * ir_data))
302 static unsigned long ltr501_calculate_lux(u16 vis_data, u16 ir_data) in ltr501_calculate_lux() argument
310 ratio = DIV_ROUND_UP(ir_data * 100, ir_data + vis_data); in ltr501_calculate_lux()
313 lux = LTR501_LUX_CONV(1774, vis_data, -1105, ir_data); in ltr501_calculate_lux()
315 lux = LTR501_LUX_CONV(3772, vis_data, 1336, ir_data); in ltr501_calculate_lux()
317 lux = LTR501_LUX_CONV(1690, vis_data, 169, ir_data); in ltr501_calculate_lux()
Disl29028.c321 static int isl29028_ir_get(struct isl29028_chip *chip, int *ir_data) in isl29028_ir_get() argument
333 return isl29028_read_als_ir(chip, ir_data); in isl29028_ir_get()
/Linux-v5.4/drivers/iommu/
Damd_iommu.c4356 struct amd_ir_data *ir_data,
4398 struct amd_ir_data *ir_data = (struct amd_ir_data *)data; in amd_iommu_activate_guest_mode() local
4399 struct irte_ga *entry = (struct irte_ga *) ir_data->entry; in amd_iommu_activate_guest_mode()
4410 entry->hi.fields.ga_root_ptr = ir_data->ga_root_ptr; in amd_iommu_activate_guest_mode()
4411 entry->hi.fields.vector = ir_data->ga_vector; in amd_iommu_activate_guest_mode()
4412 entry->lo.fields_vapic.ga_tag = ir_data->ga_tag; in amd_iommu_activate_guest_mode()
4414 return modify_irte_ga(ir_data->irq_2_irte.devid, in amd_iommu_activate_guest_mode()
4415 ir_data->irq_2_irte.index, entry, NULL); in amd_iommu_activate_guest_mode()
4421 struct amd_ir_data *ir_data = (struct amd_ir_data *)data; in amd_iommu_deactivate_guest_mode() local
4422 struct irte_ga *entry = (struct irte_ga *) ir_data->entry; in amd_iommu_deactivate_guest_mode()
[all …]
Dintel_irq_remapping.c1154 struct intel_ir_data *ir_data = irqd->chip_data; in intel_ir_reconfigure_irte() local
1155 struct irte *irte = &ir_data->irte_entry; in intel_ir_reconfigure_irte()
1166 if (force || ir_data->irq_2_iommu.mode == IRQ_REMAPPING) in intel_ir_reconfigure_irte()
1167 modify_irte(&ir_data->irq_2_iommu, irte); in intel_ir_reconfigure_irte()
1210 struct intel_ir_data *ir_data = irq_data->chip_data; in intel_ir_compose_msi_msg() local
1212 *msg = ir_data->msi_entry; in intel_ir_compose_msi_msg()
1217 struct intel_ir_data *ir_data = data->chip_data; in intel_ir_set_vcpu_affinity() local
1222 modify_irte(&ir_data->irq_2_iommu, &ir_data->irte_entry); in intel_ir_set_vcpu_affinity()
1234 dmar_copy_shared_irte(&irte_pi, &ir_data->irte_entry); in intel_ir_set_vcpu_affinity()
1245 modify_irte(&ir_data->irq_2_iommu, &irte_pi); in intel_ir_set_vcpu_affinity()
/Linux-v5.4/include/linux/
Damd-iommu.h24 void *ir_data; member
/Linux-v5.4/arch/x86/kvm/
Dsvm.c5171 if (cur->data != pi->ir_data) in svm_ir_list_del()
5191 if (pi->ir_data && (pi->prev_ga_tag != 0)) { in svm_ir_list_add()
5215 ir->data = pi->ir_data; in svm_ir_list_add()