Lines Matching defs:device
14 #include <linux/device.h>
120 * @dev: device private data
230 static void i2c_dw_acpi_params(struct device *device, char method[],
234 acpi_handle handle = ACPI_HANDLE(device);
255 int i2c_dw_acpi_configure(struct device *device)
257 struct dw_i2c_dev *dev = dev_get_drvdata(device);
265 i2c_dw_acpi_params(device, "SSCN", &dev->ss_hcnt, &dev->ss_lcnt, &ss_ht);
266 i2c_dw_acpi_params(device, "FPCN", &dev->fp_hcnt, &dev->fp_lcnt, &fp_ht);
267 i2c_dw_acpi_params(device, "HSCN", &dev->hs_hcnt, &dev->hs_lcnt, &hs_ht);
268 i2c_dw_acpi_params(device, "FMCN", &dev->fs_hcnt, &dev->fs_lcnt, &fs_ht);
290 static u32 i2c_dw_acpi_round_bus_speed(struct device *device)
295 acpi_speed = i2c_acpi_find_bus_speed(device);
310 static inline u32 i2c_dw_acpi_round_bus_speed(struct device *device) { return 0; }
320 * Find bus speed from the "clock-frequency" device property, ACPI