Home
last modified time | relevance | path

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

/linux-6.1.9/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.c70 #define LTR501_LUX_CONV(vis_coeff, vis_data, ir_coeff, ir_data) \ argument
71 ((vis_coeff * vis_data) - (ir_coeff * ir_data))
309 static unsigned long ltr501_calculate_lux(u16 vis_data, u16 ir_data) in ltr501_calculate_lux() argument
317 ratio = DIV_ROUND_UP(ir_data * 100, ir_data + vis_data); in ltr501_calculate_lux()
320 lux = LTR501_LUX_CONV(1774, vis_data, -1105, ir_data); in ltr501_calculate_lux()
322 lux = LTR501_LUX_CONV(3772, vis_data, 1336, ir_data); in ltr501_calculate_lux()
324 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-6.1.9/drivers/iommu/amd/
Diommu.c3425 struct amd_ir_data *ir_data,
3489 struct amd_ir_data *ir_data = (struct amd_ir_data *)data; in amd_iommu_activate_guest_mode() local
3490 struct irte_ga *entry = (struct irte_ga *) ir_data->entry; in amd_iommu_activate_guest_mode()
3505 entry->hi.fields.ga_root_ptr = ir_data->ga_root_ptr; in amd_iommu_activate_guest_mode()
3506 entry->hi.fields.vector = ir_data->ga_vector; in amd_iommu_activate_guest_mode()
3507 entry->lo.fields_vapic.ga_tag = ir_data->ga_tag; in amd_iommu_activate_guest_mode()
3509 return modify_irte_ga(ir_data->iommu, ir_data->irq_2_irte.devid, in amd_iommu_activate_guest_mode()
3510 ir_data->irq_2_irte.index, entry, ir_data); in amd_iommu_activate_guest_mode()
3516 struct amd_ir_data *ir_data = (struct amd_ir_data *)data; in amd_iommu_deactivate_guest_mode() local
3517 struct irte_ga *entry = (struct irte_ga *) ir_data->entry; in amd_iommu_deactivate_guest_mode()
[all …]
/linux-6.1.9/drivers/iommu/intel/
Dirq_remapping.c1146 struct intel_ir_data *ir_data = irqd->chip_data; in intel_ir_reconfigure_irte() local
1147 struct irte *irte = &ir_data->irte_entry; in intel_ir_reconfigure_irte()
1158 if (force || ir_data->irq_2_iommu.mode == IRQ_REMAPPING) in intel_ir_reconfigure_irte()
1159 modify_irte(&ir_data->irq_2_iommu, irte); in intel_ir_reconfigure_irte()
1202 struct intel_ir_data *ir_data = irq_data->chip_data; in intel_ir_compose_msi_msg() local
1204 *msg = ir_data->msi_entry; in intel_ir_compose_msi_msg()
1209 struct intel_ir_data *ir_data = data->chip_data; in intel_ir_set_vcpu_affinity() local
1214 modify_irte(&ir_data->irq_2_iommu, &ir_data->irte_entry); in intel_ir_set_vcpu_affinity()
1226 dmar_copy_shared_irte(&irte_pi, &ir_data->irte_entry); in intel_ir_set_vcpu_affinity()
1237 modify_irte(&ir_data->irq_2_iommu, &irte_pi); in intel_ir_set_vcpu_affinity()
/linux-6.1.9/include/linux/
Damd-iommu.h26 void *ir_data; member
/linux-6.1.9/arch/x86/kvm/svm/
Davic.c793 if (cur->data != pi->ir_data) in svm_ir_list_del()
813 if (pi->ir_data && (pi->prev_ga_tag != 0)) { in svm_ir_list_add()
837 ir->data = pi->ir_data; in svm_ir_list_add()