Home
last modified time | relevance | path

Searched refs:locality (Results 1 – 25 of 76) sorted by relevance

1234

/external/u-boot/drivers/tpm/
Dtpm_tis_lpc.c204 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
311 value = tis_wait_reg(priv, &regs[locality].tpm_status, in tis_readresponse()
[all …]
Dtpm2_tis_spi.c203 chip->locality = loc; in tpm_tis_spi_check_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()
467 ret = tpm_tis_spi_write(dev, TPM_DATA_FIFO(chip->locality), in tpm_tis_spi_send()
482 ret = tpm_tis_spi_write(dev, TPM_STS(chip->locality), &data, 1); in tpm_tis_spi_send()
490 tpm_tis_spi_release_locality(dev, chip->locality, false); in tpm_tis_spi_send()
[all …]
Dtpm_tis_infineon.c203 chip->locality = loc; in tpm_tis_i2c_check_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()
361 rc = tpm_tis_i2c_read(dev, TPM_DATA_FIFO(chip->locality), in tpm_tis_i2c_recv_data()
463 rc = tpm_tis_i2c_write(dev, TPM_DATA_FIFO(chip->locality), in tpm_tis_i2c_send()
483 rc = tpm_tis_i2c_write(dev, TPM_STS(chip->locality), &sts, 1); in tpm_tis_i2c_send()
501 tpm_tis_i2c_release_locality(dev, chip->locality, 0); in tpm_tis_i2c_cleanup()
576 tpm_tis_i2c_release_locality(dev, chip->locality, 1); in tpm_tis_i2c_close()
Dtpm_tis_st33zp24_i2c.c136 return chip->locality; in st33zp24_i2c_check_locality()
153 if (st33zp24_i2c_check_locality(dev) == chip->locality) in st33zp24_i2c_request_locality()
154 return chip->locality; in st33zp24_i2c_request_locality()
166 return chip->locality; in st33zp24_i2c_request_locality()
444 chip->locality = LOCALITY0; in st33zp24_i2c_init()
515 chip->locality = LOCALITY0; in st33zp24_i2c_probe()
Dtpm_tis_st33zp24_spi.c266 return chip->locality; in st33zp24_spi_check_locality()
283 if (st33zp24_spi_check_locality(dev) == chip->locality) in st33zp24_spi_request_locality()
284 return chip->locality; in st33zp24_spi_request_locality()
296 return chip->locality; in st33zp24_spi_request_locality()
573 chip->locality = LOCALITY0; in st33zp24_spi_init()
/external/tensorflow/tensorflow/core/common_runtime/gpu/
Dgpu_device_factory.cc31 Bytes memory_limit, const DeviceLocality& locality, in GPUDevice() argument
34 : BaseGPUDevice(options, name, memory_limit, locality, tf_gpu_id, in GPUDevice()
65 const DeviceLocality& locality, TfGpuId tf_gpu_id, in CreateGPUDevice() argument
68 return absl::make_unique<GPUDevice>(options, name, memory_limit, locality, in CreateGPUDevice()
83 Bytes memory_limit, const DeviceLocality& locality, in GPUCompatibleCPUDevice() argument
85 : ThreadPoolDevice(options, name, memory_limit, locality, allocator), in GPUCompatibleCPUDevice()
86 numa_node_(locality.numa_node()) { in GPUCompatibleCPUDevice()
125 DeviceLocality locality; in CreateDevices() local
126 locality.set_numa_node(numa_node); in CreateDevices()
Dgpu_device_test.cc208 ASSERT_EQ(1, devices[0]->attributes().locality().links().link_size()); in TEST_F()
209 ASSERT_EQ(1, devices[1]->attributes().locality().links().link_size()); in TEST_F()
210 EXPECT_EQ(1, devices[0]->attributes().locality().links().link(0).device_id()); in TEST_F()
212 devices[0]->attributes().locality().links().link(0).type()); in TEST_F()
214 devices[0]->attributes().locality().links().link(0).strength()); in TEST_F()
215 EXPECT_EQ(0, devices[1]->attributes().locality().links().link(0).device_id()); in TEST_F()
217 devices[1]->attributes().locality().links().link(0).type()); in TEST_F()
219 devices[1]->attributes().locality().links().link(0).strength()); in TEST_F()
/external/tensorflow/tensorflow/core/distributed_runtime/
Dworker_cache_partial.cc30 const string& device_name, DeviceLocality* locality) { in GetDeviceLocalityNonBlocking() argument
34 *locality = iter->second.locality(); in GetDeviceLocalityNonBlocking()
41 DeviceLocality* locality, in GetDeviceLocalityAsync() argument
43 if (!GetDeviceLocalityNonBlocking(device_name, locality)) { in GetDeviceLocalityAsync()
45 SchedClosure([this, &device_name, locality, done]() { in GetDeviceLocalityAsync()
47 if (s.ok() && !GetDeviceLocalityNonBlocking(device_name, locality)) { in GetDeviceLocalityAsync()
Ddevice_resolver_distributed.cc28 DeviceLocality* locality, in GetLocalityAsync() argument
35 *locality = dev->attributes().locality(); in GetLocalityAsync()
46 *locality = it->second.locality(); in GetLocalityAsync()
58 device, task, [this, device, task, locality, done](const Status& s) { in GetLocalityAsync()
62 GetLocalityAsync(device, task, locality, done); in GetLocalityAsync()
Ddevice_resolver_distributed_test.cc92 DeviceLocality* locality) override { in GetDeviceLocalityNonBlocking() argument
96 void GetDeviceLocalityAsync(const string& device, DeviceLocality* locality, in GetDeviceLocalityAsync() argument
119 *locality = it.locality(); in GetDeviceLocalityAsync()
193 DeviceLocality locality; in TEST_F() local
194 dres->GetLocalityAsync(dev_name, task_name, &locality, in TEST_F()
201 EXPECT_EQ(parsed.id, locality.numa_node()); in TEST_F()
Dworker_cache_wrapper.h65 DeviceLocality* locality) { in GetDeviceLocalityNonBlocking() argument
66 return wrapped_->GetDeviceLocalityNonBlocking(device, locality); in GetDeviceLocalityNonBlocking()
73 DeviceLocality* locality, in GetDeviceLocalityAsync() argument
75 return wrapped_->GetDeviceLocalityAsync(device, locality, std::move(done)); in GetDeviceLocalityAsync()
Dworker_session.cc62 DeviceLocality* locality) override { in GetDeviceLocalityNonBlocking() argument
63 return wrapped_->GetDeviceLocalityNonBlocking(device, locality); in GetDeviceLocalityNonBlocking()
66 void GetDeviceLocalityAsync(const string& device, DeviceLocality* locality, in GetDeviceLocalityAsync() argument
68 wrapped_->GetDeviceLocalityAsync(device, locality, done); in GetDeviceLocalityAsync()
Dtest_utils.h166 DeviceLocality* locality) override { in GetDeviceLocalityNonBlocking() argument
169 *locality = it->second; in GetDeviceLocalityNonBlocking()
175 void GetDeviceLocalityAsync(const string& device, DeviceLocality* locality, in GetDeviceLocalityAsync() argument
179 *locality = it->second; in GetDeviceLocalityAsync()
Dworker_cache_partial.h35 DeviceLocality* locality) override;
37 void GetDeviceLocalityAsync(const string& device, DeviceLocality* locality,
Dworker_cache.h66 DeviceLocality* locality) = 0;
72 DeviceLocality* locality,
Dcollective_rma_distributed_test.cc130 DeviceLocality* locality) override { in GetDeviceLocalityNonBlocking() argument
134 void GetDeviceLocalityAsync(const string& device, DeviceLocality* locality, in GetDeviceLocalityAsync() argument
157 *locality = it.locality(); in GetDeviceLocalityAsync()
Dcollective_param_resolver_distributed_test.cc90 DeviceLocality* locality) override { in GetDeviceLocalityNonBlocking() argument
94 void GetDeviceLocalityAsync(const string& device, DeviceLocality* locality, in GetDeviceLocalityAsync() argument
117 *locality = it.locality(); in GetDeviceLocalityAsync()
/external/tensorflow/tensorflow/core/common_runtime/
Ddevice_resolver_local.cc32 localities->push_back(dev->attributes().locality()); in GetDeviceLocalitiesAsync()
39 DeviceLocality* locality, in GetLocalityAsync() argument
44 *locality = dev->attributes().locality(); in GetLocalityAsync()
Ddevice.h187 const DeviceLocality& locality, const string& physical_device_desc);
191 const DeviceLocality& locality) { in BuildDeviceAttributes() argument
193 return BuildDeviceAttributes(name, device, memory_limit, locality, ""); in BuildDeviceAttributes()
Ddevice.cc44 const DeviceLocality& locality, const string& physical_device_desc) { in BuildDeviceAttributes() argument
52 *da.mutable_locality() = locality; in BuildDeviceAttributes()
Dthreadpool_device.cc46 const DeviceLocality& locality, in ThreadPoolDevice() argument
49 name, DEVICE_CPU, memory_limit, locality)), in ThreadPoolDevice()
Dcollective_rma_local.h62 DeviceLocality* locality, in GetLocalityAsync() argument
64 dev_resolver_->GetLocalityAsync(device, task, locality, done); in GetLocalityAsync()
/external/ImageMagick/MagickCore/
Dthread-private.h44 #define MagickCachePrefetch(address,mode,locality) \ argument
45 __builtin_prefetch(address,mode,locality)
47 #define MagickCachePrefetch(address,mode,locality) \
50 magick_unreferenced(locality);
/external/tensorflow/tensorflow/core/framework/
Ddevice_attributes.proto21 // Optional bus locality of device. Default value of 0 means
22 // no specific locality. Specific localities are indexed from 1.
25 // Optional NUMA locality of device.
44 DeviceLocality locality = 5; field
/external/swiftshader/third_party/llvm-subzero/include/llvm/Support/
DCompiler.h109 #define LLVM_PREFETCH(addr, rw, locality) __builtin_prefetch(addr, rw, locality) argument
111 #define LLVM_PREFETCH(addr, rw, locality) argument

1234