vt.c (f26e8817b235d8764363bffcc9cbfc61867371f2) | vt.c (0bbb3b7496eabb6779962a998a8a91f4a8e589ff) |
---|---|
1/* 2 * Copyright(c) 2016 Intel Corporation. 3 * 4 * This file is provided under a dual BSD/GPLv2 license. When using or 5 * redistributing this file, you may do so under either license. 6 * 7 * GPL LICENSE SUMMARY 8 * --- 33 unchanged lines hidden (view full) --- 42 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 43 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 44 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 45 * 46 */ 47 48#include <linux/module.h> 49#include <linux/kernel.h> | 1/* 2 * Copyright(c) 2016 Intel Corporation. 3 * 4 * This file is provided under a dual BSD/GPLv2 license. When using or 5 * redistributing this file, you may do so under either license. 6 * 7 * GPL LICENSE SUMMARY 8 * --- 33 unchanged lines hidden (view full) --- 42 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 43 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 44 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 45 * 46 */ 47 48#include <linux/module.h> 49#include <linux/kernel.h> |
50#include <linux/dma-mapping.h> |
|
50#include "vt.h" 51#include "trace.h" 52 53#define RVT_UVERBS_ABI_VERSION 2 54 55MODULE_LICENSE("Dual BSD/GPL"); 56MODULE_DESCRIPTION("RDMA Verbs Transport Library"); 57 --- 714 unchanged lines hidden (view full) --- 772 /* Completion queues */ 773 ret = rvt_driver_cq_init(rdi); 774 if (ret) { 775 pr_err("Error in driver CQ init.\n"); 776 goto bail_mr; 777 } 778 779 /* DMA Operations */ | 51#include "vt.h" 52#include "trace.h" 53 54#define RVT_UVERBS_ABI_VERSION 2 55 56MODULE_LICENSE("Dual BSD/GPL"); 57MODULE_DESCRIPTION("RDMA Verbs Transport Library"); 58 --- 714 unchanged lines hidden (view full) --- 773 /* Completion queues */ 774 ret = rvt_driver_cq_init(rdi); 775 if (ret) { 776 pr_err("Error in driver CQ init.\n"); 777 goto bail_mr; 778 } 779 780 /* DMA Operations */ |
780 rdi->ibdev.dma_ops = 781 rdi->ibdev.dma_ops ? : &rvt_default_dma_mapping_ops; | 781 rdi->ibdev.dev.dma_ops = rdi->ibdev.dev.dma_ops ? : &dma_virt_ops; |
782 783 /* Protection Domain */ 784 spin_lock_init(&rdi->n_pds_lock); 785 rdi->n_pds_allocated = 0; 786 787 /* 788 * There are some things which could be set by underlying drivers but 789 * really should be up to rdmavt to set. For instance drivers can't know --- 103 unchanged lines hidden --- | 782 783 /* Protection Domain */ 784 spin_lock_init(&rdi->n_pds_lock); 785 rdi->n_pds_allocated = 0; 786 787 /* 788 * There are some things which could be set by underlying drivers but 789 * really should be up to rdmavt to set. For instance drivers can't know --- 103 unchanged lines hidden --- |