Lines Matching defs:context
256 static int mlx4_ib_add_gid(const struct ib_gid_attr *attr, void **context)
275 if (!context)
303 *context = port_gid_table->gids[free].ctx;
315 *context = ctx;
323 *context = NULL;
338 *context = NULL;
348 static int mlx4_ib_del_gid(const struct ib_gid_attr *attr, void **context)
350 struct gid_cache_context *ctx = *context;
1098 struct mlx4_ib_ucontext *context = to_mucontext(uctx);
1119 err = mlx4_uar_alloc(to_mdev(ibdev)->dev, &context->uar);
1123 INIT_LIST_HEAD(&context->db_page_list);
1124 mutex_init(&context->db_page_mutex);
1126 INIT_LIST_HEAD(&context->wqn_ranges_list);
1127 mutex_init(&context->wqn_ranges_mutex);
1135 mlx4_uar_free(to_mdev(ibdev)->dev, &context->uar);
1144 struct mlx4_ib_ucontext *context = to_mucontext(ibcontext);
1146 mlx4_uar_free(to_mdev(ibcontext->device)->dev, &context->uar);
1153 static int mlx4_ib_mmap(struct ib_ucontext *context, struct vm_area_struct *vma)
1155 struct mlx4_ib_dev *dev = to_mdev(context->device);
1159 return rdma_user_mmap_io(context, vma,
1160 to_mucontext(context)->uar.pfn,
1169 context, vma,
1170 to_mucontext(context)->uar.pfn +
1184 context, vma,