Lines Matching refs:lcb_context

7264 	struct lpfc_lcb_context *lcb_context;  in lpfc_els_lcb_rsp()  local
7270 lcb_context = (struct lpfc_lcb_context *)pmb->ctx_ndlp; in lpfc_els_lcb_rsp()
7271 ndlp = lcb_context->ndlp; in lpfc_els_lcb_rsp()
7311 bf_set(wqe_ctxt_tag, &wqe->generic.wqe_com, lcb_context->rx_id); in lpfc_els_lcb_rsp()
7313 lcb_context->ox_id); in lpfc_els_lcb_rsp()
7316 icmd->ulpContext = lcb_context->rx_id; in lpfc_els_lcb_rsp()
7317 icmd->unsli3.rcvsli3.ox_id = lcb_context->ox_id; in lpfc_els_lcb_rsp()
7322 lcb_res->lcb_sub_command = lcb_context->sub_command; in lpfc_els_lcb_rsp()
7323 lcb_res->lcb_type = lcb_context->type; in lpfc_els_lcb_rsp()
7324 lcb_res->capability = lcb_context->capability; in lpfc_els_lcb_rsp()
7325 lcb_res->lcb_frequency = lcb_context->frequency; in lpfc_els_lcb_rsp()
7326 lcb_res->lcb_duration = lcb_context->duration; in lpfc_els_lcb_rsp()
7342 kfree(lcb_context); in lpfc_els_lcb_rsp()
7356 bf_set(wqe_ctxt_tag, &wqe->generic.wqe_com, lcb_context->rx_id); in lpfc_els_lcb_rsp()
7358 lcb_context->ox_id); in lpfc_els_lcb_rsp()
7361 icmd->ulpContext = lcb_context->rx_id; in lpfc_els_lcb_rsp()
7362 icmd->unsli3.rcvsli3.ox_id = lcb_context->ox_id; in lpfc_els_lcb_rsp()
7388 kfree(lcb_context); in lpfc_els_lcb_rsp()
7393 struct lpfc_lcb_context *lcb_context, in lpfc_sli4_set_beacon() argument
7412 mbox->ctx_ndlp = (void *)lcb_context; in lpfc_sli4_set_beacon()
7430 lcb_context->capability |= LCB_CAPABILITY_DURATION; in lpfc_sli4_set_beacon()
7435 be16_to_cpu(lcb_context->duration)); in lpfc_sli4_set_beacon()
7438 if (be16_to_cpu(lcb_context->duration) != 0) { in lpfc_sli4_set_beacon()
7443 lcb_context->capability &= ~(LCB_CAPABILITY_DURATION); in lpfc_sli4_set_beacon()
7450 be16_to_cpu(lcb_context->duration)); in lpfc_sli4_set_beacon()
7485 struct lpfc_lcb_context *lcb_context; in lpfc_els_rcv_lcb() local
7517 lcb_context = kmalloc(sizeof(*lcb_context), GFP_KERNEL); in lpfc_els_rcv_lcb()
7518 if (!lcb_context) { in lpfc_els_rcv_lcb()
7524 lcb_context->sub_command = beacon->lcb_sub_command; in lpfc_els_rcv_lcb()
7525 lcb_context->capability = 0; in lpfc_els_rcv_lcb()
7526 lcb_context->type = beacon->lcb_type; in lpfc_els_rcv_lcb()
7527 lcb_context->frequency = beacon->lcb_frequency; in lpfc_els_rcv_lcb()
7528 lcb_context->duration = beacon->lcb_duration; in lpfc_els_rcv_lcb()
7529 lcb_context->ox_id = get_job_rcvoxid(phba, cmdiocb); in lpfc_els_rcv_lcb()
7530 lcb_context->rx_id = get_job_ulpcontext(phba, cmdiocb); in lpfc_els_rcv_lcb()
7531 lcb_context->ndlp = lpfc_nlp_get(ndlp); in lpfc_els_rcv_lcb()
7532 if (!lcb_context->ndlp) { in lpfc_els_rcv_lcb()
7537 if (lpfc_sli4_set_beacon(vport, lcb_context, state)) { in lpfc_els_rcv_lcb()
7547 kfree(lcb_context); in lpfc_els_rcv_lcb()