Home
last modified time | relevance | path

Searched refs:umem (Results 1 – 20 of 20) sorted by relevance

/drivers/infiniband/core/
Dumem.c48 static void __ib_umem_release(struct ib_device *dev, struct ib_umem *umem, int dirty) in __ib_umem_release() argument
53 list_for_each_entry_safe(chunk, tmp, &umem->chunk_list, list) { in __ib_umem_release()
59 if (umem->writable && dirty) in __ib_umem_release()
79 struct ib_umem *umem; in ib_umem_get() local
98 umem = kmalloc(sizeof *umem, GFP_KERNEL); in ib_umem_get()
99 if (!umem) in ib_umem_get()
102 umem->context = context; in ib_umem_get()
103 umem->length = size; in ib_umem_get()
104 umem->offset = addr & ~PAGE_MASK; in ib_umem_get()
105 umem->page_size = PAGE_SIZE; in ib_umem_get()
[all …]
DMakefile12 ib_core-$(CONFIG_INFINIBAND_USER_MEM) += umem.o
/drivers/infiniband/hw/ipath/
Dipath_mr.c151 mr->umem = NULL; in ipath_reg_phys_mr()
188 struct ib_umem *umem; in ipath_reg_user_mr() local
198 umem = ib_umem_get(pd->uobject->context, start, length, in ipath_reg_user_mr()
200 if (IS_ERR(umem)) in ipath_reg_user_mr()
201 return (void *) umem; in ipath_reg_user_mr()
204 list_for_each_entry(chunk, &umem->chunk_list, list) in ipath_reg_user_mr()
210 ib_umem_release(umem); in ipath_reg_user_mr()
218 mr->mr.offset = umem->offset; in ipath_reg_user_mr()
221 mr->umem = umem; in ipath_reg_user_mr()
225 list_for_each_entry(chunk, &umem->chunk_list, list) { in ipath_reg_user_mr()
[all …]
Dipath_verbs.h270 struct ib_umem *umem; member
/drivers/infiniband/hw/mlx4/
Dmr.c64 mr->umem = NULL; in mlx4_ib_get_dma_mr()
78 struct ib_umem *umem) in mlx4_ib_umem_write_mtt() argument
93 list_for_each_entry(chunk, &umem->chunk_list, list) in mlx4_ib_umem_write_mtt()
98 umem->page_size * k; in mlx4_ib_umem_write_mtt()
136 mr->umem = ib_umem_get(pd->uobject->context, start, length, in mlx4_ib_reg_user_mr()
138 if (IS_ERR(mr->umem)) { in mlx4_ib_reg_user_mr()
139 err = PTR_ERR(mr->umem); in mlx4_ib_reg_user_mr()
143 n = ib_umem_page_count(mr->umem); in mlx4_ib_reg_user_mr()
144 shift = ilog2(mr->umem->page_size); in mlx4_ib_reg_user_mr()
151 err = mlx4_ib_umem_write_mtt(dev, &mr->mmr.mtt, mr->umem); in mlx4_ib_reg_user_mr()
[all …]
Ddoorbell.c39 struct ib_umem *umem; member
65 page->umem = ib_umem_get(&context->ibucontext, virt & PAGE_MASK, in mlx4_ib_db_map_user()
67 if (IS_ERR(page->umem)) { in mlx4_ib_db_map_user()
68 err = PTR_ERR(page->umem); in mlx4_ib_db_map_user()
76 chunk = list_entry(page->umem->chunk_list.next, struct ib_umem_chunk, list); in mlx4_ib_db_map_user()
93 ib_umem_release(db->u.user_page->umem); in mlx4_ib_db_unmap_user()
Dsrq.c112 srq->umem = ib_umem_get(pd->uobject->context, ucmd.buf_addr, in mlx4_ib_create_srq()
114 if (IS_ERR(srq->umem)) { in mlx4_ib_create_srq()
115 err = PTR_ERR(srq->umem); in mlx4_ib_create_srq()
119 err = mlx4_mtt_init(dev->dev, ib_umem_page_count(srq->umem), in mlx4_ib_create_srq()
120 ilog2(srq->umem->page_size), &srq->mtt); in mlx4_ib_create_srq()
124 err = mlx4_ib_umem_write_mtt(dev, &srq->mtt, srq->umem); in mlx4_ib_create_srq()
198 ib_umem_release(srq->umem); in mlx4_ib_create_srq()
266 ib_umem_release(msrq->umem); in mlx4_ib_destroy_srq()
Dcq.c135 struct mlx4_ib_cq_buf *buf, struct ib_umem **umem, in mlx4_ib_get_cq_umem() argument
140 *umem = ib_umem_get(context, buf_addr, cqe * sizeof (struct mlx4_cqe), in mlx4_ib_get_cq_umem()
142 if (IS_ERR(*umem)) in mlx4_ib_get_cq_umem()
143 return PTR_ERR(*umem); in mlx4_ib_get_cq_umem()
145 err = mlx4_mtt_init(dev->dev, ib_umem_page_count(*umem), in mlx4_ib_get_cq_umem()
146 ilog2((*umem)->page_size), &buf->mtt); in mlx4_ib_get_cq_umem()
150 err = mlx4_ib_umem_write_mtt(dev, &buf->mtt, *umem); in mlx4_ib_get_cq_umem()
160 ib_umem_release(*umem); in mlx4_ib_get_cq_umem()
196 err = mlx4_ib_get_cq_umem(dev, context, &cq->buf, &cq->umem, in mlx4_ib_create_cq()
248 ib_umem_release(cq->umem); in mlx4_ib_create_cq()
[all …]
Dmlx4_ib.h77 struct ib_umem *umem; member
84 struct ib_umem *umem; member
129 struct ib_umem *umem; member
152 struct ib_umem *umem; member
249 struct ib_umem *umem);
Dqp.c483 qp->umem = ib_umem_get(pd->uobject->context, ucmd.buf_addr, in create_qp_common()
485 if (IS_ERR(qp->umem)) { in create_qp_common()
486 err = PTR_ERR(qp->umem); in create_qp_common()
490 err = mlx4_mtt_init(dev->dev, ib_umem_page_count(qp->umem), in create_qp_common()
491 ilog2(qp->umem->page_size), &qp->mtt); in create_qp_common()
495 err = mlx4_ib_umem_write_mtt(dev, &qp->mtt, qp->umem); in create_qp_common()
591 ib_umem_release(qp->umem); in create_qp_common()
681 ib_umem_release(qp->umem); in destroy_qp_common()
/drivers/infiniband/hw/amso1100/
Dc2_provider.c402 mr->umem = NULL; in c2_reg_phys_mr()
454 c2mr->umem = ib_umem_get(pd->uobject->context, start, length, acc, 0); in c2_reg_user_mr()
455 if (IS_ERR(c2mr->umem)) { in c2_reg_user_mr()
456 err = PTR_ERR(c2mr->umem); in c2_reg_user_mr()
461 shift = ffs(c2mr->umem->page_size) - 1; in c2_reg_user_mr()
464 list_for_each_entry(chunk, &c2mr->umem->chunk_list, list) in c2_reg_user_mr()
474 list_for_each_entry(chunk, &c2mr->umem->chunk_list, list) { in c2_reg_user_mr()
480 (c2mr->umem->page_size * k); in c2_reg_user_mr()
488 c2mr->umem->page_size, in c2_reg_user_mr()
491 c2mr->umem->offset, in c2_reg_user_mr()
[all …]
Dc2_provider.h76 struct ib_umem *umem; member
/drivers/infiniband/hw/mthca/
Dmthca_provider.c917 mr->umem = NULL; in mthca_get_dma_mr()
1000 mr->umem = NULL; in mthca_reg_phys_mr()
1033 mr->umem = ib_umem_get(pd->uobject->context, start, length, acc, in mthca_reg_user_mr()
1036 if (IS_ERR(mr->umem)) { in mthca_reg_user_mr()
1037 err = PTR_ERR(mr->umem); in mthca_reg_user_mr()
1041 shift = ffs(mr->umem->page_size) - 1; in mthca_reg_user_mr()
1044 list_for_each_entry(chunk, &mr->umem->chunk_list, list) in mthca_reg_user_mr()
1063 list_for_each_entry(chunk, &mr->umem->chunk_list, list) in mthca_reg_user_mr()
1068 mr->umem->page_size * k; in mthca_reg_user_mr()
1102 ib_umem_release(mr->umem); in mthca_reg_user_mr()
[all …]
Dmthca_provider.h75 struct ib_umem *umem; member
/drivers/infiniband/hw/cxgb3/
Diwch_provider.c450 if (mhp->umem) in iwch_dereg_mr()
451 ib_umem_release(mhp->umem); in iwch_dereg_mr()
624 mhp->umem = ib_umem_get(pd->uobject->context, start, length, acc, 0); in iwch_reg_user_mr()
625 if (IS_ERR(mhp->umem)) { in iwch_reg_user_mr()
626 err = PTR_ERR(mhp->umem); in iwch_reg_user_mr()
631 shift = ffs(mhp->umem->page_size) - 1; in iwch_reg_user_mr()
634 list_for_each_entry(chunk, &mhp->umem->chunk_list, list) in iwch_reg_user_mr()
649 list_for_each_entry(chunk, &mhp->umem->chunk_list, list) in iwch_reg_user_mr()
655 mhp->umem->page_size * k); in iwch_reg_user_mr()
704 ib_umem_release(mhp->umem); in iwch_reg_user_mr()
Diwch_provider.h76 struct ib_umem *umem; member
/drivers/infiniband/hw/ehca/
Dehca_mrmw.c325 e_mr->umem = ib_umem_get(pd->uobject->context, start, length, in ehca_reg_user_mr()
327 if (IS_ERR(e_mr->umem)) { in ehca_reg_user_mr()
328 ib_mr = (void *)e_mr->umem; in ehca_reg_user_mr()
332 if (e_mr->umem->page_size != PAGE_SIZE) { in ehca_reg_user_mr()
334 "e_mr->umem->page_size=%x", e_mr->umem->page_size); in ehca_reg_user_mr()
343 if (e_mr->umem->hugetlb) { in ehca_reg_user_mr()
365 pginfo.u.usr.region = e_mr->umem; in ehca_reg_user_mr()
366 pginfo.next_hwpage = e_mr->umem->offset / hwpage_size; in ehca_reg_user_mr()
368 (&e_mr->umem->chunk_list), in ehca_reg_user_mr()
395 ib_umem_release(e_mr->umem); in ehca_reg_user_mr()
[all …]
Dehca_classes.h271 struct ib_umem *umem; member
/drivers/block/
DMakefile25 obj-$(CONFIG_BLK_DEV_UMEM) += umem.o
DKconfig165 <http://www.umem.com/>
171 module will be called umem.
173 The umem driver has not yet been allocated a MAJOR number, so