Lines Matching refs:iot
953 tpm_legacy_in(bus_space_tag_t iot, bus_space_handle_t ioh, int reg) in tpm_legacy_in() argument
955 bus_space_write_1(iot, ioh, 0, reg); in tpm_legacy_in()
956 return bus_space_read_1(iot, ioh, 1); in tpm_legacy_in()
962 tpm_legacy_out(bus_space_tag_t iot, bus_space_handle_t ioh, int reg, u_int8_t v)
964 bus_space_write_1(iot, ioh, 0, reg);
965 bus_space_write_1(iot, ioh, 1, v);
971 tpm_legacy_probe(bus_space_tag_t iot, bus_addr_t iobase) in tpm_legacy_probe() argument
981 if (bus_space_map(iot, iobase, 2, 0, &ioh)) in tpm_legacy_probe()
984 v = bus_space_read_1(iot, ioh, 0); in tpm_legacy_probe()
986 bus_space_unmap(iot, ioh, 2); in tpm_legacy_probe()
989 r = bus_space_read_1(iot, ioh, 1); in tpm_legacy_probe()
992 id[i] = tpm_legacy_in(iot, ioh, TPM_ID + i); in tpm_legacy_probe()
1006 bus_space_write_1(iot, ioh, r, 1); in tpm_legacy_probe()
1007 bus_space_write_1(iot, ioh, v, 0); in tpm_legacy_probe()
1009 bus_space_unmap(iot, ioh, 2); in tpm_legacy_probe()