Lines Matching defs:device
6 #include <linux/device.h>
155 struct device *device;
211 dev_dbg(dev->device, "isr CTL_REG %x IIC_EN %x\n",
220 dev_dbg(dev->device, "isr handled");
224 /* Wait for device to be ready */
303 dev_dbg(dev->device, "intr timeout for cmd %s\n",
311 dev_dbg(dev->device, "controller received NOACK intr for %s\n",
376 dev_dbg(dev->device, "%s failure", cmd_string[cmd]);
463 dev_dbg(dev->device,
479 dev_dbg(dev->device,
554 dev_warn(dev->device, "leaving current clock-frequency @ %dHz\n",
577 struct platform_device *pdev = to_platform_device(dev->device);
612 dev->device = &pdev->dev;
620 if (of_device_is_compatible(dev->device->of_node,
627 rc = of_property_read_string(dev->device->of_node, "interrupt-names",
646 dev_dbg(dev->device, "falling back to polling mode");
651 if (of_property_read_u32(dev->device->of_node,
653 dev_warn(dev->device, "setting clock-frequency@%dHz\n",
659 if (of_device_is_compatible(dev->device->of_node,
679 dev_info(dev->device, "%s@%dhz registered in %s mode\n",
693 static int brcmstb_i2c_suspend(struct device *dev)
701 static int brcmstb_i2c_resume(struct device *dev)