Lines Matching refs:sgl

182 	struct sli4_sge *sgl = (struct sli4_sge *)lpfc_cmd->fcp_bpl;
183 if (sgl) {
184 sgl += 1;
185 sgl->word2 = le32_to_cpu(sgl->word2);
186 bf_set(lpfc_sli4_sge_last, sgl, 1);
187 sgl->word2 = cpu_to_le32(sgl->word2);
740 * For single SCSI buffer sgl with non-contiguous xri, if any, it shall use
771 /* a hole in xri block, form a sgl posting block */
780 /* enough sgls for non-embed sgl mbox command */
790 /* end of repost sgl list condition for SCSI buffers */
793 /* last sgl posting block */
797 /* last single sgl with non-contiguous xri */
816 /* success, put on SCSI buffer sgl list */
836 /* put posted SCSI buffer-sgl posted on SCSI buffer sgl list */
852 /* Push SCSI buffers with sgl posted to the availble list */
917 struct sli4_sge *sgl;
997 sgl = (struct sli4_sge *)psb->fcp_bpl;
1007 sgl->addr_hi = cpu_to_le32(putPaddrHigh(pdma_phys_fcp_cmd));
1008 sgl->addr_lo = cpu_to_le32(putPaddrLow(pdma_phys_fcp_cmd));
1009 sgl->word2 = le32_to_cpu(sgl->word2);
1010 bf_set(lpfc_sli4_sge_last, sgl, 0);
1011 sgl->word2 = cpu_to_le32(sgl->word2);
1012 sgl->sge_len = cpu_to_le32(sizeof(struct fcp_cmnd));
1013 sgl++;
1016 sgl->addr_hi = cpu_to_le32(putPaddrHigh(pdma_phys_fcp_rsp));
1017 sgl->addr_lo = cpu_to_le32(putPaddrLow(pdma_phys_fcp_rsp));
1018 sgl->word2 = le32_to_cpu(sgl->word2);
1019 bf_set(lpfc_sli4_sge_last, sgl, 1);
1020 sgl->word2 = cpu_to_le32(sgl->word2);
1021 sgl->sge_len = cpu_to_le32(sizeof(struct fcp_rsp));
1031 * We are setting the bpl to point to out sgl. An sgl's
2355 * @sgl: pointer to buffer list for protection groups
2382 struct sli4_sge *sgl, int datasegcnt)
2417 diseed = (struct sli4_sge_diseed *) sgl;
2419 bf_set(lpfc_sli4_sge_type, sgl, LPFC_SGE_TYPE_DISEED);
2454 sgl++;
2460 sgl->addr_lo = cpu_to_le32(putPaddrLow(physaddr));
2461 sgl->addr_hi = cpu_to_le32(putPaddrHigh(physaddr));
2463 bf_set(lpfc_sli4_sge_last, sgl, 1);
2465 bf_set(lpfc_sli4_sge_last, sgl, 0);
2466 bf_set(lpfc_sli4_sge_offset, sgl, dma_offset);
2467 bf_set(lpfc_sli4_sge_type, sgl, LPFC_SGE_TYPE_DATA);
2469 sgl->sge_len = cpu_to_le32(dma_len);
2472 sgl++;
2484 * @sgl: pointer to buffer list for protection groups
2519 struct sli4_sge *sgl, int datacnt, int protcnt)
2578 diseed = (struct sli4_sge_diseed *) sgl;
2580 bf_set(lpfc_sli4_sge_type, sgl, LPFC_SGE_TYPE_DISEED);
2621 /* advance sgl and increment bde count */
2623 sgl++;
2633 sgl->word2 = 0;
2634 bf_set(lpfc_sli4_sge_type, sgl, LPFC_SGE_TYPE_DIF);
2635 sgl->addr_hi = le32_to_cpu(putPaddrHigh(protphysaddr));
2636 sgl->addr_lo = le32_to_cpu(putPaddrLow(protphysaddr));
2637 sgl->word2 = cpu_to_le32(sgl->word2);
2643 if ((sgl->addr_lo & 0xfff) + protgroup_len > 0x1000) {
2644 protgroup_remainder = 0x1000 - (sgl->addr_lo & 0xfff);
2669 sgl++;
2689 sgl->addr_lo = cpu_to_le32(putPaddrLow(dataphysaddr));
2690 sgl->addr_hi = cpu_to_le32(putPaddrHigh(dataphysaddr));
2691 bf_set(lpfc_sli4_sge_last, sgl, 0);
2692 bf_set(lpfc_sli4_sge_offset, sgl, dma_offset);
2693 bf_set(lpfc_sli4_sge_type, sgl, LPFC_SGE_TYPE_DATA);
2695 sgl->sge_len = cpu_to_le32(dma_len);
2711 sgl++;
2717 bf_set(lpfc_sli4_sge_last, sgl, 1);
2722 sgl++;
3203 /* If we have a prot sgl, save the DIF buffer */
3358 struct sli4_sge *sgl = (struct sli4_sge *)lpfc_cmd->fcp_bpl;
3385 sgl += 1;
3387 sgl->word2 = le32_to_cpu(sgl->word2);
3388 bf_set(lpfc_sli4_sge_last, sgl, 0);
3389 sgl->word2 = cpu_to_le32(sgl->word2);
3390 sgl += 1;
3391 first_data_sgl = sgl;
3416 sgl->addr_lo = cpu_to_le32(putPaddrLow(physaddr));
3417 sgl->addr_hi = cpu_to_le32(putPaddrHigh(physaddr));
3418 sgl->word2 = le32_to_cpu(sgl->word2);
3420 bf_set(lpfc_sli4_sge_last, sgl, 1);
3422 bf_set(lpfc_sli4_sge_last, sgl, 0);
3423 bf_set(lpfc_sli4_sge_offset, sgl, dma_offset);
3424 bf_set(lpfc_sli4_sge_type, sgl, LPFC_SGE_TYPE_DATA);
3425 sgl->word2 = cpu_to_le32(sgl->word2);
3426 sgl->sge_len = cpu_to_le32(dma_len);
3428 sgl++;
3442 sgl += 1;
3444 sgl->word2 = le32_to_cpu(sgl->word2);
3445 bf_set(lpfc_sli4_sge_last, sgl, 1);
3446 sgl->word2 = cpu_to_le32(sgl->word2);
3488 struct sli4_sge *sgl = (struct sli4_sge *)(lpfc_cmd->fcp_bpl);
3496 * Start the lpfc command prep by bumping the sgl beyond fcp_cmnd
3512 sgl += 1;
3514 sgl->word2 = le32_to_cpu(sgl->word2);
3515 bf_set(lpfc_sli4_sge_last, sgl, 0);
3516 sgl->word2 = cpu_to_le32(sgl->word2);
3518 sgl += 1;
3533 num_sge = lpfc_bg_setup_sgl(phba, scsi_cmnd, sgl,
3564 num_sge = lpfc_bg_setup_sgl_prot(phba, scsi_cmnd, sgl,