/trusty/user/app/sample/spi/swspi-srv/driver/ |
D | swspi.c | 30 bool spi_is_bus_shared(struct spi_dev_ctx* dev) { in spi_is_bus_shared() argument 31 return dev->bus->num_devs > 1; in spi_is_bus_shared() 34 static inline bool spi_dev_seq_active(struct spi_dev_ctx* dev) { in spi_dev_seq_active() argument 35 return dev->cmds; in spi_dev_seq_active() 38 static void spi_req_exec_set_clk(struct spi_dev_ctx* dev, void* priv) { in spi_req_exec_set_clk() argument 42 int spi_req_set_clk(struct spi_dev_ctx* dev, uint64_t* clk_hz) { in spi_req_set_clk() argument 43 assert(dev); in spi_req_set_clk() 46 dev->cmds[dev->curr_cmd].exec = spi_req_exec_set_clk; in spi_req_set_clk() 47 dev->curr_cmd++; in spi_req_set_clk() 51 static void spi_req_exec_cs_assert(struct spi_dev_ctx* dev, void* priv) { in spi_req_exec_cs_assert() argument [all …]
|
D | swspi.h | 47 void (*exec)(struct spi_dev_ctx* dev, void* priv);
|
/trusty/kernel/lib/trusty/ |
D | tipc_dev_ql.c | 135 static uint32_t alloc_local_addr(struct ql_tipc_dev* dev, in alloc_local_addr() argument 138 int slot = bitmap_ffz(dev->inuse, QL_TIPC_ADDR_MAX_NUM); in alloc_local_addr() 140 bitmap_set(dev->inuse, slot); in alloc_local_addr() 141 dev->epts[slot].chan = chan; in alloc_local_addr() 142 dev->epts[slot].cookie = cookie; in alloc_local_addr() 148 static struct tipc_ept* ept_lookup(struct ql_tipc_dev* dev, uint32_t local) { in ept_lookup() argument 151 if (bitmap_test(dev->inuse, slot)) { in ept_lookup() 152 return &dev->epts[slot]; in ept_lookup() 158 static uint32_t ept_to_addr(struct ql_tipc_dev* dev, struct tipc_ept* ept) { in ept_to_addr() argument 159 return slot_to_addr(ept - dev->epts); in ept_to_addr() [all …]
|
D | tipc_virtio_dev.c | 189 struct tipc_dev* dev; member 206 status_t release_shm(struct tipc_dev* dev, uint64_t shm_id); 217 if (release_shm(tem->dev, ext_mem_id) != NO_ERROR) { in tipc_ext_mem_destroy() 252 struct tipc_dev* dev, in tipc_ext_mem_initialize() argument 255 tem->dev = dev; in tipc_ext_mem_initialize() 262 static int tipc_send_data(struct tipc_dev* dev, 270 static int tipc_send_buf(struct tipc_dev* dev, 291 static uint32_t alloc_local_addr(struct tipc_dev* dev, in alloc_local_addr() argument 294 int slot = bitmap_ffz(dev->inuse, TIPC_ADDR_MAX_NUM); in alloc_local_addr() 296 bitmap_set(dev->inuse, slot); in alloc_local_addr() [all …]
|
/trusty/user/base/lib/spi/client/ |
D | client.c | 41 static int send_shm(struct spi_dev* dev, in send_shm() argument 62 rc = send_msg(dev->h, &msg); in send_shm() 93 static int shm_map(struct spi_dev* dev, void* shm_base, size_t shm_size) { in shm_map() argument 110 rc = send_shm(dev, &req, &shm_req, memref); in shm_map() 117 rc = handle_shm_resp(dev->h); in shm_map() 145 int spi_dev_open(struct spi_dev* dev, in spi_dev_open() argument 153 if (!dev || !name || max_num_cmds == 0) { in spi_dev_open() 158 rc = tipc_connect(&dev->h, name); in spi_dev_open() 175 rc = shm_map(dev, shm_base, shm_size); in spi_dev_open() 181 mb_init(&dev->shm, shm_base, shm_size, SPI_CMD_SHM_ALIGN); in spi_dev_open() [all …]
|
/trusty/user/app/sample/spi/swspi-test/ |
D | swspi-test.c | 48 struct spi_dev dev; member 80 rc = spi_dev_open(&test_dev->dev, test_dev->name, MAX_NUM_CMDS, in spi_dev_init_once() 122 struct spi_dev* dev = &test_dev->dev; in exec_xfer() local 125 rc = spi_add_set_clk_cmd(dev, CLK_SPEED, NULL); in exec_xfer() 128 rc = spi_add_cs_assert_cmd(dev); in exec_xfer() 131 rc = spi_add_data_xfer_cmd(dev, &tx, &rx, len); in exec_xfer() 134 rc = spi_add_cs_deassert_cmd(dev); in exec_xfer() 147 rc = spi_exec_cmds(dev, &failed); in exec_xfer() 166 spi_clear_cmds(&_state->test_dev->dev); in TEST_F_SETUP() 178 struct spi_dev* dev = &_state->test_dev->dev; in TEST_P() local [all …]
|
/trusty/user/base/lib/spi/srv/batch/include/lib/spi/srv/batch/ |
D | dev.h | 70 bool spi_is_bus_shared(struct spi_dev_ctx* dev); 90 int spi_req_set_clk(struct spi_dev_ctx* dev, uint64_t* clk_hz); 111 int spi_req_cs_assert(struct spi_dev_ctx* dev); 128 int spi_req_cs_deassert(struct spi_dev_ctx* dev); 154 int spi_req_xfer(struct spi_dev_ctx* dev, void* tx, void* rx, size_t len); 174 int spi_req_delay(struct spi_dev_ctx* dev, uint64_t delay_ns); 185 int spi_seq_begin(struct spi_dev_ctx* dev, size_t num_cmds); 196 int spi_seq_commit(struct spi_dev_ctx* dev); 205 void spi_seq_abort(struct spi_dev_ctx* dev);
|
/trusty/user/base/lib/spi/client/include/lib/spi/client/ |
D | spi.h | 63 int spi_dev_open(struct spi_dev* dev, 80 void spi_clear_cmds(struct spi_dev* dev); 95 int spi_exec_cmds(struct spi_dev* dev, size_t* failed); 122 int spi_add_data_xfer_cmd(struct spi_dev* dev, 139 int spi_add_cs_assert_cmd(struct spi_dev* dev); 153 int spi_add_cs_deassert_cmd(struct spi_dev* dev); 171 int spi_add_set_clk_cmd(struct spi_dev* dev, 193 int spi_add_delay_cmd(struct spi_dev* dev, uint64_t delay_ns);
|
/trusty/user/app/storage/ |
D | block_device_tipc.c | 148 static struct block_device_rpmb* dev_rpmb_to_state(struct block_device* dev) { in dev_rpmb_to_state() argument 149 assert(dev); in dev_rpmb_to_state() 150 return containerof(dev, struct block_device_rpmb, dev); in dev_rpmb_to_state() 153 static void block_device_tipc_rpmb_start_read(struct block_device* dev, in block_device_tipc_rpmb_start_read() argument 158 struct block_device_rpmb* dev_rpmb = dev_rpmb_to_state(dev); in block_device_tipc_rpmb_start_read() 160 assert(block < dev->block_count); in block_device_tipc_rpmb_start_read() 170 block_cache_complete_read(dev, block, tmp, BLOCK_SIZE_RPMB, in block_device_tipc_rpmb_start_read() 187 static void block_device_tipc_rpmb_start_write(struct block_device* dev, in block_device_tipc_rpmb_start_write() argument 194 struct block_device_rpmb* dev_rpmb = dev_rpmb_to_state(dev); in block_device_tipc_rpmb_start_write() 200 assert(block < dev->block_count); in block_device_tipc_rpmb_start_write() [all …]
|
D | block_cache.c | 116 assert(entry->dev); in block_cache_queue_io_op() 120 list_add_tail(&entry->dev->io_ops, &entry->io_op_node); in block_cache_queue_io_op() 132 entry->dev->start_read(entry->dev, entry->block); in block_cache_queue_read() 144 entry->dev->start_write(entry->dev, entry->block, encrypted_data, in block_cache_queue_write() 153 static void block_cache_complete_io(struct block_device* dev) { in block_cache_complete_io() argument 154 while (!list_is_empty(&dev->io_ops)) { in block_cache_complete_io() 155 assert(dev->wait_for_io); in block_cache_complete_io() 156 dev->wait_for_io(dev); in block_cache_complete_io() 174 static struct block_cache_entry* block_cache_pop_io_op(struct block_device* dev, in block_cache_pop_io_op() argument 179 list_for_every_entry(&dev->io_ops, entry, struct block_cache_entry, in block_cache_pop_io_op() [all …]
|
D | block_device.h | 49 void (*start_read)(struct block_device* dev, data_block_t block); 50 void (*start_write)(struct block_device* dev, 55 void (*wait_for_io)(struct block_device* dev);
|
D | block_cache.h | 35 void block_cache_complete_read(struct block_device* dev, 48 void block_cache_complete_write(struct block_device* dev, 54 void block_cache_dev_destroy(struct block_device* dev); 80 bool block_is_clean(struct block_device* dev, data_block_t block); 84 void block_discard_dirty_by_block(struct block_device* dev, data_block_t block);
|
D | super.c | 272 super_rw->block_size = tr->fs->dev->block_size; in update_super_block_internal() 276 super_rw->block_count = tr->fs->dev->block_count; in update_super_block_internal() 460 static bool super_block_valid(const struct block_device* dev, in super_block_valid() argument 485 if (super->block_size != dev->block_size) { in super_block_valid() 487 dev->block_size); in super_block_valid() 490 if (super->block_num_size != dev->block_num_size) { in super_block_valid() 492 super->block_num_size, dev->block_num_size); in super_block_valid() 495 if (super->mac_size != dev->mac_size) { in super_block_valid() 497 dev->mac_size); in super_block_valid() 500 if (!dev->tamper_detecting && super->mac_size != sizeof(struct mac)) { in super_block_valid() [all …]
|
D | block_device_tipc.h | 68 struct block_device dev; member 83 struct block_device dev; member
|
/trusty/vendor/google/aosp/scripts/ |
D | check_system_dependencies.sh | 7 libglib2.0-dev 8 libpixman-1-dev 9 libssl-dev 10 libusb-1.0-0-dev
|
/trusty/kernel/platform/generic-x86_64/ |
D | rules.mk | 31 dev/interrupt/x86_lapic \ 32 dev/timer/x86_generic \ 33 dev/virtio/vsock-rust \
|
/trusty/device/arm/generic-arm64/project/qemu/ |
D | firmware.android.dts | 9 dev = "/dev/block/vdb";
|
/trusty/kernel/platform/vexpress-a15/ |
D | rules.mk | 21 dev/interrupt/arm_gic \ 22 dev/timer/arm_generic
|
/trusty/hardware/nxp/platform/imx/ |
D | rules.mk | 74 dev/interrupt/arm_gic \ 75 dev/timer/arm_generic \
|
/trusty/user/app/sample/hwrng-unittest/ |
D | main.c | 172 uint32_t dev = 0; in TEST() local 200 dev += val; in TEST() 202 dev /= 256; in TEST() 208 EXPECT_GT(50, dev, "average dev"); in TEST()
|
/trusty/user/base/experimental/lib/tidl/ |
D | ipc_ql_tipc.cpp | 141 extern "C" int tidl_init(struct trusty_ipc_dev* dev) { in tidl_init() argument 142 assert(dev); in tidl_init() 144 assert(tidl_dev == dev); in tidl_init() 147 tidl_dev = dev; in tidl_init() 204 trusty_assert(chan->dev); in send_iovs() 232 trusty_assert(chan->dev); in recv_iovs()
|
/trusty/user/base/experimental/lib/tidl/include/lib/tidl/ |
D | tidl_ql_tipc.h | 28 int tidl_init(struct trusty_ipc_dev* dev);
|
/trusty/user/app/storage/test/block_host_test/ |
D | block_test.c | 136 struct block_device* dev = tr->fs->dev; in block_test_clear_reinit_etc() local 144 block_cache_dev_destroy(dev); in block_test_clear_reinit_etc() 158 ret = fs_init(fs, FILE_SYSTEM_TEST, key, dev, super_dev, flags); in block_test_clear_reinit_etc() 182 static void block_test_start_read(struct block_device* dev, in block_test_start_read() argument 184 assert(dev->block_size <= BLOCK_SIZE); in block_test_start_read() 186 block_cache_complete_read(dev, block, blocks[block].data, dev->block_size, in block_test_start_read() 190 static void block_test_start_write(struct block_device* dev, in block_test_start_write() argument 198 block_cache_complete_write(dev, block, in block_test_start_write() 312 block_tree_init(&checkpoint_files, tr->fs->dev->block_size, in check_fs_prepare() 317 for (block = tr->fs->dev->block_count; block < countof(blocks); block++) { in check_fs_prepare() [all …]
|
/trusty/kernel/platform/generic-arm64/ |
D | rules.mk | 63 dev/interrupt/arm_gic \ 64 dev/timer/arm_generic
|
/trusty/user/app/cast-auth/app/test-app/ |
D | README.md | 2 "/vendor/bin/trusty-ut-ctrl -D /dev/trusty-ipc-dev0 com.android.trusty.cast_auth.test" \
|