Lines Matching refs:sensor
26 struct thermal_mmio *sensor = tz->devdata; in thermal_mmio_get_temperature() local
28 t = sensor->read_mmio(sensor->mmio_base) & sensor->mask; in thermal_mmio_get_temperature()
29 t *= sensor->factor; in thermal_mmio_get_temperature()
43 struct thermal_mmio *sensor; in thermal_mmio_probe() local
45 struct thermal_mmio *sensor); in thermal_mmio_probe()
50 sensor = devm_kzalloc(&pdev->dev, sizeof(*sensor), GFP_KERNEL); in thermal_mmio_probe()
51 if (!sensor) in thermal_mmio_probe()
55 sensor->mmio_base = devm_ioremap_resource(&pdev->dev, resource); in thermal_mmio_probe()
56 if (IS_ERR(sensor->mmio_base)) in thermal_mmio_probe()
57 return PTR_ERR(sensor->mmio_base); in thermal_mmio_probe()
61 ret = sensor_init_func(pdev, sensor); in thermal_mmio_probe()
72 sensor, in thermal_mmio_probe()
90 struct thermal_mmio *sensor) in al_thermal_init() argument
92 sensor->read_mmio = thermal_mmio_readb; in al_thermal_init()
93 sensor->mask = 0xff; in al_thermal_init()
94 sensor->factor = 1000; in al_thermal_init()