Searched refs:tpm_sc (Results 1 – 6 of 6) sorted by relevance
| /freebsd/sys/dev/tpm/ |
| H A D | tpm_tis_core.c | 82 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() 139 struct tpm_sc *sc; in tpmtis_detach() [all …]
|
| H A D | tpm_tis.c | |
| H A D | tpm_bus.c | 37 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 D | tpm20.h | 114 struct tpm_sc { struct 136 int (*transmit)(struct tpm_sc *, size_t); argument 143 int tpm20_init(struct tpm_sc *sc); 144 void tpm20_release(struct tpm_sc *sc); 158 AND4(struct tpm_sc *sc, bus_size_t off, uint32_t val) in AND4() 165 OR1(struct tpm_sc *sc, bus_size_t off, uint8_t val) in OR1() 172 OR4(struct tpm_sc *sc, bus_size_t off, uint32_t val) in OR4()
|
| H A D | tpm20.c | 69 struct tpm_sc *sc; in tpm20_read() 75 sc = (struct tpm_sc *)dev->si_drv1; in tpm20_read() 97 struct tpm_sc *sc; in tpm20_write() 102 sc = (struct tpm_sc *)dev->si_drv1; in tpm20_write() 183 tpm20_init(struct tpm_sc *sc) in tpm20_init() 212 tpm20_release(struct tpm_sc *sc) in tpm20_release() 234 struct tpm_sc *sc; in tpm20_resume() 247 struct tpm_sc *sc; in tpm20_suspend() 269 struct tpm_sc *sc; in tpm20_harvest() 314 struct tpm_sc *sc; in tpm20_restart() [all …]
|
| H A D | tpm_crb.c | 115 struct tpm_sc base; 138 static bool tpm_wait_for_u32(struct tpm_sc *sc, bus_size_t off, 140 static bool tpmcrb_request_locality(struct tpm_sc *sc, int locality); 141 static void tpmcrb_relinquish_locality(struct tpm_sc *sc); 142 static bool tpmcrb_cancel_cmd(struct tpm_sc *sc); 249 struct tpm_sc *sc; in tpmcrb_attach() 336 struct tpm_sc *sc; in tpmcrb_detach() 349 tpm_wait_for_u32(struct tpm_sc *sc, bus_size_t off, uint32_t mask, uint32_t val, in tpm_wait_for_u32() 368 tpmcrb_request_locality(struct tpm_sc *sc, int locality) in tpmcrb_request_locality() 386 tpmcrb_relinquish_locality(struct tpm_sc *sc) in tpmcrb_relinquish_locality() [all …]
|