Lines Matching defs:phy
40 struct tpm_tis_synquacer_phy *phy = to_tpm_tis_tcg_phy(data);
43 *result++ = ioread8(phy->iobase + addr);
51 struct tpm_tis_synquacer_phy *phy = to_tpm_tis_tcg_phy(data);
54 iowrite8(*value++, phy->iobase + addr);
62 struct tpm_tis_synquacer_phy *phy = to_tpm_tis_tcg_phy(data);
68 *result = (ioread8(phy->iobase + addr + 1) << 8) |
69 (ioread8(phy->iobase + addr));
77 struct tpm_tis_synquacer_phy *phy = to_tpm_tis_tcg_phy(data);
83 *result = (ioread8(phy->iobase + addr + 3) << 24) |
84 (ioread8(phy->iobase + addr + 2) << 16) |
85 (ioread8(phy->iobase + addr + 1) << 8) |
86 (ioread8(phy->iobase + addr));
94 struct tpm_tis_synquacer_phy *phy = to_tpm_tis_tcg_phy(data);
100 iowrite8(value >> 24, phy->iobase + addr + 3);
101 iowrite8(value >> 16, phy->iobase + addr + 2);
102 iowrite8(value >> 8, phy->iobase + addr + 1);
103 iowrite8(value, phy->iobase + addr);
119 struct tpm_tis_synquacer_phy *phy;
121 phy = devm_kzalloc(dev, sizeof(struct tpm_tis_synquacer_phy), GFP_KERNEL);
122 if (phy == NULL)
125 phy->iobase = devm_ioremap_resource(dev, &tpm_info->res);
126 if (IS_ERR(phy->iobase))
127 return PTR_ERR(phy->iobase);
129 return tpm_tis_core_init(dev, &phy->priv, tpm_info->irq, &tpm_tcg_bw,