Lines Matching refs:pcmd
156 struct lpfc_dmabuf *pcmd, *prsp, *pbuflist; in lpfc_prep_els_iocb() local
203 pcmd = kmalloc(sizeof(struct lpfc_dmabuf), GFP_KERNEL); in lpfc_prep_els_iocb()
204 if (pcmd) in lpfc_prep_els_iocb()
205 pcmd->virt = lpfc_mbuf_alloc(phba, MEM_PRI, &pcmd->phys); in lpfc_prep_els_iocb()
206 if (!pcmd || !pcmd->virt) in lpfc_prep_els_iocb()
209 INIT_LIST_HEAD(&pcmd->list); in lpfc_prep_els_iocb()
263 bpl->addrLow = le32_to_cpu(putPaddrLow(pcmd->phys)); in lpfc_prep_els_iocb()
264 bpl->addrHigh = le32_to_cpu(putPaddrHigh(pcmd->phys)); in lpfc_prep_els_iocb()
282 elsiocb->context2 = pcmd; in lpfc_prep_els_iocb()
289 list_add(&prsp->list, &pcmd->list); in lpfc_prep_els_iocb()
314 lpfc_mbuf_free(phba, pcmd->virt, pcmd->phys); in lpfc_prep_els_iocb()
318 kfree(pcmd); in lpfc_prep_els_iocb()
903 struct lpfc_dmabuf *pcmd = cmdiocb->context2, *prsp; in lpfc_cmpl_els_flogi() local
1002 prsp = list_get_first(&pcmd->list, struct lpfc_dmabuf, list); in lpfc_cmpl_els_flogi()
1121 uint8_t *pcmd; in lpfc_issue_els_flogi() local
1136 pcmd = (uint8_t *) (((struct lpfc_dmabuf *) elsiocb->context2)->virt); in lpfc_issue_els_flogi()
1139 *((uint32_t *) (pcmd)) = ELS_CMD_FLOGI; in lpfc_issue_els_flogi()
1140 pcmd += sizeof(uint32_t); in lpfc_issue_els_flogi()
1141 memcpy(pcmd, &vport->fc_sparam, sizeof(struct serv_parm)); in lpfc_issue_els_flogi()
1142 sp = (struct serv_parm *) pcmd; in lpfc_issue_els_flogi()
1827 uint8_t *pcmd; in lpfc_issue_els_plogi() local
1845 pcmd = (uint8_t *) (((struct lpfc_dmabuf *) elsiocb->context2)->virt); in lpfc_issue_els_plogi()
1848 *((uint32_t *) (pcmd)) = ELS_CMD_PLOGI; in lpfc_issue_els_plogi()
1849 pcmd += sizeof(uint32_t); in lpfc_issue_els_plogi()
1850 memcpy(pcmd, &vport->fc_sparam, sizeof(struct serv_parm)); in lpfc_issue_els_plogi()
1851 sp = (struct serv_parm *) pcmd; in lpfc_issue_els_plogi()
1986 uint8_t *pcmd; in lpfc_issue_els_prli() local
1996 pcmd = (uint8_t *) (((struct lpfc_dmabuf *) elsiocb->context2)->virt); in lpfc_issue_els_prli()
1999 memset(pcmd, 0, (sizeof(PRLI) + sizeof(uint32_t))); in lpfc_issue_els_prli()
2000 *((uint32_t *) (pcmd)) = ELS_CMD_PRLI; in lpfc_issue_els_prli()
2001 pcmd += sizeof(uint32_t); in lpfc_issue_els_prli()
2004 npr = (PRLI *) pcmd; in lpfc_issue_els_prli()
2274 uint8_t *pcmd; in lpfc_issue_els_adisc() local
2284 pcmd = (uint8_t *) (((struct lpfc_dmabuf *) elsiocb->context2)->virt); in lpfc_issue_els_adisc()
2287 *((uint32_t *) (pcmd)) = ELS_CMD_ADISC; in lpfc_issue_els_adisc()
2288 pcmd += sizeof(uint32_t); in lpfc_issue_els_adisc()
2291 ap = (ADISC *) pcmd; in lpfc_issue_els_adisc()
2442 uint8_t *pcmd; in lpfc_issue_els_logo() local
2460 pcmd = (uint8_t *) (((struct lpfc_dmabuf *) elsiocb->context2)->virt); in lpfc_issue_els_logo()
2461 *((uint32_t *) (pcmd)) = ELS_CMD_LOGO; in lpfc_issue_els_logo()
2462 pcmd += sizeof(uint32_t); in lpfc_issue_els_logo()
2465 *((uint32_t *) (pcmd)) = be32_to_cpu(vport->fc_myDID); in lpfc_issue_els_logo()
2466 pcmd += sizeof(uint32_t); in lpfc_issue_els_logo()
2467 memcpy(pcmd, &vport->fc_portname, sizeof(struct lpfc_name)); in lpfc_issue_els_logo()
2559 uint8_t *pcmd; in lpfc_issue_els_scr() local
2591 pcmd = (uint8_t *) (((struct lpfc_dmabuf *) elsiocb->context2)->virt); in lpfc_issue_els_scr()
2593 *((uint32_t *) (pcmd)) = ELS_CMD_SCR; in lpfc_issue_els_scr()
2594 pcmd += sizeof(uint32_t); in lpfc_issue_els_scr()
2597 memset(pcmd, 0, sizeof(SCR)); in lpfc_issue_els_scr()
2598 ((SCR *) pcmd)->Function = SCR_FUNC_FULL; in lpfc_issue_els_scr()
2653 uint8_t *pcmd; in lpfc_issue_els_farpr() local
2686 pcmd = (uint8_t *) (((struct lpfc_dmabuf *) elsiocb->context2)->virt); in lpfc_issue_els_farpr()
2688 *((uint32_t *) (pcmd)) = ELS_CMD_FARPR; in lpfc_issue_els_farpr()
2689 pcmd += sizeof(uint32_t); in lpfc_issue_els_farpr()
2692 fp = (FARP *) (pcmd); in lpfc_issue_els_farpr()
2694 lp = (uint32_t *) pcmd; in lpfc_issue_els_farpr()
2932 struct lpfc_dmabuf *pcmd = (struct lpfc_dmabuf *) cmdiocb->context2; in lpfc_els_retry() local
2945 if (pcmd && pcmd->virt) { in lpfc_els_retry()
2946 elscmd = (uint32_t *) (pcmd->virt); in lpfc_els_retry()
3541 uint8_t *pcmd; in lpfc_cmpl_els_rsp() local
3554 pcmd = (uint8_t *) (((struct lpfc_dmabuf *) cmdiocb->context2)->virt); in lpfc_cmpl_els_rsp()
3556 (*((uint32_t *) (pcmd)) == ELS_CMD_LS_RJT)) { in lpfc_cmpl_els_rsp()
3724 uint8_t *pcmd; in lpfc_els_rsp_acc() local
3747 pcmd = (((struct lpfc_dmabuf *) elsiocb->context2)->virt); in lpfc_els_rsp_acc()
3748 *((uint32_t *) (pcmd)) = ELS_CMD_ACC; in lpfc_els_rsp_acc()
3749 pcmd += sizeof(uint32_t); in lpfc_els_rsp_acc()
3765 pcmd = (((struct lpfc_dmabuf *) elsiocb->context2)->virt); in lpfc_els_rsp_acc()
3770 *((uint32_t *) (pcmd)) = ELS_CMD_ACC; in lpfc_els_rsp_acc()
3771 pcmd += sizeof(uint32_t); in lpfc_els_rsp_acc()
3772 memcpy(pcmd, &vport->fc_sparam, sizeof(struct serv_parm)); in lpfc_els_rsp_acc()
3788 pcmd = (((struct lpfc_dmabuf *) elsiocb->context2)->virt); in lpfc_els_rsp_acc()
3790 memcpy(pcmd, ((struct lpfc_dmabuf *) oldiocb->context2)->virt, in lpfc_els_rsp_acc()
3792 *((uint32_t *) (pcmd)) = ELS_CMD_PRLO_ACC; in lpfc_els_rsp_acc()
3793 els_pkt_ptr = (ELS_PKT *) pcmd; in lpfc_els_rsp_acc()
3860 uint8_t *pcmd; in lpfc_els_rsp_reject() local
3875 pcmd = (uint8_t *) (((struct lpfc_dmabuf *) elsiocb->context2)->virt); in lpfc_els_rsp_reject()
3877 *((uint32_t *) (pcmd)) = ELS_CMD_LS_RJT; in lpfc_els_rsp_reject()
3878 pcmd += sizeof(uint32_t); in lpfc_els_rsp_reject()
3879 *((uint32_t *) (pcmd)) = rejectError; in lpfc_els_rsp_reject()
3934 uint8_t *pcmd; in lpfc_els_rsp_adisc_acc() local
3956 pcmd = (uint8_t *) (((struct lpfc_dmabuf *) elsiocb->context2)->virt); in lpfc_els_rsp_adisc_acc()
3958 *((uint32_t *) (pcmd)) = ELS_CMD_ACC; in lpfc_els_rsp_adisc_acc()
3959 pcmd += sizeof(uint32_t); in lpfc_els_rsp_adisc_acc()
3961 ap = (ADISC *) (pcmd); in lpfc_els_rsp_adisc_acc()
4011 uint8_t *pcmd; in lpfc_els_rsp_prli_acc() local
4035 pcmd = (uint8_t *) (((struct lpfc_dmabuf *) elsiocb->context2)->virt); in lpfc_els_rsp_prli_acc()
4037 *((uint32_t *) (pcmd)) = (ELS_CMD_ACC | (ELS_CMD_PRLI & ~ELS_RSP_MASK)); in lpfc_els_rsp_prli_acc()
4038 pcmd += sizeof(uint32_t); in lpfc_els_rsp_prli_acc()
4041 memset(pcmd, 0, sizeof(PRLI)); in lpfc_els_rsp_prli_acc()
4043 npr = (PRLI *) pcmd; in lpfc_els_rsp_prli_acc()
4114 uint8_t *pcmd; in lpfc_els_rsp_rnid_acc() local
4138 pcmd = (uint8_t *) (((struct lpfc_dmabuf *) elsiocb->context2)->virt); in lpfc_els_rsp_rnid_acc()
4139 *((uint32_t *) (pcmd)) = ELS_CMD_ACC; in lpfc_els_rsp_rnid_acc()
4140 pcmd += sizeof(uint32_t); in lpfc_els_rsp_rnid_acc()
4142 memset(pcmd, 0, sizeof(RNID)); in lpfc_els_rsp_rnid_acc()
4143 rn = (RNID *) (pcmd); in lpfc_els_rsp_rnid_acc()
4194 uint8_t *pcmd; in lpfc_els_clear_rrq() local
4201 pcmd = (uint8_t *) (((struct lpfc_dmabuf *) iocb->context2)->virt); in lpfc_els_clear_rrq()
4202 pcmd += sizeof(uint32_t); in lpfc_els_clear_rrq()
4203 rrq = (struct RRQ *)pcmd; in lpfc_els_clear_rrq()
4246 uint8_t *pcmd; in lpfc_els_rsp_echo_acc() local
4270 pcmd = (uint8_t *) (((struct lpfc_dmabuf *) elsiocb->context2)->virt); in lpfc_els_rsp_echo_acc()
4271 *((uint32_t *) (pcmd)) = ELS_CMD_ACC; in lpfc_els_rsp_echo_acc()
4272 pcmd += sizeof(uint32_t); in lpfc_els_rsp_echo_acc()
4273 memcpy(pcmd, data, cmdsize - sizeof(uint32_t)); in lpfc_els_rsp_echo_acc()
4564 struct lpfc_dmabuf *pcmd; in lpfc_send_rscn_event() local
4570 pcmd = (struct lpfc_dmabuf *) cmdiocb->context2; in lpfc_send_rscn_event()
4571 payload_ptr = (uint32_t *) pcmd->virt; in lpfc_send_rscn_event()
4623 struct lpfc_dmabuf *pcmd; in lpfc_els_rcv_rscn() local
4632 pcmd = (struct lpfc_dmabuf *) cmdiocb->context2; in lpfc_els_rcv_rscn()
4633 lp = (uint32_t *) pcmd->virt; in lpfc_els_rcv_rscn()
4734 vport->fc_rscn_id_list[rscn_cnt] = pcmd; in lpfc_els_rcv_rscn()
4775 vport->fc_rscn_id_list[vport->fc_rscn_id_cnt++] = pcmd; in lpfc_els_rcv_rscn()
4910 struct lpfc_dmabuf *pcmd = (struct lpfc_dmabuf *) cmdiocb->context2; in lpfc_els_rcv_flogi() local
4911 uint32_t *lp = (uint32_t *) pcmd->virt; in lpfc_els_rcv_flogi()
5021 struct lpfc_dmabuf *pcmd; in lpfc_els_rcv_rnid() local
5030 pcmd = (struct lpfc_dmabuf *) cmdiocb->context2; in lpfc_els_rcv_rnid()
5031 lp = (uint32_t *) pcmd->virt; in lpfc_els_rcv_rnid()
5069 uint8_t *pcmd; in lpfc_els_rcv_echo() local
5071 pcmd = (uint8_t *) (((struct lpfc_dmabuf *) cmdiocb->context2)->virt); in lpfc_els_rcv_echo()
5074 pcmd += sizeof(uint32_t); in lpfc_els_rcv_echo()
5076 lpfc_els_rsp_echo_acc(vport, pcmd, cmdiocb, ndlp); in lpfc_els_rcv_echo()
5158 uint8_t *pcmd; in lpfc_els_rsp_rls_acc() local
5194 pcmd = (uint8_t *) (((struct lpfc_dmabuf *) elsiocb->context2)->virt); in lpfc_els_rsp_rls_acc()
5195 *((uint32_t *) (pcmd)) = ELS_CMD_ACC; in lpfc_els_rsp_rls_acc()
5196 pcmd += sizeof(uint32_t); /* Skip past command */ in lpfc_els_rsp_rls_acc()
5197 rls_rsp = (struct RLS_RSP *)pcmd; in lpfc_els_rsp_rls_acc()
5244 uint8_t *pcmd; in lpfc_els_rsp_rps_acc() local
5281 pcmd = (uint8_t *) (((struct lpfc_dmabuf *) elsiocb->context2)->virt); in lpfc_els_rsp_rps_acc()
5282 *((uint32_t *) (pcmd)) = ELS_CMD_ACC; in lpfc_els_rsp_rps_acc()
5283 pcmd += sizeof(uint32_t); /* Skip past command */ in lpfc_els_rsp_rps_acc()
5284 rps_rsp = (RPS_RSP *)pcmd; in lpfc_els_rsp_rps_acc()
5339 struct lpfc_dmabuf *pcmd; in lpfc_els_rcv_rls() local
5347 pcmd = (struct lpfc_dmabuf *) cmdiocb->context2; in lpfc_els_rcv_rls()
5406 uint8_t *pcmd; in lpfc_els_rcv_rtv() local
5424 pcmd = (uint8_t *) (((struct lpfc_dmabuf *) elsiocb->context2)->virt); in lpfc_els_rcv_rtv()
5425 *((uint32_t *) (pcmd)) = ELS_CMD_ACC; in lpfc_els_rcv_rtv()
5426 pcmd += sizeof(uint32_t); /* Skip past command */ in lpfc_els_rcv_rtv()
5432 rtv_rsp = (struct RTV_RSP *)pcmd; in lpfc_els_rcv_rtv()
5491 struct lpfc_dmabuf *pcmd; in lpfc_els_rcv_rps() local
5500 pcmd = (struct lpfc_dmabuf *) cmdiocb->context2; in lpfc_els_rcv_rps()
5501 lp = (uint32_t *) pcmd->virt; in lpfc_els_rcv_rps()
5564 uint8_t *pcmd; in lpfc_issue_els_rrq() local
5582 pcmd = (uint8_t *) (((struct lpfc_dmabuf *) elsiocb->context2)->virt); in lpfc_issue_els_rrq()
5585 *((uint32_t *) (pcmd)) = ELS_CMD_RRQ; in lpfc_issue_els_rrq()
5586 pcmd += sizeof(uint32_t); in lpfc_issue_els_rrq()
5587 els_rrq = (struct RRQ *) pcmd; in lpfc_issue_els_rrq()
5661 uint8_t *pcmd; in lpfc_els_rsp_rpl_acc() local
5674 pcmd = (((struct lpfc_dmabuf *) elsiocb->context2)->virt); in lpfc_els_rsp_rpl_acc()
5675 *((uint32_t *) (pcmd)) = ELS_CMD_ACC; in lpfc_els_rsp_rpl_acc()
5676 pcmd += sizeof(uint16_t); in lpfc_els_rsp_rpl_acc()
5677 *((uint16_t *)(pcmd)) = be16_to_cpu(cmdsize); in lpfc_els_rsp_rpl_acc()
5678 pcmd += sizeof(uint16_t); in lpfc_els_rsp_rpl_acc()
5687 memcpy(pcmd, &rpl_rsp, cmdsize - sizeof(uint32_t)); in lpfc_els_rsp_rpl_acc()
5726 struct lpfc_dmabuf *pcmd; in lpfc_els_rcv_rpl() local
5746 pcmd = (struct lpfc_dmabuf *) cmdiocb->context2; in lpfc_els_rcv_rpl()
5747 lp = (uint32_t *) pcmd->virt; in lpfc_els_rcv_rpl()
5792 struct lpfc_dmabuf *pcmd; in lpfc_els_rcv_farp() local
5800 pcmd = (struct lpfc_dmabuf *) cmdiocb->context2; in lpfc_els_rcv_farp()
5801 lp = (uint32_t *) pcmd->virt; in lpfc_els_rcv_farp()
5865 struct lpfc_dmabuf *pcmd; in lpfc_els_rcv_farpr() local
5872 pcmd = (struct lpfc_dmabuf *) cmdiocb->context2; in lpfc_els_rcv_farpr()
5873 lp = (uint32_t *) pcmd->virt; in lpfc_els_rcv_farpr()
5986 struct lpfc_dmabuf *pcmd; in lpfc_els_timeout_handler() local
6013 pcmd = (struct lpfc_dmabuf *) piocb->context2; in lpfc_els_timeout_handler()
6014 if (pcmd) in lpfc_els_timeout_handler()
6015 els_command = *(uint32_t *) (pcmd->virt); in lpfc_els_timeout_handler()
6206 uint32_t *pcmd; in lpfc_send_els_failure_event() local
6219 pcmd = (uint32_t *) (((struct lpfc_dmabuf *) in lpfc_send_els_failure_event()
6221 lsrjt_event.command = (pcmd != NULL) ? *pcmd : 0; in lpfc_send_els_failure_event()
7152 struct lpfc_dmabuf *pcmd = cmdiocb->context2, *prsp; in lpfc_cmpl_els_fdisc() local
7198 prsp = list_get_first(&pcmd->list, struct lpfc_dmabuf, list); in lpfc_cmpl_els_fdisc()
7289 uint8_t *pcmd; in lpfc_issue_els_fdisc() local
7319 pcmd = (uint8_t *) (((struct lpfc_dmabuf *) elsiocb->context2)->virt); in lpfc_issue_els_fdisc()
7320 *((uint32_t *) (pcmd)) = ELS_CMD_FDISC; in lpfc_issue_els_fdisc()
7321 pcmd += sizeof(uint32_t); /* CSP Word 1 */ in lpfc_issue_els_fdisc()
7322 memcpy(pcmd, &vport->phba->pport->fc_sparam, sizeof(struct serv_parm)); in lpfc_issue_els_fdisc()
7323 sp = (struct serv_parm *) pcmd; in lpfc_issue_els_fdisc()
7332 pcmd += sizeof(uint32_t); /* CSP Word 2 */ in lpfc_issue_els_fdisc()
7333 pcmd += sizeof(uint32_t); /* CSP Word 3 */ in lpfc_issue_els_fdisc()
7334 pcmd += sizeof(uint32_t); /* CSP Word 4 */ in lpfc_issue_els_fdisc()
7335 pcmd += sizeof(uint32_t); /* Port Name */ in lpfc_issue_els_fdisc()
7336 memcpy(pcmd, &vport->fc_portname, 8); in lpfc_issue_els_fdisc()
7337 pcmd += sizeof(uint32_t); /* Node Name */ in lpfc_issue_els_fdisc()
7338 pcmd += sizeof(uint32_t); /* Node Name */ in lpfc_issue_els_fdisc()
7339 memcpy(pcmd, &vport->fc_nodename, 8); in lpfc_issue_els_fdisc()
7434 uint8_t *pcmd; in lpfc_issue_els_npiv_logo() local
7444 pcmd = (uint8_t *) (((struct lpfc_dmabuf *) elsiocb->context2)->virt); in lpfc_issue_els_npiv_logo()
7445 *((uint32_t *) (pcmd)) = ELS_CMD_LOGO; in lpfc_issue_els_npiv_logo()
7446 pcmd += sizeof(uint32_t); in lpfc_issue_els_npiv_logo()
7449 *((uint32_t *) (pcmd)) = be32_to_cpu(vport->fc_myDID); in lpfc_issue_els_npiv_logo()
7450 pcmd += sizeof(uint32_t); in lpfc_issue_els_npiv_logo()
7451 memcpy(pcmd, &vport->fc_portname, sizeof(struct lpfc_name)); in lpfc_issue_els_npiv_logo()