Lines Matching refs:iot
952 tpm_legacy_in(bus_space_tag_t iot, bus_space_handle_t ioh, int reg) in tpm_legacy_in() argument
954 bus_space_write_1(iot, ioh, 0, reg); in tpm_legacy_in()
955 return bus_space_read_1(iot, ioh, 1); in tpm_legacy_in()
961 tpm_legacy_out(bus_space_tag_t iot, bus_space_handle_t ioh, int reg, u_int8_t v)
963 bus_space_write_1(iot, ioh, 0, reg);
964 bus_space_write_1(iot, ioh, 1, v);
970 tpm_legacy_probe(bus_space_tag_t iot, bus_addr_t iobase) in tpm_legacy_probe() argument
980 if (bus_space_map(iot, iobase, 2, 0, &ioh)) in tpm_legacy_probe()
983 v = bus_space_read_1(iot, ioh, 0); in tpm_legacy_probe()
985 bus_space_unmap(iot, ioh, 2); in tpm_legacy_probe()
988 r = bus_space_read_1(iot, ioh, 1); in tpm_legacy_probe()
991 id[i] = tpm_legacy_in(iot, ioh, TPM_ID + i); in tpm_legacy_probe()
1005 bus_space_write_1(iot, ioh, r, 1); in tpm_legacy_probe()
1006 bus_space_write_1(iot, ioh, v, 0); in tpm_legacy_probe()
1008 bus_space_unmap(iot, ioh, 2); in tpm_legacy_probe()