Lines Matching refs:addr
172 static int tpm_tcg_read_bytes(struct tpm_tis_data *data, u32 addr, u16 len,
178 *result++ = ioread8(phy->iobase + addr);
183 static int tpm_tcg_write_bytes(struct tpm_tis_data *data, u32 addr, u16 len,
189 iowrite8(*value++, phy->iobase + addr);
194 static int tpm_tcg_read16(struct tpm_tis_data *data, u32 addr, u16 *result)
198 *result = ioread16(phy->iobase + addr);
203 static int tpm_tcg_read32(struct tpm_tis_data *data, u32 addr, u32 *result)
207 *result = ioread32(phy->iobase + addr);
212 static int tpm_tcg_write32(struct tpm_tis_data *data, u32 addr, u32 value)
216 iowrite32(value, phy->iobase + addr);