Lines Matching refs:op_entry

173 static int copy_op_to_user(struct mlx5_ib_dm_op_entry *op_entry,  in copy_op_to_user()  argument
180 page_idx = op_entry->mentry.rdma_entry.start_pgoff & 0xFFFF; in copy_op_to_user()
181 start_offset = op_entry->op_addr & ~PAGE_MASK; in copy_op_to_user()
195 struct mlx5_ib_dm_op_entry *op_entry; in map_existing_op() local
197 op_entry = xa_load(&dm->ops, op); in map_existing_op()
198 if (!op_entry) in map_existing_op()
201 return copy_op_to_user(op_entry, attrs); in map_existing_op()
212 struct mlx5_ib_dm_op_entry *op_entry; in UVERBS_HANDLER() local
231 op_entry = kzalloc(sizeof(*op_entry), GFP_KERNEL); in UVERBS_HANDLER()
232 if (!op_entry) in UVERBS_HANDLER()
236 &op_entry->op_addr); in UVERBS_HANDLER()
238 kfree(op_entry); in UVERBS_HANDLER()
241 op_entry->op = op; in UVERBS_HANDLER()
242 op_entry->dm = dm; in UVERBS_HANDLER()
244 err = add_dm_mmap_entry(uobj->context, &op_entry->mentry, in UVERBS_HANDLER()
246 op_entry->op_addr & PAGE_MASK); in UVERBS_HANDLER()
249 kfree(op_entry); in UVERBS_HANDLER()
255 err = copy_op_to_user(op_entry, attrs); in UVERBS_HANDLER()
259 err = xa_insert(&dm->ops, op, op_entry, GFP_KERNEL); in UVERBS_HANDLER()
267 rdma_user_mmap_entry_remove(&op_entry->mentry.rdma_entry); in UVERBS_HANDLER()
540 struct mlx5_ib_dm_op_entry *op_entry; in mlx5_ib_dm_mmap_free() local
549 op_entry = container_of(mentry, struct mlx5_ib_dm_op_entry, in mlx5_ib_dm_mmap_free()
551 mdm = op_entry->dm; in mlx5_ib_dm_mmap_free()
553 op_entry->op); in mlx5_ib_dm_mmap_free()
554 kfree(op_entry); in mlx5_ib_dm_mmap_free()