/linux-6.1.9/drivers/input/rmi4/ |
D | rmi_driver.c | 35 void rmi_free_function_list(struct rmi_device *rmi_dev) in rmi_free_function_list() argument 38 struct rmi_driver_data *data = dev_get_drvdata(&rmi_dev->dev); in rmi_free_function_list() 40 rmi_dbg(RMI_DEBUG_CORE, &rmi_dev->dev, "Freeing function list\n"); in rmi_free_function_list() 49 devm_kfree(&rmi_dev->dev, data->irq_memory); in rmi_free_function_list() 98 static int rmi_driver_process_reset_requests(struct rmi_device *rmi_dev) in rmi_driver_process_reset_requests() argument 100 struct rmi_driver_data *data = dev_get_drvdata(&rmi_dev->dev); in rmi_driver_process_reset_requests() 113 static int rmi_driver_process_config_requests(struct rmi_device *rmi_dev) in rmi_driver_process_config_requests() argument 115 struct rmi_driver_data *data = dev_get_drvdata(&rmi_dev->dev); in rmi_driver_process_config_requests() 128 static int rmi_process_interrupt_requests(struct rmi_device *rmi_dev) in rmi_process_interrupt_requests() argument 130 struct rmi_driver_data *data = dev_get_drvdata(&rmi_dev->dev); in rmi_process_interrupt_requests() [all …]
|
D | rmi_bus.c | 52 struct rmi_device *rmi_dev = to_rmi_device(dev); in rmi_release_device() local 54 kfree(rmi_dev); in rmi_release_device() 77 struct rmi_device *rmi_dev; in rmi_register_transport_device() local 80 rmi_dev = kzalloc(sizeof(struct rmi_device), GFP_KERNEL); in rmi_register_transport_device() 81 if (!rmi_dev) in rmi_register_transport_device() 84 device_initialize(&rmi_dev->dev); in rmi_register_transport_device() 86 rmi_dev->xport = xport; in rmi_register_transport_device() 87 rmi_dev->number = atomic_inc_return(&transport_device_count) - 1; in rmi_register_transport_device() 89 dev_set_name(&rmi_dev->dev, "rmi4-%02d", rmi_dev->number); in rmi_register_transport_device() 91 rmi_dev->dev.bus = &rmi_bus_type; in rmi_register_transport_device() [all …]
|
D | rmi_f01.c | 137 static int rmi_f01_read_properties(struct rmi_device *rmi_dev, in rmi_f01_read_properties() argument 152 ret = rmi_read_block(rmi_dev, query_offset, in rmi_f01_read_properties() 155 dev_err(&rmi_dev->dev, in rmi_f01_read_properties() 191 ret = rmi_read(rmi_dev, query_offset, queries); in rmi_f01_read_properties() 193 dev_err(&rmi_dev->dev, in rmi_f01_read_properties() 203 ret = rmi_read(rmi_dev, query_offset, &ds4_query_len); in rmi_f01_read_properties() 205 dev_err(&rmi_dev->dev, in rmi_f01_read_properties() 212 ret = rmi_read(rmi_dev, query_offset, queries); in rmi_f01_read_properties() 214 dev_err(&rmi_dev->dev, in rmi_f01_read_properties() 225 ret = rmi_read_block(rmi_dev, prod_info_addr, in rmi_f01_read_properties() [all …]
|
D | rmi_driver.h | 90 void rmi_free_function_list(struct rmi_device *rmi_dev); 91 struct rmi_function *rmi_find_function(struct rmi_device *rmi_dev, u8 number); 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); [all …]
|
D | rmi_f34.c | 19 struct rmi_device *rmi_dev = fn->rmi_dev; in rmi_f34_write_bootloader_id() local 23 ret = rmi_read_block(rmi_dev, fn->fd.query_base_addr, in rmi_f34_write_bootloader_id() 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 60 ret = rmi_read(rmi_dev, f34->v5.ctrl_address, &f34->v5.status); in rmi_f34_command() 70 ret = rmi_write(rmi_dev, f34->v5.ctrl_address, f34->v5.status); in rmi_f34_command() 81 ret = rmi_read(rmi_dev, f34->v5.ctrl_address, &f34->v5.status); in rmi_f34_command() 108 ret = rmi_read(f34->fn->rmi_dev, f34->v5.ctrl_address, in rmi_f34_attention() 116 ret = rmi_read_block(f34->fn->rmi_dev, in rmi_f34_attention() 134 struct rmi_device *rmi_dev = fn->rmi_dev; in rmi_f34_write_blocks() local [all …]
|
D | rmi_f3a.c | 60 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 …]
|
D | rmi_f11.c | 756 struct rmi_device *rmi_dev = fn->rmi_dev; in f11_read_control_regs() local 760 error = rmi_read_block(rmi_dev, ctrl_base_addr, ctrl->ctrl0_11, in f11_read_control_regs() 775 struct rmi_device *rmi_dev = fn->rmi_dev; in f11_write_control_regs() local 778 error = rmi_write_block(rmi_dev, ctrl_base_addr, ctrl->ctrl0_11, in f11_write_control_regs() 786 static int rmi_f11_get_query_parameters(struct rmi_device *rmi_dev, in rmi_f11_get_query_parameters() argument 796 rc = rmi_read_block(rmi_dev, query_base_addr, query_buf, in rmi_f11_get_query_parameters() 819 rc = rmi_read(rmi_dev, query_base_addr + query_size, query_buf); in rmi_f11_get_query_parameters() 841 rc = rmi_read(rmi_dev, query_base_addr + query_size, in rmi_f11_get_query_parameters() 849 rc = rmi_read_block(rmi_dev, query_base_addr + query_size, in rmi_f11_get_query_parameters() 896 rc = rmi_read(rmi_dev, query_base_addr + query_size, query_buf); in rmi_f11_get_query_parameters() [all …]
|
D | rmi_f03.c | 83 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()
|
D | rmi_f12.c | 68 struct rmi_device *rmi_dev = fn->rmi_dev; in rmi_f12_read_sensor_tuning() local 93 ret = rmi_read_block(rmi_dev, fn->fd.control_base_addr + offset, buf, in rmi_f12_read_sensor_tuning() 202 struct rmi_device *rmi_dev = fn->rmi_dev; in rmi_f12_attention() local 203 struct rmi_driver_data *drvdata = dev_get_drvdata(&rmi_dev->dev); in rmi_f12_attention() 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 262 ret = rmi_read_block(rmi_dev, fn->fd.control_base_addr in rmi_f12_write_control_regs() 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() [all …]
|
D | rmi_f30.c | 89 error = rmi_read_block(fn->rmi_dev, fn->fd.control_base_addr, in rmi_f30_read_control_parameters() 126 struct rmi_driver_data *drvdata = dev_get_drvdata(&fn->rmi_dev->dev); in rmi_f30_attention() 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() 185 error = rmi_write_block(fn->rmi_dev, fn->fd.control_base_addr, 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() [all …]
|
D | rmi_f55.c | 38 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()
|
D | rmi_f54.c | 180 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() 201 error = rmi_write(rmi_dev, fn->fd.command_base_addr, F54_GET_REPORT); 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 420 struct rmi_driver_data *drv_data = dev_get_drvdata(&rmi_dev->dev); in rmi_f54_set_input() 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() [all …]
|
D | rmi_f34v7.c | 27 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() 142 ret = rmi_write_block(f34->fn->rmi_dev, in rmi_f34v7_write_command_single_transaction() 215 ret = rmi_write_block(f34->fn->rmi_dev, in rmi_f34v7_write_command() 282 ret = rmi_write_block(f34->fn->rmi_dev, in rmi_f34v7_write_partition_id() 310 ret = rmi_write_block(f34->fn->rmi_dev, in rmi_f34v7_read_partition_table() 321 ret = rmi_write_block(f34->fn->rmi_dev, in rmi_f34v7_read_partition_table() 354 ret = rmi_read_block(f34->fn->rmi_dev, in rmi_f34v7_read_partition_table() 453 ret = rmi_read_block(f34->fn->rmi_dev, in rmi_f34v7_read_queries_bl_version() 465 ret = rmi_read_block(f34->fn->rmi_dev, in rmi_f34v7_read_queries_bl_version() [all …]
|
D | rmi_smbus.c | 354 ret = rmi_driver_suspend(rmi_smb->xport.rmi_dev, true); in rmi_smb_suspend() 367 ret = rmi_driver_suspend(rmi_smb->xport.rmi_dev, false); in rmi_smb_runtime_suspend() 378 struct rmi_device *rmi_dev = rmi_smb->xport.rmi_dev; in rmi_smb_resume() local 383 rmi_reset(rmi_dev); in rmi_smb_resume() 385 ret = rmi_driver_resume(rmi_smb->xport.rmi_dev, true); in rmi_smb_resume() 398 ret = rmi_driver_resume(rmi_smb->xport.rmi_dev, false); in rmi_smb_runtime_resume()
|
D | rmi_i2c.c | 298 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()
|
D | rmi_spi.c | 457 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()
|
D | rmi_2d_sensor.c | 211 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()
|
D | rmi_bus.h | 38 struct rmi_device *rmi_dev; member
|
/linux-6.1.9/include/linux/ |
D | rmi.h | 265 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-6.1.9/drivers/hid/ |
D | hid-rmi.c | 298 struct rmi_device *rmi_dev = data->xport.rmi_dev; in rmi_reset_attn_mode() local 306 ret = rmi_dev->driver->reset_handler(rmi_dev); in rmi_reset_attn_mode() 323 struct rmi_device *rmi_dev = hdata->xport.rmi_dev; in rmi_input_event() local 333 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()
|