Lines Matching refs:ccw
279 struct ccw1 *ccw, __u32 intparm) in ccw_io_helper() argument
287 ret = ccw_device_start(vcdev->cdev, ccw, intparm, 0, 0); in ccw_io_helper()
301 struct ccw1 *ccw) in virtio_ccw_drop_indicator() argument
316 ccw->cmd_code = CCW_CMD_SET_IND_ADAPTER; in virtio_ccw_drop_indicator()
317 ccw->count = sizeof(*thinint_area); in virtio_ccw_drop_indicator()
318 ccw->cda = (__u32)(unsigned long) thinint_area; in virtio_ccw_drop_indicator()
325 ccw->cmd_code = CCW_CMD_SET_IND; in virtio_ccw_drop_indicator()
326 ccw->count = sizeof(vcdev->indicators); in virtio_ccw_drop_indicator()
327 ccw->cda = (__u32)(unsigned long) indicatorp; in virtio_ccw_drop_indicator()
331 ccw->flags = 0; in virtio_ccw_drop_indicator()
332 ret = ccw_io_helper(vcdev, ccw, in virtio_ccw_drop_indicator()
377 struct ccw1 *ccw, int index) in virtio_ccw_read_vq_conf() argument
380 ccw->cmd_code = CCW_CMD_READ_VQ_CONF; in virtio_ccw_read_vq_conf()
381 ccw->flags = 0; in virtio_ccw_read_vq_conf()
382 ccw->count = sizeof(struct vq_config_block); in virtio_ccw_read_vq_conf()
383 ccw->cda = (__u32)(unsigned long)(vcdev->config_block); in virtio_ccw_read_vq_conf()
384 ccw_io_helper(vcdev, ccw, VIRTIO_CCW_DOING_READ_VQ_CONF); in virtio_ccw_read_vq_conf()
388 static void virtio_ccw_del_vq(struct virtqueue *vq, struct ccw1 *ccw) in virtio_ccw_del_vq() argument
407 ccw->cmd_code = CCW_CMD_SET_VQ; in virtio_ccw_del_vq()
408 ccw->flags = 0; in virtio_ccw_del_vq()
409 ccw->count = sizeof(*info->info_block); in virtio_ccw_del_vq()
410 ccw->cda = (__u32)(unsigned long)(info->info_block); in virtio_ccw_del_vq()
411 ret = ccw_io_helper(vcdev, ccw, in virtio_ccw_del_vq()
431 struct ccw1 *ccw; in virtio_ccw_del_vqs() local
434 ccw = kzalloc(sizeof(*ccw), GFP_DMA | GFP_KERNEL); in virtio_ccw_del_vqs()
435 if (!ccw) in virtio_ccw_del_vqs()
438 virtio_ccw_drop_indicator(vcdev, ccw); in virtio_ccw_del_vqs()
441 virtio_ccw_del_vq(vq, ccw); in virtio_ccw_del_vqs()
443 kfree(ccw); in virtio_ccw_del_vqs()
449 struct ccw1 *ccw) in virtio_ccw_setup_vq() argument
472 info->num = virtio_ccw_read_vq_conf(vcdev, ccw, i); in virtio_ccw_setup_vq()
496 ccw->cmd_code = CCW_CMD_SET_VQ; in virtio_ccw_setup_vq()
497 ccw->flags = 0; in virtio_ccw_setup_vq()
498 ccw->count = sizeof(*info->info_block); in virtio_ccw_setup_vq()
499 ccw->cda = (__u32)(unsigned long)(info->info_block); in virtio_ccw_setup_vq()
500 err = ccw_io_helper(vcdev, ccw, VIRTIO_CCW_DOING_SET_VQ | i); in virtio_ccw_setup_vq()
530 struct ccw1 *ccw) in virtio_ccw_register_adapter_ind() argument
553 ccw->cmd_code = CCW_CMD_SET_IND_ADAPTER; in virtio_ccw_register_adapter_ind()
554 ccw->flags = CCW_FLAG_SLI; in virtio_ccw_register_adapter_ind()
555 ccw->count = sizeof(*thinint_area); in virtio_ccw_register_adapter_ind()
556 ccw->cda = (__u32)(unsigned long)thinint_area; in virtio_ccw_register_adapter_ind()
557 ret = ccw_io_helper(vcdev, ccw, VIRTIO_CCW_DOING_SET_IND_ADAPTER); in virtio_ccw_register_adapter_ind()
584 struct ccw1 *ccw; in virtio_ccw_find_vqs() local
586 ccw = kzalloc(sizeof(*ccw), GFP_DMA | GFP_KERNEL); in virtio_ccw_find_vqs()
587 if (!ccw) in virtio_ccw_find_vqs()
592 ccw); in virtio_ccw_find_vqs()
606 ret = virtio_ccw_register_adapter_ind(vcdev, vqs, nvqs, ccw); in virtio_ccw_find_vqs()
614 ccw->cmd_code = CCW_CMD_SET_IND; in virtio_ccw_find_vqs()
615 ccw->flags = 0; in virtio_ccw_find_vqs()
616 ccw->count = sizeof(vcdev->indicators); in virtio_ccw_find_vqs()
617 ccw->cda = (__u32)(unsigned long) indicatorp; in virtio_ccw_find_vqs()
618 ret = ccw_io_helper(vcdev, ccw, VIRTIO_CCW_DOING_SET_IND); in virtio_ccw_find_vqs()
625 ccw->cmd_code = CCW_CMD_SET_CONF_IND; in virtio_ccw_find_vqs()
626 ccw->flags = 0; in virtio_ccw_find_vqs()
627 ccw->count = sizeof(vcdev->indicators2); in virtio_ccw_find_vqs()
628 ccw->cda = (__u32)(unsigned long) indicatorp; in virtio_ccw_find_vqs()
629 ret = ccw_io_helper(vcdev, ccw, VIRTIO_CCW_DOING_SET_CONF_IND); in virtio_ccw_find_vqs()
634 kfree(ccw); in virtio_ccw_find_vqs()
638 kfree(ccw); in virtio_ccw_find_vqs()
646 struct ccw1 *ccw; in virtio_ccw_reset() local
648 ccw = kzalloc(sizeof(*ccw), GFP_DMA | GFP_KERNEL); in virtio_ccw_reset()
649 if (!ccw) in virtio_ccw_reset()
656 ccw->cmd_code = CCW_CMD_VDEV_RESET; in virtio_ccw_reset()
657 ccw->flags = 0; in virtio_ccw_reset()
658 ccw->count = 0; in virtio_ccw_reset()
659 ccw->cda = 0; in virtio_ccw_reset()
660 ccw_io_helper(vcdev, ccw, VIRTIO_CCW_DOING_RESET); in virtio_ccw_reset()
661 kfree(ccw); in virtio_ccw_reset()
669 struct ccw1 *ccw; in virtio_ccw_get_features() local
671 ccw = kzalloc(sizeof(*ccw), GFP_DMA | GFP_KERNEL); in virtio_ccw_get_features()
672 if (!ccw) in virtio_ccw_get_features()
683 ccw->cmd_code = CCW_CMD_READ_FEAT; in virtio_ccw_get_features()
684 ccw->flags = 0; in virtio_ccw_get_features()
685 ccw->count = sizeof(*features); in virtio_ccw_get_features()
686 ccw->cda = (__u32)(unsigned long)features; in virtio_ccw_get_features()
687 ret = ccw_io_helper(vcdev, ccw, VIRTIO_CCW_DOING_READ_FEAT); in virtio_ccw_get_features()
697 kfree(ccw); in virtio_ccw_get_features()
706 struct ccw1 *ccw; in virtio_ccw_finalize_features() local
708 ccw = kzalloc(sizeof(*ccw), GFP_DMA | GFP_KERNEL); in virtio_ccw_finalize_features()
709 if (!ccw) in virtio_ccw_finalize_features()
726 ccw->cmd_code = CCW_CMD_WRITE_FEAT; in virtio_ccw_finalize_features()
727 ccw->flags = 0; in virtio_ccw_finalize_features()
728 ccw->count = sizeof(*features); in virtio_ccw_finalize_features()
729 ccw->cda = (__u32)(unsigned long)features; in virtio_ccw_finalize_features()
730 ccw_io_helper(vcdev, ccw, VIRTIO_CCW_DOING_WRITE_FEAT); in virtio_ccw_finalize_features()
734 kfree(ccw); in virtio_ccw_finalize_features()
742 struct ccw1 *ccw; in virtio_ccw_get_config() local
745 ccw = kzalloc(sizeof(*ccw), GFP_DMA | GFP_KERNEL); in virtio_ccw_get_config()
746 if (!ccw) in virtio_ccw_get_config()
754 ccw->cmd_code = CCW_CMD_READ_CONF; in virtio_ccw_get_config()
755 ccw->flags = 0; in virtio_ccw_get_config()
756 ccw->count = offset + len; in virtio_ccw_get_config()
757 ccw->cda = (__u32)(unsigned long)config_area; in virtio_ccw_get_config()
758 ret = ccw_io_helper(vcdev, ccw, VIRTIO_CCW_DOING_READ_CONFIG); in virtio_ccw_get_config()
770 kfree(ccw); in virtio_ccw_get_config()
778 struct ccw1 *ccw; in virtio_ccw_set_config() local
781 ccw = kzalloc(sizeof(*ccw), GFP_DMA | GFP_KERNEL); in virtio_ccw_set_config()
782 if (!ccw) in virtio_ccw_set_config()
795 ccw->cmd_code = CCW_CMD_WRITE_CONF; in virtio_ccw_set_config()
796 ccw->flags = 0; in virtio_ccw_set_config()
797 ccw->count = offset + len; in virtio_ccw_set_config()
798 ccw->cda = (__u32)(unsigned long)config_area; in virtio_ccw_set_config()
799 ccw_io_helper(vcdev, ccw, VIRTIO_CCW_DOING_WRITE_CONFIG); in virtio_ccw_set_config()
803 kfree(ccw); in virtio_ccw_set_config()
816 struct ccw1 *ccw; in virtio_ccw_set_status() local
818 ccw = kzalloc(sizeof(*ccw), GFP_DMA | GFP_KERNEL); in virtio_ccw_set_status()
819 if (!ccw) in virtio_ccw_set_status()
824 ccw->cmd_code = CCW_CMD_WRITE_STATUS; in virtio_ccw_set_status()
825 ccw->flags = 0; in virtio_ccw_set_status()
826 ccw->count = sizeof(status); in virtio_ccw_set_status()
827 ccw->cda = (__u32)(unsigned long)vcdev->status; in virtio_ccw_set_status()
828 ccw_io_helper(vcdev, ccw, VIRTIO_CCW_DOING_WRITE_STATUS); in virtio_ccw_set_status()
829 kfree(ccw); in virtio_ccw_set_status()
1134 MODULE_DEVICE_TABLE(ccw, virtio_ids);