Lines Matching defs:mbr
51 typedef struct __PACKED mbr {
127 mbrpart_device_t* mbr = ctx;
128 memcpy(bi, &mbr->info, sizeof(block_info_t));
129 *bopsz = mbr->block_op_size;
133 mbrpart_device_t* mbr = ctx;
139 size_t max = mbr->partition.sector_partition_length;
149 bop->rw.offset_dev += mbr->partition.start_sector_lba;
159 mbr->bp.ops->queue(mbr->bp.ctx, bop);
251 zxlogf(ERROR, "mbr: cannot allocate vmo\n");
271 zxlogf(ERROR, "mbr: could not read mbr from device, retcode = %d\n", bop->command);
276 mbr_t* mbr = (mbr_t*)buffer;
282 if (mbr->boot_signature != MBR_BOOT_SIGNATURE) {
283 zxlogf(ERROR, "mbr: invalid mbr boot signature, expected 0x%04x got 0x%04x\n",
284 MBR_BOOT_SIGNATURE, mbr->boot_signature);
290 mbr_partition_entry_t* entry = &mbr->partition[partition_count];
297 zxlogf(SPEW, "mbr: found partition, entry = %d, type = 0x%02x, "
309 zxlogf(ERROR, "mbr: out of memory\n");
372 zxlogf(ERROR, "mbr: ERROR: block device '%s': does not support block protocol\n",
399 int thrd_rc = thrd_create_with_name(&t, mbr_bind_thread, device, "mbr-init");
412 ZIRCON_DRIVER_BEGIN(mbr, mbr_driver_ops, "zircon", "0.1", 2)
415 ZIRCON_DRIVER_END(mbr)