aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/bfa/bfa_ioim.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/bfa/bfa_ioim.c')
-rw-r--r--drivers/scsi/bfa/bfa_ioim.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/bfa/bfa_ioim.c b/drivers/scsi/bfa/bfa_ioim.c
index 8a1be201d29..687f3d6e252 100644
--- a/drivers/scsi/bfa/bfa_ioim.c
+++ b/drivers/scsi/bfa/bfa_ioim.c
@@ -758,7 +758,7 @@ bfa_ioim_send_ioreq(struct bfa_ioim_s *ioim)
758 sge = &m->sges[0]; 758 sge = &m->sges[0];
759 if (ioim->nsges) { 759 if (ioim->nsges) {
760 sg = (struct scatterlist *)scsi_sglist(cmnd); 760 sg = (struct scatterlist *)scsi_sglist(cmnd);
761 addr = (u64) sg_dma_address(sg); 761 addr = bfa_os_sgaddr(sg_dma_address(sg));
762 sge->sga = *(union bfi_addr_u *) &addr; 762 sge->sga = *(union bfi_addr_u *) &addr;
763 pgdlen = sg_dma_len(sg); 763 pgdlen = sg_dma_len(sg);
764 sge->sg_len = pgdlen; 764 sge->sg_len = pgdlen;
@@ -891,7 +891,7 @@ bfa_ioim_sgpg_setup(struct bfa_ioim_s *ioim)
891 891
892 pgcumsz = 0; 892 pgcumsz = 0;
893 for (i = 0; i < nsges; i++, sge++, sgeid++, sg = sg_next(sg)) { 893 for (i = 0; i < nsges; i++, sge++, sgeid++, sg = sg_next(sg)) {
894 addr = (u64) sg_dma_address(sg); 894 addr = bfa_os_sgaddr(sg_dma_address(sg));
895 sge->sga = *(union bfi_addr_u *) &addr; 895 sge->sga = *(union bfi_addr_u *) &addr;
896 sge->sg_len = sg_dma_len(sg); 896 sge->sg_len = sg_dma_len(sg);
897 pgcumsz += sge->sg_len; 897 pgcumsz += sge->sg_len;