Lines Matching refs:bdrv
789 const char *drive_get_serial(BlockDriverState *bdrv)
794 if (drives_table[index].bdrv == bdrv)
800 BlockInterfaceErrorAction drive_get_onerror(BlockDriverState *bdrv)
805 if (drives_table[index].bdrv == bdrv)
816 void drive_uninit(BlockDriverState *bdrv)
821 if (drives_table[i].bdrv == bdrv) {
822 drives_table[i].bdrv = NULL;
841 BlockDriverState *bdrv;
1125 bdrv = bdrv_new(buf);
1127 drives_table[drives_table_idx].bdrv = bdrv;
1143 bdrv_set_geometry_hint(bdrv, cyls, heads, secs);
1144 bdrv_set_translation_hint(bdrv, translation);
1148 bdrv_set_type_hint(bdrv, BDRV_TYPE_CDROM);
1156 bdrv_set_type_hint(bdrv, BDRV_TYPE_FLOPPY);
1178 if (bdrv_open2(bdrv, file, bdrv_flags, drv) < 0) {
1183 if (bdrv_key_required(bdrv))