Lines Matching defs:device
16 #include <linux/device.h>
166 struct device *device;
222 dev_dbg(dev->device, "isr CTL_REG %x IIC_EN %x\n",
231 dev_dbg(dev->device, "isr handled");
235 /* Wait for device to be ready */
314 dev_dbg(dev->device, "intr timeout for cmd %s\n",
322 dev_dbg(dev->device, "controller received NOACK intr for %s\n",
387 dev_dbg(dev->device, "%s failure", cmd_string[cmd]);
474 dev_dbg(dev->device,
490 dev_dbg(dev->device,
565 dev_warn(dev->device, "leaving current clock-frequency @ %dHz\n",
588 struct platform_device *pdev = to_platform_device(dev->device);
626 dev->device = &pdev->dev;
631 dev->base = devm_ioremap_resource(dev->device, iomem);
637 if (of_device_is_compatible(dev->device->of_node,
644 rc = of_property_read_string(dev->device->of_node, "interrupt-names",
663 dev_dbg(dev->device, "falling back to polling mode");
668 if (of_property_read_u32(dev->device->of_node,
670 dev_warn(dev->device, "setting clock-frequency@%dHz\n",
676 if (of_device_is_compatible(dev->device->of_node,
698 dev_info(dev->device, "%s@%dhz registered in %s mode\n",
717 static int brcmstb_i2c_suspend(struct device *dev)
725 static int brcmstb_i2c_resume(struct device *dev)