Home
last modified time | relevance | path

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

/freebsd/sys/dev/tpm/
H A Dtpm_tis_core.c82 static void tpmtis_setup_intr(struct tpm_sc *sc);
84 static bool tpmtis_read_bytes(struct tpm_sc *sc, size_t count, uint8_t *buf);
85 static bool tpmtis_write_bytes(struct tpm_sc *sc, size_t count, uint8_t *buf);
86 static bool tpmtis_request_locality(struct tpm_sc *sc, int locality);
87 static void tpmtis_relinquish_locality(struct tpm_sc *sc);
88 static bool tpmtis_go_ready(struct tpm_sc *sc);
90 static bool tpm_wait_for_u32(struct tpm_sc *sc, bus_size_t off,
93 static uint16_t tpmtis_wait_for_burst(struct tpm_sc *sc);
98 struct tpm_sc *sc; in tpmtis_attach()
133 struct tpm_sc *sc; in tpmtis_detach()
[all …]
H A Dtpm_tis.c
H A Dtpm_bus.c37 struct tpm_sc *sc = device_get_softc(dev); in tpm_read_1()
45 struct tpm_sc *sc = device_get_softc(dev); in tpm_read_4()
57 struct tpm_sc *sc = device_get_softc(dev); in tpm_read_8()
66 struct tpm_sc *sc = device_get_softc(dev); in tpm_write_1()
74 struct tpm_sc *sc = device_get_softc(dev); in tpm_write_4()
82 struct tpm_sc *sc = device_get_softc(dev); in tpm_write_barrier()
99 DEFINE_CLASS_0(tpm_lbc, tpm_bus_driver, tpm_bus_methods, sizeof(struct tpm_sc));
H A Dtpm20.h108 struct tpm_sc { struct
135 int (*transmit)(struct tpm_sc *, size_t); argument
141 int tpm20_init(struct tpm_sc *sc);
142 void tpm20_release(struct tpm_sc *sc);
156 AND4(struct tpm_sc *sc, bus_size_t off, uint32_t val) in AND4()
163 OR1(struct tpm_sc *sc, bus_size_t off, uint8_t val) in OR1()
170 OR4(struct tpm_sc *sc, bus_size_t off, uint32_t val) in OR4()
H A Dtpm20.c69 struct tpm_sc *sc; in tpm20_read()
74 sc = (struct tpm_sc *)dev->si_drv1; in tpm20_read()
101 struct tpm_sc *sc; in tpm20_write()
105 sc = (struct tpm_sc *)dev->si_drv1; in tpm20_write()
146 struct tpm_sc *sc; in tpm20_discard_buffer()
148 sc = (struct tpm_sc *)arg; in tpm20_discard_buffer()
188 tpm20_init(struct tpm_sc *sc) in tpm20_init()
220 tpm20_release(struct tpm_sc *sc) in tpm20_release()
258 struct tpm_sc *sc; in tpm20_harvest()
306 struct tpm_sc *sc; in tpm20_save_state()
H A Dtpm_crb.c79 struct tpm_sc base;
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()
231 struct tpm_sc *sc; in tpmcrb_detach()
244 tpm_wait_for_u32(struct tpm_sc *sc, bus_size_t off, uint32_t mask, uint32_t val, in tpm_wait_for_u32()
263 tpmcrb_request_locality(struct tpm_sc *sc, int locality) in tpmcrb_request_locality()
281 tpmcrb_relinquish_locality(struct tpm_sc *sc) in tpmcrb_relinquish_locality()
[all …]