Lines Matching refs:tpm_info
32 struct tpm_info { struct
221 static int tpm_tis_init(struct device *dev, struct tpm_info *tpm_info) in tpm_tis_init() argument
235 phy->iobase = devm_ioremap_resource(dev, &tpm_info->res); in tpm_tis_init()
240 irq = tpm_info->irq; in tpm_tis_init()
254 struct tpm_info tpm_info = {}; in tpm_tis_pnp_init() local
260 tpm_info.res = *res; in tpm_tis_pnp_init()
263 tpm_info.irq = pnp_irq(pnp_dev, 0); in tpm_tis_pnp_init()
265 tpm_info.irq = -1; in tpm_tis_pnp_init()
267 return tpm_tis_init(&pnp_dev->dev, &tpm_info); in tpm_tis_pnp_init()
318 struct tpm_info tpm_info = {}; in tpm_tis_plat_probe() local
326 tpm_info.res = *res; in tpm_tis_plat_probe()
328 tpm_info.irq = platform_get_irq_optional(pdev, 0); in tpm_tis_plat_probe()
329 if (tpm_info.irq <= 0) { in tpm_tis_plat_probe()
331 tpm_info.irq = -1; in tpm_tis_plat_probe()
334 tpm_info.irq = 0; in tpm_tis_plat_probe()
337 return tpm_tis_init(&pdev->dev, &tpm_info); in tpm_tis_plat_probe()