Searched refs:pi_ctx (Results 1 - 5 of 5) sorted by relevance

/linux-4.1.27/drivers/infiniband/ulp/iser/
H A Diser_verbs.c280 struct iser_pi_context *pi_ctx = NULL; iser_alloc_pi_ctx() local
285 desc->pi_ctx = kzalloc(sizeof(*desc->pi_ctx), GFP_KERNEL); iser_alloc_pi_ctx()
286 if (!desc->pi_ctx) iser_alloc_pi_ctx()
289 pi_ctx = desc->pi_ctx; iser_alloc_pi_ctx()
291 pi_ctx->prot_frpl = ib_alloc_fast_reg_page_list(ib_device, iser_alloc_pi_ctx()
293 if (IS_ERR(pi_ctx->prot_frpl)) { iser_alloc_pi_ctx()
294 ret = PTR_ERR(pi_ctx->prot_frpl); iser_alloc_pi_ctx()
298 pi_ctx->prot_mr = ib_alloc_fast_reg_mr(pd, iser_alloc_pi_ctx()
300 if (IS_ERR(pi_ctx->prot_mr)) { iser_alloc_pi_ctx()
301 ret = PTR_ERR(pi_ctx->prot_mr); iser_alloc_pi_ctx()
306 pi_ctx->sig_mr = ib_create_mr(pd, &mr_init_attr); iser_alloc_pi_ctx()
307 if (IS_ERR(pi_ctx->sig_mr)) { iser_alloc_pi_ctx()
308 ret = PTR_ERR(pi_ctx->sig_mr); iser_alloc_pi_ctx()
317 ib_dereg_mr(desc->pi_ctx->prot_mr); iser_alloc_pi_ctx()
319 ib_free_fast_reg_page_list(desc->pi_ctx->prot_frpl); iser_alloc_pi_ctx()
321 kfree(desc->pi_ctx); iser_alloc_pi_ctx()
327 iser_free_pi_ctx(struct iser_pi_context *pi_ctx) iser_free_pi_ctx() argument
329 ib_free_fast_reg_page_list(pi_ctx->prot_frpl); iser_free_pi_ctx()
330 ib_dereg_mr(pi_ctx->prot_mr); iser_free_pi_ctx()
331 ib_destroy_mr(pi_ctx->sig_mr); iser_free_pi_ctx()
332 kfree(pi_ctx); iser_free_pi_ctx()
431 if (desc->pi_ctx) iser_free_fastreg_pool()
432 iser_free_pi_ctx(desc->pi_ctx); iser_free_fastreg_pool()
1239 ret = ib_check_mr_status(desc->pi_ctx->sig_mr, iser_check_task_pi_status()
H A Diser_memory.c657 struct iser_pi_context *pi_ctx = desc->pi_ctx; iser_reg_sig_mr() local
671 iser_inv_rkey(&inv_wr, pi_ctx->sig_mr); iser_reg_sig_mr()
681 sig_wr.wr.sig_handover.sig_mr = pi_ctx->sig_mr; iser_reg_sig_mr()
700 sig_reg->sge.lkey = pi_ctx->sig_mr->lkey; iser_reg_sig_mr()
701 sig_reg->rkey = pi_ctx->sig_mr->rkey; iser_reg_sig_mr()
734 mr = desc->pi_ctx->prot_mr; iser_fast_reg_mr()
735 frpl = desc->pi_ctx->prot_frpl; iser_fast_reg_mr()
H A Discsi_iser.h396 * @pi_ctx: protection information context
403 struct iser_pi_context *pi_ctx; member in struct:fast_reg_descriptor
/linux-4.1.27/drivers/infiniband/ulp/isert/
H A Dib_isert.c486 if (fr_desc->pi_ctx) { isert_conn_free_fastreg_pool()
487 ib_free_fast_reg_page_list(fr_desc->pi_ctx->prot_frpl); isert_conn_free_fastreg_pool()
488 ib_dereg_mr(fr_desc->pi_ctx->prot_mr); isert_conn_free_fastreg_pool()
489 ib_destroy_mr(fr_desc->pi_ctx->sig_mr); isert_conn_free_fastreg_pool()
490 kfree(fr_desc->pi_ctx); isert_conn_free_fastreg_pool()
507 struct pi_context *pi_ctx; isert_create_pi_ctx() local
510 pi_ctx = kzalloc(sizeof(*desc->pi_ctx), GFP_KERNEL); isert_create_pi_ctx()
511 if (!pi_ctx) { isert_create_pi_ctx()
516 pi_ctx->prot_frpl = ib_alloc_fast_reg_page_list(device, isert_create_pi_ctx()
518 if (IS_ERR(pi_ctx->prot_frpl)) { isert_create_pi_ctx()
520 PTR_ERR(pi_ctx->prot_frpl)); isert_create_pi_ctx()
521 ret = PTR_ERR(pi_ctx->prot_frpl); isert_create_pi_ctx()
525 pi_ctx->prot_mr = ib_alloc_fast_reg_mr(pd, ISCSI_ISER_SG_TABLESIZE); isert_create_pi_ctx()
526 if (IS_ERR(pi_ctx->prot_mr)) { isert_create_pi_ctx()
528 PTR_ERR(pi_ctx->prot_mr)); isert_create_pi_ctx()
529 ret = PTR_ERR(pi_ctx->prot_mr); isert_create_pi_ctx()
537 pi_ctx->sig_mr = ib_create_mr(pd, &mr_init_attr); isert_create_pi_ctx()
538 if (IS_ERR(pi_ctx->sig_mr)) { isert_create_pi_ctx()
540 PTR_ERR(pi_ctx->sig_mr)); isert_create_pi_ctx()
541 ret = PTR_ERR(pi_ctx->sig_mr); isert_create_pi_ctx()
545 desc->pi_ctx = pi_ctx; isert_create_pi_ctx()
552 ib_dereg_mr(pi_ctx->prot_mr); isert_create_pi_ctx()
554 ib_free_fast_reg_page_list(pi_ctx->prot_frpl); isert_create_pi_ctx()
556 kfree(pi_ctx); isert_create_pi_ctx()
1908 wr->fr_desc->pi_ctx->sig_mr); isert_completion_rdma_write()
1934 wr->fr_desc->pi_ctx->sig_mr); isert_completion_rdma_read()
2603 mr = fr_desc->pi_ctx->prot_mr; isert_fast_reg_mr()
2604 frpl = fr_desc->pi_ctx->prot_frpl; isert_fast_reg_mr()
2718 struct pi_context *pi_ctx = fr_desc->pi_ctx; isert_reg_sig_mr() local
2730 isert_inv_rkey(&inv_wr, pi_ctx->sig_mr); isert_reg_sig_mr()
2741 sig_wr.wr.sig_handover.sig_mr = pi_ctx->sig_mr; isert_reg_sig_mr()
2757 rdma_wr->ib_sg[SIG].lkey = pi_ctx->sig_mr->lkey; isert_reg_sig_mr()
2784 if (!wr->fr_desc->pi_ctx) { isert_handle_prot_cmd()
2789 isert_err("conn %p failed to allocate pi_ctx\n", isert_handle_prot_cmd()
H A Dib_isert.h97 struct pi_context *pi_ctx; member in struct:fast_reg_descriptor

Completed in 156 milliseconds