Lines Matching refs:rmi_dev

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()
229 dev_err(&rmi_dev->dev, in rmi_f01_read_properties()
240 ret = rmi_read_block(rmi_dev, prod_info_addr, queries, in rmi_f01_read_properties()
243 dev_err(&rmi_dev->dev, in rmi_f01_read_properties()
387 struct rmi_device *rmi_dev = fn->rmi_dev; in rmi_f01_probe() local
388 struct rmi_driver_data *driver_data = dev_get_drvdata(&rmi_dev->dev); in rmi_f01_probe()
389 struct rmi_device_platform_data *pdata = rmi_get_platform_data(rmi_dev); in rmi_f01_probe()
413 error = rmi_read(rmi_dev, fn->fd.control_base_addr, in rmi_f01_probe()
445 error = rmi_write(rmi_dev, fn->fd.control_base_addr, in rmi_f01_probe()
453 error = rmi_read(rmi_dev, fn->fd.data_base_addr + 1, &temp); in rmi_f01_probe()
459 error = rmi_f01_read_properties(rmi_dev, fn->fd.query_base_addr, in rmi_f01_probe()
482 error = rmi_write(rmi_dev, f01->doze_interval_addr, in rmi_f01_probe()
491 error = rmi_read(rmi_dev, f01->doze_interval_addr, in rmi_f01_probe()
507 error = rmi_write(rmi_dev, f01->wakeup_threshold_addr, in rmi_f01_probe()
516 error = rmi_read(rmi_dev, f01->wakeup_threshold_addr, in rmi_f01_probe()
537 error = rmi_write(rmi_dev, f01->doze_holdoff_addr, in rmi_f01_probe()
546 error = rmi_read(rmi_dev, f01->doze_holdoff_addr, in rmi_f01_probe()
557 error = rmi_read(rmi_dev, fn->fd.data_base_addr, &device_status); in rmi_f01_probe()
573 error = sysfs_create_group(&fn->rmi_dev->dev.kobj, &rmi_f01_attr_group); in rmi_f01_probe()
583 sysfs_remove_group(&fn->rmi_dev->dev.kobj, &rmi_f01_attr_group); in rmi_f01_remove()
591 error = rmi_write(fn->rmi_dev, fn->fd.control_base_addr, in rmi_f01_config()
600 error = rmi_write(fn->rmi_dev, f01->doze_interval_addr, in rmi_f01_config()
608 error = rmi_write_block(fn->rmi_dev, in rmi_f01_config()
621 error = rmi_write(fn->rmi_dev, f01->doze_holdoff_addr, in rmi_f01_config()
643 if (device_may_wakeup(fn->rmi_dev->xport->dev)) in rmi_f01_suspend()
648 error = rmi_write(fn->rmi_dev, fn->fd.control_base_addr, in rmi_f01_suspend()
673 error = rmi_write(fn->rmi_dev, fn->fd.control_base_addr, in rmi_f01_resume()
687 struct rmi_device *rmi_dev = fn->rmi_dev; in rmi_f01_attention() local
691 error = rmi_read(rmi_dev, fn->fd.data_base_addr, &device_status); in rmi_f01_attention()
704 error = rmi_dev->driver->reset_handler(rmi_dev); in rmi_f01_attention()