Lines Matching refs:vcdev
75 static inline unsigned long *indicators(struct virtio_ccw_device *vcdev) in indicators() argument
77 return &vcdev->dma_area->indicators; in indicators()
80 static inline unsigned long *indicators2(struct virtio_ccw_device *vcdev) in indicators2() argument
82 return &vcdev->dma_area->indicators2; in indicators2()
296 static void virtio_ccw_drop_indicators(struct virtio_ccw_device *vcdev) in virtio_ccw_drop_indicators() argument
300 if (!vcdev->airq_info) in virtio_ccw_drop_indicators()
302 list_for_each_entry(info, &vcdev->virtqueues, node) in virtio_ccw_drop_indicators()
303 drop_airq_indicator(info->vq, vcdev->airq_info); in virtio_ccw_drop_indicators()
306 static int doing_io(struct virtio_ccw_device *vcdev, __u32 flag) in doing_io() argument
311 spin_lock_irqsave(get_ccwdev_lock(vcdev->cdev), flags); in doing_io()
312 if (vcdev->err) in doing_io()
315 ret = vcdev->curr_io & flag; in doing_io()
316 spin_unlock_irqrestore(get_ccwdev_lock(vcdev->cdev), flags); in doing_io()
320 static int ccw_io_helper(struct virtio_ccw_device *vcdev, in ccw_io_helper() argument
327 mutex_lock(&vcdev->io_lock); in ccw_io_helper()
329 spin_lock_irqsave(get_ccwdev_lock(vcdev->cdev), flags); in ccw_io_helper()
330 ret = ccw_device_start(vcdev->cdev, ccw, intparm, 0, 0); in ccw_io_helper()
332 if (!vcdev->curr_io) in ccw_io_helper()
333 vcdev->err = 0; in ccw_io_helper()
334 vcdev->curr_io |= flag; in ccw_io_helper()
336 spin_unlock_irqrestore(get_ccwdev_lock(vcdev->cdev), flags); in ccw_io_helper()
339 wait_event(vcdev->wait_q, doing_io(vcdev, flag) == 0); in ccw_io_helper()
340 ret = ret ? ret : vcdev->err; in ccw_io_helper()
341 mutex_unlock(&vcdev->io_lock); in ccw_io_helper()
345 static void virtio_ccw_drop_indicator(struct virtio_ccw_device *vcdev, in virtio_ccw_drop_indicator() argument
351 struct airq_info *airq_info = vcdev->airq_info; in virtio_ccw_drop_indicator()
353 if (vcdev->is_thinint) { in virtio_ccw_drop_indicator()
354 thinint_area = ccw_device_dma_zalloc(vcdev->cdev, in virtio_ccw_drop_indicator()
366 indicatorp = ccw_device_dma_zalloc(vcdev->cdev, in virtio_ccw_drop_indicator()
367 sizeof(indicators(vcdev))); in virtio_ccw_drop_indicator()
372 ccw->count = sizeof(indicators(vcdev)); in virtio_ccw_drop_indicator()
376 *indicators(vcdev) = 0; in virtio_ccw_drop_indicator()
378 ret = ccw_io_helper(vcdev, ccw, in virtio_ccw_drop_indicator()
379 vcdev->is_thinint ? in virtio_ccw_drop_indicator()
383 dev_info(&vcdev->cdev->dev, in virtio_ccw_drop_indicator()
385 else if (vcdev->is_thinint) in virtio_ccw_drop_indicator()
386 virtio_ccw_drop_indicators(vcdev); in virtio_ccw_drop_indicator()
387 ccw_device_dma_free(vcdev->cdev, indicatorp, sizeof(indicators(vcdev))); in virtio_ccw_drop_indicator()
388 ccw_device_dma_free(vcdev->cdev, thinint_area, sizeof(*thinint_area)); in virtio_ccw_drop_indicator()
394 struct virtio_ccw_device *vcdev; in virtio_ccw_kvm_notify() local
397 vcdev = to_vc_device(info->vq->vdev); in virtio_ccw_kvm_notify()
398 ccw_device_get_schid(vcdev->cdev, &schid); in virtio_ccw_kvm_notify()
408 static int virtio_ccw_read_vq_conf(struct virtio_ccw_device *vcdev, in virtio_ccw_read_vq_conf() argument
413 vcdev->dma_area->config_block.index = index; in virtio_ccw_read_vq_conf()
417 ccw->cda = (__u32)(unsigned long)(&vcdev->dma_area->config_block); in virtio_ccw_read_vq_conf()
418 ret = ccw_io_helper(vcdev, ccw, VIRTIO_CCW_DOING_READ_VQ_CONF); in virtio_ccw_read_vq_conf()
421 return vcdev->dma_area->config_block.num ?: -ENOENT; in virtio_ccw_read_vq_conf()
426 struct virtio_ccw_device *vcdev = to_vc_device(vq->vdev); in virtio_ccw_del_vq() local
433 spin_lock_irqsave(&vcdev->lock, flags); in virtio_ccw_del_vq()
435 spin_unlock_irqrestore(&vcdev->lock, flags); in virtio_ccw_del_vq()
438 if (vcdev->revision == 0) { in virtio_ccw_del_vq()
455 ret = ccw_io_helper(vcdev, ccw, in virtio_ccw_del_vq()
466 ccw_device_dma_free(vcdev->cdev, info->info_block, in virtio_ccw_del_vq()
475 struct virtio_ccw_device *vcdev = to_vc_device(vdev); in virtio_ccw_del_vqs() local
477 ccw = ccw_device_dma_zalloc(vcdev->cdev, sizeof(*ccw)); in virtio_ccw_del_vqs()
481 virtio_ccw_drop_indicator(vcdev, ccw); in virtio_ccw_del_vqs()
486 ccw_device_dma_free(vcdev->cdev, ccw, sizeof(*ccw)); in virtio_ccw_del_vqs()
494 struct virtio_ccw_device *vcdev = to_vc_device(vdev); in virtio_ccw_setup_vq() local
505 dev_warn(&vcdev->cdev->dev, "no info\n"); in virtio_ccw_setup_vq()
509 info->info_block = ccw_device_dma_zalloc(vcdev->cdev, in virtio_ccw_setup_vq()
512 dev_warn(&vcdev->cdev->dev, "no info block\n"); in virtio_ccw_setup_vq()
516 info->num = virtio_ccw_read_vq_conf(vcdev, ccw, i); in virtio_ccw_setup_vq()
521 may_reduce = vcdev->revision > 0; in virtio_ccw_setup_vq()
528 dev_warn(&vcdev->cdev->dev, "no vq\n"); in virtio_ccw_setup_vq()
537 if (vcdev->revision == 0) { in virtio_ccw_setup_vq()
554 err = ccw_io_helper(vcdev, ccw, VIRTIO_CCW_DOING_SET_VQ | i); in virtio_ccw_setup_vq()
556 dev_warn(&vcdev->cdev->dev, "SET_VQ failed\n"); in virtio_ccw_setup_vq()
564 spin_lock_irqsave(&vcdev->lock, flags); in virtio_ccw_setup_vq()
565 list_add(&info->node, &vcdev->virtqueues); in virtio_ccw_setup_vq()
566 spin_unlock_irqrestore(&vcdev->lock, flags); in virtio_ccw_setup_vq()
574 ccw_device_dma_free(vcdev->cdev, info->info_block, in virtio_ccw_setup_vq()
581 static int virtio_ccw_register_adapter_ind(struct virtio_ccw_device *vcdev, in virtio_ccw_register_adapter_ind() argument
589 thinint_area = ccw_device_dma_zalloc(vcdev->cdev, in virtio_ccw_register_adapter_ind()
598 &vcdev->airq_info); in virtio_ccw_register_adapter_ind()
603 info = vcdev->airq_info; in virtio_ccw_register_adapter_ind()
611 ret = ccw_io_helper(vcdev, ccw, VIRTIO_CCW_DOING_SET_IND_ADAPTER); in virtio_ccw_register_adapter_ind()
621 dev_warn(&vcdev->cdev->dev, in virtio_ccw_register_adapter_ind()
623 virtio_ccw_drop_indicators(vcdev); in virtio_ccw_register_adapter_ind()
626 ccw_device_dma_free(vcdev->cdev, thinint_area, sizeof(*thinint_area)); in virtio_ccw_register_adapter_ind()
637 struct virtio_ccw_device *vcdev = to_vc_device(vdev); in virtio_ccw_find_vqs() local
642 ccw = ccw_device_dma_zalloc(vcdev->cdev, sizeof(*ccw)); in virtio_ccw_find_vqs()
666 indicatorp = ccw_device_dma_zalloc(vcdev->cdev, in virtio_ccw_find_vqs()
667 sizeof(indicators(vcdev))); in virtio_ccw_find_vqs()
670 *indicatorp = (unsigned long) indicators(vcdev); in virtio_ccw_find_vqs()
671 if (vcdev->is_thinint) { in virtio_ccw_find_vqs()
672 ret = virtio_ccw_register_adapter_ind(vcdev, vqs, nvqs, ccw); in virtio_ccw_find_vqs()
675 vcdev->is_thinint = false; in virtio_ccw_find_vqs()
677 if (!vcdev->is_thinint) { in virtio_ccw_find_vqs()
679 *indicators(vcdev) = 0; in virtio_ccw_find_vqs()
682 ccw->count = sizeof(indicators(vcdev)); in virtio_ccw_find_vqs()
684 ret = ccw_io_helper(vcdev, ccw, VIRTIO_CCW_DOING_SET_IND); in virtio_ccw_find_vqs()
689 *indicatorp = (unsigned long) indicators2(vcdev); in virtio_ccw_find_vqs()
690 *indicators2(vcdev) = 0; in virtio_ccw_find_vqs()
693 ccw->count = sizeof(indicators2(vcdev)); in virtio_ccw_find_vqs()
695 ret = ccw_io_helper(vcdev, ccw, VIRTIO_CCW_DOING_SET_CONF_IND); in virtio_ccw_find_vqs()
700 ccw_device_dma_free(vcdev->cdev, indicatorp, in virtio_ccw_find_vqs()
701 sizeof(indicators(vcdev))); in virtio_ccw_find_vqs()
702 ccw_device_dma_free(vcdev->cdev, ccw, sizeof(*ccw)); in virtio_ccw_find_vqs()
706 ccw_device_dma_free(vcdev->cdev, indicatorp, in virtio_ccw_find_vqs()
707 sizeof(indicators(vcdev))); in virtio_ccw_find_vqs()
708 ccw_device_dma_free(vcdev->cdev, ccw, sizeof(*ccw)); in virtio_ccw_find_vqs()
715 struct virtio_ccw_device *vcdev = to_vc_device(vdev); in virtio_ccw_reset() local
718 ccw = ccw_device_dma_zalloc(vcdev->cdev, sizeof(*ccw)); in virtio_ccw_reset()
723 vcdev->dma_area->status = 0; in virtio_ccw_reset()
730 ccw_io_helper(vcdev, ccw, VIRTIO_CCW_DOING_RESET); in virtio_ccw_reset()
731 ccw_device_dma_free(vcdev->cdev, ccw, sizeof(*ccw)); in virtio_ccw_reset()
736 struct virtio_ccw_device *vcdev = to_vc_device(vdev); in virtio_ccw_get_features() local
742 ccw = ccw_device_dma_zalloc(vcdev->cdev, sizeof(*ccw)); in virtio_ccw_get_features()
746 features = ccw_device_dma_zalloc(vcdev->cdev, sizeof(*features)); in virtio_ccw_get_features()
757 ret = ccw_io_helper(vcdev, ccw, VIRTIO_CCW_DOING_READ_FEAT); in virtio_ccw_get_features()
765 if (vcdev->revision == 0) in virtio_ccw_get_features()
774 ret = ccw_io_helper(vcdev, ccw, VIRTIO_CCW_DOING_READ_FEAT); in virtio_ccw_get_features()
779 ccw_device_dma_free(vcdev->cdev, features, sizeof(*features)); in virtio_ccw_get_features()
780 ccw_device_dma_free(vcdev->cdev, ccw, sizeof(*ccw)); in virtio_ccw_get_features()
793 struct virtio_ccw_device *vcdev = to_vc_device(vdev); in virtio_ccw_finalize_features() local
798 if (vcdev->revision >= 1 && in virtio_ccw_finalize_features()
805 ccw = ccw_device_dma_zalloc(vcdev->cdev, sizeof(*ccw)); in virtio_ccw_finalize_features()
809 features = ccw_device_dma_zalloc(vcdev->cdev, sizeof(*features)); in virtio_ccw_finalize_features()
827 ret = ccw_io_helper(vcdev, ccw, VIRTIO_CCW_DOING_WRITE_FEAT); in virtio_ccw_finalize_features()
831 if (vcdev->revision == 0) in virtio_ccw_finalize_features()
841 ret = ccw_io_helper(vcdev, ccw, VIRTIO_CCW_DOING_WRITE_FEAT); in virtio_ccw_finalize_features()
844 ccw_device_dma_free(vcdev->cdev, features, sizeof(*features)); in virtio_ccw_finalize_features()
845 ccw_device_dma_free(vcdev->cdev, ccw, sizeof(*ccw)); in virtio_ccw_finalize_features()
853 struct virtio_ccw_device *vcdev = to_vc_device(vdev); in virtio_ccw_get_config() local
859 ccw = ccw_device_dma_zalloc(vcdev->cdev, sizeof(*ccw)); in virtio_ccw_get_config()
863 config_area = ccw_device_dma_zalloc(vcdev->cdev, in virtio_ccw_get_config()
873 ret = ccw_io_helper(vcdev, ccw, VIRTIO_CCW_DOING_READ_CONFIG); in virtio_ccw_get_config()
877 spin_lock_irqsave(&vcdev->lock, flags); in virtio_ccw_get_config()
878 memcpy(vcdev->config, config_area, offset + len); in virtio_ccw_get_config()
879 if (vcdev->config_ready < offset + len) in virtio_ccw_get_config()
880 vcdev->config_ready = offset + len; in virtio_ccw_get_config()
881 spin_unlock_irqrestore(&vcdev->lock, flags); in virtio_ccw_get_config()
886 ccw_device_dma_free(vcdev->cdev, config_area, VIRTIO_CCW_CONFIG_SIZE); in virtio_ccw_get_config()
887 ccw_device_dma_free(vcdev->cdev, ccw, sizeof(*ccw)); in virtio_ccw_get_config()
894 struct virtio_ccw_device *vcdev = to_vc_device(vdev); in virtio_ccw_set_config() local
899 ccw = ccw_device_dma_zalloc(vcdev->cdev, sizeof(*ccw)); in virtio_ccw_set_config()
903 config_area = ccw_device_dma_zalloc(vcdev->cdev, in virtio_ccw_set_config()
909 if (vcdev->config_ready < offset) in virtio_ccw_set_config()
911 spin_lock_irqsave(&vcdev->lock, flags); in virtio_ccw_set_config()
912 memcpy(&vcdev->config[offset], buf, len); in virtio_ccw_set_config()
914 memcpy(config_area, vcdev->config, sizeof(vcdev->config)); in virtio_ccw_set_config()
915 spin_unlock_irqrestore(&vcdev->lock, flags); in virtio_ccw_set_config()
920 ccw_io_helper(vcdev, ccw, VIRTIO_CCW_DOING_WRITE_CONFIG); in virtio_ccw_set_config()
923 ccw_device_dma_free(vcdev->cdev, config_area, VIRTIO_CCW_CONFIG_SIZE); in virtio_ccw_set_config()
924 ccw_device_dma_free(vcdev->cdev, ccw, sizeof(*ccw)); in virtio_ccw_set_config()
929 struct virtio_ccw_device *vcdev = to_vc_device(vdev); in virtio_ccw_get_status() local
930 u8 old_status = vcdev->dma_area->status; in virtio_ccw_get_status()
933 if (vcdev->revision < 2) in virtio_ccw_get_status()
934 return vcdev->dma_area->status; in virtio_ccw_get_status()
936 ccw = ccw_device_dma_zalloc(vcdev->cdev, sizeof(*ccw)); in virtio_ccw_get_status()
942 ccw->count = sizeof(vcdev->dma_area->status); in virtio_ccw_get_status()
943 ccw->cda = (__u32)(unsigned long)&vcdev->dma_area->status; in virtio_ccw_get_status()
944 ccw_io_helper(vcdev, ccw, VIRTIO_CCW_DOING_READ_STATUS); in virtio_ccw_get_status()
951 ccw_device_dma_free(vcdev->cdev, ccw, sizeof(*ccw)); in virtio_ccw_get_status()
953 return vcdev->dma_area->status; in virtio_ccw_get_status()
958 struct virtio_ccw_device *vcdev = to_vc_device(vdev); in virtio_ccw_set_status() local
959 u8 old_status = vcdev->dma_area->status; in virtio_ccw_set_status()
963 ccw = ccw_device_dma_zalloc(vcdev->cdev, sizeof(*ccw)); in virtio_ccw_set_status()
968 vcdev->dma_area->status = status; in virtio_ccw_set_status()
972 ccw->cda = (__u32)(unsigned long)&vcdev->dma_area->status; in virtio_ccw_set_status()
973 ret = ccw_io_helper(vcdev, ccw, VIRTIO_CCW_DOING_WRITE_STATUS); in virtio_ccw_set_status()
976 vcdev->dma_area->status = old_status; in virtio_ccw_set_status()
977 ccw_device_dma_free(vcdev->cdev, ccw, sizeof(*ccw)); in virtio_ccw_set_status()
982 struct virtio_ccw_device *vcdev = to_vc_device(vdev); in virtio_ccw_bus_name() local
984 return dev_name(&vcdev->cdev->dev); in virtio_ccw_bus_name()
1008 struct virtio_ccw_device *vcdev = to_vc_device(dev); in virtio_ccw_release_dev() local
1010 ccw_device_dma_free(vcdev->cdev, vcdev->dma_area, in virtio_ccw_release_dev()
1011 sizeof(*vcdev->dma_area)); in virtio_ccw_release_dev()
1012 kfree(vcdev); in virtio_ccw_release_dev()
1026 static struct virtqueue *virtio_ccw_vq_by_ind(struct virtio_ccw_device *vcdev, in virtio_ccw_vq_by_ind() argument
1034 spin_lock_irqsave(&vcdev->lock, flags); in virtio_ccw_vq_by_ind()
1035 list_for_each_entry(info, &vcdev->virtqueues, node) { in virtio_ccw_vq_by_ind()
1041 spin_unlock_irqrestore(&vcdev->lock, flags); in virtio_ccw_vq_by_ind()
1045 static void virtio_ccw_check_activity(struct virtio_ccw_device *vcdev, in virtio_ccw_check_activity() argument
1048 if (vcdev->curr_io & activity) { in virtio_ccw_check_activity()
1063 vcdev->curr_io &= ~activity; in virtio_ccw_check_activity()
1064 wake_up(&vcdev->wait_q); in virtio_ccw_check_activity()
1068 dev_warn(&vcdev->cdev->dev, in virtio_ccw_check_activity()
1081 struct virtio_ccw_device *vcdev = dev_get_drvdata(&cdev->dev); in virtio_ccw_int_handler() local
1085 if (!vcdev) in virtio_ccw_int_handler()
1088 vcdev->err = PTR_ERR(irb); in virtio_ccw_int_handler()
1089 virtio_ccw_check_activity(vcdev, activity); in virtio_ccw_int_handler()
1103 vcdev->err = -EOPNOTSUPP; in virtio_ccw_int_handler()
1106 vcdev->err = -EIO; in virtio_ccw_int_handler()
1108 virtio_ccw_check_activity(vcdev, activity); in virtio_ccw_int_handler()
1109 for_each_set_bit(i, indicators(vcdev), in virtio_ccw_int_handler()
1110 sizeof(*indicators(vcdev)) * BITS_PER_BYTE) { in virtio_ccw_int_handler()
1112 clear_bit(i, indicators(vcdev)); in virtio_ccw_int_handler()
1114 vq = virtio_ccw_vq_by_ind(vcdev, i); in virtio_ccw_int_handler()
1117 if (test_bit(0, indicators2(vcdev))) { in virtio_ccw_int_handler()
1118 virtio_config_changed(&vcdev->vdev); in virtio_ccw_int_handler()
1119 clear_bit(0, indicators2(vcdev)); in virtio_ccw_int_handler()
1168 struct virtio_ccw_device *vcdev; in virtio_grab_drvdata() local
1171 vcdev = dev_get_drvdata(&cdev->dev); in virtio_grab_drvdata()
1172 if (!vcdev || vcdev->going_away) { in virtio_grab_drvdata()
1176 vcdev->going_away = true; in virtio_grab_drvdata()
1178 return vcdev; in virtio_grab_drvdata()
1184 struct virtio_ccw_device *vcdev = virtio_grab_drvdata(cdev); in virtio_ccw_remove() local
1186 if (vcdev && cdev->online) { in virtio_ccw_remove()
1187 if (vcdev->device_lost) in virtio_ccw_remove()
1188 virtio_break_device(&vcdev->vdev); in virtio_ccw_remove()
1189 unregister_virtio_device(&vcdev->vdev); in virtio_ccw_remove()
1200 struct virtio_ccw_device *vcdev = virtio_grab_drvdata(cdev); in virtio_ccw_offline() local
1202 if (!vcdev) in virtio_ccw_offline()
1204 if (vcdev->device_lost) in virtio_ccw_offline()
1205 virtio_break_device(&vcdev->vdev); in virtio_ccw_offline()
1206 unregister_virtio_device(&vcdev->vdev); in virtio_ccw_offline()
1213 static int virtio_ccw_set_transport_rev(struct virtio_ccw_device *vcdev) in virtio_ccw_set_transport_rev() argument
1219 ccw = ccw_device_dma_zalloc(vcdev->cdev, sizeof(*ccw)); in virtio_ccw_set_transport_rev()
1222 rev = ccw_device_dma_zalloc(vcdev->cdev, sizeof(*rev)); in virtio_ccw_set_transport_rev()
1224 ccw_device_dma_free(vcdev->cdev, ccw, sizeof(*ccw)); in virtio_ccw_set_transport_rev()
1234 vcdev->revision = VIRTIO_CCW_REV_MAX; in virtio_ccw_set_transport_rev()
1236 rev->revision = vcdev->revision; in virtio_ccw_set_transport_rev()
1239 ret = ccw_io_helper(vcdev, ccw, in virtio_ccw_set_transport_rev()
1242 if (vcdev->revision == 0) in virtio_ccw_set_transport_rev()
1250 vcdev->revision--; in virtio_ccw_set_transport_rev()
1254 ccw_device_dma_free(vcdev->cdev, ccw, sizeof(*ccw)); in virtio_ccw_set_transport_rev()
1255 ccw_device_dma_free(vcdev->cdev, rev, sizeof(*rev)); in virtio_ccw_set_transport_rev()
1262 struct virtio_ccw_device *vcdev; in virtio_ccw_online() local
1265 vcdev = kzalloc(sizeof(*vcdev), GFP_KERNEL); in virtio_ccw_online()
1266 if (!vcdev) { in virtio_ccw_online()
1271 vcdev->vdev.dev.parent = &cdev->dev; in virtio_ccw_online()
1272 vcdev->cdev = cdev; in virtio_ccw_online()
1273 vcdev->dma_area = ccw_device_dma_zalloc(vcdev->cdev, in virtio_ccw_online()
1274 sizeof(*vcdev->dma_area)); in virtio_ccw_online()
1275 if (!vcdev->dma_area) { in virtio_ccw_online()
1280 vcdev->is_thinint = virtio_ccw_use_airq; /* at least try */ in virtio_ccw_online()
1282 vcdev->vdev.dev.release = virtio_ccw_release_dev; in virtio_ccw_online()
1283 vcdev->vdev.config = &virtio_ccw_config_ops; in virtio_ccw_online()
1284 init_waitqueue_head(&vcdev->wait_q); in virtio_ccw_online()
1285 INIT_LIST_HEAD(&vcdev->virtqueues); in virtio_ccw_online()
1286 spin_lock_init(&vcdev->lock); in virtio_ccw_online()
1287 mutex_init(&vcdev->io_lock); in virtio_ccw_online()
1290 dev_set_drvdata(&cdev->dev, vcdev); in virtio_ccw_online()
1292 vcdev->vdev.id.vendor = cdev->id.cu_type; in virtio_ccw_online()
1293 vcdev->vdev.id.device = cdev->id.cu_model; in virtio_ccw_online()
1295 ret = virtio_ccw_set_transport_rev(vcdev); in virtio_ccw_online()
1299 ret = register_virtio_device(&vcdev->vdev); in virtio_ccw_online()
1310 put_device(&vcdev->vdev.dev); in virtio_ccw_online()
1313 if (vcdev) { in virtio_ccw_online()
1314 ccw_device_dma_free(vcdev->cdev, vcdev->dma_area, in virtio_ccw_online()
1315 sizeof(*vcdev->dma_area)); in virtio_ccw_online()
1317 kfree(vcdev); in virtio_ccw_online()
1324 struct virtio_ccw_device *vcdev = dev_get_drvdata(&cdev->dev); in virtio_ccw_cio_notify() local
1330 if (!vcdev) in virtio_ccw_cio_notify()
1335 vcdev->device_lost = true; in virtio_ccw_cio_notify()