Lines Matching refs:sgl

126 	struct sli4_sge *sgl = (struct sli4_sge *)lpfc_cmd->dma_sgl;
127 if (sgl) {
128 sgl += 1;
129 sgl->word2 = le32_to_cpu(sgl->word2);
130 bf_set(lpfc_sli4_sge_last, sgl, 1);
131 sgl->word2 = cpu_to_le32(sgl->word2);
635 struct sli4_sge *sgl;
687 sgl = (struct sli4_sge *)lpfc_cmd->dma_sgl;
689 sgl->addr_hi = cpu_to_le32(putPaddrHigh(pdma_phys_fcp_cmd));
690 sgl->addr_lo = cpu_to_le32(putPaddrLow(pdma_phys_fcp_cmd));
691 sgl->word2 = le32_to_cpu(sgl->word2);
692 bf_set(lpfc_sli4_sge_last, sgl, 0);
693 sgl->word2 = cpu_to_le32(sgl->word2);
694 sgl->sge_len = cpu_to_le32(sizeof(struct fcp_cmnd));
695 sgl++;
699 sgl->addr_hi = cpu_to_le32(putPaddrHigh(pdma_phys_fcp_rsp));
700 sgl->addr_lo = cpu_to_le32(putPaddrLow(pdma_phys_fcp_rsp));
701 sgl->word2 = le32_to_cpu(sgl->word2);
702 bf_set(lpfc_sli4_sge_last, sgl, 1);
703 sgl->word2 = cpu_to_le32(sgl->word2);
704 sgl->sge_len = cpu_to_le32(sizeof(struct fcp_rsp));
714 * We are setting the bpl to point to out sgl. An sgl's
1922 * @sgl: pointer to buffer list for protection groups
1949 struct sli4_sge *sgl, int datasegcnt,
1986 diseed = (struct sli4_sge_diseed *) sgl;
1988 bf_set(lpfc_sli4_sge_type, sgl, LPFC_SGE_TYPE_DISEED);
2023 sgl++;
2030 sgl->word2 = 0;
2036 bf_set(lpfc_sli4_sge_type, sgl, LPFC_SGE_TYPE_LSP);
2044 sgl->addr_lo = cpu_to_le32(putPaddrLow(
2046 sgl->addr_hi = cpu_to_le32(putPaddrHigh(
2050 bf_set(lpfc_sli4_sge_type, sgl, LPFC_SGE_TYPE_DATA);
2053 if (!(bf_get(lpfc_sli4_sge_type, sgl) & LPFC_SGE_TYPE_LSP)) {
2055 bf_set(lpfc_sli4_sge_last, sgl, 1);
2058 sgl->addr_lo = cpu_to_le32(putPaddrLow(physaddr));
2059 sgl->addr_hi = cpu_to_le32(putPaddrHigh(physaddr));
2061 bf_set(lpfc_sli4_sge_offset, sgl, dma_offset);
2062 sgl->word2 = cpu_to_le32(sgl->word2);
2063 sgl->sge_len = cpu_to_le32(dma_len);
2068 sgl++;
2073 sgl->word2 = cpu_to_le32(sgl->word2);
2074 sgl->sge_len = cpu_to_le32(phba->cfg_sg_dma_buf_size);
2076 sgl = (struct sli4_sge *)sgl_xtra->dma_sgl;
2094 * @sgl: pointer to buffer list for protection groups
2129 struct sli4_sge *sgl, int datacnt, int protcnt,
2194 sgl->word2 = 0;
2197 bf_set(lpfc_sli4_sge_type, sgl, LPFC_SGE_TYPE_LSP);
2204 sgl->addr_lo = cpu_to_le32(putPaddrLow(
2206 sgl->addr_hi = cpu_to_le32(putPaddrHigh(
2210 sgl->word2 = cpu_to_le32(sgl->word2);
2211 sgl->sge_len = cpu_to_le32(phba->cfg_sg_dma_buf_size);
2213 sgl = (struct sli4_sge *)sgl_xtra->dma_sgl;
2218 diseed = (struct sli4_sge_diseed *) sgl;
2220 bf_set(lpfc_sli4_sge_type, sgl, LPFC_SGE_TYPE_DISEED);
2261 /* advance sgl and increment bde count */
2264 sgl++;
2275 sgl->word2 = 0;
2276 bf_set(lpfc_sli4_sge_type, sgl, LPFC_SGE_TYPE_DIF);
2277 sgl->addr_hi = le32_to_cpu(putPaddrHigh(protphysaddr));
2278 sgl->addr_lo = le32_to_cpu(putPaddrLow(protphysaddr));
2279 sgl->word2 = cpu_to_le32(sgl->word2);
2280 sgl->sge_len = 0;
2286 if ((sgl->addr_lo & 0xfff) + protgroup_len > 0x1000) {
2287 protgroup_remainder = 0x1000 - (sgl->addr_lo & 0xfff);
2302 sgl++;
2319 sgl->word2 = 0;
2322 bf_set(lpfc_sli4_sge_type, sgl,
2331 sgl->addr_lo = cpu_to_le32(
2333 sgl->addr_hi = cpu_to_le32(
2337 sgl->word2 = cpu_to_le32(sgl->word2);
2338 sgl->sge_len = cpu_to_le32(
2341 sgl = (struct sli4_sge *)sgl_xtra->dma_sgl;
2366 sgl->word2 = 0;
2367 sgl->addr_lo = cpu_to_le32(putPaddrLow(
2369 sgl->addr_hi = cpu_to_le32(putPaddrHigh(
2371 bf_set(lpfc_sli4_sge_last, sgl, 0);
2372 bf_set(lpfc_sli4_sge_offset, sgl, dma_offset);
2373 bf_set(lpfc_sli4_sge_type, sgl,
2376 sgl->sge_len = cpu_to_le32(dma_len);
2383 sgl++;
2391 sgl++;
2406 sgl--;
2407 bf_set(lpfc_sli4_sge_last, sgl, 1);
3051 struct sli4_sge *sgl = (struct sli4_sge *)lpfc_cmd->dma_sgl;
3080 sgl += 1;
3082 sgl->word2 = le32_to_cpu(sgl->word2);
3083 bf_set(lpfc_sli4_sge_last, sgl, 0);
3084 sgl->word2 = cpu_to_le32(sgl->word2);
3085 sgl += 1;
3086 first_data_sgl = sgl;
3116 sgl->word2 = 0;
3118 bf_set(lpfc_sli4_sge_last, sgl, 1);
3119 bf_set(lpfc_sli4_sge_type, sgl,
3122 bf_set(lpfc_sli4_sge_last, sgl, 0);
3129 bf_set(lpfc_sli4_sge_type, sgl,
3140 sgl->addr_lo = cpu_to_le32(putPaddrLow(
3142 sgl->addr_hi = cpu_to_le32(putPaddrHigh(
3146 bf_set(lpfc_sli4_sge_type, sgl,
3151 if (!(bf_get(lpfc_sli4_sge_type, sgl) &
3154 bf_set(lpfc_sli4_sge_last, sgl, 1);
3158 sgl->addr_lo = cpu_to_le32(putPaddrLow(
3160 sgl->addr_hi = cpu_to_le32(putPaddrHigh(
3163 bf_set(lpfc_sli4_sge_offset, sgl, dma_offset);
3164 sgl->word2 = cpu_to_le32(sgl->word2);
3165 sgl->sge_len = cpu_to_le32(dma_len);
3170 sgl++;
3174 sgl->word2 = cpu_to_le32(sgl->word2);
3175 sgl->sge_len = cpu_to_le32(
3178 sgl = (struct sli4_sge *)sgl_xtra->dma_sgl;
3203 sgl += 1;
3205 sgl->word2 = le32_to_cpu(sgl->word2);
3206 bf_set(lpfc_sli4_sge_last, sgl, 1);
3207 sgl->word2 = cpu_to_le32(sgl->word2);
3264 struct sli4_sge *sgl = (struct sli4_sge *)(lpfc_cmd->dma_sgl);
3274 * Start the lpfc command prep by bumping the sgl beyond fcp_cmnd
3290 sgl += 1;
3292 sgl->word2 = le32_to_cpu(sgl->word2);
3293 bf_set(lpfc_sli4_sge_last, sgl, 0);
3294 sgl->word2 = cpu_to_le32(sgl->word2);
3296 sgl += 1;
3319 num_sge = lpfc_bg_setup_sgl(phba, scsi_cmnd, sgl,
3355 num_sge = lpfc_bg_setup_sgl_prot(phba, scsi_cmnd, sgl,