Lines Matching refs:bpl
257 struct ulp_bde64 *bpl; in lpfc_new_scsi_buf_s3() local
309 bpl = (struct ulp_bde64 *)psb->dma_sgl; in lpfc_new_scsi_buf_s3()
320 bpl[0].addrHigh = le32_to_cpu(putPaddrHigh(pdma_phys_fcp_cmd)); in lpfc_new_scsi_buf_s3()
321 bpl[0].addrLow = le32_to_cpu(putPaddrLow(pdma_phys_fcp_cmd)); in lpfc_new_scsi_buf_s3()
322 bpl[0].tus.f.bdeSize = sizeof(struct fcp_cmnd); in lpfc_new_scsi_buf_s3()
323 bpl[0].tus.f.bdeFlags = BUFF_TYPE_BDE_64; in lpfc_new_scsi_buf_s3()
324 bpl[0].tus.w = le32_to_cpu(bpl[0].tus.w); in lpfc_new_scsi_buf_s3()
327 bpl[1].addrHigh = le32_to_cpu(putPaddrHigh(pdma_phys_fcp_rsp)); in lpfc_new_scsi_buf_s3()
328 bpl[1].addrLow = le32_to_cpu(putPaddrLow(pdma_phys_fcp_rsp)); in lpfc_new_scsi_buf_s3()
329 bpl[1].tus.f.bdeSize = sizeof(struct fcp_rsp); in lpfc_new_scsi_buf_s3()
330 bpl[1].tus.f.bdeFlags = BUFF_TYPE_BDE_64; in lpfc_new_scsi_buf_s3()
331 bpl[1].tus.w = le32_to_cpu(bpl[1].tus.w); in lpfc_new_scsi_buf_s3()
816 struct ulp_bde64 *bpl = (struct ulp_bde64 *)lpfc_cmd->dma_sgl; in lpfc_scsi_prep_dma_buf_s3() local
830 bpl += 2; in lpfc_scsi_prep_dma_buf_s3()
878 bpl->tus.f.bdeFlags = BUFF_TYPE_BDE_64; in lpfc_scsi_prep_dma_buf_s3()
879 bpl->tus.f.bdeSize = sg_dma_len(sgel); in lpfc_scsi_prep_dma_buf_s3()
880 bpl->tus.w = le32_to_cpu(bpl->tus.w); in lpfc_scsi_prep_dma_buf_s3()
881 bpl->addrLow = in lpfc_scsi_prep_dma_buf_s3()
883 bpl->addrHigh = in lpfc_scsi_prep_dma_buf_s3()
885 bpl++; in lpfc_scsi_prep_dma_buf_s3()
1542 struct ulp_bde64 *bpl, int datasegcnt) in lpfc_bg_setup_bpl() argument
1577 pde5 = (struct lpfc_pde5 *) bpl; in lpfc_bg_setup_bpl()
1587 bpl++; in lpfc_bg_setup_bpl()
1588 pde6 = (struct lpfc_pde6 *) bpl; in lpfc_bg_setup_bpl()
1622 bpl++; in lpfc_bg_setup_bpl()
1627 bpl->addrLow = le32_to_cpu(putPaddrLow(physaddr)); in lpfc_bg_setup_bpl()
1628 bpl->addrHigh = le32_to_cpu(putPaddrHigh(physaddr)); in lpfc_bg_setup_bpl()
1629 bpl->tus.f.bdeSize = sg_dma_len(sgde); in lpfc_bg_setup_bpl()
1631 bpl->tus.f.bdeFlags = BUFF_TYPE_BDE_64; in lpfc_bg_setup_bpl()
1633 bpl->tus.f.bdeFlags = BUFF_TYPE_BDE_64I; in lpfc_bg_setup_bpl()
1634 bpl->tus.w = le32_to_cpu(bpl->tus.w); in lpfc_bg_setup_bpl()
1635 bpl++; in lpfc_bg_setup_bpl()
1684 struct ulp_bde64 *bpl, int datacnt, int protcnt) in lpfc_bg_setup_bpl_prot() argument
1746 pde5 = (struct lpfc_pde5 *) bpl; in lpfc_bg_setup_bpl_prot()
1756 bpl++; in lpfc_bg_setup_bpl_prot()
1757 pde6 = (struct lpfc_pde6 *) bpl; in lpfc_bg_setup_bpl_prot()
1786 bpl++; in lpfc_bg_setup_bpl_prot()
1795 pde7 = (struct lpfc_pde7 *) bpl; in lpfc_bg_setup_bpl_prot()
1832 bpl++; in lpfc_bg_setup_bpl_prot()
1834 bpl->addrLow = le32_to_cpu(putPaddrLow(dataphysaddr)); in lpfc_bg_setup_bpl_prot()
1835 bpl->addrHigh = le32_to_cpu(putPaddrHigh(dataphysaddr)); in lpfc_bg_setup_bpl_prot()
1841 bpl->tus.f.bdeSize = remainder; in lpfc_bg_setup_bpl_prot()
1848 bpl->tus.f.bdeSize = protgrp_bytes - subtotal; in lpfc_bg_setup_bpl_prot()
1849 split_offset += bpl->tus.f.bdeSize; in lpfc_bg_setup_bpl_prot()
1852 subtotal += bpl->tus.f.bdeSize; in lpfc_bg_setup_bpl_prot()
1855 bpl->tus.f.bdeFlags = BUFF_TYPE_BDE_64; in lpfc_bg_setup_bpl_prot()
1857 bpl->tus.f.bdeFlags = BUFF_TYPE_BDE_64I; in lpfc_bg_setup_bpl_prot()
1858 bpl->tus.w = le32_to_cpu(bpl->tus.w); in lpfc_bg_setup_bpl_prot()
1874 bpl++; in lpfc_bg_setup_bpl_prot()
1884 bpl++; in lpfc_bg_setup_bpl_prot()
2512 struct ulp_bde64 *bpl = (struct ulp_bde64 *)lpfc_cmd->dma_sgl; in lpfc_bg_scsi_prep_dma_buf_s3() local
2525 bpl += 2; in lpfc_bg_scsi_prep_dma_buf_s3()
2559 num_bde = lpfc_bg_setup_bpl(phba, scsi_cmnd, bpl, in lpfc_bg_scsi_prep_dma_buf_s3()
2594 num_bde = lpfc_bg_setup_bpl_prot(phba, scsi_cmnd, bpl, in lpfc_bg_scsi_prep_dma_buf_s3()