Home
last modified time | relevance | path

Searched refs:rmi_dev (Results 1 – 20 of 20) sorted by relevance

/linux/drivers/input/rmi4/
A Drmi_driver.c230 rmi_dev); in rmi_irq_init()
434 dev_warn(&rmi_dev->dev, in rmi_driver_reset_handler()
754 dev_err(&rmi_dev->dev, in rmi_check_bootloader_mode()
764 dev_err(&rmi_dev->dev, in rmi_check_bootloader_mode()
803 error = rmi_dev->xport->ops->reset(rmi_dev->xport, in rmi_initial_reset()
814 dev_err(&rmi_dev->dev, in rmi_initial_reset()
853 fn->rmi_dev = rmi_dev; in rmi_create_function()
894 dev_warn(&rmi_dev->dev, in rmi_enable_irq()
1013 struct rmi_device *rmi_dev = data->rmi_dev; in rmi_probe_interrupts() local
1067 struct rmi_device *rmi_dev = data->rmi_dev; in rmi_init_functions() local
[all …]
A Drmi_bus.c54 kfree(rmi_dev); in rmi_release_device()
77 struct rmi_device *rmi_dev; in rmi_register_transport_device() local
81 if (!rmi_dev) in rmi_register_transport_device()
86 rmi_dev->xport = xport; in rmi_register_transport_device()
89 dev_set_name(&rmi_dev->dev, "rmi4-%02d", rmi_dev->number); in rmi_register_transport_device()
95 xport->rmi_dev = rmi_dev; in rmi_register_transport_device()
103 dev_name(rmi_dev->xport->dev), dev_name(&rmi_dev->dev)); in rmi_register_transport_device()
108 put_device(&rmi_dev->dev); in rmi_register_transport_device()
120 struct rmi_device *rmi_dev = xport->rmi_dev; in rmi_unregister_transport_device() local
241 struct rmi_device *rmi_dev = fn->rmi_dev; in rmi_register_function() local
[all …]
A Drmi_f01.c152 ret = rmi_read_block(rmi_dev, query_offset, in rmi_f01_read_properties()
155 dev_err(&rmi_dev->dev, in rmi_f01_read_properties()
193 dev_err(&rmi_dev->dev, in rmi_f01_read_properties()
205 dev_err(&rmi_dev->dev, in rmi_f01_read_properties()
214 dev_err(&rmi_dev->dev, in rmi_f01_read_properties()
228 dev_err(&rmi_dev->dev, in rmi_f01_read_properties()
242 dev_err(&rmi_dev->dev, in rmi_f01_read_properties()
386 struct rmi_device *rmi_dev = fn->rmi_dev; in rmi_f01_probe() local
607 error = rmi_write_block(fn->rmi_dev, in rmi_f01_config()
686 struct rmi_device *rmi_dev = fn->rmi_dev; in rmi_f01_attention() local
[all …]
A Drmi_driver.h90 void rmi_free_function_list(struct rmi_device *rmi_dev);
92 int rmi_enable_sensor(struct rmi_device *rmi_dev);
93 int rmi_scan_pdt(struct rmi_device *rmi_dev, void *ctx,
94 int (*callback)(struct rmi_device *rmi_dev, void *ctx,
97 void rmi_enable_irq(struct rmi_device *rmi_dev, bool clear_wake);
98 void rmi_disable_irq(struct rmi_device *rmi_dev, bool enable_wake);
100 int rmi_initial_reset(struct rmi_device *rmi_dev, void *ctx,
119 int rmi_f34_create_sysfs(struct rmi_device *rmi_dev);
120 void rmi_f34_remove_sysfs(struct rmi_device *rmi_dev);
122 static inline int rmi_f34_create_sysfs(struct rmi_device *rmi_dev) in rmi_f34_create_sysfs() argument
[all …]
A Drmi_f34.c19 struct rmi_device *rmi_dev = fn->rmi_dev; in rmi_f34_write_bootloader_id() local
34 ret = rmi_write_block(rmi_dev, in rmi_f34_write_bootloader_id()
49 struct rmi_device *rmi_dev = fn->rmi_dev; in rmi_f34_command() local
134 struct rmi_device *rmi_dev = fn->rmi_dev; in rmi_f34_write_blocks() local
361 struct rmi_device *rmi_dev = data->rmi_dev; in rmi_firmware_update() local
392 rmi_disable_irq(rmi_dev, false); in rmi_firmware_update()
395 rmi_free_function_list(rmi_dev); in rmi_firmware_update()
411 rmi_enable_irq(rmi_dev, false); in rmi_firmware_update()
429 rmi_disable_irq(rmi_dev, false); in rmi_firmware_update()
433 rmi_free_function_list(rmi_dev); in rmi_firmware_update()
[all …]
A Drmi_f11.c756 struct rmi_device *rmi_dev = fn->rmi_dev; in f11_read_control_regs() local
775 struct rmi_device *rmi_dev = fn->rmi_dev; in f11_write_control_regs() local
1018 rc = rmi_read_block(rmi_dev, query_base_addr in rmi_f11_get_query_parameters()
1063 struct rmi_device *rmi_dev = fn->rmi_dev; in rmi_f11_initialize() local
1072 rmi_get_platform_data(rmi_dev); in rmi_f11_initialize()
1111 rc = rmi_read(rmi_dev, query_base_addr, &buf); in rmi_f11_initialize()
1180 rc = rmi_read_block(rmi_dev, in rmi_f11_initialize()
1186 rc = rmi_read_block(rmi_dev, in rmi_f11_initialize()
1277 struct rmi_driver *drv = fn->rmi_dev->driver; in rmi_f11_config()
1302 struct rmi_device *rmi_dev = fn->rmi_dev; in rmi_f11_attention() local
[all …]
A Drmi_f3a.c60 struct rmi_driver_data *drvdata = dev_get_drvdata(&fn->rmi_dev->dev); in rmi_f3a_attention()
75 error = rmi_read_block(fn->rmi_dev, fn->fd.data_base_addr, in rmi_f3a_attention()
97 struct rmi_driver *drv = fn->rmi_dev->driver; in rmi_f3a_config()
99 rmi_get_platform_data(fn->rmi_dev); in rmi_f3a_config()
106 f3a->f03 = rmi_find_function(fn->rmi_dev, 0x03); in rmi_f3a_config()
110 drv->set_irq_bits(fn->rmi_dev, fn->irq_mask); in rmi_f3a_config()
126 rmi_get_platform_data(fn->rmi_dev); in rmi_f3a_map_gpios()
174 error = rmi_read(fn->rmi_dev, fn->fd.query_base_addr, &buf); in rmi_f3a_initialize()
185 error = rmi_read_block(fn->rmi_dev, fn->fd.query_base_addr + 1, in rmi_f3a_initialize()
193 error = rmi_read_block(fn->rmi_dev, fn->fd.control_base_addr + 1, in rmi_f3a_initialize()
[all …]
A Drmi_f12.c68 struct rmi_device *rmi_dev = fn->rmi_dev; in rmi_f12_read_sensor_tuning() local
202 struct rmi_device *rmi_dev = fn->rmi_dev; in rmi_f12_attention() local
218 retval = rmi_read_block(rmi_dev, f12->data_addr, in rmi_f12_attention()
240 struct rmi_device *rmi_dev = fn->rmi_dev; in rmi_f12_write_control_regs() local
282 ret = rmi_write_block(rmi_dev, in rmi_f12_write_control_regs()
296 struct rmi_driver *drv = fn->rmi_dev->driver; in rmi_f12_config()
304 drv->clear_irq_bits(fn->rmi_dev, f12->abs_mask); in rmi_f12_config()
306 drv->set_irq_bits(fn->rmi_dev, f12->abs_mask); in rmi_f12_config()
308 drv->clear_irq_bits(fn->rmi_dev, f12->rel_mask); in rmi_f12_config()
322 struct rmi_device *rmi_dev = fn->rmi_dev; in rmi_f12_probe() local
[all …]
A Drmi_f03.c83 error = rmi_write(f03->fn->rmi_dev, f03->fn->fd.data_base_addr, val); in rmi_f03_pt_write()
104 error = rmi_read(fn->rmi_dev, fn->fd.query_base_addr, &query1); in rmi_f03_initialize()
124 error = rmi_read_block(fn->rmi_dev, fn->fd.query_base_addr + 1, in rmi_f03_initialize()
153 error = rmi_read_block(fn->rmi_dev, data_addr, &obs, ob_len); in rmi_f03_pt_open()
159 return fn->rmi_dev->driver->set_irq_bits(fn->rmi_dev, fn->irq_mask); in rmi_f03_pt_open()
167 fn->rmi_dev->driver->clear_irq_bits(fn->rmi_dev, fn->irq_mask); in rmi_f03_pt_close()
238 fn->rmi_dev->driver->set_irq_bits(fn->rmi_dev, fn->irq_mask); in rmi_f03_config()
247 struct rmi_device *rmi_dev = fn->rmi_dev; in rmi_f03_attention() local
248 struct rmi_driver_data *drvdata = dev_get_drvdata(&rmi_dev->dev); in rmi_f03_attention()
272 error = rmi_read_block(fn->rmi_dev, data_addr, &obs, ob_len); in rmi_f03_attention()
A Drmi_f30.c89 error = rmi_read_block(fn->rmi_dev, fn->fd.control_base_addr, in rmi_f30_read_control_parameters()
142 error = rmi_read_block(fn->rmi_dev, fn->fd.data_base_addr, in rmi_f30_attention()
166 struct rmi_driver *drv = fn->rmi_dev->driver; in rmi_f30_config()
168 rmi_get_platform_data(fn->rmi_dev); in rmi_f30_config()
177 f30->f03 = rmi_find_function(fn->rmi_dev, 0x03); in rmi_f30_config()
182 drv->clear_irq_bits(fn->rmi_dev, fn->irq_mask); in rmi_f30_config()
194 drv->set_irq_bits(fn->rmi_dev, fn->irq_mask); in rmi_f30_config()
227 rmi_get_platform_data(fn->rmi_dev); in rmi_f30_map_gpios()
280 error = rmi_read_block(fn->rmi_dev, fn->fd.query_base_addr, in rmi_f30_initialize()
368 struct rmi_device *rmi_dev = fn->rmi_dev; in rmi_f30_probe() local
[all …]
A Drmi_f55.c38 struct rmi_device *rmi_dev = fn->rmi_dev; in rmi_f55_detect() local
39 struct rmi_driver_data *drv_data = dev_get_drvdata(&rmi_dev->dev); in rmi_f55_detect()
45 error = rmi_read_block(fn->rmi_dev, fn->fd.query_base_addr, in rmi_f55_detect()
73 error = rmi_read_block(fn->rmi_dev, in rmi_f55_detect()
86 error = rmi_read_block(fn->rmi_dev, in rmi_f55_detect()
A Drmi_f54.c180 struct rmi_device *rmi_dev = fn->rmi_dev; in rmi_f54_request_report() local
185 error = rmi_write(rmi_dev, f54->fn->fd.data_base_addr, in rmi_f54_request_report()
220 struct rmi_device *rmi_dev = f54->fn->rmi_dev; in rmi_f54_get_report_size() local
221 struct rmi_driver_data *drv_data = dev_get_drvdata(&rmi_dev->dev); in rmi_f54_get_report_size()
419 struct rmi_device *rmi_dev = f54->fn->rmi_dev; in rmi_f54_set_input() local
557 error = rmi_read(fn->rmi_dev, f54->fn->fd.command_base_addr, in rmi_f54_work()
579 error = rmi_write_block(fn->rmi_dev, in rmi_f54_work()
587 error = rmi_read_block(fn->rmi_dev, fn->fd.data_base_addr + in rmi_f54_work()
616 struct rmi_driver *drv = fn->rmi_dev->driver; in rmi_f54_config()
618 drv->clear_irq_bits(fn->rmi_dev, fn->irq_mask); in rmi_f54_config()
[all …]
A Drmi_f34v7.c27 ret = rmi_read_block(f34->fn->rmi_dev, in rmi_f34v7_read_flash_status()
45 ret = rmi_read_block(f34->fn->rmi_dev, in rmi_f34v7_read_flash_status()
124 ret = rmi_write_block(f34->fn->rmi_dev, in rmi_f34v7_write_command_single_transaction()
197 ret = rmi_write_block(f34->fn->rmi_dev, in rmi_f34v7_write_command()
264 ret = rmi_write_block(f34->fn->rmi_dev, in rmi_f34v7_write_partition_id()
332 ret = rmi_read_block(f34->fn->rmi_dev, in rmi_f34v7_read_partition_table()
431 ret = rmi_read_block(f34->fn->rmi_dev, in rmi_f34v7_read_queries_bl_version()
443 ret = rmi_read_block(f34->fn->rmi_dev, in rmi_f34v7_read_queries_bl_version()
1192 f34->fn->rmi_dev->driver->set_irq_bits(f34->fn->rmi_dev, in rmi_f34v7_do_reflash()
1285 f34->fn->rmi_dev->driver->set_irq_bits(f34->fn->rmi_dev, f34->fn->irq_mask); in rmi_f34v7_enter_flash_prog()
[all …]
A Drmi_smbus.c356 ret = rmi_driver_suspend(rmi_smb->xport.rmi_dev, true); in rmi_smb_suspend()
369 ret = rmi_driver_suspend(rmi_smb->xport.rmi_dev, false); in rmi_smb_runtime_suspend()
380 struct rmi_device *rmi_dev = rmi_smb->xport.rmi_dev; in rmi_smb_resume() local
385 rmi_reset(rmi_dev); in rmi_smb_resume()
387 ret = rmi_driver_resume(rmi_smb->xport.rmi_dev, true); in rmi_smb_resume()
400 ret = rmi_driver_resume(rmi_smb->xport.rmi_dev, false); in rmi_smb_runtime_resume()
A Drmi_i2c.c298 ret = rmi_driver_suspend(rmi_i2c->xport.rmi_dev, true); in rmi_i2c_suspend()
321 ret = rmi_driver_resume(rmi_i2c->xport.rmi_dev, true); in rmi_i2c_resume()
336 ret = rmi_driver_suspend(rmi_i2c->xport.rmi_dev, false); in rmi_i2c_runtime_suspend()
359 ret = rmi_driver_resume(rmi_i2c->xport.rmi_dev, false); in rmi_i2c_runtime_resume()
A Drmi_spi.c457 ret = rmi_driver_suspend(rmi_spi->xport.rmi_dev, true); in rmi_spi_suspend()
470 ret = rmi_driver_resume(rmi_spi->xport.rmi_dev, true); in rmi_spi_resume()
485 ret = rmi_driver_suspend(rmi_spi->xport.rmi_dev, false); in rmi_spi_runtime_suspend()
498 ret = rmi_driver_resume(rmi_spi->xport.rmi_dev, false); in rmi_spi_runtime_resume()
A Drmi_2d_sensor.c211 struct rmi_device *rmi_dev = fn->rmi_dev; in rmi_2d_sensor_configure_input() local
212 struct rmi_driver_data *drv_data = dev_get_drvdata(&rmi_dev->dev); in rmi_2d_sensor_configure_input()
A Drmi_bus.h38 struct rmi_device *rmi_dev; member
/linux/include/linux/
A Drmi.h265 struct rmi_device *rmi_dev; member
303 int (*reset_handler)(struct rmi_device *rmi_dev);
304 int (*clear_irq_bits)(struct rmi_device *rmi_dev, unsigned long *mask);
305 int (*set_irq_bits)(struct rmi_device *rmi_dev, unsigned long *mask);
306 int (*store_productid)(struct rmi_device *rmi_dev);
307 int (*set_input_params)(struct rmi_device *rmi_dev,
339 struct rmi_device *rmi_dev; member
372 void rmi_set_attn_data(struct rmi_device *rmi_dev, unsigned long irq_status,
375 int rmi_driver_suspend(struct rmi_device *rmi_dev, bool enable_wake);
376 int rmi_driver_resume(struct rmi_device *rmi_dev, bool clear_wake);
/linux/drivers/hid/
A Dhid-rmi.c299 struct rmi_device *rmi_dev = data->xport.rmi_dev; in rmi_reset_attn_mode() local
307 ret = rmi_dev->driver->reset_handler(rmi_dev); in rmi_reset_attn_mode()
324 struct rmi_device *rmi_dev = hdata->xport.rmi_dev; in rmi_input_event() local
332 rmi_set_attn_data(rmi_dev, data[1], &data[2], size - 2); in rmi_input_event()
443 struct rmi_device *rmi_dev = data->xport.rmi_dev; in rmi_suspend() local
449 ret = rmi_driver_suspend(rmi_dev, false); in rmi_suspend()
461 struct rmi_device *rmi_dev = data->xport.rmi_dev; in rmi_post_resume() local
476 ret = rmi_driver_resume(rmi_dev, false); in rmi_post_resume()

Completed in 56 milliseconds