/Linux-v4.19/drivers/input/rmi4/ |
D | rmi_driver.c | 38 void rmi_free_function_list(struct rmi_device *rmi_dev) in rmi_free_function_list() argument 41 struct rmi_driver_data *data = dev_get_drvdata(&rmi_dev->dev); in rmi_free_function_list() 43 rmi_dbg(RMI_DEBUG_CORE, &rmi_dev->dev, "Freeing function list\n"); in rmi_free_function_list() 52 devm_kfree(&rmi_dev->dev, data->irq_memory); in rmi_free_function_list() 101 static int rmi_driver_process_reset_requests(struct rmi_device *rmi_dev) in rmi_driver_process_reset_requests() argument 103 struct rmi_driver_data *data = dev_get_drvdata(&rmi_dev->dev); in rmi_driver_process_reset_requests() 116 static int rmi_driver_process_config_requests(struct rmi_device *rmi_dev) in rmi_driver_process_config_requests() argument 118 struct rmi_driver_data *data = dev_get_drvdata(&rmi_dev->dev); in rmi_driver_process_config_requests() 131 static int rmi_process_interrupt_requests(struct rmi_device *rmi_dev) in rmi_process_interrupt_requests() argument 133 struct rmi_driver_data *data = dev_get_drvdata(&rmi_dev->dev); in rmi_process_interrupt_requests() [all …]
|
D | rmi_bus.c | 55 struct rmi_device *rmi_dev = to_rmi_device(dev); in rmi_release_device() local 57 kfree(rmi_dev); in rmi_release_device() 80 struct rmi_device *rmi_dev; in rmi_register_transport_device() local 83 rmi_dev = kzalloc(sizeof(struct rmi_device), GFP_KERNEL); in rmi_register_transport_device() 84 if (!rmi_dev) in rmi_register_transport_device() 87 device_initialize(&rmi_dev->dev); in rmi_register_transport_device() 89 rmi_dev->xport = xport; in rmi_register_transport_device() 90 rmi_dev->number = atomic_inc_return(&transport_device_count) - 1; in rmi_register_transport_device() 92 dev_set_name(&rmi_dev->dev, "rmi4-%02d", rmi_dev->number); in rmi_register_transport_device() 94 rmi_dev->dev.bus = &rmi_bus_type; in rmi_register_transport_device() [all …]
|
D | rmi_f01.c | 138 static int rmi_f01_read_properties(struct rmi_device *rmi_dev, in rmi_f01_read_properties() argument 153 ret = rmi_read_block(rmi_dev, query_offset, in rmi_f01_read_properties() 156 dev_err(&rmi_dev->dev, in rmi_f01_read_properties() 192 ret = rmi_read(rmi_dev, query_offset, queries); in rmi_f01_read_properties() 194 dev_err(&rmi_dev->dev, in rmi_f01_read_properties() 204 ret = rmi_read(rmi_dev, query_offset, &ds4_query_len); in rmi_f01_read_properties() 206 dev_err(&rmi_dev->dev, in rmi_f01_read_properties() 213 ret = rmi_read(rmi_dev, query_offset, queries); in rmi_f01_read_properties() 215 dev_err(&rmi_dev->dev, in rmi_f01_read_properties() 226 ret = rmi_read_block(rmi_dev, prod_info_addr, in rmi_f01_read_properties() [all …]
|
D | rmi_driver.h | 93 void rmi_free_function_list(struct rmi_device *rmi_dev); 94 struct rmi_function *rmi_find_function(struct rmi_device *rmi_dev, u8 number); 95 int rmi_enable_sensor(struct rmi_device *rmi_dev); 96 int rmi_scan_pdt(struct rmi_device *rmi_dev, void *ctx, 97 int (*callback)(struct rmi_device *rmi_dev, void *ctx, 100 void rmi_enable_irq(struct rmi_device *rmi_dev, bool clear_wake); 101 void rmi_disable_irq(struct rmi_device *rmi_dev, bool enable_wake); 103 int rmi_initial_reset(struct rmi_device *rmi_dev, void *ctx, 122 int rmi_f34_create_sysfs(struct rmi_device *rmi_dev); 123 void rmi_f34_remove_sysfs(struct rmi_device *rmi_dev); [all …]
|
D | rmi_f34.c | 22 struct rmi_device *rmi_dev = fn->rmi_dev; in rmi_f34_write_bootloader_id() local 26 ret = rmi_read_block(rmi_dev, fn->fd.query_base_addr, in rmi_f34_write_bootloader_id() 37 ret = rmi_write_block(rmi_dev, in rmi_f34_write_bootloader_id() 52 struct rmi_device *rmi_dev = fn->rmi_dev; in rmi_f34_command() local 63 ret = rmi_read(rmi_dev, f34->v5.ctrl_address, &f34->v5.status); in rmi_f34_command() 73 ret = rmi_write(rmi_dev, f34->v5.ctrl_address, f34->v5.status); in rmi_f34_command() 84 ret = rmi_read(rmi_dev, f34->v5.ctrl_address, &f34->v5.status); in rmi_f34_command() 111 ret = rmi_read(f34->fn->rmi_dev, f34->v5.ctrl_address, in rmi_f34_attention() 119 ret = rmi_read_block(f34->fn->rmi_dev, in rmi_f34_attention() 137 struct rmi_device *rmi_dev = fn->rmi_dev; in rmi_f34_write_blocks() local [all …]
|
D | rmi_f11.c | 734 struct rmi_device *rmi_dev = fn->rmi_dev; in f11_read_control_regs() local 738 error = rmi_read_block(rmi_dev, ctrl_base_addr, ctrl->ctrl0_11, in f11_read_control_regs() 753 struct rmi_device *rmi_dev = fn->rmi_dev; in f11_write_control_regs() local 756 error = rmi_write_block(rmi_dev, ctrl_base_addr, ctrl->ctrl0_11, in f11_write_control_regs() 764 static int rmi_f11_get_query_parameters(struct rmi_device *rmi_dev, in rmi_f11_get_query_parameters() argument 774 rc = rmi_read_block(rmi_dev, query_base_addr, query_buf, in rmi_f11_get_query_parameters() 797 rc = rmi_read(rmi_dev, query_base_addr + query_size, query_buf); in rmi_f11_get_query_parameters() 819 rc = rmi_read(rmi_dev, query_base_addr + query_size, in rmi_f11_get_query_parameters() 827 rc = rmi_read_block(rmi_dev, query_base_addr + query_size, in rmi_f11_get_query_parameters() 874 rc = rmi_read(rmi_dev, query_base_addr + query_size, query_buf); in rmi_f11_get_query_parameters() [all …]
|
D | rmi_f03.c | 86 error = rmi_write(f03->fn->rmi_dev, f03->fn->fd.data_base_addr, val); in rmi_f03_pt_write() 107 error = rmi_read(fn->rmi_dev, fn->fd.query_base_addr, &query1); in rmi_f03_initialize() 127 error = rmi_read_block(fn->rmi_dev, fn->fd.query_base_addr + 1, in rmi_f03_initialize() 156 error = rmi_read_block(fn->rmi_dev, data_addr, &obs, ob_len); in rmi_f03_pt_open() 162 return fn->rmi_dev->driver->set_irq_bits(fn->rmi_dev, fn->irq_mask); in rmi_f03_pt_open() 170 fn->rmi_dev->driver->clear_irq_bits(fn->rmi_dev, fn->irq_mask); in rmi_f03_pt_close() 241 fn->rmi_dev->driver->set_irq_bits(fn->rmi_dev, fn->irq_mask); in rmi_f03_config() 250 struct rmi_device *rmi_dev = fn->rmi_dev; in rmi_f03_attention() local 251 struct rmi_driver_data *drvdata = dev_get_drvdata(&rmi_dev->dev); in rmi_f03_attention() 275 error = rmi_read_block(fn->rmi_dev, data_addr, &obs, ob_len); in rmi_f03_attention()
|
D | rmi_f12.c | 68 struct rmi_device *rmi_dev = fn->rmi_dev; in rmi_f12_read_sensor_tuning() local 94 ret = rmi_read_block(rmi_dev, fn->fd.control_base_addr + offset, buf, in rmi_f12_read_sensor_tuning() 204 struct rmi_device *rmi_dev = fn->rmi_dev; in rmi_f12_attention() local 205 struct rmi_driver_data *drvdata = dev_get_drvdata(&rmi_dev->dev); in rmi_f12_attention() 220 retval = rmi_read_block(rmi_dev, f12->data_addr, in rmi_f12_attention() 242 struct rmi_device *rmi_dev = fn->rmi_dev; in rmi_f12_write_control_regs() local 264 ret = rmi_read_block(rmi_dev, fn->fd.control_base_addr in rmi_f12_write_control_regs() 284 ret = rmi_write_block(rmi_dev, in rmi_f12_write_control_regs() 298 struct rmi_driver *drv = fn->rmi_dev->driver; in rmi_f12_config() 301 drv->set_irq_bits(fn->rmi_dev, fn->irq_mask); in rmi_f12_config() [all …]
|
D | rmi_f30.c | 92 error = rmi_read_block(fn->rmi_dev, fn->fd.control_base_addr, in rmi_f30_read_control_parameters() 129 struct rmi_driver_data *drvdata = dev_get_drvdata(&fn->rmi_dev->dev); in rmi_f30_attention() 145 error = rmi_read_block(fn->rmi_dev, fn->fd.data_base_addr, in rmi_f30_attention() 169 struct rmi_driver *drv = fn->rmi_dev->driver; in rmi_f30_config() 171 rmi_get_platform_data(fn->rmi_dev); in rmi_f30_config() 180 f30->f03 = rmi_find_function(fn->rmi_dev, 0x03); in rmi_f30_config() 185 drv->clear_irq_bits(fn->rmi_dev, fn->irq_mask); in rmi_f30_config() 188 error = rmi_write_block(fn->rmi_dev, fn->fd.control_base_addr, in rmi_f30_config() 197 drv->set_irq_bits(fn->rmi_dev, fn->irq_mask); in rmi_f30_config() 230 rmi_get_platform_data(fn->rmi_dev); in rmi_f30_map_gpios() [all …]
|
D | rmi_f55.c | 41 struct rmi_device *rmi_dev = fn->rmi_dev; in rmi_f55_detect() local 42 struct rmi_driver_data *drv_data = dev_get_drvdata(&rmi_dev->dev); in rmi_f55_detect() 48 error = rmi_read_block(fn->rmi_dev, fn->fd.query_base_addr, in rmi_f55_detect() 76 error = rmi_read_block(fn->rmi_dev, in rmi_f55_detect() 89 error = rmi_read_block(fn->rmi_dev, in rmi_f55_detect()
|
D | rmi_f54.c | 176 struct rmi_device *rmi_dev = fn->rmi_dev; in rmi_f54_request_report() local 181 error = rmi_write(rmi_dev, f54->fn->fd.data_base_addr, in rmi_f54_request_report() 197 error = rmi_write(rmi_dev, fn->fd.command_base_addr, F54_GET_REPORT); in rmi_f54_request_report() 216 struct rmi_device *rmi_dev = f54->fn->rmi_dev; in rmi_f54_get_report_size() local 217 struct rmi_driver_data *drv_data = dev_get_drvdata(&rmi_dev->dev); in rmi_f54_get_report_size() 403 struct rmi_device *rmi_dev = f54->fn->rmi_dev; in rmi_f54_set_input() local 404 struct rmi_driver_data *drv_data = dev_get_drvdata(&rmi_dev->dev); in rmi_f54_set_input() 555 error = rmi_read(fn->rmi_dev, f54->fn->fd.command_base_addr, in rmi_f54_work() 576 error = rmi_write_block(fn->rmi_dev, in rmi_f54_work() 584 error = rmi_read_block(fn->rmi_dev, fn->fd.data_base_addr + in rmi_f54_work() [all …]
|
D | rmi_f34v7.c | 30 ret = rmi_read_block(f34->fn->rmi_dev, in rmi_f34v7_read_flash_status() 48 ret = rmi_read_block(f34->fn->rmi_dev, in rmi_f34v7_read_flash_status() 127 ret = rmi_write_block(f34->fn->rmi_dev, in rmi_f34v7_write_command_single_transaction() 200 ret = rmi_write_block(f34->fn->rmi_dev, in rmi_f34v7_write_command() 267 ret = rmi_write_block(f34->fn->rmi_dev, in rmi_f34v7_write_partition_id() 295 ret = rmi_write_block(f34->fn->rmi_dev, in rmi_f34v7_read_partition_table() 306 ret = rmi_write_block(f34->fn->rmi_dev, in rmi_f34v7_read_partition_table() 335 ret = rmi_read_block(f34->fn->rmi_dev, in rmi_f34v7_read_partition_table() 434 ret = rmi_read_block(f34->fn->rmi_dev, in rmi_f34v7_read_queries_bl_version() 446 ret = rmi_read_block(f34->fn->rmi_dev, in rmi_f34v7_read_queries_bl_version() [all …]
|
D | rmi_smbus.c | 359 ret = rmi_driver_suspend(rmi_smb->xport.rmi_dev, true); in rmi_smb_suspend() 372 ret = rmi_driver_suspend(rmi_smb->xport.rmi_dev, false); in rmi_smb_runtime_suspend() 383 struct rmi_device *rmi_dev = rmi_smb->xport.rmi_dev; in rmi_smb_resume() local 388 rmi_reset(rmi_dev); in rmi_smb_resume() 390 ret = rmi_driver_resume(rmi_smb->xport.rmi_dev, true); in rmi_smb_resume() 403 ret = rmi_driver_resume(rmi_smb->xport.rmi_dev, false); in rmi_smb_runtime_resume()
|
D | rmi_i2c.c | 297 ret = rmi_driver_suspend(rmi_i2c->xport.rmi_dev, true); in rmi_i2c_suspend() 320 ret = rmi_driver_resume(rmi_i2c->xport.rmi_dev, true); in rmi_i2c_resume() 335 ret = rmi_driver_suspend(rmi_i2c->xport.rmi_dev, false); in rmi_i2c_runtime_suspend() 358 ret = rmi_driver_resume(rmi_i2c->xport.rmi_dev, false); in rmi_i2c_runtime_resume()
|
D | rmi_spi.c | 458 ret = rmi_driver_suspend(rmi_spi->xport.rmi_dev, true); in rmi_spi_suspend() 471 ret = rmi_driver_resume(rmi_spi->xport.rmi_dev, true); in rmi_spi_resume() 486 ret = rmi_driver_suspend(rmi_spi->xport.rmi_dev, false); in rmi_spi_runtime_suspend() 499 ret = rmi_driver_resume(rmi_spi->xport.rmi_dev, false); in rmi_spi_runtime_resume()
|
D | rmi_2d_sensor.c | 215 struct rmi_device *rmi_dev = fn->rmi_dev; in rmi_2d_sensor_configure_input() local 216 struct rmi_driver_data *drv_data = dev_get_drvdata(&rmi_dev->dev); in rmi_2d_sensor_configure_input()
|
D | rmi_bus.h | 41 struct rmi_device *rmi_dev; member
|
/Linux-v4.19/include/linux/ |
D | rmi.h | 267 struct rmi_device *rmi_dev; member 305 int (*reset_handler)(struct rmi_device *rmi_dev); 306 int (*clear_irq_bits)(struct rmi_device *rmi_dev, unsigned long *mask); 307 int (*set_irq_bits)(struct rmi_device *rmi_dev, unsigned long *mask); 308 int (*store_productid)(struct rmi_device *rmi_dev); 309 int (*set_input_params)(struct rmi_device *rmi_dev, 341 struct rmi_device *rmi_dev; member 374 void rmi_set_attn_data(struct rmi_device *rmi_dev, unsigned long irq_status, 377 int rmi_driver_suspend(struct rmi_device *rmi_dev, bool enable_wake); 378 int rmi_driver_resume(struct rmi_device *rmi_dev, bool clear_wake);
|
/Linux-v4.19/drivers/hid/ |
D | hid-rmi.c | 293 struct rmi_device *rmi_dev = data->xport.rmi_dev; in rmi_reset_attn_mode() local 301 ret = rmi_dev->driver->reset_handler(rmi_dev); in rmi_reset_attn_mode() 318 struct rmi_device *rmi_dev = hdata->xport.rmi_dev; in rmi_input_event() local 326 rmi_set_attn_data(rmi_dev, data[1], &data[2], size - 2); in rmi_input_event() 438 struct rmi_device *rmi_dev = data->xport.rmi_dev; in rmi_suspend() local 444 ret = rmi_driver_suspend(rmi_dev, false); in rmi_suspend() 456 struct rmi_device *rmi_dev = data->xport.rmi_dev; in rmi_post_resume() local 471 ret = rmi_driver_resume(rmi_dev, false); in rmi_post_resume()
|