Lines Matching refs:virt

142 			lpfc_mbuf_free(phba, mlast->virt, mlast->phys);  in lpfc_free_bsg_buffers()
146 lpfc_mbuf_free(phba, mlist->virt, mlist->phys); in lpfc_free_bsg_buffers()
180 mp->virt = lpfc_mbuf_alloc(phba, MEM_PRI, &(mp->phys)); in lpfc_alloc_bsg_buffers()
182 if (!mp->virt) { in lpfc_alloc_bsg_buffers()
243 dma_address = mp->virt + dma_offset; in lpfc_bsg_copy_data()
361 lpfc_mbuf_free(phba, bmp->virt, bmp->phys); in lpfc_bsg_send_mgmt_cmd_cmp()
435 bmp->virt = lpfc_mbuf_alloc(phba, 0, &bmp->phys); in lpfc_bsg_send_mgmt_cmd()
436 if (!bmp->virt) { in lpfc_bsg_send_mgmt_cmd()
443 bpl = (struct ulp_bde64 *) bmp->virt; in lpfc_bsg_send_mgmt_cmd()
534 if (bmp->virt) in lpfc_bsg_send_mgmt_cmd()
535 lpfc_mbuf_free(phba, bmp->virt, bmp->phys); in lpfc_bsg_send_mgmt_cmd()
615 prsp->virt, in lpfc_bsg_rport_els_cmp()
714 ((struct lpfc_dmabuf *)cmdiocbq->context2)->virt, in lpfc_bsg_rport_els()
882 if (mlast->dma.virt) in diag_cmd_data_free()
885 mlast->dma.virt, in diag_cmd_data_free()
946 ct_req = (struct lpfc_sli_ct_request *)dmabuf->virt; in lpfc_bsg_ct_unsol_event()
1043 dmabuf->virt, size); in lpfc_bsg_ct_unsol_event()
1167 memcpy(fc_hdr_ptr, dmabuf->hbuf.virt, sizeof(struct fc_frame_header)); in lpfc_bsg_ct_unsol_abort()
1438 lpfc_mbuf_free(phba, bmp->virt, bmp->phys); in lpfc_issue_ct_rsp_cmp()
1636 bmp->virt = lpfc_mbuf_alloc(phba, 0, &bmp->phys); in lpfc_bsg_send_mgmt_rsp()
1637 if (!bmp->virt) { in lpfc_bsg_send_mgmt_rsp()
1643 bpl = (struct ulp_bde64 *) bmp->virt; in lpfc_bsg_send_mgmt_rsp()
1664 if (bmp->virt) in lpfc_bsg_send_mgmt_rsp()
1665 lpfc_mbuf_free(phba, bmp->virt, bmp->phys); in lpfc_bsg_send_mgmt_rsp()
2468 lpfc_mbuf_free(phba, dmabuff->virt, dmabuff->phys); in lpfcdiag_loop_self_reg()
2480 lpfc_mbuf_free(phba, dmabuff->virt, dmabuff->phys); in lpfcdiag_loop_self_reg()
2565 dmabuf->virt = lpfc_mbuf_alloc(phba, 0, &dmabuf->phys); in lpfcdiag_loop_get_xri()
2566 if (dmabuf->virt) { in lpfcdiag_loop_get_xri()
2568 bpl = (struct ulp_bde64 *) dmabuf->virt; in lpfcdiag_loop_get_xri()
2585 dmabuf->virt == NULL) { in lpfcdiag_loop_get_xri()
2658 if (dmabuf->virt) in lpfcdiag_loop_get_xri()
2659 lpfc_mbuf_free(phba, dmabuf->virt, dmabuf->phys); in lpfcdiag_loop_get_xri()
2691 dmabuf->virt = dma_zalloc_coherent(&pcidev->dev, BSG_MBOX_SIZE, in lpfc_bsg_dma_page_alloc()
2694 if (!dmabuf->virt) { in lpfc_bsg_dma_page_alloc()
2718 if (dmabuf->virt) in lpfc_bsg_dma_page_free()
2720 dmabuf->virt, dmabuf->phys); in lpfc_bsg_dma_page_free()
2793 dmp->dma.virt = dma_alloc_coherent(&pcidev->dev, in diag_cmd_data_alloc()
2798 if (!dmp->dma.virt) in diag_cmd_data_alloc()
2809 memset((uint8_t *)dmp->dma.virt, 0, cnt); in diag_cmd_data_alloc()
2864 rxbmp->virt = lpfc_mbuf_alloc(phba, 0, &rxbmp->phys); in lpfcdiag_loop_post_rxbufs()
2865 if (rxbmp->virt) { in lpfcdiag_loop_post_rxbufs()
2867 rxbpl = (struct ulp_bde64 *) rxbmp->virt; in lpfcdiag_loop_post_rxbufs()
2957 if (rxbmp->virt) in lpfcdiag_loop_post_rxbufs()
2958 lpfc_mbuf_free(phba, rxbmp->virt, rxbmp->phys); in lpfcdiag_loop_post_rxbufs()
3120 txbmp->virt = lpfc_mbuf_alloc(phba, 0, &txbmp->phys); in lpfc_bsg_diag_loopback_run()
3121 if (txbmp->virt) { in lpfc_bsg_diag_loopback_run()
3123 txbpl = (struct ulp_bde64 *) txbmp->virt; in lpfc_bsg_diag_loopback_run()
3129 if (!cmdiocbq || !txbmp || !txbpl || !txbuffer || !txbmp->virt) { in lpfc_bsg_diag_loopback_run()
3147 ctreq = curr->virt; in lpfc_bsg_diag_loopback_run()
3160 memcpy(curr->virt + segment_offset, in lpfc_bsg_diag_loopback_run()
3271 lpfc_mbuf_free(phba, txbmp->virt, txbmp->phys); in lpfc_bsg_diag_loopback_run()
3557 sli_cfg_mbx = (struct lpfc_sli_config_mbox *)dmabuf->virt; in lpfc_bsg_issue_mbox_ext_handle_job()
3560 pmbx = (uint8_t *)dmabuf->virt; in lpfc_bsg_issue_mbox_ext_handle_job()
3684 sli_cfg_mbx = (struct lpfc_sli_config_mbox *)mbx_dmabuf->virt; in lpfc_bsg_sli_cfg_dma_desc_setup()
3799 sli_cfg_mbx = (struct lpfc_sli_config_mbox *)dmabuf->virt; in lpfc_bsg_sli_cfg_read_cmd_ext()
3896 pmbx = (uint8_t *)dmabuf->virt; in lpfc_bsg_sli_cfg_read_cmd_ext()
3984 sli_cfg_mbx = (struct lpfc_sli_config_mbox *)dmabuf->virt; in lpfc_bsg_sli_cfg_write_cmd_ext()
4073 mbx = (uint8_t *)dmabuf->virt; in lpfc_bsg_sli_cfg_write_cmd_ext()
4142 sli_cfg_mbx = (struct lpfc_sli_config_mbox *)dmabuf->virt; in lpfc_bsg_handle_sli_cfg_mbox()
4292 phba->mbox_ext_buf_ctx.mbx_dmabuf->virt; in lpfc_bsg_read_ebuf_get()
4318 pbuf = (uint8_t *)dmabuf->virt; in lpfc_bsg_read_ebuf_get()
4366 phba->mbox_ext_buf_ctx.mbx_dmabuf->virt; in lpfc_bsg_write_ebuf_set()
4374 pbuf = (uint8_t *)dmabuf->virt; in lpfc_bsg_write_ebuf_set()
4417 pbuf = (uint8_t *)phba->mbox_ext_buf_ctx.mbx_dmabuf->virt; in lpfc_bsg_write_ebuf_set()
4646 if (!dmabuf || !dmabuf->virt) { in lpfc_bsg_issue_mbox()
4652 pmbx = (uint8_t *)dmabuf->virt; in lpfc_bsg_issue_mbox()
5019 lpfc_mbuf_free(phba, bmp->virt, bmp->phys); in lpfc_bsg_menlo_cmd_cmp()
5109 bmp->virt = lpfc_mbuf_alloc(phba, 0, &bmp->phys); in lpfc_menlo_cmd()
5110 if (!bmp->virt) { in lpfc_menlo_cmd()
5117 bpl = (struct ulp_bde64 *)bmp->virt; in lpfc_menlo_cmd()
5196 if (bmp->virt) in lpfc_menlo_cmd()
5197 lpfc_mbuf_free(phba, bmp->virt, bmp->phys); in lpfc_menlo_cmd()