Searched refs:ams_info (Results 1 – 5 of 5) sorted by relevance
19 struct ams ams_info; variable28 u32 orient = ams_info.vflag? ams_info.orient1 : ams_info.orient2; in ams_sensors()32 ams_info.get_xyz(y, x, z); in ams_sensors()34 ams_info.get_xyz(x, y, z); in ams_sensors()49 mutex_lock(&ams_info.lock); in ams_show_current()51 mutex_unlock(&ams_info.lock); in ams_show_current()62 spin_lock(&ams_info.irq_lock); in ams_handle_irq()64 ams_info.worker_irqs |= irq; in ams_handle_irq()65 schedule_work(&ams_info.worker); in ams_handle_irq()67 spin_unlock(&ams_info.irq_lock); in ams_handle_irq()[all …]
32 mutex_lock(&ams_info.lock); in ams_idev_poll()36 x -= ams_info.xcalib; in ams_idev_poll()37 y -= ams_info.ycalib; in ams_idev_poll()38 z -= ams_info.zcalib; in ams_idev_poll()46 mutex_unlock(&ams_info.lock); in ams_idev_poll()57 ams_info.xcalib = x; in ams_input_enable()58 ams_info.ycalib = y; in ams_input_enable()59 ams_info.zcalib = z; in ams_input_enable()66 input->id.bustype = ams_info.bustype; in ams_input_enable()68 input->dev.parent = &ams_info.of_dev->dev; in ams_input_enable()[all …]
79 return i2c_smbus_read_byte_data(ams_info.i2c_client, reg); in ams_i2c_read()84 return i2c_smbus_write_byte_data(ams_info.i2c_client, reg, value); in ams_i2c_write()163 if (unlikely(ams_info.has_device)) in ams_i2c_probe()166 ams_info.i2c_client = client; in ams_i2c_probe()221 ams_info.has_device = 1; in ams_i2c_probe()233 if (ams_info.has_device) { in ams_i2c_remove()244 ams_info.has_device = 0; in ams_i2c_remove()256 ams_info.of_node = np; in ams_i2c_init()257 ams_info.exit = ams_i2c_exit; in ams_i2c_init()258 ams_info.get_vendor = ams_i2c_get_vendor; in ams_i2c_init()[all …]
140 ams_info.has_device = 0; in ams_pmu_exit()151 ams_info.of_node = np; in ams_pmu_init()152 ams_info.exit = ams_pmu_exit; in ams_pmu_init()153 ams_info.get_vendor = ams_pmu_get_vendor; in ams_pmu_init()154 ams_info.get_xyz = ams_pmu_get_xyz; in ams_pmu_init()155 ams_info.clear_irq = ams_pmu_clear_irq; in ams_pmu_init()156 ams_info.bustype = BUS_HOST; in ams_pmu_init()159 prop = of_get_property(ams_info.of_node, "reg", NULL); in ams_pmu_init()189 ams_info.has_device = 1; in ams_pmu_init()
64 extern struct ams ams_info;