Home
last modified time | relevance | path

Searched full:locality (Results 1 – 25 of 61) sorted by relevance

123

/openbmc/u-boot/drivers/tpm/
H A Dtpm2_tis_core.c30 * 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 Dtpm_tis_lpc.c12 * slb9635), so this driver provides access to locality 0 only.
204 u8 locality = 0; in tis_senddata() local
207 value = tis_wait_reg(priv, &regs[locality].tpm_status, in tis_senddata()
228 &regs[locality].tpm_status)); in tis_senddata()
245 &regs[locality].data); in tis_senddata()
247 value = tis_wait_reg(priv, &regs[locality].tpm_status, in tis_senddata()
268 tpm_write_byte(priv, data[offset++], &regs[locality].data); in tis_senddata()
273 value = tis_wait_reg(priv, &regs[locality].tpm_status, in tis_senddata()
282 tpm_write_word(priv, TIS_STS_TPM_GO, &regs[locality].tpm_status); in tis_senddata()
305 u8 locality = 0; in tis_readresponse() local
[all …]
H A Dtpm2_tis_spi.c203 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 Dtpm_tis_infineon.c203 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 Dtpm_tis_st33zp24_i2c.c111 * 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 Dtpm_tis_st33zp24_spi.c157 * @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 Dtpm2_tis_i2c.c113 * 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 Dtpm_tis.h108 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 Dtpm_atmel_twi.c22 * 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 Dtrace-events9 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 Dtpm_tis_common.c154 /* 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 Dtpm_tis_i2c.c34 /* 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 Dtpm_tis.h46 /* locality data -- all fields are persisted */
/openbmc/qemu/tests/qtest/
H A Dtpm-tis-util.c80 /* 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 Dtpm-tis-i2c-test.c98 * 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 Dtpm-crb-test.c67 /* 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 Dhwloc_2.9.3.bb1 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 Dipvsadm_1.31.bb11 locality-based least-connection, locality-based least-connection with replication, \
/openbmc/u-boot/include/
H A Dtpm-common.h91 * 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 D0001-Remove-using-std-binary_function.patch69 // Sort by cache DB to improve IO locality.
80 // Sort by cache DB to improve IO locality.
/openbmc/qemu/backends/tpm/
H A Dtrace-events17 tpm_emulator_set_locality(uint8_t locty) "setting locality to %d"
/openbmc/qemu/include/system/
H A Dnuma.h92 /* NUMA nodes HMAT Locality Latency and Bandwidth Information */
/openbmc/openbmc/poky/documentation/ref-manual/
H A Dvarlocality.rst9 often associated with a particular locality or context. This chapter
/openbmc/qemu/hw/acpi/
H A Dhmat.c73 * 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 DCertificate.interface.yaml83 Here C=country, ST=state, L=locality, O=organization, CN= common name.

123