Lines Matching defs:device
10 * This device driver implements the TPM interface as defined in
131 * __crb_go_idle - request tpm crb device to go the idle state
133 * @dev: crb device
137 * The device should respond within TIMEOUT_C by clearing the bit.
146 static int __crb_go_idle(struct device *dev, struct crb_priv *priv)
168 struct device *dev = &chip->dev;
175 * __crb_cmd_ready - request tpm crb device to enter ready state
177 * @dev: crb device
181 * and poll till the device acknowledge it by clearing the bit.
182 * The device should respond within TIMEOUT_C.
189 static int __crb_cmd_ready(struct device *dev, struct crb_priv *priv)
210 struct device *dev = &chip->dev;
216 static int __crb_request_locality(struct device *dev,
242 static int __crb_relinquish_locality(struct device *dev,
336 static int tpm_crb_smc_start(struct device *dev, unsigned long func_id)
351 static int tpm_crb_smc_start(struct device *dev, unsigned long func_id)
456 static void __iomem *crb_map_res(struct device *dev, struct resource *iores,
486 static u64 crb_fixup_cmd_size(struct device *dev, struct resource *io_res,
502 static int crb_map_io(struct acpi_device *device, struct crb_priv *priv,
508 struct device *dev = &device->dev;
521 ret = acpi_dev_get_resources(device, &acpi_resource_list,
575 * PTT HW bug w/a: wake up the device to access
659 static int crb_acpi_add(struct acpi_device *device)
664 struct device *dev = &device->dev;
704 priv->hid = acpi_device_hid(device);
706 rc = crb_map_io(device, priv, buf);
717 chip->acpi_dev_handle = device->handle;
727 static int crb_acpi_remove(struct acpi_device *device)
729 struct device *dev = &device->dev;