Lines Matching refs:rmi_dev

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()
92 rmi_dev->dev.type = &rmi_device_type; in rmi_register_transport_device()
93 rmi_dev->dev.parent = xport->dev; in rmi_register_transport_device()
95 xport->rmi_dev = rmi_dev; in rmi_register_transport_device()
97 error = device_add(&rmi_dev->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
122 device_del(&rmi_dev->dev); in rmi_unregister_transport_device()
123 put_device(&rmi_dev->dev); in rmi_unregister_transport_device()
159 struct device_node *node = fn->rmi_dev->xport->dev->of_node; in rmi_function_of_probe()
177 struct rmi_driver_data *drvdata = dev_get_drvdata(&fn->rmi_dev->dev); in rmi_create_function_irq()
241 struct rmi_device *rmi_dev = fn->rmi_dev; in rmi_register_function() local
247 dev_name(&rmi_dev->dev), fn->fd.function_number); in rmi_register_function()
249 fn->dev.parent = &rmi_dev->dev; in rmi_register_function()
255 dev_err(&rmi_dev->dev, in rmi_register_function()
261 rmi_dbg(RMI_DEBUG_CORE, &rmi_dev->dev, "Registered F%02X.\n", in rmi_register_function()