Lines Matching defs:phy
175 struct tpm_tis_tcg_phy *phy = to_tpm_tis_tcg_phy(data);
178 *result++ = ioread8(phy->iobase + addr);
186 struct tpm_tis_tcg_phy *phy = to_tpm_tis_tcg_phy(data);
189 iowrite8(*value++, phy->iobase + addr);
196 struct tpm_tis_tcg_phy *phy = to_tpm_tis_tcg_phy(data);
198 *result = ioread16(phy->iobase + addr);
205 struct tpm_tis_tcg_phy *phy = to_tpm_tis_tcg_phy(data);
207 *result = ioread32(phy->iobase + addr);
214 struct tpm_tis_tcg_phy *phy = to_tpm_tis_tcg_phy(data);
216 iowrite32(value, phy->iobase + addr);
231 struct tpm_tis_tcg_phy *phy;
241 phy = devm_kzalloc(dev, sizeof(struct tpm_tis_tcg_phy), GFP_KERNEL);
242 if (phy == NULL)
245 phy->iobase = devm_ioremap_resource(dev, &tpm_info->res);
246 if (IS_ERR(phy->iobase))
247 return PTR_ERR(phy->iobase);
253 phy->priv.flags |= TPM_TIS_ITPM_WORKAROUND;
255 return tpm_tis_core_init(dev, &phy->priv, irq, &tpm_tcg,