Lines Matching refs:ib_ctx
36 static struct rtrs_srv_ib_ctx ib_ctx; variable
2121 mutex_lock(&ib_ctx.ib_dev_mutex); in rtrs_srv_add_one()
2122 if (ib_ctx.ib_dev_count) in rtrs_srv_add_one()
2129 ctx = ib_ctx.srv_ctx; in rtrs_srv_add_one()
2130 ret = rtrs_srv_rdma_init(ctx, ib_ctx.port); in rtrs_srv_add_one()
2145 ib_ctx.ib_dev_count++; in rtrs_srv_add_one()
2148 mutex_unlock(&ib_ctx.ib_dev_mutex); in rtrs_srv_add_one()
2156 mutex_lock(&ib_ctx.ib_dev_mutex); in rtrs_srv_remove_one()
2157 ib_ctx.ib_dev_count--; in rtrs_srv_remove_one()
2159 if (ib_ctx.ib_dev_count) in rtrs_srv_remove_one()
2166 ctx = ib_ctx.srv_ctx; in rtrs_srv_remove_one()
2171 mutex_unlock(&ib_ctx.ib_dev_mutex); in rtrs_srv_remove_one()
2198 mutex_init(&ib_ctx.ib_dev_mutex); in rtrs_srv_open()
2199 ib_ctx.srv_ctx = ctx; in rtrs_srv_open()
2200 ib_ctx.port = port; in rtrs_srv_open()
2242 mutex_destroy(&ib_ctx.ib_dev_mutex); in rtrs_srv_close()