/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 | 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 | 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()
|
/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/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 …]
|
/openbmc/linux/drivers/char/tpm/ |
H A D | tpm_tis_core.c | 164 priv->locality = l; in check_locality() 252 rc = tpm_tis_read8(priv, TPM_STS(priv->locality), &status); in tpm_tis_status() 260 * returning 0xff because the locality hasn't been in tpm_tis_status() 286 tpm_tis_write8(priv, TPM_STS(priv->locality), TPM_STS_COMMAND_READY); in tpm_tis_ready() 302 rc = tpm_tis_read32(priv, TPM_STS(priv->locality), &value); in get_burstcount() 333 rc = tpm_tis_read_bytes(priv, TPM_DATA_FIFO(priv->locality), in recv_data() 416 tpm_tis_write8(priv, TPM_STS(priv->locality), in tpm_tis_recv() 458 rc = tpm_tis_write_bytes(priv, TPM_DATA_FIFO(priv->locality), in tpm_tis_send_data() 478 rc = tpm_tis_write8(priv, TPM_DATA_FIFO(priv->locality), buf[count]); in tpm_tis_send_data() 511 tpm_tis_read32(priv, TPM_INT_ENABLE(priv->locality), &int_mask); in __tpm_tis_disable_interrupts() [all …]
|
H A D | tpm_i2c_infineon.c | 61 int locality; member 323 tpm_dev.locality = loc; in check_locality() 372 if (iic_tpm_read(TPM_STS(tpm_dev.locality), &buf, 1) < 0) in tpm_tis_i2c_status() 386 iic_tpm_write_long(TPM_STS(tpm_dev.locality), &buf, 1); in tpm_tis_i2c_ready() 400 if (iic_tpm_read(TPM_STS(tpm_dev.locality)+1, buf, 3) < 0) in get_burstcount() 454 rc = iic_tpm_read(TPM_DATA_FIFO(tpm_dev.locality), in recv_data() 513 release_locality(chip, tpm_dev.locality, 0); in tpm_tis_i2c_recv() 552 rc = iic_tpm_write(TPM_DATA_FIFO(tpm_dev.locality), in tpm_tis_i2c_send() 575 iic_tpm_write(TPM_DATA_FIFO(tpm_dev.locality), &(buf[count]), 1); in tpm_tis_i2c_send() 583 iic_tpm_write(TPM_STS(tpm_dev.locality), &sts, 1); in tpm_tis_i2c_send() [all …]
|
H A D | tpm_tis_i2c.c | 80 * For most addresses this can be done by simply stripping off the locality 86 * Locality information is ignored, since this driver assumes exclusive access 87 * to the TPM and always uses locality 0. 334 const u8 locality = 0; in tpm_tis_i2c_probe() local 354 ret = tpm_tis_i2c_write_bytes(&phy->priv, TPM_LOC_SEL, sizeof(locality), in tpm_tis_i2c_probe() 355 &locality, TPM_TIS_PHYS_8); in tpm_tis_i2c_probe()
|
H A D | tpm_vtpm_proxy.c | 395 static int vtpm_proxy_request_locality(struct tpm_chip *chip, int locality) in vtpm_proxy_request_locality() argument 410 tpm_buf_append_u8(&buf, locality); in vtpm_proxy_request_locality() 414 rc = tpm_transmit_cmd(chip, &buf, 0, "attempting to set locality"); in vtpm_proxy_request_locality() 419 locality = rc; in vtpm_proxy_request_locality() 426 locality = -1; in vtpm_proxy_request_locality() 431 return locality; in vtpm_proxy_request_locality()
|
/openbmc/linux/Documentation/filesystems/ext4/ |
H A D | allocators.rst | 6 ext4 recognizes (better than ext3, anyway) that data locality is 11 but locality can increase the size of each transfer request while 12 reducing the total number of requests. This locality may also have the 45 maintain data locality. However, there is a deliberate quirk -- when a
|
/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/linux/Documentation/core-api/ |
H A D | workqueue.rst | 98 things like CPU locality, concurrency limits, priority and more. To 173 possible. Unbound wq sacrifices locality but is useful for 347 level of locality in wq operations and work item execution. 354 cache locality. For example, if a workqueue is using the default affinity 408 locality while still being able to utilize other CPUs if necessary and 423 kernel, there exists a pronounced trade-off between locality and utilization 426 Higher locality leads to higher efficiency where more work is performed for 427 the same number of consumed CPU cycles. However, higher locality may also 449 execution locality matter between the issuer and ``kcryptd``. The followings 477 locality. [all …]
|
/openbmc/linux/drivers/char/tpm/st33zp24/ |
H A D | st33zp24.c | 101 * if the locality is active 126 return tpm_dev->locality; in request_locality() 135 /* Request locality is usually effective after the request */ in request_locality() 138 return tpm_dev->locality; in request_locality() 142 /* could not get locality */ in request_locality() 472 tpm_dev->locality = LOCALITY0; in st33zp24_probe()
|
/openbmc/linux/Documentation/mm/ |
H A D | multigen_lru.rst | 18 * Try to profit from spatial locality 29 Exploiting spatial locality improves efficiency when gathering the 72 * Accesses exhibiting temporal locality 73 * Accesses not exhibiting temporal locality 189 ``lru_gen_look_around()`` exploits spatial locality to reduce the
|
/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/linux/kernel/sched/ |
H A D | features.h | 14 * touched, increases cache locality. 20 * cache buddy being migrated away, increases cache locality.
|
/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
|