Searched refs:parent (Results 101 - 125 of 304) sorted by relevance

1234567891011>>

/fuchsia/zircon/system/ulib/zx/include/lib/zx/
H A Dresource.h29 static zx_status_t create(const resource& parent,
/fuchsia/zircon/system/dev/nand/skip-block/
H A Dskip-block.cpp120 zx_status_t SkipBlockDevice::Create(zx_device_t* parent) { argument
123 if (device_get_protocol(parent, ZX_PROTOCOL_NAND, &nand_proto) != ZX_OK) {
124 zxlogf(ERROR, "skip-block: parent device '%s': does not support nand protocol\n",
125 device_get_name(parent));
131 if (device_get_protocol(parent, ZX_PROTOCOL_BAD_BLOCK, &bad_block_proto) != ZX_OK) {
132 zxlogf(ERROR, "skip-block: parent device '%s': does not support bad_block protocol\n",
133 device_get_name(parent));
139 zx_status_t status = device_get_metadata(parent, DEVICE_METADATA_PRIVATE, &copy_count,
142 zxlogf(ERROR, "skip-block: parent device '%s' has no private metadata\n",
143 device_get_name(parent));
411 skip_block_bind(void* ctx, zx_device_t* parent) argument
[all...]
/fuchsia/zircon/kernel/vm/
H A Dvm_address_region_or_mapping.cpp24 VmAspace* aspace, VmAddressRegion* parent)
26 flags_(flags), aspace_(aspace), parent_(parent) {
22 VmAddressRegionOrMapping( vaddr_t base, size_t size, uint32_t flags, VmAspace* aspace, VmAddressRegion* parent) argument
/fuchsia/zircon/system/dev/audio/usb-audio/
H A Dusb-audio-device.h31 static zx_status_t DriverBind(zx_device_t* parent);
48 explicit UsbAudioDevice(zx_device_t* parent);
H A Dusb-audio-control-interface.cpp15 // We use our parent's log prefix
20 UsbAudioControlInterface::UsbAudioControlInterface(UsbAudioDevice* parent) argument
21 : parent_(*parent) {
22 ZX_DEBUG_ASSERT(parent != nullptr);
28 fbl::unique_ptr<UsbAudioControlInterface> UsbAudioControlInterface::Create(UsbAudioDevice* parent) { argument
29 if (parent == nullptr) {
30 GLOBAL_LOG(ERROR, "null parent passed to %s\n", __PRETTY_FUNCTION__);
35 fbl::unique_ptr<UsbAudioControlInterface> ret(new (&ac) UsbAudioControlInterface(parent));
H A Dusb-audio-stream-interface.h47 // instances. The stream interface needs to hold a pointer to its parent,
48 // so it is critically important that the owning parent is certain that the
51 // needs to be a subset of the lifetime of the device parent.
58 Create(UsbAudioDevice* parent, DescriptorListMemory::Iterator* iter);
123 Format(const UsbAudioStreamInterface* parent, argument
127 : parent_(parent),
190 UsbAudioStreamInterface(UsbAudioDevice* parent, argument
193 : parent_(*parent),
196 ZX_DEBUG_ASSERT(parent != nullptr);
200 // The reference to our parent
[all...]
/fuchsia/zircon/system/dev/bus/acpi/
H A Ddev-pwrbtn.cpp30 static zx_status_t Create(zx_device_t* parent,
49 explicit AcpiPwrbtnDevice(zx_device_t* parent);
92 AcpiPwrbtnDevice::AcpiPwrbtnDevice(zx_device_t* parent) argument
93 : DeviceType(parent) {
255 zx_status_t AcpiPwrbtnDevice::Create(zx_device_t* parent, argument
258 fbl::unique_ptr<AcpiPwrbtnDevice> dev(new (&ac) AcpiPwrbtnDevice(parent));
286 zx_status_t pwrbtn_init(zx_device_t* parent) { argument
290 zx_status_t status = AcpiPwrbtnDevice::Create(parent, &dev);
H A Ddev-tbmc.cpp33 static zx_status_t Create(zx_device_t* parent, ACPI_HANDLE acpi_handle,
52 AcpiTbmcDevice(zx_device_t* parent, ACPI_HANDLE acpi_handle);
97 AcpiTbmcDevice::AcpiTbmcDevice(zx_device_t* parent, ACPI_HANDLE acpi_handle) argument
98 : DeviceType(parent), acpi_handle_(acpi_handle) {
251 zx_status_t AcpiTbmcDevice::Create(zx_device_t* parent, ACPI_HANDLE acpi_handle, argument
254 fbl::unique_ptr<AcpiTbmcDevice> dev(new (&ac) AcpiTbmcDevice(parent, acpi_handle));
274 zx_status_t tbmc_init(zx_device_t* parent, ACPI_HANDLE acpi_handle) { argument
278 zx_status_t status = AcpiTbmcDevice::Create(parent, acpi_handle, &dev);
/fuchsia/zircon/system/dev/bus/platform/
H A Dplatform-protocol-device.h38 static zx_status_t Create(const pbus_dev_t* pdev, zx_device_t* parent, PlatformBus* bus,
64 explicit ProtocolDevice(zx_device_t* parent, PlatformBus* bus, const pbus_dev_t* pdev);
/fuchsia/zircon/system/dev/clk/amlogic-clk/
H A Daml-clk.cpp69 zx_status_t AmlClock::InitPdev(zx_device_t* parent) { argument
70 zx_status_t status = device_get_protocol(parent,
153 status = device_get_protocol(parent, ZX_PROTOCOL_PLATFORM_BUS, &pbus);
176 zx_status_t AmlClock::Create(zx_device_t* parent) { argument
177 auto clock_device = fbl::make_unique<amlogic_clock::AmlClock>(parent);
179 zx_status_t status = clock_device->InitPdev(parent);
337 extern "C" zx_status_t aml_clk_bind(void* ctx, zx_device_t* parent) { argument
338 return amlogic_clock::AmlClock::Create(parent);
/fuchsia/zircon/system/dev/i2c/imx-i2c/
H A Dimx-i2c.h26 ImxI2cDevice(zx_device_t* parent, int dev_cnt) argument
27 : DeviceType(parent), dev_cnt_(dev_cnt) {}
/fuchsia/zircon/system/dev/tee/optee/
H A Doptee-controller.h33 explicit OpteeController(zx_device_t* parent) argument
34 : OpteeControllerBase(parent) {}
72 // created and provided to us by our parent. For now, we're simply stashing a copy of the
/fuchsia/zircon/system/dev/thermal/aml-thermal-s905d2g/
H A Daml-pwm.cpp27 zx_status_t AmlPwm::Init(zx_device_t* parent) { argument
28 zx_status_t status = device_get_protocol(parent,
H A Daml-voltage.cpp25 zx_status_t AmlVoltageRegulator::Init(zx_device_t* parent, opp_info_t* opp_info) { argument
37 zx_status_t status = pwm_->Init(parent);
/fuchsia/zircon/system/dev/board/astro/
H A Dastro.c172 static zx_status_t aml_bus_bind(void* ctx, zx_device_t* parent) { argument
177 bus->parent = parent;
179 zx_status_t status = device_get_protocol(parent, ZX_PROTOCOL_PLATFORM_BUS, &bus->pbus);
185 status = device_get_protocol(parent, ZX_PROTOCOL_IOMMU, &bus->iommu);
199 status = device_add(parent, &args, NULL);
/fuchsia/zircon/system/dev/board/gauss/
H A Dgauss.c192 static zx_status_t gauss_bus_bind(void* ctx, zx_device_t* parent) { argument
198 zx_status_t status = device_get_protocol(parent, ZX_PROTOCOL_PLATFORM_BUS, &bus->pbus);
204 status = device_get_protocol(parent, ZX_PROTOCOL_IOMMU, &bus->iommu);
215 bus->parent = parent;
225 status = device_add(parent, &args, NULL);
/fuchsia/zircon/system/dev/board/imx8mevk/
H A Dimx8mevk.c156 static zx_status_t imx8mevk_bus_bind(void* ctx, zx_device_t* parent) { argument
161 bus->parent = parent;
163 zx_status_t status = device_get_protocol(parent, ZX_PROTOCOL_PLATFORM_BUS, &bus->pbus);
169 status = device_get_protocol(parent, ZX_PROTOCOL_IOMMU, &bus->iommu);
189 status = device_add(parent, &args, NULL);
/fuchsia/zircon/system/dev/board/qemu/
H A Drules.mk24 MODULE := $(LOCAL_DIR).test-parent
26 MODULE_NAME := qemu-test-parent
31 $(TEST_DIR)/parent.c \
/fuchsia/zircon/system/dev/board/vim/
H A Dvim.c138 static zx_status_t vim_bus_bind(void* ctx, zx_device_t* parent) { argument
143 bus->parent = parent;
145 zx_status_t status = device_get_protocol(parent, ZX_PROTOCOL_PLATFORM_BUS, &bus->pbus);
156 status = device_get_protocol(parent, ZX_PROTOCOL_IOMMU, &bus->iommu);
170 status = device_add(parent, &args, NULL);
/fuchsia/zircon/system/dev/misc/tpm/
H A Dtpm.cpp222 Device::Device(zx_device_t* parent, fbl::unique_ptr<HardwareInterface> iface) argument
223 : DeviceType(parent), iface_(fbl::move(iface)) {
232 zx_status_t tpm_bind(void* ctx, zx_device_t* parent) { argument
235 zx_status_t status = device_get_protocol(parent, ZX_PROTOCOL_I2C, &i2c);
248 status = tpm::I2cCr50Interface::Create(parent, fbl::move(irq), &i2c_iface);
254 fbl::unique_ptr<tpm::Device> device(new (&ac) tpm::Device(parent, fbl::move(i2c_iface)));
/fuchsia/zircon/system/dev/nand/broker/
H A Dbroker.cpp65 explicit Broker(zx_device_t* parent) : DeviceType(parent) {} argument
86 if (device_get_protocol(parent(), ZX_PROTOCOL_NAND, &nand_protocol_) != ZX_OK) {
88 device_get_name(parent()));
187 zx_status_t nand_broker_bind(void* ctx, zx_device_t* parent) { argument
190 fbl::unique_ptr<Broker> device(new (&checker) Broker(parent));
/fuchsia/zircon/system/ulib/fbl/include/fbl/
H A Dintrusive_wavl_tree.h704 RawPtrType parent = PtrTraits::GetRaw(root_); local
708 auto parent_key = KeyTraits::GetKey(*parent);
722 *collision = parent;
728 auto& parent_ns = NodeTraits::node_state(*parent);
730 // Decide which side of the current parent-under-consideration the
746 // We belong on a side of the parent-under-consideration which
749 parent = PtrTraits::GetRaw(*owner);
767 ns.parent_ = parent;
784 // If the target node is the root of the tree, then its parent will be
790 // Determine if we are our parent'
823 RawPtrType parent = ns.parent_; local
1317 RotateLR(RawPtrType node, RawPtrType parent) argument
1380 PostInsertFixupLR(RawPtrType node, RawPtrType parent) argument
1435 RawPtrType parent = node_ns->parent_; local
[all...]
/fuchsia/zircon/kernel/dev/iommu/intel/
H A Ddevice_context.cpp24 DeviceContext::DeviceContext(ds::Bdf bdf, uint32_t domain_id, IommuImpl* parent, argument
26 : parent_(parent), extended_context_entry_(context_entry), second_level_pt_(parent, this),
30 DeviceContext::DeviceContext(ds::Bdf bdf, uint32_t domain_id, IommuImpl* parent, argument
32 : parent_(parent), context_entry_(context_entry), second_level_pt_(parent, this),
93 zx_status_t DeviceContext::Create(ds::Bdf bdf, uint32_t domain_id, IommuImpl* parent, argument
103 fbl::unique_ptr<DeviceContext> dev(new (&ac) DeviceContext(bdf, domain_id, parent,
128 zx_status_t DeviceContext::Create(ds::Bdf bdf, uint32_t domain_id, IommuImpl* parent, argument
140 parent, context_entr
[all...]
/fuchsia/zircon/system/dev/block/mbr/
H A Dmbr.c59 zx_device_t* parent; member in struct:mbrpart_device
176 return device_get_size(dev->parent);
222 zx_device_t* dev = first_dev->parent;
312 pdev->parent = dev;
358 static zx_status_t mbr_bind(void* ctx, zx_device_t* parent) { argument
369 device->parent = parent;
371 if (device_get_protocol(parent, ZX_PROTOCOL_BLOCK, &device->bp) != ZX_OK) {
373 device_get_name(parent));
391 zx_status_t status = device_add(parent,
[all...]
/fuchsia/zircon/third_party/ulib/jemalloc/include/jemalloc/internal/
H A Dph.h272 a_type *replace, *parent; \
287 /* Get parent (if phn is leftmost child) before mutating. */ \
288 if ((parent = phn_prev_get(a_type, a_field, phn)) != NULL) { \
289 if (phn_lchild_get(a_type, a_field, parent) != phn) \
290 parent = NULL; \
292 /* Find a possible replacement node, and link to parent. */ \
296 if (parent != NULL) { \
297 phn_prev_set(a_type, a_field, replace, parent); \
298 phn_lchild_set(a_type, a_field, parent, \
318 if (parent !
[all...]

Completed in 272 milliseconds

1234567891011>>