Lines Matching refs:ccw

321 			 struct ccw1 *ccw, __u32 intparm)  in ccw_io_helper()  argument
330 ret = ccw_device_start(vcdev->cdev, ccw, intparm, 0, 0); in ccw_io_helper()
346 struct ccw1 *ccw) in virtio_ccw_drop_indicator() argument
361 ccw->cmd_code = CCW_CMD_SET_IND_ADAPTER; in virtio_ccw_drop_indicator()
362 ccw->count = sizeof(*thinint_area); in virtio_ccw_drop_indicator()
363 ccw->cda = (__u32)(unsigned long) thinint_area; in virtio_ccw_drop_indicator()
371 ccw->cmd_code = CCW_CMD_SET_IND; in virtio_ccw_drop_indicator()
372 ccw->count = sizeof(indicators(vcdev)); in virtio_ccw_drop_indicator()
373 ccw->cda = (__u32)(unsigned long) indicatorp; in virtio_ccw_drop_indicator()
377 ccw->flags = 0; in virtio_ccw_drop_indicator()
378 ret = ccw_io_helper(vcdev, ccw, in virtio_ccw_drop_indicator()
431 struct ccw1 *ccw, int index) in virtio_ccw_read_vq_conf() argument
436 ccw->cmd_code = CCW_CMD_READ_VQ_CONF; in virtio_ccw_read_vq_conf()
437 ccw->flags = 0; in virtio_ccw_read_vq_conf()
438 ccw->count = sizeof(struct vq_config_block); in virtio_ccw_read_vq_conf()
439 ccw->cda = (__u32)(unsigned long)(&vcdev->dma_area->config_block); in virtio_ccw_read_vq_conf()
440 ret = ccw_io_helper(vcdev, ccw, VIRTIO_CCW_DOING_READ_VQ_CONF); in virtio_ccw_read_vq_conf()
446 static void virtio_ccw_del_vq(struct virtqueue *vq, struct ccw1 *ccw) in virtio_ccw_del_vq() argument
465 ccw->count = sizeof(info->info_block->l); in virtio_ccw_del_vq()
472 ccw->count = sizeof(info->info_block->s); in virtio_ccw_del_vq()
474 ccw->cmd_code = CCW_CMD_SET_VQ; in virtio_ccw_del_vq()
475 ccw->flags = 0; in virtio_ccw_del_vq()
476 ccw->cda = (__u32)(unsigned long)(info->info_block); in virtio_ccw_del_vq()
477 ret = ccw_io_helper(vcdev, ccw, in virtio_ccw_del_vq()
496 struct ccw1 *ccw; in virtio_ccw_del_vqs() local
499 ccw = ccw_device_dma_zalloc(vcdev->cdev, sizeof(*ccw)); in virtio_ccw_del_vqs()
500 if (!ccw) in virtio_ccw_del_vqs()
503 virtio_ccw_drop_indicator(vcdev, ccw); in virtio_ccw_del_vqs()
506 virtio_ccw_del_vq(vq, ccw); in virtio_ccw_del_vqs()
508 ccw_device_dma_free(vcdev->cdev, ccw, sizeof(*ccw)); in virtio_ccw_del_vqs()
514 struct ccw1 *ccw) in virtio_ccw_setup_vq() argument
538 info->num = virtio_ccw_read_vq_conf(vcdev, ccw, i); in virtio_ccw_setup_vq()
564 ccw->count = sizeof(info->info_block->l); in virtio_ccw_setup_vq()
571 ccw->count = sizeof(info->info_block->s); in virtio_ccw_setup_vq()
573 ccw->cmd_code = CCW_CMD_SET_VQ; in virtio_ccw_setup_vq()
574 ccw->flags = 0; in virtio_ccw_setup_vq()
575 ccw->cda = (__u32)(unsigned long)(info->info_block); in virtio_ccw_setup_vq()
576 err = ccw_io_helper(vcdev, ccw, VIRTIO_CCW_DOING_SET_VQ | i); in virtio_ccw_setup_vq()
605 struct ccw1 *ccw) in virtio_ccw_register_adapter_ind() argument
629 ccw->cmd_code = CCW_CMD_SET_IND_ADAPTER; in virtio_ccw_register_adapter_ind()
630 ccw->flags = CCW_FLAG_SLI; in virtio_ccw_register_adapter_ind()
631 ccw->count = sizeof(*thinint_area); in virtio_ccw_register_adapter_ind()
632 ccw->cda = (__u32)(unsigned long)thinint_area; in virtio_ccw_register_adapter_ind()
633 ret = ccw_io_helper(vcdev, ccw, VIRTIO_CCW_DOING_SET_IND_ADAPTER); in virtio_ccw_register_adapter_ind()
662 struct ccw1 *ccw; in virtio_ccw_find_vqs() local
664 ccw = ccw_device_dma_zalloc(vcdev->cdev, sizeof(*ccw)); in virtio_ccw_find_vqs()
665 if (!ccw) in virtio_ccw_find_vqs()
676 ccw); in virtio_ccw_find_vqs()
694 ret = virtio_ccw_register_adapter_ind(vcdev, vqs, nvqs, ccw); in virtio_ccw_find_vqs()
702 ccw->cmd_code = CCW_CMD_SET_IND; in virtio_ccw_find_vqs()
703 ccw->flags = 0; in virtio_ccw_find_vqs()
704 ccw->count = sizeof(indicators(vcdev)); in virtio_ccw_find_vqs()
705 ccw->cda = (__u32)(unsigned long) indicatorp; in virtio_ccw_find_vqs()
706 ret = ccw_io_helper(vcdev, ccw, VIRTIO_CCW_DOING_SET_IND); in virtio_ccw_find_vqs()
713 ccw->cmd_code = CCW_CMD_SET_CONF_IND; in virtio_ccw_find_vqs()
714 ccw->flags = 0; in virtio_ccw_find_vqs()
715 ccw->count = sizeof(indicators2(vcdev)); in virtio_ccw_find_vqs()
716 ccw->cda = (__u32)(unsigned long) indicatorp; in virtio_ccw_find_vqs()
717 ret = ccw_io_helper(vcdev, ccw, VIRTIO_CCW_DOING_SET_CONF_IND); in virtio_ccw_find_vqs()
724 ccw_device_dma_free(vcdev->cdev, ccw, sizeof(*ccw)); in virtio_ccw_find_vqs()
730 ccw_device_dma_free(vcdev->cdev, ccw, sizeof(*ccw)); in virtio_ccw_find_vqs()
738 struct ccw1 *ccw; in virtio_ccw_reset() local
740 ccw = ccw_device_dma_zalloc(vcdev->cdev, sizeof(*ccw)); in virtio_ccw_reset()
741 if (!ccw) in virtio_ccw_reset()
748 ccw->cmd_code = CCW_CMD_VDEV_RESET; in virtio_ccw_reset()
749 ccw->flags = 0; in virtio_ccw_reset()
750 ccw->count = 0; in virtio_ccw_reset()
751 ccw->cda = 0; in virtio_ccw_reset()
752 ccw_io_helper(vcdev, ccw, VIRTIO_CCW_DOING_RESET); in virtio_ccw_reset()
753 ccw_device_dma_free(vcdev->cdev, ccw, sizeof(*ccw)); in virtio_ccw_reset()
762 struct ccw1 *ccw; in virtio_ccw_get_features() local
764 ccw = ccw_device_dma_zalloc(vcdev->cdev, sizeof(*ccw)); in virtio_ccw_get_features()
765 if (!ccw) in virtio_ccw_get_features()
775 ccw->cmd_code = CCW_CMD_READ_FEAT; in virtio_ccw_get_features()
776 ccw->flags = 0; in virtio_ccw_get_features()
777 ccw->count = sizeof(*features); in virtio_ccw_get_features()
778 ccw->cda = (__u32)(unsigned long)features; in virtio_ccw_get_features()
779 ret = ccw_io_helper(vcdev, ccw, VIRTIO_CCW_DOING_READ_FEAT); in virtio_ccw_get_features()
792 ccw->cmd_code = CCW_CMD_READ_FEAT; in virtio_ccw_get_features()
793 ccw->flags = 0; in virtio_ccw_get_features()
794 ccw->count = sizeof(*features); in virtio_ccw_get_features()
795 ccw->cda = (__u32)(unsigned long)features; in virtio_ccw_get_features()
796 ret = ccw_io_helper(vcdev, ccw, VIRTIO_CCW_DOING_READ_FEAT); in virtio_ccw_get_features()
802 ccw_device_dma_free(vcdev->cdev, ccw, sizeof(*ccw)); in virtio_ccw_get_features()
817 struct ccw1 *ccw; in virtio_ccw_finalize_features() local
827 ccw = ccw_device_dma_zalloc(vcdev->cdev, sizeof(*ccw)); in virtio_ccw_finalize_features()
828 if (!ccw) in virtio_ccw_finalize_features()
845 ccw->cmd_code = CCW_CMD_WRITE_FEAT; in virtio_ccw_finalize_features()
846 ccw->flags = 0; in virtio_ccw_finalize_features()
847 ccw->count = sizeof(*features); in virtio_ccw_finalize_features()
848 ccw->cda = (__u32)(unsigned long)features; in virtio_ccw_finalize_features()
849 ret = ccw_io_helper(vcdev, ccw, VIRTIO_CCW_DOING_WRITE_FEAT); in virtio_ccw_finalize_features()
859 ccw->cmd_code = CCW_CMD_WRITE_FEAT; in virtio_ccw_finalize_features()
860 ccw->flags = 0; in virtio_ccw_finalize_features()
861 ccw->count = sizeof(*features); in virtio_ccw_finalize_features()
862 ccw->cda = (__u32)(unsigned long)features; in virtio_ccw_finalize_features()
863 ret = ccw_io_helper(vcdev, ccw, VIRTIO_CCW_DOING_WRITE_FEAT); in virtio_ccw_finalize_features()
867 ccw_device_dma_free(vcdev->cdev, ccw, sizeof(*ccw)); in virtio_ccw_finalize_features()
877 struct ccw1 *ccw; in virtio_ccw_get_config() local
881 ccw = ccw_device_dma_zalloc(vcdev->cdev, sizeof(*ccw)); in virtio_ccw_get_config()
882 if (!ccw) in virtio_ccw_get_config()
891 ccw->cmd_code = CCW_CMD_READ_CONF; in virtio_ccw_get_config()
892 ccw->flags = 0; in virtio_ccw_get_config()
893 ccw->count = offset + len; in virtio_ccw_get_config()
894 ccw->cda = (__u32)(unsigned long)config_area; in virtio_ccw_get_config()
895 ret = ccw_io_helper(vcdev, ccw, VIRTIO_CCW_DOING_READ_CONFIG); in virtio_ccw_get_config()
909 ccw_device_dma_free(vcdev->cdev, ccw, sizeof(*ccw)); in virtio_ccw_get_config()
917 struct ccw1 *ccw; in virtio_ccw_set_config() local
921 ccw = ccw_device_dma_zalloc(vcdev->cdev, sizeof(*ccw)); in virtio_ccw_set_config()
922 if (!ccw) in virtio_ccw_set_config()
938 ccw->cmd_code = CCW_CMD_WRITE_CONF; in virtio_ccw_set_config()
939 ccw->flags = 0; in virtio_ccw_set_config()
940 ccw->count = offset + len; in virtio_ccw_set_config()
941 ccw->cda = (__u32)(unsigned long)config_area; in virtio_ccw_set_config()
942 ccw_io_helper(vcdev, ccw, VIRTIO_CCW_DOING_WRITE_CONFIG); in virtio_ccw_set_config()
946 ccw_device_dma_free(vcdev->cdev, ccw, sizeof(*ccw)); in virtio_ccw_set_config()
953 struct ccw1 *ccw; in virtio_ccw_get_status() local
958 ccw = ccw_device_dma_zalloc(vcdev->cdev, sizeof(*ccw)); in virtio_ccw_get_status()
959 if (!ccw) in virtio_ccw_get_status()
962 ccw->cmd_code = CCW_CMD_READ_STATUS; in virtio_ccw_get_status()
963 ccw->flags = 0; in virtio_ccw_get_status()
964 ccw->count = sizeof(vcdev->dma_area->status); in virtio_ccw_get_status()
965 ccw->cda = (__u32)(unsigned long)&vcdev->dma_area->status; in virtio_ccw_get_status()
966 ccw_io_helper(vcdev, ccw, VIRTIO_CCW_DOING_READ_STATUS); in virtio_ccw_get_status()
973 ccw_device_dma_free(vcdev->cdev, ccw, sizeof(*ccw)); in virtio_ccw_get_status()
982 struct ccw1 *ccw; in virtio_ccw_set_status() local
985 ccw = ccw_device_dma_zalloc(vcdev->cdev, sizeof(*ccw)); in virtio_ccw_set_status()
986 if (!ccw) in virtio_ccw_set_status()
991 ccw->cmd_code = CCW_CMD_WRITE_STATUS; in virtio_ccw_set_status()
992 ccw->flags = 0; in virtio_ccw_set_status()
993 ccw->count = sizeof(status); in virtio_ccw_set_status()
994 ccw->cda = (__u32)(unsigned long)&vcdev->dma_area->status; in virtio_ccw_set_status()
995 ret = ccw_io_helper(vcdev, ccw, VIRTIO_CCW_DOING_WRITE_STATUS); in virtio_ccw_set_status()
999 ccw_device_dma_free(vcdev->cdev, ccw, sizeof(*ccw)); in virtio_ccw_set_status()
1238 struct ccw1 *ccw; in virtio_ccw_set_transport_rev() local
1241 ccw = ccw_device_dma_zalloc(vcdev->cdev, sizeof(*ccw)); in virtio_ccw_set_transport_rev()
1242 if (!ccw) in virtio_ccw_set_transport_rev()
1246 ccw_device_dma_free(vcdev->cdev, ccw, sizeof(*ccw)); in virtio_ccw_set_transport_rev()
1251 ccw->cmd_code = CCW_CMD_SET_VIRTIO_REV; in virtio_ccw_set_transport_rev()
1252 ccw->flags = 0; in virtio_ccw_set_transport_rev()
1253 ccw->count = sizeof(*rev); in virtio_ccw_set_transport_rev()
1254 ccw->cda = (__u32)(unsigned long)rev; in virtio_ccw_set_transport_rev()
1261 ret = ccw_io_helper(vcdev, ccw, in virtio_ccw_set_transport_rev()
1276 ccw_device_dma_free(vcdev->cdev, ccw, sizeof(*ccw)); in virtio_ccw_set_transport_rev()