Home
last modified time | relevance | path

Searched refs:base_ctx (Results 1 – 3 of 3) sorted by relevance

/Linux-v5.4/drivers/infiniband/sw/siw/
Dsiw_verbs.h37 int siw_alloc_ucontext(struct ib_ucontext *base_ctx, struct ib_udata *udata);
38 void siw_dealloc_ucontext(struct ib_ucontext *base_ctx);
Dsiw_verbs.c97 int siw_alloc_ucontext(struct ib_ucontext *base_ctx, struct ib_udata *udata) in siw_alloc_ucontext() argument
99 struct siw_device *sdev = to_siw_dev(base_ctx->device); in siw_alloc_ucontext()
100 struct siw_ucontext *ctx = to_siw_ctx(base_ctx); in siw_alloc_ucontext()
122 siw_dbg(base_ctx->device, "success. now %d context(s)\n", in siw_alloc_ucontext()
129 siw_dbg(base_ctx->device, "failure %d. now %d context(s)\n", rv, in siw_alloc_ucontext()
135 void siw_dealloc_ucontext(struct ib_ucontext *base_ctx) in siw_dealloc_ucontext() argument
137 struct siw_ucontext *uctx = to_siw_ctx(base_ctx); in siw_dealloc_ucontext()
Dsiw.h575 static inline struct siw_ucontext *to_siw_ctx(struct ib_ucontext *base_ctx) in to_siw_ctx() argument
577 return container_of(base_ctx, struct siw_ucontext, base_ucontext); in to_siw_ctx()