/openbmc/u-boot/drivers/tpm/ |
H A D | tpm2_tis_core.c | 30 * tpm_tis_check_locality - Check the current TPM locality 33 * @loc: locality 35 * Return: True if the tested locality matches 41 u8 locality; in tpm_tis_check_locality() local 43 phy_ops->read_bytes(dev, TPM_ACCESS(loc), 1, &locality); in tpm_tis_check_locality() 44 if ((locality & (TPM_ACCESS_ACTIVE_LOCALITY | TPM_ACCESS_VALID | in tpm_tis_check_locality() 47 chip->locality = loc; in tpm_tis_check_locality() 55 * tpm_tis_request_locality - Request a locality from the TPM 58 * @loc: requested locality 97 if (chip->locality < 0) in tpm_tis_status() [all …]
|
H A D | tpm_tis_lpc.c | 12 * slb9635), so this driver provides access to locality 0 only. 204 u8 locality = 0; in tis_senddata() local 207 value = tis_wait_reg(priv, ®s[locality].tpm_status, in tis_senddata() 228 ®s[locality].tpm_status)); in tis_senddata() 245 ®s[locality].data); in tis_senddata() 247 value = tis_wait_reg(priv, ®s[locality].tpm_status, in tis_senddata() 268 tpm_write_byte(priv, data[offset++], ®s[locality].data); in tis_senddata() 273 value = tis_wait_reg(priv, ®s[locality].tpm_status, in tis_senddata() 282 tpm_write_word(priv, TIS_STS_TPM_GO, ®s[locality].tpm_status); in tis_senddata() 305 u8 locality = 0; in tis_readresponse() local [all …]
|
H A D | tpm2_tis_spi.c | 203 chip->locality = loc; in tpm_tis_spi_check_locality() 237 log(LOGC_NONE, LOGL_ERR, "%s: Failed to get locality: %d\n", in tpm_tis_spi_request_locality() 258 "%s: Failed to get locality: %d\n", __func__, ret); in tpm_tis_spi_request_locality() 265 log(LOGC_NONE, LOGL_ERR, "%s: Timeout getting locality: %d\n", __func__, in tpm_tis_spi_request_locality() 275 return tpm_tis_spi_read(dev, TPM_STS(chip->locality), status, 1); in tpm_tis_spi_status() 308 ret = tpm_tis_spi_read32(dev, TPM_STS(chip->locality), in tpm_tis_spi_get_burstcount() 328 return tpm_tis_spi_write(dev, TPM_STS(chip->locality), &data, 1); in tpm_tis_spi_cancel() 346 ret = tpm_tis_spi_read(dev, TPM_DATA_FIFO(chip->locality), in tpm_tis_spi_recv_data() 393 tpm_tis_spi_release_locality(dev, chip->locality, false); in tpm_tis_spi_recv() 450 ret = tpm_tis_spi_write(dev, TPM_DATA_FIFO(chip->locality), in tpm_tis_spi_send() [all …]
|
H A D | tpm_tis_infineon.c | 203 chip->locality = loc; in tpm_tis_i2c_check_locality() 234 debug("%s: Already have locality\n", __func__); in tpm_tis_i2c_request_locality() 235 return loc; /* We already have the locality */ in tpm_tis_i2c_request_locality() 237 debug("%s: Failed to get locality: %d\n", __func__, rc); in tpm_tis_i2c_request_locality() 253 debug("%s: Have locality\n", __func__); in tpm_tis_i2c_request_locality() 256 debug("%s: Failed to get locality: %d\n", __func__, rc); in tpm_tis_i2c_request_locality() 261 debug("%s: Timeout getting locality: %d\n", __func__, rc); in tpm_tis_i2c_request_locality() 272 if (tpm_tis_i2c_read(dev, TPM_STS(chip->locality), &buf, 1) < 0) in tpm_tis_i2c_status() 287 rc = tpm_tis_i2c_write_long(dev, TPM_STS(chip->locality), &buf, 1); in tpm_tis_i2c_ready() 307 addr = TPM_STS(chip->locality) + 1; in tpm_tis_i2c_get_burstcount() [all …]
|
H A D | tpm_tis_st33zp24_i2c.c | 111 * st33zp24_i2c_release_locality release the active locality 122 * st33zp24_i2c_check_locality if the locality is active 124 * @return: the active locality or -EACCES. 136 return chip->locality; in st33zp24_i2c_check_locality() 142 * st33zp24_i2c_request_locality request the TPM locality 144 * @return: the active locality or negative value. 153 if (st33zp24_i2c_check_locality(dev) == chip->locality) in st33zp24_i2c_request_locality() 154 return chip->locality; in st33zp24_i2c_request_locality() 161 /* wait for locality activated */ in st33zp24_i2c_request_locality() 166 return chip->locality; in st33zp24_i2c_request_locality() [all …]
|
H A D | tpm_tis_st33zp24_spi.c | 157 * @param: tpm_loc, the locality to read register from 241 * st33zp24_spi_release_locality release the active locality 252 * st33zp24_spi_check_locality if the locality is active 254 * @return: the active locality or -EACCES. 266 return chip->locality; in st33zp24_spi_check_locality() 272 * st33zp24_spi_request_locality request the TPM locality 274 * @return: the active locality or negative value. 283 if (st33zp24_spi_check_locality(dev) == chip->locality) in st33zp24_spi_request_locality() 284 return chip->locality; in st33zp24_spi_request_locality() 291 /* wait for locality activated */ in st33zp24_spi_request_locality() [all …]
|
H A D | tpm2_tis_i2c.c | 113 * Force locality 0. The core driver doesn't actually write the in tpm_tis_i2c_probe() 114 * locality register and instead just reads/writes various access in tpm_tis_i2c_probe() 115 * bits of the selected locality. in tpm_tis_i2c_probe()
|
H A D | tpm_tis.h | 108 int locality; member 202 * tpm_tis_open - Open the device and request locality 0 210 * tpm_tis_close - Close the device and release locality 217 /** tpm_tis_cleanup - Get the device in ready state and release locality
|
H A D | tpm_atmel_twi.c | 22 * Requests access to locality 0 for the caller. After all commands have been 36 * locality. Returns 0 on success of -1 on failure (in case lock
|
/openbmc/qemu/hw/tpm/ |
H A D | trace-events | 9 tpm_tis_new_active_locality(uint8_t locty) "Active locality is now %d" 10 tpm_tis_abort(uint8_t locty) "New active locality is %d" 14 tpm_tis_mmio_write_locty4(void) "Access to locality 4 only allowed from hardware" 15 tpm_tis_mmio_write_release_locty(uint8_t locty) "Releasing locality %d" 16 tpm_tis_mmio_write_locty_req_use(uint8_t locty) "Locality %d requests use" 17 tpm_tis_mmio_write_next_locty(uint8_t locty) "Next active locality is %d" 18 tpm_tis_mmio_write_locty_seized(uint8_t locty, uint8_t active) "Locality %d seized from locality %d"
|
H A D | tpm_tis_common.c | 154 /* reset flags on the old active locality */ in tpm_tis_new_active_locality() 167 /* set flags on the new active locality */ in tpm_tis_new_active_locality() 178 /* abort -- this function switches the locality */ 187 * which locality will become active afterwards. in tpm_tis_abort() 196 /* locality after abort is another one than the current one */ in tpm_tis_abort() 212 s->next_locty = newlocty; /* locality after successful abort */ in tpm_tis_prep_abort() 305 printf("tpm_tis: active locality : %d\n" in tpm_tis_dump_state() 306 "tpm_tis: state of locality %d : %d\n" in tpm_tis_dump_state() 516 /* give up locality if currently owned */ in tpm_tis_mmio_write() 521 /* anybody wants the locality ? */ in tpm_tis_mmio_write() [all …]
|
H A D | tpm_tis_i2c.c | 34 /* Is locality valid */ 46 uint8_t loc_sel; /* Current locality */ 197 /* Include the locality in the address. */ in tpm_tis_i2c_to_tis_reg() 238 * This register is not handled by TIS so save the locality in tpm_tis_i2c_tpm_send()
|
H A D | tpm_tis.h | 46 /* locality data -- all fields are persisted */
|
/openbmc/qemu/tests/qtest/ |
H A D | tpm-tis-util.c | 80 /* do not test locality 4 (hw only) */ in tpm_tis_test_check_access_reg() 86 /* request use of locality */ in tpm_tis_test_check_access_reg() 104 * Test case for seizing access by a higher number locality 112 /* do not test locality 4 (hw only) */ in tpm_tis_test_check_access_reg_seize() 120 /* request use of locality */ in tpm_tis_test_check_access_reg_seize() 129 /* lower locality is not active */ in tpm_tis_test_check_access_reg_seize() 151 * locality 'locty' must be unchanged; in tpm_tis_test_check_access_reg_seize() 170 /* locality 'locty' must be unchanged */ in tpm_tis_test_check_access_reg_seize() 179 * set for locality 'l' in tpm_tis_test_check_access_reg_seize() 204 * locality 'l-1' must be unchanged; we should always in tpm_tis_test_check_access_reg_seize() [all …]
|
H A D | tpm-tis-i2c-test.c | 98 * All register accesses below must work without locality 0 being the in tpm_tis_i2c_test_basic() 99 * active locality. Therefore, ensure access is released. in tpm_tis_i2c_test_basic() 137 /* request use of locality */ in tpm_tis_i2c_test_basic() 154 /* select locality 5 -- must not be possible */ in tpm_tis_i2c_test_basic() 189 /* locality selection must be at locty */ in tpm_tis_i2c_test_check_localities() 200 /* do not test locality 4 (hw only) */ in tpm_tis_i2c_test_check_access_reg() 206 /* request use of locality */ in tpm_tis_i2c_test_check_access_reg() 225 * Test case for seizing access by a higher number locality 233 /* do not test locality 4 (hw only) */ in tpm_tis_i2c_test_check_access_reg_seize() 241 /* request use of locality */ in tpm_tis_i2c_test_check_access_reg_seize() [all …]
|
H A D | tpm-crb-test.c | 67 /* request access to locality 0 */ in tpm_crb_test() 75 /* we must have an assigned locality */ in tpm_crb_test() 122 /* relinquish locality */ in tpm_crb_test() 130 /* no locality may be assigned */ in tpm_crb_test()
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-extended/hwloc/ |
H A D | hwloc_2.9.3.bb | 1 SUMMARY = "Portable Hardware Locality (hwloc) software package" 2 DESCRIPTION = "The Portable Hardware Locality (hwloc) software package \
|
/openbmc/openbmc/meta-openembedded/meta-networking/recipes-support/ipvsadm/ |
H A D | ipvsadm_1.31.bb | 11 locality-based least-connection, locality-based least-connection with replication, \
|
/openbmc/u-boot/include/ |
H A D | tpm-common.h | 91 * open() - Request access to locality 0 for the caller 104 * Releasing the locked locality. Returns 0 on success, -ve 1 on 208 * tpm_open() - Request access to locality 0 for the caller 221 * Releasing the locked locality. Returns 0 on success, -ve 1 on
|
/openbmc/openbmc/poky/meta/recipes-devtools/apt/apt/ |
H A D | 0001-Remove-using-std-binary_function.patch | 69 // Sort by cache DB to improve IO locality. 80 // Sort by cache DB to improve IO locality.
|
/openbmc/qemu/backends/tpm/ |
H A D | trace-events | 17 tpm_emulator_set_locality(uint8_t locty) "setting locality to %d"
|
/openbmc/qemu/include/system/ |
H A D | numa.h | 92 /* NUMA nodes HMAT Locality Latency and Bandwidth Information */
|
/openbmc/openbmc/poky/documentation/ref-manual/ |
H A D | varlocality.rst | 9 often associated with a particular locality or context. This chapter
|
/openbmc/qemu/hw/acpi/ |
H A D | hmat.c | 73 * ACPI 6.3: 5.2.27.4 System Locality Latency and Bandwidth Information 234 * ACPI 6.3: 5.2.27.4 System Locality Latency and Bandwidth Information in hmat_build_table_structs()
|
/openbmc/phosphor-dbus-interfaces/yaml/xyz/openbmc_project/Certs/ |
H A D | Certificate.interface.yaml | 83 Here C=country, ST=state, L=locality, O=organization, CN= common name.
|