Lines Matching refs:pcmd
170 struct lpfc_dmabuf *pcmd, *prsp, *pbuflist; in lpfc_prep_els_iocb() local
217 pcmd = kmalloc(sizeof(struct lpfc_dmabuf), GFP_KERNEL); in lpfc_prep_els_iocb()
218 if (pcmd) in lpfc_prep_els_iocb()
219 pcmd->virt = lpfc_mbuf_alloc(phba, MEM_PRI, &pcmd->phys); in lpfc_prep_els_iocb()
220 if (!pcmd || !pcmd->virt) in lpfc_prep_els_iocb()
223 INIT_LIST_HEAD(&pcmd->list); in lpfc_prep_els_iocb()
298 bpl->addrLow = le32_to_cpu(putPaddrLow(pcmd->phys)); in lpfc_prep_els_iocb()
299 bpl->addrHigh = le32_to_cpu(putPaddrHigh(pcmd->phys)); in lpfc_prep_els_iocb()
313 elsiocb->context2 = pcmd; in lpfc_prep_els_iocb()
320 list_add(&prsp->list, &pcmd->list); in lpfc_prep_els_iocb()
349 lpfc_mbuf_free(phba, pcmd->virt, pcmd->phys); in lpfc_prep_els_iocb()
353 kfree(pcmd); in lpfc_prep_els_iocb()
992 struct lpfc_dmabuf *pcmd = cmdiocb->context2, *prsp; in lpfc_cmpl_els_flogi() local
1119 prsp = list_get_first(&pcmd->list, struct lpfc_dmabuf, list); in lpfc_cmpl_els_flogi()
1244 uint32_t *pcmd; in lpfc_cmpl_els_link_down() local
1247 pcmd = (uint32_t *)(((struct lpfc_dmabuf *)cmdiocb->context2)->virt); in lpfc_cmpl_els_link_down()
1248 cmd = *pcmd; in lpfc_cmpl_els_link_down()
1294 uint8_t *pcmd; in lpfc_issue_els_flogi() local
1307 pcmd = (uint8_t *) (((struct lpfc_dmabuf *) elsiocb->context2)->virt); in lpfc_issue_els_flogi()
1310 *((uint32_t *) (pcmd)) = ELS_CMD_FLOGI; in lpfc_issue_els_flogi()
1311 pcmd += sizeof(uint32_t); in lpfc_issue_els_flogi()
1312 memcpy(pcmd, &vport->fc_sparam, sizeof(struct serv_parm)); in lpfc_issue_els_flogi()
1313 sp = (struct serv_parm *) pcmd; in lpfc_issue_els_flogi()
2145 uint8_t *pcmd; in lpfc_issue_els_plogi() local
2182 pcmd = (uint8_t *) (((struct lpfc_dmabuf *) elsiocb->context2)->virt); in lpfc_issue_els_plogi()
2185 *((uint32_t *) (pcmd)) = ELS_CMD_PLOGI; in lpfc_issue_els_plogi()
2186 pcmd += sizeof(uint32_t); in lpfc_issue_els_plogi()
2187 memcpy(pcmd, &vport->fc_sparam, sizeof(struct serv_parm)); in lpfc_issue_els_plogi()
2188 sp = (struct serv_parm *) pcmd; in lpfc_issue_els_plogi()
2391 uint8_t *pcmd; in lpfc_issue_els_prli() local
2449 pcmd = (uint8_t *) (((struct lpfc_dmabuf *) elsiocb->context2)->virt); in lpfc_issue_els_prli()
2452 memset(pcmd, 0, cmdsize); in lpfc_issue_els_prli()
2460 *((uint32_t *)(pcmd)) = ELS_CMD_PRLI; in lpfc_issue_els_prli()
2461 pcmd += sizeof(uint32_t); in lpfc_issue_els_prli()
2462 npr = (PRLI *)pcmd; in lpfc_issue_els_prli()
2490 *((uint32_t *)(pcmd)) = ELS_CMD_NVMEPRLI; in lpfc_issue_els_prli()
2491 pcmd += sizeof(uint32_t); in lpfc_issue_els_prli()
2492 npr_nvme = (struct lpfc_nvme_prli *)pcmd; in lpfc_issue_els_prli()
2822 uint8_t *pcmd; in lpfc_issue_els_adisc() local
2831 pcmd = (uint8_t *) (((struct lpfc_dmabuf *) elsiocb->context2)->virt); in lpfc_issue_els_adisc()
2834 *((uint32_t *) (pcmd)) = ELS_CMD_ADISC; in lpfc_issue_els_adisc()
2835 pcmd += sizeof(uint32_t); in lpfc_issue_els_adisc()
2838 ap = (ADISC *) pcmd; in lpfc_issue_els_adisc()
3041 uint8_t *pcmd; in lpfc_issue_els_logo() local
3058 pcmd = (uint8_t *) (((struct lpfc_dmabuf *) elsiocb->context2)->virt); in lpfc_issue_els_logo()
3059 *((uint32_t *) (pcmd)) = ELS_CMD_LOGO; in lpfc_issue_els_logo()
3060 pcmd += sizeof(uint32_t); in lpfc_issue_els_logo()
3063 *((uint32_t *) (pcmd)) = be32_to_cpu(vport->fc_myDID); in lpfc_issue_els_logo()
3064 pcmd += sizeof(uint32_t); in lpfc_issue_els_logo()
3065 memcpy(pcmd, &vport->fc_portname, sizeof(struct lpfc_name)); in lpfc_issue_els_logo()
3254 struct lpfc_dmabuf *pcmd, *prsp; in lpfc_cmpl_els_disc_cmd() local
3273 pcmd = (struct lpfc_dmabuf *)cmdiocb->context2; in lpfc_cmpl_els_disc_cmd()
3274 if (!pcmd) in lpfc_cmpl_els_disc_cmd()
3277 pdata = (u32 *)pcmd->virt; in lpfc_cmpl_els_disc_cmd()
3323 prsp = list_get_first(&pcmd->list, struct lpfc_dmabuf, list); in lpfc_cmpl_els_disc_cmd()
3377 uint8_t *pcmd; in lpfc_issue_els_scr() local
3406 pcmd = (uint8_t *) (((struct lpfc_dmabuf *) elsiocb->context2)->virt); in lpfc_issue_els_scr()
3408 *((uint32_t *) (pcmd)) = ELS_CMD_SCR; in lpfc_issue_els_scr()
3409 pcmd += sizeof(uint32_t); in lpfc_issue_els_scr()
3412 memset(pcmd, 0, sizeof(SCR)); in lpfc_issue_els_scr()
3413 ((SCR *) pcmd)->Function = SCR_FUNC_FULL; in lpfc_issue_els_scr()
3566 uint8_t *pcmd; in lpfc_issue_els_farpr() local
3587 pcmd = (uint8_t *) (((struct lpfc_dmabuf *) elsiocb->context2)->virt); in lpfc_issue_els_farpr()
3589 *((uint32_t *) (pcmd)) = ELS_CMD_FARPR; in lpfc_issue_els_farpr()
3590 pcmd += sizeof(uint32_t); in lpfc_issue_els_farpr()
3593 fp = (FARP *) (pcmd); in lpfc_issue_els_farpr()
3595 lp = (uint32_t *) pcmd; in lpfc_issue_els_farpr()
3869 struct lpfc_dmabuf *pcmd, *prsp; in lpfc_cmpl_els_edc() local
3890 pcmd = (struct lpfc_dmabuf *)cmdiocb->context2; in lpfc_cmpl_els_edc()
3891 if (!pcmd) in lpfc_cmpl_els_edc()
3894 pdata = (u32 *)pcmd->virt; in lpfc_cmpl_els_edc()
3902 prsp = list_get_first(&pcmd->list, struct lpfc_dmabuf, list); in lpfc_cmpl_els_edc()
4115 u8 *pcmd = NULL; in lpfc_issue_els_edc() local
4139 pcmd = (u8 *)(((struct lpfc_dmabuf *)elsiocb->context2)->virt); in lpfc_issue_els_edc()
4140 memset(pcmd, 0, cmdsize); in lpfc_issue_els_edc()
4141 edc_req = (struct lpfc_els_edc_req *)pcmd; in lpfc_issue_els_edc()
4438 struct lpfc_dmabuf *pcmd = (struct lpfc_dmabuf *) cmdiocb->context2; in lpfc_els_retry() local
4452 if (pcmd && pcmd->virt) { in lpfc_els_retry()
4453 elscmd = (uint32_t *) (pcmd->virt); in lpfc_els_retry()
5334 uint8_t *pcmd; in lpfc_els_rsp_acc() local
5358 pcmd = (((struct lpfc_dmabuf *) elsiocb->context2)->virt); in lpfc_els_rsp_acc()
5359 *((uint32_t *) (pcmd)) = ELS_CMD_ACC; in lpfc_els_rsp_acc()
5360 pcmd += sizeof(uint32_t); in lpfc_els_rsp_acc()
5377 pcmd = (((struct lpfc_dmabuf *) elsiocb->context2)->virt); in lpfc_els_rsp_acc()
5382 *((uint32_t *) (pcmd)) = ELS_CMD_ACC; in lpfc_els_rsp_acc()
5383 pcmd += sizeof(uint32_t); in lpfc_els_rsp_acc()
5384 sp = (struct serv_parm *)pcmd; in lpfc_els_rsp_acc()
5406 memcpy(pcmd, &vport->fc_sparam, in lpfc_els_rsp_acc()
5439 pcmd = (((struct lpfc_dmabuf *) elsiocb->context2)->virt); in lpfc_els_rsp_acc()
5441 memcpy(pcmd, ((struct lpfc_dmabuf *) oldiocb->context2)->virt, in lpfc_els_rsp_acc()
5443 *((uint32_t *) (pcmd)) = ELS_CMD_PRLO_ACC; in lpfc_els_rsp_acc()
5444 els_pkt_ptr = (ELS_PKT *) pcmd; in lpfc_els_rsp_acc()
5461 pcmd = (((struct lpfc_dmabuf *)elsiocb->context2)->virt); in lpfc_els_rsp_acc()
5462 rdf_resp = (struct fc_els_rdf_resp *)pcmd; in lpfc_els_rsp_acc()
5545 uint8_t *pcmd; in lpfc_els_rsp_reject() local
5558 pcmd = (uint8_t *) (((struct lpfc_dmabuf *) elsiocb->context2)->virt); in lpfc_els_rsp_reject()
5560 *((uint32_t *) (pcmd)) = ELS_CMD_LS_RJT; in lpfc_els_rsp_reject()
5561 pcmd += sizeof(uint32_t); in lpfc_els_rsp_reject()
5562 *((uint32_t *) (pcmd)) = rejectError; in lpfc_els_rsp_reject()
5630 uint8_t *pcmd; in lpfc_issue_els_edc_rsp() local
5643 pcmd = (((struct lpfc_dmabuf *)elsiocb->context2)->virt); in lpfc_issue_els_edc_rsp()
5644 memset(pcmd, 0, cmdsize); in lpfc_issue_els_edc_rsp()
5646 edc_rsp = (struct lpfc_els_edc_rsp *)pcmd; in lpfc_issue_els_edc_rsp()
5715 uint8_t *pcmd; in lpfc_els_rsp_adisc_acc() local
5737 pcmd = (uint8_t *) (((struct lpfc_dmabuf *) elsiocb->context2)->virt); in lpfc_els_rsp_adisc_acc()
5739 *((uint32_t *) (pcmd)) = ELS_CMD_ACC; in lpfc_els_rsp_adisc_acc()
5740 pcmd += sizeof(uint32_t); in lpfc_els_rsp_adisc_acc()
5742 ap = (ADISC *) (pcmd); in lpfc_els_rsp_adisc_acc()
5808 uint8_t *pcmd; in lpfc_els_rsp_prli_acc() local
5855 pcmd = (uint8_t *) (((struct lpfc_dmabuf *) elsiocb->context2)->virt); in lpfc_els_rsp_prli_acc()
5856 memset(pcmd, 0, cmdsize); in lpfc_els_rsp_prli_acc()
5858 *((uint32_t *)(pcmd)) = elsrspcmd; in lpfc_els_rsp_prli_acc()
5859 pcmd += sizeof(uint32_t); in lpfc_els_rsp_prli_acc()
5870 npr = (PRLI *) pcmd; in lpfc_els_rsp_prli_acc()
5885 npr_nvme = (struct lpfc_nvme_prli *) pcmd; in lpfc_els_rsp_prli_acc()
5972 uint8_t *pcmd; in lpfc_els_rsp_rnid_acc() local
5995 pcmd = (uint8_t *) (((struct lpfc_dmabuf *) elsiocb->context2)->virt); in lpfc_els_rsp_rnid_acc()
5996 *((uint32_t *) (pcmd)) = ELS_CMD_ACC; in lpfc_els_rsp_rnid_acc()
5997 pcmd += sizeof(uint32_t); in lpfc_els_rsp_rnid_acc()
5999 memset(pcmd, 0, sizeof(RNID)); in lpfc_els_rsp_rnid_acc()
6000 rn = (RNID *) (pcmd); in lpfc_els_rsp_rnid_acc()
6058 uint8_t *pcmd; in lpfc_els_clear_rrq() local
6065 pcmd = (uint8_t *) (((struct lpfc_dmabuf *) iocb->context2)->virt); in lpfc_els_clear_rrq()
6066 pcmd += sizeof(uint32_t); in lpfc_els_clear_rrq()
6067 rrq = (struct RRQ *)pcmd; in lpfc_els_clear_rrq()
6109 uint8_t *pcmd; in lpfc_els_rsp_echo_acc() local
6132 pcmd = (uint8_t *) (((struct lpfc_dmabuf *) elsiocb->context2)->virt); in lpfc_els_rsp_echo_acc()
6133 *((uint32_t *) (pcmd)) = ELS_CMD_ACC; in lpfc_els_rsp_echo_acc()
6134 pcmd += sizeof(uint32_t); in lpfc_els_rsp_echo_acc()
6135 memcpy(pcmd, data, cmdsize - sizeof(uint32_t)); in lpfc_els_rsp_echo_acc()
6727 uint8_t *pcmd; in lpfc_els_rdp_cmpl() local
6758 pcmd = (uint8_t *) (((struct lpfc_dmabuf *) elsiocb->context2)->virt); in lpfc_els_rdp_cmpl()
6759 memset(pcmd, 0, sizeof(struct fc_rdp_res_frame)); in lpfc_els_rdp_cmpl()
6760 *((uint32_t *) (pcmd)) = ELS_CMD_ACC; in lpfc_els_rdp_cmpl()
6771 (len + pcmd), ELS_CMD_RDP); in lpfc_els_rdp_cmpl()
6773 len += lpfc_rdp_res_sfp_desc((struct fc_rdp_sfp_desc *)(len + pcmd), in lpfc_els_rdp_cmpl()
6775 len += lpfc_rdp_res_speed((struct fc_rdp_port_speed_desc *)(len + pcmd), in lpfc_els_rdp_cmpl()
6778 (len + pcmd), &rdp_context->link_stat); in lpfc_els_rdp_cmpl()
6780 (len + pcmd), vport); in lpfc_els_rdp_cmpl()
6782 (len + pcmd), vport, ndlp); in lpfc_els_rdp_cmpl()
6783 len += lpfc_rdp_res_fec_desc((struct fc_fec_rdp_desc *)(len + pcmd), in lpfc_els_rdp_cmpl()
6785 len += lpfc_rdp_res_bbc_desc((struct fc_rdp_bbc_desc *)(len + pcmd), in lpfc_els_rdp_cmpl()
6788 (struct fc_rdp_oed_sfp_desc *)(len + pcmd), in lpfc_els_rdp_cmpl()
6791 (struct fc_rdp_oed_sfp_desc *)(len + pcmd), in lpfc_els_rdp_cmpl()
6794 (struct fc_rdp_oed_sfp_desc *)(len + pcmd), in lpfc_els_rdp_cmpl()
6797 (struct fc_rdp_oed_sfp_desc *)(len + pcmd), in lpfc_els_rdp_cmpl()
6800 (struct fc_rdp_oed_sfp_desc *)(len + pcmd), in lpfc_els_rdp_cmpl()
6802 len += lpfc_rdp_res_opd_desc((struct fc_rdp_opd_sfp_desc *)(len + pcmd), in lpfc_els_rdp_cmpl()
6840 pcmd = (uint8_t *) (((struct lpfc_dmabuf *) elsiocb->context2)->virt); in lpfc_els_rdp_cmpl()
6842 *((uint32_t *) (pcmd)) = ELS_CMD_LS_RJT; in lpfc_els_rdp_cmpl()
6843 stat = (struct ls_rjt *)(pcmd + sizeof(uint32_t)); in lpfc_els_rdp_cmpl()
6924 struct lpfc_dmabuf *pcmd; in lpfc_els_rcv_rdp() local
6945 pcmd = (struct lpfc_dmabuf *) cmdiocb->context2; in lpfc_els_rcv_rdp()
6946 rdp_req = (struct fc_rdp_req_frame *) pcmd->virt; in lpfc_els_rcv_rdp()
7008 uint8_t *pcmd; in lpfc_els_lcb_rsp() local
7062 pcmd = (uint8_t *)(((struct lpfc_dmabuf *)elsiocb->context2)->virt); in lpfc_els_lcb_rsp()
7063 *((uint32_t *)(pcmd)) = ELS_CMD_ACC; in lpfc_els_lcb_rsp()
7099 pcmd = (uint8_t *)(((struct lpfc_dmabuf *)elsiocb->context2)->virt); in lpfc_els_lcb_rsp()
7101 *((uint32_t *)(pcmd)) = ELS_CMD_LS_RJT; in lpfc_els_lcb_rsp()
7102 stat = (struct ls_rjt *)(pcmd + sizeof(uint32_t)); in lpfc_els_lcb_rsp()
7216 struct lpfc_dmabuf *pcmd; in lpfc_els_rcv_lcb() local
7223 pcmd = (struct lpfc_dmabuf *)cmdiocb->context2; in lpfc_els_rcv_lcb()
7224 lp = (uint8_t *)pcmd->virt; in lpfc_els_rcv_lcb()
7225 beacon = (struct fc_lcb_request_frame *)pcmd->virt; in lpfc_els_rcv_lcb()
7463 struct lpfc_dmabuf *pcmd; in lpfc_send_rscn_event() local
7469 pcmd = (struct lpfc_dmabuf *) cmdiocb->context2; in lpfc_send_rscn_event()
7470 payload_ptr = (uint32_t *) pcmd->virt; in lpfc_send_rscn_event()
7522 struct lpfc_dmabuf *pcmd; in lpfc_els_rcv_rscn() local
7529 pcmd = (struct lpfc_dmabuf *) cmdiocb->context2; in lpfc_els_rcv_rscn()
7530 lp = (uint32_t *) pcmd->virt; in lpfc_els_rcv_rscn()
7655 vport->fc_rscn_id_list[rscn_cnt] = pcmd; in lpfc_els_rcv_rscn()
7693 vport->fc_rscn_id_list[vport->fc_rscn_id_cnt++] = pcmd; in lpfc_els_rcv_rscn()
7824 struct lpfc_dmabuf *pcmd = (struct lpfc_dmabuf *) cmdiocb->context2; in lpfc_els_rcv_flogi() local
7825 uint32_t *lp = (uint32_t *) pcmd->virt; in lpfc_els_rcv_flogi()
7985 struct lpfc_dmabuf *pcmd; in lpfc_els_rcv_rnid() local
7990 pcmd = (struct lpfc_dmabuf *) cmdiocb->context2; in lpfc_els_rcv_rnid()
7991 lp = (uint32_t *) pcmd->virt; in lpfc_els_rcv_rnid()
8029 uint8_t *pcmd; in lpfc_els_rcv_echo() local
8031 pcmd = (uint8_t *) (((struct lpfc_dmabuf *) cmdiocb->context2)->virt); in lpfc_els_rcv_echo()
8034 pcmd += sizeof(uint32_t); in lpfc_els_rcv_echo()
8036 lpfc_els_rsp_echo_acc(vport, pcmd, cmdiocb, ndlp); in lpfc_els_rcv_echo()
8119 uint8_t *pcmd; in lpfc_els_rsp_rls_acc() local
8156 pcmd = (uint8_t *) (((struct lpfc_dmabuf *) elsiocb->context2)->virt); in lpfc_els_rsp_rls_acc()
8157 *((uint32_t *) (pcmd)) = ELS_CMD_ACC; in lpfc_els_rsp_rls_acc()
8158 pcmd += sizeof(uint32_t); /* Skip past command */ in lpfc_els_rsp_rls_acc()
8159 rls_rsp = (struct RLS_RSP *)pcmd; in lpfc_els_rsp_rls_acc()
8283 uint8_t *pcmd; in lpfc_els_rcv_rtv() local
8301 pcmd = (uint8_t *) (((struct lpfc_dmabuf *) elsiocb->context2)->virt); in lpfc_els_rcv_rtv()
8302 *((uint32_t *) (pcmd)) = ELS_CMD_ACC; in lpfc_els_rcv_rtv()
8303 pcmd += sizeof(uint32_t); /* Skip past command */ in lpfc_els_rcv_rtv()
8309 rtv_rsp = (struct RTV_RSP *)pcmd; in lpfc_els_rcv_rtv()
8372 uint8_t *pcmd; in lpfc_issue_els_rrq() local
8386 pcmd = (uint8_t *) (((struct lpfc_dmabuf *) elsiocb->context2)->virt); in lpfc_issue_els_rrq()
8389 *((uint32_t *) (pcmd)) = ELS_CMD_RRQ; in lpfc_issue_els_rrq()
8390 pcmd += sizeof(uint32_t); in lpfc_issue_els_rrq()
8391 els_rrq = (struct RRQ *) pcmd; in lpfc_issue_els_rrq()
8475 uint8_t *pcmd; in lpfc_els_rsp_rpl_acc() local
8488 pcmd = (((struct lpfc_dmabuf *) elsiocb->context2)->virt); in lpfc_els_rsp_rpl_acc()
8489 *((uint32_t *) (pcmd)) = ELS_CMD_ACC; in lpfc_els_rsp_rpl_acc()
8490 pcmd += sizeof(uint16_t); in lpfc_els_rsp_rpl_acc()
8491 *((uint16_t *)(pcmd)) = be16_to_cpu(cmdsize); in lpfc_els_rsp_rpl_acc()
8492 pcmd += sizeof(uint16_t); in lpfc_els_rsp_rpl_acc()
8501 memcpy(pcmd, &rpl_rsp, cmdsize - sizeof(uint32_t)); in lpfc_els_rsp_rpl_acc()
8548 struct lpfc_dmabuf *pcmd; in lpfc_els_rcv_rpl() local
8568 pcmd = (struct lpfc_dmabuf *) cmdiocb->context2; in lpfc_els_rcv_rpl()
8569 lp = (uint32_t *) pcmd->virt; in lpfc_els_rcv_rpl()
8614 struct lpfc_dmabuf *pcmd; in lpfc_els_rcv_farp() local
8622 pcmd = (struct lpfc_dmabuf *) cmdiocb->context2; in lpfc_els_rcv_farp()
8623 lp = (uint32_t *) pcmd->virt; in lpfc_els_rcv_farp()
8687 struct lpfc_dmabuf *pcmd; in lpfc_els_rcv_farpr() local
8694 pcmd = (struct lpfc_dmabuf *) cmdiocb->context2; in lpfc_els_rcv_farpr()
8695 lp = (uint32_t *) pcmd->virt; in lpfc_els_rcv_farpr()
8927 struct lpfc_dmabuf *pcmd; in lpfc_els_timeout_handler() local
8958 pcmd = (struct lpfc_dmabuf *) piocb->context2; in lpfc_els_timeout_handler()
8959 if (pcmd) in lpfc_els_timeout_handler()
8960 els_command = *(uint32_t *) (pcmd->virt); in lpfc_els_timeout_handler()
9211 uint32_t *pcmd; in lpfc_send_els_failure_event() local
9224 pcmd = (uint32_t *) (((struct lpfc_dmabuf *) in lpfc_send_els_failure_event()
9226 lsrjt_event.command = (pcmd != NULL) ? *pcmd : 0; in lpfc_send_els_failure_event()
10673 struct lpfc_dmabuf *pcmd = cmdiocb->context2, *prsp; in lpfc_cmpl_els_fdisc() local
10722 prsp = list_get_first(&pcmd->list, struct lpfc_dmabuf, list); in lpfc_cmpl_els_fdisc()
10822 uint8_t *pcmd; in lpfc_issue_els_fdisc() local
10852 pcmd = (uint8_t *) (((struct lpfc_dmabuf *) elsiocb->context2)->virt); in lpfc_issue_els_fdisc()
10853 *((uint32_t *) (pcmd)) = ELS_CMD_FDISC; in lpfc_issue_els_fdisc()
10854 pcmd += sizeof(uint32_t); /* CSP Word 1 */ in lpfc_issue_els_fdisc()
10855 memcpy(pcmd, &vport->phba->pport->fc_sparam, sizeof(struct serv_parm)); in lpfc_issue_els_fdisc()
10856 sp = (struct serv_parm *) pcmd; in lpfc_issue_els_fdisc()
10865 pcmd += sizeof(uint32_t); /* CSP Word 2 */ in lpfc_issue_els_fdisc()
10866 pcmd += sizeof(uint32_t); /* CSP Word 3 */ in lpfc_issue_els_fdisc()
10867 pcmd += sizeof(uint32_t); /* CSP Word 4 */ in lpfc_issue_els_fdisc()
10868 pcmd += sizeof(uint32_t); /* Port Name */ in lpfc_issue_els_fdisc()
10869 memcpy(pcmd, &vport->fc_portname, 8); in lpfc_issue_els_fdisc()
10870 pcmd += sizeof(uint32_t); /* Node Name */ in lpfc_issue_els_fdisc()
10871 pcmd += sizeof(uint32_t); /* Node Name */ in lpfc_issue_els_fdisc()
10872 memcpy(pcmd, &vport->fc_nodename, 8); in lpfc_issue_els_fdisc()
10980 uint8_t *pcmd; in lpfc_issue_els_npiv_logo() local
10989 pcmd = (uint8_t *) (((struct lpfc_dmabuf *) elsiocb->context2)->virt); in lpfc_issue_els_npiv_logo()
10990 *((uint32_t *) (pcmd)) = ELS_CMD_LOGO; in lpfc_issue_els_npiv_logo()
10991 pcmd += sizeof(uint32_t); in lpfc_issue_els_npiv_logo()
10994 *((uint32_t *) (pcmd)) = be32_to_cpu(vport->fc_myDID); in lpfc_issue_els_npiv_logo()
10995 pcmd += sizeof(uint32_t); in lpfc_issue_els_npiv_logo()
10996 memcpy(pcmd, &vport->fc_portname, sizeof(struct lpfc_name)); in lpfc_issue_els_npiv_logo()
11555 u8 *pcmd, max_desc; in lpfc_cmpl_els_qfpa() local
11563 pcmd = prsp->virt; in lpfc_cmpl_els_qfpa()
11564 data = (u32 *)pcmd; in lpfc_cmpl_els_qfpa()
11586 len = *((u32 *)(pcmd + 4)); in lpfc_cmpl_els_qfpa()
11588 memcpy(vport->qfpa_res, pcmd, len + 8); in lpfc_cmpl_els_qfpa()
11591 desc = (struct priority_range_desc *)(pcmd + 8); in lpfc_cmpl_els_qfpa()
11641 u8 *pcmd; in lpfc_issue_els_qfpa() local
11653 pcmd = (u8 *)(((struct lpfc_dmabuf *)elsiocb->context2)->virt); in lpfc_issue_els_qfpa()
11655 *((u32 *)(pcmd)) = ELS_CMD_QFPA; in lpfc_issue_els_qfpa()
11656 pcmd += 4; in lpfc_issue_els_qfpa()
11685 u8 *pcmd; in lpfc_vmid_uvem() local
11708 pcmd = (u8 *)(((struct lpfc_dmabuf *)elsiocb->context2)->virt); in lpfc_vmid_uvem()
11714 *((u32 *)(pcmd)) = ELS_CMD_UVEM; in lpfc_vmid_uvem()
11715 len = (u32 *)(pcmd + 4); in lpfc_vmid_uvem()
11718 vem_id_desc = (struct lpfc_vem_id_desc *)(pcmd + 8); in lpfc_vmid_uvem()
11724 inst_desc = (struct instantiated_ve_desc *)(pcmd + 32); in lpfc_vmid_uvem()
11771 u8 *pcmd; in lpfc_cmpl_els_uvem() local
11784 pcmd = prsp->virt; in lpfc_cmpl_els_uvem()
11785 data = (u32 *)pcmd; in lpfc_cmpl_els_uvem()