/fuchsia/zircon/system/utest/blobfs/ |
H A D | blobfs.cpp | 418 fuchsia_io_FilesystemInfo info; local 420 ASSERT_EQ(fuchsia_io_DirectoryAdminQueryFilesystem(caller.borrow_channel(), &status, &info), 424 const char* name = reinterpret_cast<const char*>(info.name); 426 ASSERT_LE(info.used_nodes, info.total_nodes, "Used nodes greater than free nodes"); 427 ASSERT_LE(info.used_bytes, info.total_bytes, "Used bytes greater than free bytes"); 495 static bool MakeBlob(blob_info_t* info, fbl::unique_fd* out_fd) { argument 496 fbl::unique_fd fd(open(info->path, O_CREAT | O_RDWR)); 498 ASSERT_EQ(ftruncate(fd.get(), info 506 MakeBlobUnverified(blob_info_t* info, fbl::unique_fd* out_fd) argument 529 MakeBlobCompromised(blob_info_t* info) argument 611 fuchsia_io_FilesystemInfo info; local 643 fbl::unique_ptr<blob_info_t> info; local 671 fbl::unique_ptr<blob_info_t> info; local 697 fbl::unique_ptr<blob_info_t> info; local 744 fbl::unique_ptr<blob_info_t> info; local 767 fbl::unique_ptr<blob_info_t> info; local 895 blobfs::blobfs_info_t info; local 943 fbl::unique_ptr<blob_info_t> info; local 960 fbl::unique_ptr<blob_info_t> info; local 982 fbl::unique_ptr<blob_info_t> info; local 1008 fbl::unique_ptr<blob_info_t> info; local 1027 fbl::unique_ptr<blob_info_t> info; local 1067 fbl::unique_ptr<blob_info_t> info; local 1099 fbl::unique_ptr<blob_info_t> info; local 1125 fbl::unique_ptr<blob_info_t> info; local 1159 fbl::unique_ptr<blob_info_t> info; local 1172 fbl::unique_ptr<blob_info_t> info; local 1194 fbl::unique_ptr<blob_info_t> info; local 1219 fbl::unique_ptr<blob_info_t> info; local 1246 fbl::unique_ptr<blob_info_t> info; local 1297 fbl::unique_ptr<blob_info_t> info; local 1345 fbl::unique_ptr<blob_info_t> info; local 1400 fbl::unique_ptr<blob_info_t> info; local 1435 fbl::unique_ptr<blob_info_t> info; local 1462 fbl::unique_ptr<blob_info_t> info; local 1493 fbl::unique_ptr<blob_info_t> info; local 1589 fbl::unique_ptr<blob_info_t> info; member in struct:blob_state 1608 fbl::unique_ptr<blob_info_t> info; local 1782 fbl::unique_ptr<blob_info_t> info; local 1819 fbl::unique_ptr<blob_info_t> info; local 2006 fbl::unique_ptr<blob_info_t> info; local 2075 fbl::unique_ptr<blob_info_t> info; local 2109 fbl::unique_ptr<blob_info_t> info; local 2244 fbl::unique_ptr<blob_info_t> info; local [all...] |
/fuchsia/zircon/system/uapp/df/ |
H A D | main.cpp | 104 const fuchsia_io_FilesystemInfo* info, const char* device_path) { 106 size_t nodes_total = info ? info->total_nodes : 0; 107 size_t nodes_used = info ? info->used_nodes : 0; 111 info != nullptr ? reinterpret_cast<const char*>(info->name) : "?", 121 size_t bytes_total = info ? info->total_bytes: 0; 122 size_t bytes_used = info 103 print_fs_type(const char* name, const df_options_t* options, const fuchsia_io_FilesystemInfo* info, const char* device_path) argument 188 fuchsia_io_FilesystemInfo info; local [all...] |
/fuchsia/zircon/kernel/dev/interrupt/arm_gic/v2/ |
H A D | arm_gicv2m_msi.cpp | 48 arm_gicv2m_frame_info_t info; local 49 for (uint i = 0; arm_gicv2m_get_frame_info(i, &info) == ZX_OK; ++i) { 50 p2ra_state_t* pool = ((uint64_t)info.doorbell & 0xFFFFFFFF00000000) 54 uint len = info.end_spi_id - info.start_spi_id + 1; 55 ret = p2ra_add_range(pool, info.start_spi_id, len); 58 info.start_spi_id, len, ret); 113 arm_gicv2m_frame_info_t info; 114 for (uint i = 0; (ret = arm_gicv2m_get_frame_info(i, &info)) == ZX_OK; ++i) { 117 if (((alloc_start >= info [all...] |
/fuchsia/zircon/kernel/arch/x86/ |
H A D | cpu_topology.cpp | 59 struct x86_topology_level info; local 60 if (!x86_topology_enumerate(0, &info)) { 64 if (info.type == X86_TOPOLOGY_SMT) { 65 smt_mask = (1 << info.right_shift) - 1; 66 core_shift = info.right_shift; 69 for (uint8_t level = 0; x86_topology_enumerate(level, &info); ++level) { 70 if (info.type == X86_TOPOLOGY_CORE) { 71 core_mask = ((1 << info.right_shift) - 1) ^ smt_mask; 72 package_shift = info.right_shift;
|
/fuchsia/zircon/system/ulib/sysmem/ |
H A D | sysmem.cpp | 20 // A helper function to set the plane info for the most common YUV planar formats. 61 // A helper function to set the plane info for the most common packed formats. 82 // Need to fill out the plane info, which depends on pixel_format: 122 fuchsia_sysmem_BufferCollectionInfo info; local 123 memset(&info, 0, sizeof(info)); 127 ZX_ASSERT(info.format.tag == fuchsia_sysmem_BufferSpecTag_image); 128 zx_status_t status = PickImageFormat(*spec, &info.format.image, &info.vmo_size); 131 return fuchsia_sysmem_AllocatorAllocateCollection_reply(txn, status, &info); 165 fuchsia_sysmem_BufferCollectionInfo info; local [all...] |
/fuchsia/zircon/make/ |
H A D | hcompile.mk | 17 #$(info MODULE_SRCS = $(MODULE_SRCS)) 18 #$(info MODULE_CSRCS = $(MODULE_CSRCS)) 19 #$(info MODULE_CPPSRCS = $(MODULE_CPPSRCS)) 21 #$(info MODULE_OBJS = $(MODULE_OBJS)) 22 #$(info MODULE_COBJS = $(MODULE_COBJS)) 23 #$(info MODULE_CPPOBJS = $(MODULE_CPPOBJS))
|
H A D | compile.mk | 20 #$(info MODULE_SRCS = $(MODULE_SRCS)) 21 #$(info MODULE_CSRCS = $(MODULE_CSRCS)) 22 #$(info MODULE_CPPSRCS = $(MODULE_CPPSRCS)) 23 #$(info MODULE_ASMSRCS = $(MODULE_ASMSRCS)) 25 #$(info MODULE_OBJS = $(MODULE_OBJS)) 26 #$(info MODULE_COBJS = $(MODULE_COBJS)) 27 #$(info MODULE_CPPOBJS = $(MODULE_CPPOBJS)) 28 #$(info MODULE_ASMOBJS = $(MODULE_ASMOBJS))
|
H A D | ucompile.mk | 19 #$(info MODULE_SRCS = $(MODULE_SRCS)) 20 #$(info MODULE_CSRCS = $(MODULE_CSRCS)) 21 #$(info MODULE_CPPSRCS = $(MODULE_CPPSRCS)) 22 #$(info MODULE_ASMSRCS = $(MODULE_ASMSRCS)) 24 #$(info MODULE_OBJS = $(MODULE_OBJS)) 25 #$(info MODULE_COBJS = $(MODULE_COBJS)) 26 #$(info MODULE_CPPOBJS = $(MODULE_CPPOBJS)) 27 #$(info MODULE_ASMOBJS = $(MODULE_ASMOBJS))
|
/fuchsia/zircon/system/dev/nand/broker/test/ |
H A D | parent.h | 18 nand_info_t info; // Configuration for a new ram-nand. member in struct:ParentDevice::TestConfig 37 const nand_info_t& Info() const { return config_.info; } 38 void SetInfo(const nand_info_t& info);
|
H A D | main.cpp | 69 ram_nand_config.nand_info = config_.info; 72 config_.num_blocks = config.info.num_blocks; 83 void ParentDevice::SetInfo(const nand_info_t& info) { argument 85 config_.info = info; 87 config_.num_blocks = info.num_blocks; 99 config.info = kDefaultNandInfo;
|
/fuchsia/zircon/system/ulib/ddk/include/ddk/protocol/ |
H A D | amlogic-canvas.h | 22 size_t offset, canvas_info_t* info, 35 size_t offset, canvas_info_t* info, 38 info, canvas_idx); 34 canvas_config(canvas_protocol_t* canvas, zx_handle_t vmo, size_t offset, canvas_info_t* info, uint8_t* canvas_idx) argument
|
H A D | serial.h | 26 zx_status_t (*get_info)(void* ctx, serial_port_info_t* info); 36 static inline zx_status_t serial_get_info(serial_protocol_t* serial, serial_port_info_t* info) { argument 37 return serial->ops->get_info(serial->ctx, info);
|
/fuchsia/zircon/system/ulib/driver-info/ |
H A D | rules.mk | 13 MODULE_SRCS := $(LOCAL_DIR)/driver-info.c 25 MODULE_SRCS := $(LOCAL_DIR)/driver-info-app.c 27 MODULE_STATIC_LIBS := system/ulib/driver-info
|
/fuchsia/zircon/system/uapp/display-test/ |
H A D | display.cpp | 9 Display::Display(fuchsia_display_Info* info) { argument 10 id_ = info->id; 12 auto pixel_format = reinterpret_cast<int32_t*>(info->pixel_format.data); 13 for (unsigned i = 0; i < info->pixel_format.count; i++) { 17 auto mode = reinterpret_cast<fuchsia_display_Mode*>(info->modes.data); 18 for (unsigned i = 0; i < info->modes.count; i++) { 22 auto cursors = reinterpret_cast<fuchsia_display_CursorInfo*>(info->cursor_configs.data); 23 for (unsigned i = 0; i < info->cursor_configs.count; i++) {
|
/fuchsia/zircon/system/utest/property/ |
H A D | property.c | 23 zx_info_handle_basic_t info; local 24 ASSERT_EQ(zx_object_get_info(handle, ZX_INFO_HANDLE_BASIC, &info, sizeof(info), NULL, NULL), ZX_OK, ""); 25 *rights = info.rights; 258 zx_info_socket_t info; local 260 memset(&info, 0, sizeof(info)); 261 ASSERT_EQ(zx_object_get_info(sockets[0], ZX_INFO_SOCKET, &info, sizeof(info), NULL, NULL), ZX_OK, ""); 262 EXPECT_EQ(info [all...] |
/fuchsia/zircon/system/dev/audio/usb-audio/ |
H A D | usb-audio-device.cpp | 246 struct MidiStreamingInfo info(ihdr); 247 ParseMidiStreamingIfc(&iter, &info); 249 if (info.out_ep != nullptr) { 251 info.ifc->bInterfaceNumber, info.out_ep->bEndpointAddress); 255 info.ifc, 256 info.out_ep); 259 if (info.in_ep != nullptr) { 261 info.ifc->bInterfaceNumber, info 347 MidiStreamingInfo& info = *inout_info; local [all...] |
/fuchsia/zircon/system/uapp/lspwr/ |
H A D | lspwr.c | 68 power_info_t info; local 69 ssize_t rc = ioctl_power_get_info(fd, &info); 70 if (rc != sizeof(info)) { 75 printf("index: %d type: %s state: 0x%x\n", idx, type_to_string[info.type], info.state); 77 if (info.type == POWER_TYPE_BATTERY) { 94 dev[idx].type = info.type; 117 power_info_t info; local 118 ssize_t rc = ioctl_power_get_info(dev[i].fd, &info); 119 if (rc != sizeof(info)) { [all...] |
/fuchsia/zircon/system/utest/vdso-base/ |
H A D | vdso-base.c | 46 static int phdr_info_callback(struct dl_phdr_info* info, size_t size, argument 49 if (info->dlpi_addr == key->dlpi_addr) { 50 *key = *info; 69 struct dl_phdr_info info = { .dlpi_addr = prop_vdso_base }; local 70 int ret = dl_iterate_phdr(&phdr_info_callback, &info); 75 for (uint_fast16_t i = 0; i < info.dlpi_phnum; ++i) { 76 if (info.dlpi_phdr[i].p_type == PT_LOAD && 77 (info.dlpi_phdr[i].p_flags & PF_X)) { 78 vdso_code_start = info.dlpi_addr + info [all...] |
/fuchsia/zircon/system/dev/bus/acpi/ |
H A D | dev-thermal.c | 40 static zx_status_t acpi_thermal_get_info(acpi_thermal_device_t* dev, thermal_info_t* info) { argument 49 info->passive_temp = (uint32_t)temp; // we probably won't exceed 429496456.35 C 54 info->critical_temp = (uint32_t)temp; 56 info->max_trip_count = dev->trip_point_count; 57 memcpy(info->active_trip, dev->trip_points, sizeof(info->active_trip)); 63 info->state = 0; 64 if (info->active_trip[0] && (temp > info->active_trip[0])) { 65 info 106 thermal_info_t info; local 182 thermal_init(zx_device_t* parent, ACPI_DEVICE_INFO* info, ACPI_HANDLE acpi_handle) argument [all...] |
H A D | dev-pwrsrc.c | 30 power_info_t info; member in struct:acpi_pwrsrc_device 46 uint32_t state = dev->info.state; 48 dev->info.state |= POWER_STATE_ONLINE; 50 dev->info.state &= ~POWER_STATE_ONLINE; 52 zxlogf(DEBUG1, "acpi-pwrsrc: 0x%x -> 0x%x\n", state, dev->info.state); 53 if (notify && (state != dev->info.state)) { 82 power_info_t* info = (power_info_t*)out_buf; local 84 memcpy(info, &dev->info, sizeof(power_info_t)); 141 dev->info [all...] |
/fuchsia/zircon/system/host/blobfs/ |
H A D | main.cpp | 17 // Add the blob described by |info| on host to the |blobfs| blobfs store. 18 zx_status_t AddBlob(blobfs::Blobfs* blobfs, MerkleInfo& info) { argument 19 const char* path = info.path.c_str(); 25 zx_status_t status = blobfs::blobfs_add_blob_with_merkle(blobfs, data_fd.get(), info.length, 26 fbl::move(info.digest), 27 fbl::move(info.merkle)); 148 MerkleInfo info; 150 if ((res = blobfs::blobfs_create_merkle(data_fd.get(), &info.digest, 151 &info.merkle)) != ZX_OK) { 165 info 198 blobfs::blobfs_info_t info; local [all...] |
/fuchsia/zircon/system/dev/bus/pci/ |
H A D | kpci.c | 85 device->info.bus_id, device->info.dev_id, device->info.func_id); 140 .info = device->info, 148 uint32_t bdf = ((uint32_t)device->info.bus_id << 8) | 149 ((uint32_t)device->info.dev_id << 3) | 150 device->info.func_id; 286 zx_pcie_device_info_t info; local 294 zx_status_t status = zx_pci_get_nth_device(get_root_resource(), index, &info, [all...] |
/fuchsia/zircon/system/ulib/ddktl/include/ddktl/protocol/ |
H A D | amlogic-canvas.h | 38 // zx_status_t CanvasConfig(zx_handle_t vmo, size_t offset, canvas_info_t* info, 64 static zx_status_t CanvasConfig(void* ctx, zx_handle_t vmo, size_t offset, canvas_info_t* info, argument 66 return static_cast<D*>(ctx)->CanvasConfig(vmo, offset, info, canvas_idx); 83 zx_status_t Config(zx_handle_t vmo, size_t offset, canvas_info_t* info, argument 85 return ops_->config(ctx_, vmo, offset, info, canvas_idx);
|
/fuchsia/zircon/system/utest/core/handle-info/ |
H A D | rules.mk | 14 $(LOCAL_DIR)/handle-info.c 16 MODULE_NAME := handle-info-test
|
/fuchsia/zircon/system/utest/vdso-variant/ |
H A D | vdso-variant.c | 51 zx_info_process_t info; local 52 status = zx_object_get_info(proc, ZX_INFO_PROCESS, &info, sizeof(info), 59 return info.return_code;
|