Lines Matching refs:rmi_dev

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()
228 dev_err(&rmi_dev->dev, in rmi_f01_read_properties()
239 ret = rmi_read_block(rmi_dev, prod_info_addr, queries, 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
387 struct rmi_driver_data *driver_data = dev_get_drvdata(&rmi_dev->dev); in rmi_f01_probe()
388 struct rmi_device_platform_data *pdata = rmi_get_platform_data(rmi_dev); in rmi_f01_probe()
412 error = rmi_read(rmi_dev, fn->fd.control_base_addr, in rmi_f01_probe()
444 error = rmi_write(rmi_dev, fn->fd.control_base_addr, in rmi_f01_probe()
452 error = rmi_read(rmi_dev, fn->fd.data_base_addr + 1, &temp); in rmi_f01_probe()
458 error = rmi_f01_read_properties(rmi_dev, fn->fd.query_base_addr, in rmi_f01_probe()
481 error = rmi_write(rmi_dev, f01->doze_interval_addr, in rmi_f01_probe()
490 error = rmi_read(rmi_dev, f01->doze_interval_addr, in rmi_f01_probe()
506 error = rmi_write(rmi_dev, f01->wakeup_threshold_addr, in rmi_f01_probe()
515 error = rmi_read(rmi_dev, f01->wakeup_threshold_addr, in rmi_f01_probe()
536 error = rmi_write(rmi_dev, f01->doze_holdoff_addr, in rmi_f01_probe()
545 error = rmi_read(rmi_dev, f01->doze_holdoff_addr, in rmi_f01_probe()
556 error = rmi_read(rmi_dev, fn->fd.data_base_addr, &device_status); in rmi_f01_probe()
572 error = sysfs_create_group(&fn->rmi_dev->dev.kobj, &rmi_f01_attr_group); in rmi_f01_probe()
582 sysfs_remove_group(&fn->rmi_dev->dev.kobj, &rmi_f01_attr_group); in rmi_f01_remove()
590 error = rmi_write(fn->rmi_dev, fn->fd.control_base_addr, in rmi_f01_config()
599 error = rmi_write(fn->rmi_dev, f01->doze_interval_addr, in rmi_f01_config()
607 error = rmi_write_block(fn->rmi_dev, in rmi_f01_config()
620 error = rmi_write(fn->rmi_dev, f01->doze_holdoff_addr, in rmi_f01_config()
642 if (device_may_wakeup(fn->rmi_dev->xport->dev)) in rmi_f01_suspend()
647 error = rmi_write(fn->rmi_dev, fn->fd.control_base_addr, in rmi_f01_suspend()
672 error = rmi_write(fn->rmi_dev, fn->fd.control_base_addr, in rmi_f01_resume()
686 struct rmi_device *rmi_dev = fn->rmi_dev; in rmi_f01_attention() local
690 error = rmi_read(rmi_dev, fn->fd.data_base_addr, &device_status); in rmi_f01_attention()
703 error = rmi_dev->driver->reset_handler(rmi_dev); in rmi_f01_attention()