Lines Matching refs:infop
393 struct lpfc_nvmet_ctx_info *infop; in lpfc_nvmet_ctxbuf_post() local
504 infop = lpfc_get_ctx_list(phba, cpu, ctxp->idx); in lpfc_nvmet_ctxbuf_post()
505 spin_lock_irqsave(&infop->nvmet_ctx_list_lock, iflag); in lpfc_nvmet_ctxbuf_post()
506 list_add_tail(&ctx_buf->list, &infop->nvmet_ctx_list); in lpfc_nvmet_ctxbuf_post()
507 infop->nvmet_ctx_list_cnt++; in lpfc_nvmet_ctxbuf_post()
508 spin_unlock_irqrestore(&infop->nvmet_ctx_list_lock, iflag); in lpfc_nvmet_ctxbuf_post()
1442 struct lpfc_nvmet_ctx_info *infop) in __lpfc_nvmet_clean_io_for_cpu() argument
1447 spin_lock_irqsave(&infop->nvmet_ctx_list_lock, flags); in __lpfc_nvmet_clean_io_for_cpu()
1449 &infop->nvmet_ctx_list, list) { in __lpfc_nvmet_clean_io_for_cpu()
1469 spin_unlock_irqrestore(&infop->nvmet_ctx_list_lock, flags); in __lpfc_nvmet_clean_io_for_cpu()
1475 struct lpfc_nvmet_ctx_info *infop; in lpfc_nvmet_cleanup_io_context() local
1479 infop = phba->sli4_hba.nvmet_ctx_info; in lpfc_nvmet_cleanup_io_context()
1480 if (!infop) in lpfc_nvmet_cleanup_io_context()
1486 infop = lpfc_get_ctx_list(phba, j, i); in lpfc_nvmet_cleanup_io_context()
1487 __lpfc_nvmet_clean_io_for_cpu(phba, infop); in lpfc_nvmet_cleanup_io_context()
1501 struct lpfc_nvmet_ctx_info *infop; in lpfc_nvmet_setup_io_context() local
1539 infop = lpfc_get_ctx_list(phba, i, j); in lpfc_nvmet_setup_io_context()
1540 INIT_LIST_HEAD(&infop->nvmet_ctx_list); in lpfc_nvmet_setup_io_context()
1541 spin_lock_init(&infop->nvmet_ctx_list_lock); in lpfc_nvmet_setup_io_context()
1542 infop->nvmet_ctx_list_cnt = 0; in lpfc_nvmet_setup_io_context()
1556 infop = lpfc_get_ctx_list(phba, i, j); in lpfc_nvmet_setup_io_context()
1557 infop->nvmet_ctx_next_cpu = last_infop; in lpfc_nvmet_setup_io_context()
1558 last_infop = infop; in lpfc_nvmet_setup_io_context()
1621 infop = lpfc_get_ctx_list(phba, cpu, idx); in lpfc_nvmet_setup_io_context()
1622 spin_lock(&infop->nvmet_ctx_list_lock); in lpfc_nvmet_setup_io_context()
1623 list_add_tail(&ctx_buf->list, &infop->nvmet_ctx_list); in lpfc_nvmet_setup_io_context()
1624 infop->nvmet_ctx_list_cnt++; in lpfc_nvmet_setup_io_context()
1625 spin_unlock(&infop->nvmet_ctx_list_lock); in lpfc_nvmet_setup_io_context()
1639 infop = lpfc_get_ctx_list(phba, i, j); in lpfc_nvmet_setup_io_context()
1643 i, j, infop->nvmet_ctx_list_cnt, in lpfc_nvmet_setup_io_context()
1644 infop->nvmet_ctx_next_cpu); in lpfc_nvmet_setup_io_context()