Lines Matching refs:lcb_context
7307 struct lpfc_lcb_context *lcb_context; in lpfc_els_lcb_rsp() local
7313 lcb_context = (struct lpfc_lcb_context *)pmb->ctx_ndlp; in lpfc_els_lcb_rsp()
7314 ndlp = lcb_context->ndlp; in lpfc_els_lcb_rsp()
7354 bf_set(wqe_ctxt_tag, &wqe->generic.wqe_com, lcb_context->rx_id); in lpfc_els_lcb_rsp()
7356 lcb_context->ox_id); in lpfc_els_lcb_rsp()
7359 icmd->ulpContext = lcb_context->rx_id; in lpfc_els_lcb_rsp()
7360 icmd->unsli3.rcvsli3.ox_id = lcb_context->ox_id; in lpfc_els_lcb_rsp()
7365 lcb_res->lcb_sub_command = lcb_context->sub_command; in lpfc_els_lcb_rsp()
7366 lcb_res->lcb_type = lcb_context->type; in lpfc_els_lcb_rsp()
7367 lcb_res->capability = lcb_context->capability; in lpfc_els_lcb_rsp()
7368 lcb_res->lcb_frequency = lcb_context->frequency; in lpfc_els_lcb_rsp()
7369 lcb_res->lcb_duration = lcb_context->duration; in lpfc_els_lcb_rsp()
7385 kfree(lcb_context); in lpfc_els_lcb_rsp()
7399 bf_set(wqe_ctxt_tag, &wqe->generic.wqe_com, lcb_context->rx_id); in lpfc_els_lcb_rsp()
7401 lcb_context->ox_id); in lpfc_els_lcb_rsp()
7404 icmd->ulpContext = lcb_context->rx_id; in lpfc_els_lcb_rsp()
7405 icmd->unsli3.rcvsli3.ox_id = lcb_context->ox_id; in lpfc_els_lcb_rsp()
7431 kfree(lcb_context); in lpfc_els_lcb_rsp()
7436 struct lpfc_lcb_context *lcb_context, in lpfc_sli4_set_beacon() argument
7455 mbox->ctx_ndlp = (void *)lcb_context; in lpfc_sli4_set_beacon()
7473 lcb_context->capability |= LCB_CAPABILITY_DURATION; in lpfc_sli4_set_beacon()
7478 be16_to_cpu(lcb_context->duration)); in lpfc_sli4_set_beacon()
7481 if (be16_to_cpu(lcb_context->duration) != 0) { in lpfc_sli4_set_beacon()
7486 lcb_context->capability &= ~(LCB_CAPABILITY_DURATION); in lpfc_sli4_set_beacon()
7493 be16_to_cpu(lcb_context->duration)); in lpfc_sli4_set_beacon()
7528 struct lpfc_lcb_context *lcb_context; in lpfc_els_rcv_lcb() local
7560 lcb_context = kmalloc(sizeof(*lcb_context), GFP_KERNEL); in lpfc_els_rcv_lcb()
7561 if (!lcb_context) { in lpfc_els_rcv_lcb()
7567 lcb_context->sub_command = beacon->lcb_sub_command; in lpfc_els_rcv_lcb()
7568 lcb_context->capability = 0; in lpfc_els_rcv_lcb()
7569 lcb_context->type = beacon->lcb_type; in lpfc_els_rcv_lcb()
7570 lcb_context->frequency = beacon->lcb_frequency; in lpfc_els_rcv_lcb()
7571 lcb_context->duration = beacon->lcb_duration; in lpfc_els_rcv_lcb()
7572 lcb_context->ox_id = get_job_rcvoxid(phba, cmdiocb); in lpfc_els_rcv_lcb()
7573 lcb_context->rx_id = get_job_ulpcontext(phba, cmdiocb); in lpfc_els_rcv_lcb()
7574 lcb_context->ndlp = lpfc_nlp_get(ndlp); in lpfc_els_rcv_lcb()
7575 if (!lcb_context->ndlp) { in lpfc_els_rcv_lcb()
7580 if (lpfc_sli4_set_beacon(vport, lcb_context, state)) { in lpfc_els_rcv_lcb()
7590 kfree(lcb_context); in lpfc_els_rcv_lcb()