Lines Matching refs:bdrv
688 const char *drive_get_serial(BlockDriverState *bdrv)
693 if (drives_table[index].bdrv == bdrv)
699 BlockInterfaceErrorAction drive_get_onerror(BlockDriverState *bdrv)
704 if (drives_table[index].bdrv == bdrv)
715 void drive_uninit(BlockDriverState *bdrv)
720 if (drives_table[i].bdrv == bdrv) {
721 drives_table[i].bdrv = NULL;
740 BlockDriverState *bdrv;
1024 bdrv = bdrv_new(buf);
1026 drives_table[drives_table_idx].bdrv = bdrv;
1042 bdrv_set_geometry_hint(bdrv, cyls, heads, secs);
1043 bdrv_set_translation_hint(bdrv, translation);
1047 bdrv_set_type_hint(bdrv, BDRV_TYPE_CDROM);
1055 bdrv_set_type_hint(bdrv, BDRV_TYPE_FLOPPY);
1078 if (bdrv_open2(bdrv, file, bdrv_flags, drv) < 0) {
1083 if (bdrv_key_required(bdrv))