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()
945 ct_req = (struct lpfc_sli_ct_request *)dmabuf->virt; in lpfc_bsg_ct_unsol_event()
1041 dmabuf->virt, size); in lpfc_bsg_ct_unsol_event()
1165 memcpy(fc_hdr_ptr, dmabuf->hbuf.virt, sizeof(struct fc_frame_header)); in lpfc_bsg_ct_unsol_abort()
1436 lpfc_mbuf_free(phba, bmp->virt, bmp->phys); in lpfc_issue_ct_rsp_cmp()
1634 bmp->virt = lpfc_mbuf_alloc(phba, 0, &bmp->phys); in lpfc_bsg_send_mgmt_rsp()
1635 if (!bmp->virt) { in lpfc_bsg_send_mgmt_rsp()
1641 bpl = (struct ulp_bde64 *) bmp->virt; in lpfc_bsg_send_mgmt_rsp()
1662 if (bmp->virt) in lpfc_bsg_send_mgmt_rsp()
1663 lpfc_mbuf_free(phba, bmp->virt, bmp->phys); in lpfc_bsg_send_mgmt_rsp()
2466 lpfc_mbuf_free(phba, dmabuff->virt, dmabuff->phys); in lpfcdiag_loop_self_reg()
2478 lpfc_mbuf_free(phba, dmabuff->virt, dmabuff->phys); in lpfcdiag_loop_self_reg()
2563 dmabuf->virt = lpfc_mbuf_alloc(phba, 0, &dmabuf->phys); in lpfcdiag_loop_get_xri()
2564 if (dmabuf->virt) { in lpfcdiag_loop_get_xri()
2566 bpl = (struct ulp_bde64 *) dmabuf->virt; in lpfcdiag_loop_get_xri()
2583 dmabuf->virt == NULL) { in lpfcdiag_loop_get_xri()
2656 if (dmabuf->virt) in lpfcdiag_loop_get_xri()
2657 lpfc_mbuf_free(phba, dmabuf->virt, dmabuf->phys); in lpfcdiag_loop_get_xri()
2689 dmabuf->virt = dma_zalloc_coherent(&pcidev->dev, BSG_MBOX_SIZE, in lpfc_bsg_dma_page_alloc()
2692 if (!dmabuf->virt) { in lpfc_bsg_dma_page_alloc()
2716 if (dmabuf->virt) in lpfc_bsg_dma_page_free()
2718 dmabuf->virt, dmabuf->phys); in lpfc_bsg_dma_page_free()
2791 dmp->dma.virt = dma_alloc_coherent(&pcidev->dev, in diag_cmd_data_alloc()
2796 if (!dmp->dma.virt) in diag_cmd_data_alloc()
2807 memset((uint8_t *)dmp->dma.virt, 0, cnt); in diag_cmd_data_alloc()
2862 rxbmp->virt = lpfc_mbuf_alloc(phba, 0, &rxbmp->phys); in lpfcdiag_loop_post_rxbufs()
2863 if (rxbmp->virt) { in lpfcdiag_loop_post_rxbufs()
2865 rxbpl = (struct ulp_bde64 *) rxbmp->virt; in lpfcdiag_loop_post_rxbufs()
2955 if (rxbmp->virt) in lpfcdiag_loop_post_rxbufs()
2956 lpfc_mbuf_free(phba, rxbmp->virt, rxbmp->phys); in lpfcdiag_loop_post_rxbufs()
3115 txbmp->virt = lpfc_mbuf_alloc(phba, 0, &txbmp->phys); in lpfc_bsg_diag_loopback_run()
3116 if (txbmp->virt) { in lpfc_bsg_diag_loopback_run()
3118 txbpl = (struct ulp_bde64 *) txbmp->virt; in lpfc_bsg_diag_loopback_run()
3124 if (!cmdiocbq || !txbmp || !txbpl || !txbuffer || !txbmp->virt) { in lpfc_bsg_diag_loopback_run()
3142 ctreq = curr->virt; in lpfc_bsg_diag_loopback_run()
3155 memcpy(curr->virt + segment_offset, in lpfc_bsg_diag_loopback_run()
3266 lpfc_mbuf_free(phba, txbmp->virt, txbmp->phys); in lpfc_bsg_diag_loopback_run()
3548 sli_cfg_mbx = (struct lpfc_sli_config_mbox *)dmabuf->virt; in lpfc_bsg_issue_mbox_ext_handle_job()
3551 pmbx = (uint8_t *)dmabuf->virt; in lpfc_bsg_issue_mbox_ext_handle_job()
3675 sli_cfg_mbx = (struct lpfc_sli_config_mbox *)mbx_dmabuf->virt; in lpfc_bsg_sli_cfg_dma_desc_setup()
3790 sli_cfg_mbx = (struct lpfc_sli_config_mbox *)dmabuf->virt; in lpfc_bsg_sli_cfg_read_cmd_ext()
3887 pmbx = (uint8_t *)dmabuf->virt; in lpfc_bsg_sli_cfg_read_cmd_ext()
3975 sli_cfg_mbx = (struct lpfc_sli_config_mbox *)dmabuf->virt; in lpfc_bsg_sli_cfg_write_cmd_ext()
4064 mbx = (uint8_t *)dmabuf->virt; in lpfc_bsg_sli_cfg_write_cmd_ext()
4133 sli_cfg_mbx = (struct lpfc_sli_config_mbox *)dmabuf->virt; in lpfc_bsg_handle_sli_cfg_mbox()
4283 phba->mbox_ext_buf_ctx.mbx_dmabuf->virt; in lpfc_bsg_read_ebuf_get()
4309 pbuf = (uint8_t *)dmabuf->virt; in lpfc_bsg_read_ebuf_get()
4361 pbuf = (uint8_t *)dmabuf->virt; in lpfc_bsg_write_ebuf_set()
4404 pbuf = (uint8_t *)phba->mbox_ext_buf_ctx.mbx_dmabuf->virt; in lpfc_bsg_write_ebuf_set()
4632 if (!dmabuf || !dmabuf->virt) { in lpfc_bsg_issue_mbox()
4638 pmbx = (uint8_t *)dmabuf->virt; in lpfc_bsg_issue_mbox()
5003 lpfc_mbuf_free(phba, bmp->virt, bmp->phys); in lpfc_bsg_menlo_cmd_cmp()
5089 bmp->virt = lpfc_mbuf_alloc(phba, 0, &bmp->phys); in lpfc_menlo_cmd()
5090 if (!bmp->virt) { in lpfc_menlo_cmd()
5097 bpl = (struct ulp_bde64 *)bmp->virt; in lpfc_menlo_cmd()
5176 if (bmp->virt) in lpfc_menlo_cmd()
5177 lpfc_mbuf_free(phba, bmp->virt, bmp->phys); in lpfc_menlo_cmd()