Lines Matching refs:pcmd
19308 struct lpfc_dmabuf *pcmd = cmdiocb->cmd_dmabuf; in lpfc_sli4_mds_loopback_cmpl() local
19310 if (pcmd && pcmd->virt) in lpfc_sli4_mds_loopback_cmpl()
19311 dma_pool_free(phba->lpfc_drb_pool, pcmd->virt, pcmd->phys); in lpfc_sli4_mds_loopback_cmpl()
19312 kfree(pcmd); in lpfc_sli4_mds_loopback_cmpl()
19325 struct lpfc_dmabuf *pcmd = NULL; in lpfc_sli4_handle_mds_loopback() local
19347 pcmd = kmalloc(sizeof(struct lpfc_dmabuf), GFP_KERNEL); in lpfc_sli4_handle_mds_loopback()
19348 if (pcmd) in lpfc_sli4_handle_mds_loopback()
19349 pcmd->virt = dma_pool_alloc(phba->lpfc_drb_pool, GFP_KERNEL, in lpfc_sli4_handle_mds_loopback()
19350 &pcmd->phys); in lpfc_sli4_handle_mds_loopback()
19351 if (!pcmd || !pcmd->virt) in lpfc_sli4_handle_mds_loopback()
19354 INIT_LIST_HEAD(&pcmd->list); in lpfc_sli4_handle_mds_loopback()
19357 memcpy(pcmd->virt, dmabuf->dbuf.virt, frame_len); in lpfc_sli4_handle_mds_loopback()
19359 iocbq->cmd_dmabuf = pcmd; in lpfc_sli4_handle_mds_loopback()
19367 pwqe->gen_req.bde.addrHigh = putPaddrHigh(pcmd->phys); in lpfc_sli4_handle_mds_loopback()
19368 pwqe->gen_req.bde.addrLow = putPaddrLow(pcmd->phys); in lpfc_sli4_handle_mds_loopback()
19409 if (pcmd && pcmd->virt) in lpfc_sli4_handle_mds_loopback()
19410 dma_pool_free(phba->lpfc_drb_pool, pcmd->virt, pcmd->phys); in lpfc_sli4_handle_mds_loopback()
19411 kfree(pcmd); in lpfc_sli4_handle_mds_loopback()
22182 struct lpfc_dmabuf *pcmd; in lpfc_read_object() local
22208 pcmd = kmalloc(sizeof(*pcmd), GFP_KERNEL); in lpfc_read_object()
22209 if (pcmd) in lpfc_read_object()
22210 pcmd->virt = lpfc_mbuf_alloc(phba, MEM_PRI, &pcmd->phys); in lpfc_read_object()
22211 if (!pcmd || !pcmd->virt) { in lpfc_read_object()
22212 kfree(pcmd); in lpfc_read_object()
22216 memset((void *)pcmd->virt, 0, LPFC_BPL_SIZE); in lpfc_read_object()
22218 putPaddrLow(pcmd->phys); in lpfc_read_object()
22220 putPaddrHigh(pcmd->phys); in lpfc_read_object()
22257 lpfc_sli_pcimem_bcopy(pcmd->virt, datap, byte_cnt); in lpfc_read_object()
22264 lpfc_mbuf_free(phba, pcmd->virt, pcmd->phys); in lpfc_read_object()
22265 kfree(pcmd); in lpfc_read_object()
22575 u32 *pcmd; in lpfc_sli_prep_wqe() local
22601 pcmd = (u32 *)job->cmd_dmabuf->virt; in lpfc_sli_prep_wqe()
22602 if (pcmd && (*pcmd == ELS_CMD_FLOGI || in lpfc_sli_prep_wqe()
22603 *pcmd == ELS_CMD_SCR || in lpfc_sli_prep_wqe()
22604 *pcmd == ELS_CMD_RDF || in lpfc_sli_prep_wqe()
22605 *pcmd == ELS_CMD_EDC || in lpfc_sli_prep_wqe()
22606 *pcmd == ELS_CMD_RSCN_XMT || in lpfc_sli_prep_wqe()
22607 *pcmd == ELS_CMD_FDISC || in lpfc_sli_prep_wqe()
22608 *pcmd == ELS_CMD_LOGO || in lpfc_sli_prep_wqe()
22609 *pcmd == ELS_CMD_QFPA || in lpfc_sli_prep_wqe()
22610 *pcmd == ELS_CMD_UVEM || in lpfc_sli_prep_wqe()
22611 *pcmd == ELS_CMD_PLOGI)) { in lpfc_sli_prep_wqe()
22616 if ((*pcmd == ELS_CMD_FLOGI) && in lpfc_sli_prep_wqe()
22624 } else if (pcmd) { in lpfc_sli_prep_wqe()