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()
409 struct ccw1 *ccw, int index) in virtio_ccw_read_vq_conf() argument
414 ccw->cmd_code = CCW_CMD_READ_VQ_CONF; in virtio_ccw_read_vq_conf()
415 ccw->flags = 0; in virtio_ccw_read_vq_conf()
416 ccw->count = sizeof(struct vq_config_block); 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()
424 static void virtio_ccw_del_vq(struct virtqueue *vq, struct ccw1 *ccw) in virtio_ccw_del_vq() argument
443 ccw->count = sizeof(info->info_block->l); in virtio_ccw_del_vq()
450 ccw->count = sizeof(info->info_block->s); in virtio_ccw_del_vq()
452 ccw->cmd_code = CCW_CMD_SET_VQ; in virtio_ccw_del_vq()
453 ccw->flags = 0; in virtio_ccw_del_vq()
454 ccw->cda = (__u32)(unsigned long)(info->info_block); in virtio_ccw_del_vq()
455 ret = ccw_io_helper(vcdev, ccw, in virtio_ccw_del_vq()
474 struct ccw1 *ccw; in virtio_ccw_del_vqs() local
477 ccw = ccw_device_dma_zalloc(vcdev->cdev, sizeof(*ccw)); in virtio_ccw_del_vqs()
478 if (!ccw) in virtio_ccw_del_vqs()
481 virtio_ccw_drop_indicator(vcdev, ccw); in virtio_ccw_del_vqs()
484 virtio_ccw_del_vq(vq, ccw); in virtio_ccw_del_vqs()
486 ccw_device_dma_free(vcdev->cdev, ccw, sizeof(*ccw)); in virtio_ccw_del_vqs()
492 struct ccw1 *ccw) in virtio_ccw_setup_vq() argument
516 info->num = virtio_ccw_read_vq_conf(vcdev, ccw, i); in virtio_ccw_setup_vq()
542 ccw->count = sizeof(info->info_block->l); in virtio_ccw_setup_vq()
549 ccw->count = sizeof(info->info_block->s); in virtio_ccw_setup_vq()
551 ccw->cmd_code = CCW_CMD_SET_VQ; in virtio_ccw_setup_vq()
552 ccw->flags = 0; in virtio_ccw_setup_vq()
553 ccw->cda = (__u32)(unsigned long)(info->info_block); in virtio_ccw_setup_vq()
554 err = ccw_io_helper(vcdev, ccw, VIRTIO_CCW_DOING_SET_VQ | i); in virtio_ccw_setup_vq()
583 struct ccw1 *ccw) in virtio_ccw_register_adapter_ind() argument
607 ccw->cmd_code = CCW_CMD_SET_IND_ADAPTER; in virtio_ccw_register_adapter_ind()
608 ccw->flags = CCW_FLAG_SLI; in virtio_ccw_register_adapter_ind()
609 ccw->count = sizeof(*thinint_area); in virtio_ccw_register_adapter_ind()
610 ccw->cda = (__u32)(unsigned long)thinint_area; 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()
640 struct ccw1 *ccw; in virtio_ccw_find_vqs() local
642 ccw = ccw_device_dma_zalloc(vcdev->cdev, sizeof(*ccw)); in virtio_ccw_find_vqs()
643 if (!ccw) in virtio_ccw_find_vqs()
654 ccw); in virtio_ccw_find_vqs()
672 ret = virtio_ccw_register_adapter_ind(vcdev, vqs, nvqs, ccw); in virtio_ccw_find_vqs()
680 ccw->cmd_code = CCW_CMD_SET_IND; in virtio_ccw_find_vqs()
681 ccw->flags = 0; in virtio_ccw_find_vqs()
682 ccw->count = sizeof(indicators(vcdev)); in virtio_ccw_find_vqs()
683 ccw->cda = (__u32)(unsigned long) indicatorp; in virtio_ccw_find_vqs()
684 ret = ccw_io_helper(vcdev, ccw, VIRTIO_CCW_DOING_SET_IND); in virtio_ccw_find_vqs()
691 ccw->cmd_code = CCW_CMD_SET_CONF_IND; in virtio_ccw_find_vqs()
692 ccw->flags = 0; in virtio_ccw_find_vqs()
693 ccw->count = sizeof(indicators2(vcdev)); in virtio_ccw_find_vqs()
694 ccw->cda = (__u32)(unsigned long) indicatorp; in virtio_ccw_find_vqs()
695 ret = ccw_io_helper(vcdev, ccw, VIRTIO_CCW_DOING_SET_CONF_IND); in virtio_ccw_find_vqs()
702 ccw_device_dma_free(vcdev->cdev, ccw, sizeof(*ccw)); in virtio_ccw_find_vqs()
708 ccw_device_dma_free(vcdev->cdev, ccw, sizeof(*ccw)); in virtio_ccw_find_vqs()
716 struct ccw1 *ccw; in virtio_ccw_reset() local
718 ccw = ccw_device_dma_zalloc(vcdev->cdev, sizeof(*ccw)); in virtio_ccw_reset()
719 if (!ccw) in virtio_ccw_reset()
726 ccw->cmd_code = CCW_CMD_VDEV_RESET; in virtio_ccw_reset()
727 ccw->flags = 0; in virtio_ccw_reset()
728 ccw->count = 0; in virtio_ccw_reset()
729 ccw->cda = 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()
740 struct ccw1 *ccw; in virtio_ccw_get_features() local
742 ccw = ccw_device_dma_zalloc(vcdev->cdev, sizeof(*ccw)); in virtio_ccw_get_features()
743 if (!ccw) in virtio_ccw_get_features()
753 ccw->cmd_code = CCW_CMD_READ_FEAT; in virtio_ccw_get_features()
754 ccw->flags = 0; in virtio_ccw_get_features()
755 ccw->count = sizeof(*features); in virtio_ccw_get_features()
756 ccw->cda = (__u32)(unsigned long)features; in virtio_ccw_get_features()
757 ret = ccw_io_helper(vcdev, ccw, VIRTIO_CCW_DOING_READ_FEAT); in virtio_ccw_get_features()
770 ccw->cmd_code = CCW_CMD_READ_FEAT; in virtio_ccw_get_features()
771 ccw->flags = 0; in virtio_ccw_get_features()
772 ccw->count = sizeof(*features); in virtio_ccw_get_features()
773 ccw->cda = (__u32)(unsigned long)features; in virtio_ccw_get_features()
774 ret = ccw_io_helper(vcdev, ccw, VIRTIO_CCW_DOING_READ_FEAT); in virtio_ccw_get_features()
780 ccw_device_dma_free(vcdev->cdev, ccw, sizeof(*ccw)); in virtio_ccw_get_features()
795 struct ccw1 *ccw; in virtio_ccw_finalize_features() local
805 ccw = ccw_device_dma_zalloc(vcdev->cdev, sizeof(*ccw)); in virtio_ccw_finalize_features()
806 if (!ccw) in virtio_ccw_finalize_features()
823 ccw->cmd_code = CCW_CMD_WRITE_FEAT; in virtio_ccw_finalize_features()
824 ccw->flags = 0; in virtio_ccw_finalize_features()
825 ccw->count = sizeof(*features); in virtio_ccw_finalize_features()
826 ccw->cda = (__u32)(unsigned long)features; in virtio_ccw_finalize_features()
827 ret = ccw_io_helper(vcdev, ccw, VIRTIO_CCW_DOING_WRITE_FEAT); in virtio_ccw_finalize_features()
837 ccw->cmd_code = CCW_CMD_WRITE_FEAT; in virtio_ccw_finalize_features()
838 ccw->flags = 0; in virtio_ccw_finalize_features()
839 ccw->count = sizeof(*features); in virtio_ccw_finalize_features()
840 ccw->cda = (__u32)(unsigned long)features; in virtio_ccw_finalize_features()
841 ret = ccw_io_helper(vcdev, ccw, VIRTIO_CCW_DOING_WRITE_FEAT); in virtio_ccw_finalize_features()
845 ccw_device_dma_free(vcdev->cdev, ccw, sizeof(*ccw)); in virtio_ccw_finalize_features()
855 struct ccw1 *ccw; in virtio_ccw_get_config() local
859 ccw = ccw_device_dma_zalloc(vcdev->cdev, sizeof(*ccw)); in virtio_ccw_get_config()
860 if (!ccw) in virtio_ccw_get_config()
869 ccw->cmd_code = CCW_CMD_READ_CONF; in virtio_ccw_get_config()
870 ccw->flags = 0; in virtio_ccw_get_config()
871 ccw->count = offset + len; in virtio_ccw_get_config()
872 ccw->cda = (__u32)(unsigned long)config_area; in virtio_ccw_get_config()
873 ret = ccw_io_helper(vcdev, ccw, VIRTIO_CCW_DOING_READ_CONFIG); in virtio_ccw_get_config()
887 ccw_device_dma_free(vcdev->cdev, ccw, sizeof(*ccw)); in virtio_ccw_get_config()
895 struct ccw1 *ccw; in virtio_ccw_set_config() local
899 ccw = ccw_device_dma_zalloc(vcdev->cdev, sizeof(*ccw)); in virtio_ccw_set_config()
900 if (!ccw) in virtio_ccw_set_config()
916 ccw->cmd_code = CCW_CMD_WRITE_CONF; in virtio_ccw_set_config()
917 ccw->flags = 0; in virtio_ccw_set_config()
918 ccw->count = offset + len; in virtio_ccw_set_config()
919 ccw->cda = (__u32)(unsigned long)config_area; in virtio_ccw_set_config()
920 ccw_io_helper(vcdev, ccw, VIRTIO_CCW_DOING_WRITE_CONFIG); in virtio_ccw_set_config()
924 ccw_device_dma_free(vcdev->cdev, ccw, sizeof(*ccw)); in virtio_ccw_set_config()
931 struct ccw1 *ccw; in virtio_ccw_get_status() local
936 ccw = ccw_device_dma_zalloc(vcdev->cdev, sizeof(*ccw)); in virtio_ccw_get_status()
937 if (!ccw) in virtio_ccw_get_status()
940 ccw->cmd_code = CCW_CMD_READ_STATUS; in virtio_ccw_get_status()
941 ccw->flags = 0; 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()
960 struct ccw1 *ccw; in virtio_ccw_set_status() local
963 ccw = ccw_device_dma_zalloc(vcdev->cdev, sizeof(*ccw)); in virtio_ccw_set_status()
964 if (!ccw) in virtio_ccw_set_status()
969 ccw->cmd_code = CCW_CMD_WRITE_STATUS; in virtio_ccw_set_status()
970 ccw->flags = 0; in virtio_ccw_set_status()
971 ccw->count = sizeof(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()
977 ccw_device_dma_free(vcdev->cdev, ccw, sizeof(*ccw)); in virtio_ccw_set_status()
1216 struct ccw1 *ccw; in virtio_ccw_set_transport_rev() local
1219 ccw = ccw_device_dma_zalloc(vcdev->cdev, sizeof(*ccw)); in virtio_ccw_set_transport_rev()
1220 if (!ccw) in virtio_ccw_set_transport_rev()
1224 ccw_device_dma_free(vcdev->cdev, ccw, sizeof(*ccw)); in virtio_ccw_set_transport_rev()
1229 ccw->cmd_code = CCW_CMD_SET_VIRTIO_REV; in virtio_ccw_set_transport_rev()
1230 ccw->flags = 0; in virtio_ccw_set_transport_rev()
1231 ccw->count = sizeof(*rev); in virtio_ccw_set_transport_rev()
1232 ccw->cda = (__u32)(unsigned long)rev; in virtio_ccw_set_transport_rev()
1239 ret = ccw_io_helper(vcdev, ccw, in virtio_ccw_set_transport_rev()
1254 ccw_device_dma_free(vcdev->cdev, ccw, sizeof(*ccw)); in virtio_ccw_set_transport_rev()