Home
last modified time | relevance | path

Searched refs:tpm_sc (Results 1 – 4 of 4) sorted by relevance

/freebsd-14-stable/sys/dev/tpm/
HDtpm20.h104 struct tpm_sc { struct
130 int (*transmit)(struct tpm_sc *, size_t); argument
136 int tpm20_init(struct tpm_sc *sc);
137 void tpm20_release(struct tpm_sc *sc);
141 RD1(struct tpm_sc *sc, bus_size_t off) in RD1()
147 RD4(struct tpm_sc *sc, bus_size_t off) in RD4()
154 RD8(struct tpm_sc *sc, bus_size_t off) in RD8()
161 WR1(struct tpm_sc *sc, bus_size_t off, uint8_t val) in WR1()
167 WR4(struct tpm_sc *sc, bus_size_t off, uint32_t val) in WR4()
173 AND4(struct tpm_sc *sc, bus_size_t off, uint32_t val) in AND4()
[all …]
HDtpm_tis.c75 static int tpmtis_transmit(struct tpm_sc *sc, size_t length);
83 static void tpmtis_setup_intr(struct tpm_sc *sc);
85 static bool tpmtis_read_bytes(struct tpm_sc *sc, size_t count, uint8_t *buf);
86 static bool tpmtis_write_bytes(struct tpm_sc *sc, size_t count, uint8_t *buf);
87 static bool tpmtis_request_locality(struct tpm_sc *sc, int locality);
88 static void tpmtis_relinquish_locality(struct tpm_sc *sc);
89 static bool tpmtis_go_ready(struct tpm_sc *sc);
91 static bool tpm_wait_for_u32(struct tpm_sc *sc, bus_size_t off,
94 static uint16_t tpmtis_wait_for_burst(struct tpm_sc *sc);
121 struct tpm_sc *sc; in tpmtis_attach()
[all …]
HDtpm_crb.c79 struct tpm_sc base;
86 int tpmcrb_transmit(struct tpm_sc *sc, size_t size);
94 static bool tpm_wait_for_u32(struct tpm_sc *sc, bus_size_t off,
96 static bool tpmcrb_request_locality(struct tpm_sc *sc, int locality);
97 static void tpmcrb_relinquish_locality(struct tpm_sc *sc);
98 static bool tpmcrb_cancel_cmd(struct tpm_sc *sc);
148 struct tpm_sc *sc; in tpmcrb_attach()
233 struct tpm_sc *sc; in tpmcrb_detach()
246 tpm_wait_for_u32(struct tpm_sc *sc, bus_size_t off, uint32_t mask, uint32_t val, in tpm_wait_for_u32()
265 tpmcrb_request_locality(struct tpm_sc *sc, int locality) in tpmcrb_request_locality()
[all …]
HDtpm20.c69 struct tpm_sc *sc; in tpm20_read()
73 sc = (struct tpm_sc *)dev->si_drv1; in tpm20_read()
100 struct tpm_sc *sc; in tpm20_write()
104 sc = (struct tpm_sc *)dev->si_drv1; in tpm20_write()
145 struct tpm_sc *sc; in tpm20_discard_buffer()
147 sc = (struct tpm_sc *)arg; in tpm20_discard_buffer()
186 tpm20_init(struct tpm_sc *sc) in tpm20_init()
217 tpm20_release(struct tpm_sc *sc) in tpm20_release()
255 struct tpm_sc *sc; in tpm20_harvest()
302 struct tpm_sc *sc; in tpm20_save_state()