Lines Matching refs:device
143 struct device device; member
152 #define to_hsi_client(dev) container_of(dev, struct hsi_client, device)
156 dev_set_drvdata(&cl->device, data); in hsi_client_set_drvdata()
161 return dev_get_drvdata(&cl->device); in hsi_client_drvdata()
238 struct device device; member
255 #define to_hsi_port(dev) container_of(dev, struct hsi_port, device)
256 #define hsi_get_port(cl) to_hsi_port((cl)->device.parent)
269 dev_set_drvdata(&port->device, data); in hsi_port_set_drvdata()
274 return dev_get_drvdata(&port->device); in hsi_port_drvdata()
286 struct device device; member
293 #define to_hsi_controller(dev) container_of(dev, struct hsi_controller, device)
301 int hsi_remove_client(struct device *dev, void *data);
318 dev_set_drvdata(&hsi->device, data); in hsi_controller_set_drvdata()
323 return dev_get_drvdata(&hsi->device); in hsi_controller_drvdata()
347 return to_hsi_controller(cl->device.parent->parent)->id; in hsi_id()
358 return to_hsi_port(cl->device.parent)->num; in hsi_port_id()