Lines Matching refs:parent
120 zx_status_t SkipBlockDevice::Create(zx_device_t* parent) {
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, ©_count,
142 zxlogf(ERROR, "skip-block: parent device '%s' has no private metadata\n",
143 device_get_name(parent));
153 fbl::unique_ptr<SkipBlockDevice> device(new (&ac) SkipBlockDevice(parent, nand_proto,
193 zxlogf(INFO, "skip-block: Binding to %s\n", device_get_name(parent()));
198 zxlogf(ERROR, "skip-block: parent op size, %zu, is smaller than minimum op size: %zu\n",
411 extern "C" zx_status_t skip_block_bind(void* ctx, zx_device_t* parent) {
412 return nand::SkipBlockDevice::Create(parent);