Lines Matching refs:sgl
103 struct sli4_sge *sgl = (struct sli4_sge *)lpfc_cmd->dma_sgl;
104 if (sgl) {
105 sgl += 1;
106 sgl->word2 = le32_to_cpu(sgl->word2);
107 bf_set(lpfc_sli4_sge_last, sgl, 1);
108 sgl->word2 = cpu_to_le32(sgl->word2);
606 struct sli4_sge *sgl;
657 sgl = (struct sli4_sge *)lpfc_cmd->dma_sgl;
659 sgl->addr_hi = cpu_to_le32(putPaddrHigh(pdma_phys_fcp_cmd));
660 sgl->addr_lo = cpu_to_le32(putPaddrLow(pdma_phys_fcp_cmd));
661 sgl->word2 = le32_to_cpu(sgl->word2);
662 bf_set(lpfc_sli4_sge_last, sgl, 0);
663 sgl->word2 = cpu_to_le32(sgl->word2);
664 sgl->sge_len = cpu_to_le32(sizeof(struct fcp_cmnd));
665 sgl++;
669 sgl->addr_hi = cpu_to_le32(putPaddrHigh(pdma_phys_fcp_rsp));
670 sgl->addr_lo = cpu_to_le32(putPaddrLow(pdma_phys_fcp_rsp));
671 sgl->word2 = le32_to_cpu(sgl->word2);
672 bf_set(lpfc_sli4_sge_last, sgl, 1);
673 sgl->word2 = cpu_to_le32(sgl->word2);
674 sgl->sge_len = cpu_to_le32(sizeof(struct fcp_rsp));
1895 * @sgl: pointer to buffer list for protection groups
1923 struct sli4_sge *sgl, int datasegcnt,
1960 diseed = (struct sli4_sge_diseed *) sgl;
1962 bf_set(lpfc_sli4_sge_type, sgl, LPFC_SGE_TYPE_DISEED);
1997 sgl++;
2004 sgl->word2 = 0;
2010 bf_set(lpfc_sli4_sge_type, sgl, LPFC_SGE_TYPE_LSP);
2018 sgl->addr_lo = cpu_to_le32(putPaddrLow(
2020 sgl->addr_hi = cpu_to_le32(putPaddrHigh(
2024 bf_set(lpfc_sli4_sge_type, sgl, LPFC_SGE_TYPE_DATA);
2027 if (!(bf_get(lpfc_sli4_sge_type, sgl) & LPFC_SGE_TYPE_LSP)) {
2029 bf_set(lpfc_sli4_sge_last, sgl, 1);
2032 sgl->addr_lo = cpu_to_le32(putPaddrLow(physaddr));
2033 sgl->addr_hi = cpu_to_le32(putPaddrHigh(physaddr));
2035 bf_set(lpfc_sli4_sge_offset, sgl, dma_offset);
2036 sgl->word2 = cpu_to_le32(sgl->word2);
2037 sgl->sge_len = cpu_to_le32(dma_len);
2042 sgl++;
2047 sgl->word2 = cpu_to_le32(sgl->word2);
2048 sgl->sge_len = cpu_to_le32(phba->cfg_sg_dma_buf_size);
2050 sgl = (struct sli4_sge *)sgl_xtra->dma_sgl;
2068 * @sgl: pointer to buffer list for protection groups
2104 struct sli4_sge *sgl, int datacnt, int protcnt,
2169 sgl->word2 = 0;
2172 bf_set(lpfc_sli4_sge_type, sgl, LPFC_SGE_TYPE_LSP);
2179 sgl->addr_lo = cpu_to_le32(putPaddrLow(
2181 sgl->addr_hi = cpu_to_le32(putPaddrHigh(
2185 sgl->word2 = cpu_to_le32(sgl->word2);
2186 sgl->sge_len = cpu_to_le32(phba->cfg_sg_dma_buf_size);
2188 sgl = (struct sli4_sge *)sgl_xtra->dma_sgl;
2193 diseed = (struct sli4_sge_diseed *) sgl;
2195 bf_set(lpfc_sli4_sge_type, sgl, LPFC_SGE_TYPE_DISEED);
2235 /* advance sgl and increment bde count */
2238 sgl++;
2249 sgl->word2 = 0;
2250 bf_set(lpfc_sli4_sge_type, sgl, LPFC_SGE_TYPE_DIF);
2251 sgl->addr_hi = le32_to_cpu(putPaddrHigh(protphysaddr));
2252 sgl->addr_lo = le32_to_cpu(putPaddrLow(protphysaddr));
2253 sgl->word2 = cpu_to_le32(sgl->word2);
2254 sgl->sge_len = 0;
2260 if ((sgl->addr_lo & 0xfff) + protgroup_len > 0x1000) {
2261 protgroup_remainder = 0x1000 - (sgl->addr_lo & 0xfff);
2276 sgl++;
2293 sgl->word2 = 0;
2296 bf_set(lpfc_sli4_sge_type, sgl,
2305 sgl->addr_lo = cpu_to_le32(
2307 sgl->addr_hi = cpu_to_le32(
2311 sgl->word2 = cpu_to_le32(sgl->word2);
2312 sgl->sge_len = cpu_to_le32(
2315 sgl = (struct sli4_sge *)sgl_xtra->dma_sgl;
2340 sgl->word2 = 0;
2341 sgl->addr_lo = cpu_to_le32(putPaddrLow(
2343 sgl->addr_hi = cpu_to_le32(putPaddrHigh(
2345 bf_set(lpfc_sli4_sge_last, sgl, 0);
2346 bf_set(lpfc_sli4_sge_offset, sgl, dma_offset);
2347 bf_set(lpfc_sli4_sge_type, sgl,
2350 sgl->sge_len = cpu_to_le32(dma_len);
2356 sgl++;
2364 sgl++;
2379 sgl--;
2380 bf_set(lpfc_sli4_sge_last, sgl, 1);
3050 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;
3211 sgl += 1;
3213 sgl->word2 = le32_to_cpu(sgl->word2);
3214 bf_set(lpfc_sli4_sge_last, sgl, 1);
3215 sgl->word2 = cpu_to_le32(sgl->word2);
3294 struct sli4_sge *sgl = (struct sli4_sge *)(lpfc_cmd->dma_sgl);
3305 * Start the lpfc command prep by bumping the sgl beyond fcp_cmnd
3321 sgl += 1;
3323 sgl->word2 = le32_to_cpu(sgl->word2);
3324 bf_set(lpfc_sli4_sge_last, sgl, 0);
3325 sgl->word2 = cpu_to_le32(sgl->word2);
3327 sgl += 1;
3350 num_sge = lpfc_bg_setup_sgl(phba, scsi_cmnd, sgl,
3386 num_sge = lpfc_bg_setup_sgl_prot(phba, scsi_cmnd, sgl,