Lines Matching refs:sgl

182 	struct sli4_sge *sgl = (struct sli4_sge *)lpfc_cmd->fcp_bpl;  in lpfc_sli4_set_rsp_sgl_last()  local
183 if (sgl) { in lpfc_sli4_set_rsp_sgl_last()
184 sgl += 1; in lpfc_sli4_set_rsp_sgl_last()
185 sgl->word2 = le32_to_cpu(sgl->word2); in lpfc_sli4_set_rsp_sgl_last()
186 bf_set(lpfc_sli4_sge_last, sgl, 1); in lpfc_sli4_set_rsp_sgl_last()
187 sgl->word2 = cpu_to_le32(sgl->word2); in lpfc_sli4_set_rsp_sgl_last()
794 struct sli4_sge *sgl; in lpfc_new_scsi_buf_s4() local
874 sgl = (struct sli4_sge *)psb->fcp_bpl; in lpfc_new_scsi_buf_s4()
884 sgl->addr_hi = cpu_to_le32(putPaddrHigh(pdma_phys_fcp_cmd)); in lpfc_new_scsi_buf_s4()
885 sgl->addr_lo = cpu_to_le32(putPaddrLow(pdma_phys_fcp_cmd)); in lpfc_new_scsi_buf_s4()
886 sgl->word2 = le32_to_cpu(sgl->word2); in lpfc_new_scsi_buf_s4()
887 bf_set(lpfc_sli4_sge_last, sgl, 0); in lpfc_new_scsi_buf_s4()
888 sgl->word2 = cpu_to_le32(sgl->word2); in lpfc_new_scsi_buf_s4()
889 sgl->sge_len = cpu_to_le32(sizeof(struct fcp_cmnd)); in lpfc_new_scsi_buf_s4()
890 sgl++; in lpfc_new_scsi_buf_s4()
893 sgl->addr_hi = cpu_to_le32(putPaddrHigh(pdma_phys_fcp_rsp)); in lpfc_new_scsi_buf_s4()
894 sgl->addr_lo = cpu_to_le32(putPaddrLow(pdma_phys_fcp_rsp)); in lpfc_new_scsi_buf_s4()
895 sgl->word2 = le32_to_cpu(sgl->word2); in lpfc_new_scsi_buf_s4()
896 bf_set(lpfc_sli4_sge_last, sgl, 1); in lpfc_new_scsi_buf_s4()
897 sgl->word2 = cpu_to_le32(sgl->word2); in lpfc_new_scsi_buf_s4()
898 sgl->sge_len = cpu_to_le32(sizeof(struct fcp_rsp)); in lpfc_new_scsi_buf_s4()
2255 struct sli4_sge *sgl, int datasegcnt) in lpfc_bg_setup_sgl() argument
2288 diseed = (struct sli4_sge_diseed *) sgl; in lpfc_bg_setup_sgl()
2290 bf_set(lpfc_sli4_sge_type, sgl, LPFC_SGE_TYPE_DISEED); in lpfc_bg_setup_sgl()
2325 sgl++; in lpfc_bg_setup_sgl()
2331 sgl->addr_lo = cpu_to_le32(putPaddrLow(physaddr)); in lpfc_bg_setup_sgl()
2332 sgl->addr_hi = cpu_to_le32(putPaddrHigh(physaddr)); in lpfc_bg_setup_sgl()
2334 bf_set(lpfc_sli4_sge_last, sgl, 1); in lpfc_bg_setup_sgl()
2336 bf_set(lpfc_sli4_sge_last, sgl, 0); in lpfc_bg_setup_sgl()
2337 bf_set(lpfc_sli4_sge_offset, sgl, dma_offset); in lpfc_bg_setup_sgl()
2338 bf_set(lpfc_sli4_sge_type, sgl, LPFC_SGE_TYPE_DATA); in lpfc_bg_setup_sgl()
2340 sgl->sge_len = cpu_to_le32(dma_len); in lpfc_bg_setup_sgl()
2343 sgl++; in lpfc_bg_setup_sgl()
2390 struct sli4_sge *sgl, int datacnt, int protcnt) in lpfc_bg_setup_sgl_prot() argument
2449 diseed = (struct sli4_sge_diseed *) sgl; in lpfc_bg_setup_sgl_prot()
2451 bf_set(lpfc_sli4_sge_type, sgl, LPFC_SGE_TYPE_DISEED); in lpfc_bg_setup_sgl_prot()
2494 sgl++; in lpfc_bg_setup_sgl_prot()
2504 sgl->word2 = 0; in lpfc_bg_setup_sgl_prot()
2505 bf_set(lpfc_sli4_sge_type, sgl, LPFC_SGE_TYPE_DIF); in lpfc_bg_setup_sgl_prot()
2506 sgl->addr_hi = le32_to_cpu(putPaddrHigh(protphysaddr)); in lpfc_bg_setup_sgl_prot()
2507 sgl->addr_lo = le32_to_cpu(putPaddrLow(protphysaddr)); in lpfc_bg_setup_sgl_prot()
2508 sgl->word2 = cpu_to_le32(sgl->word2); in lpfc_bg_setup_sgl_prot()
2514 if ((sgl->addr_lo & 0xfff) + protgroup_len > 0x1000) { in lpfc_bg_setup_sgl_prot()
2515 protgroup_remainder = 0x1000 - (sgl->addr_lo & 0xfff); in lpfc_bg_setup_sgl_prot()
2540 sgl++; in lpfc_bg_setup_sgl_prot()
2560 sgl->addr_lo = cpu_to_le32(putPaddrLow(dataphysaddr)); in lpfc_bg_setup_sgl_prot()
2561 sgl->addr_hi = cpu_to_le32(putPaddrHigh(dataphysaddr)); in lpfc_bg_setup_sgl_prot()
2562 bf_set(lpfc_sli4_sge_last, sgl, 0); in lpfc_bg_setup_sgl_prot()
2563 bf_set(lpfc_sli4_sge_offset, sgl, dma_offset); in lpfc_bg_setup_sgl_prot()
2564 bf_set(lpfc_sli4_sge_type, sgl, LPFC_SGE_TYPE_DATA); in lpfc_bg_setup_sgl_prot()
2566 sgl->sge_len = cpu_to_le32(dma_len); in lpfc_bg_setup_sgl_prot()
2582 sgl++; in lpfc_bg_setup_sgl_prot()
2588 bf_set(lpfc_sli4_sge_last, sgl, 1); in lpfc_bg_setup_sgl_prot()
2593 sgl++; in lpfc_bg_setup_sgl_prot()
3228 struct sli4_sge *sgl = (struct sli4_sge *)lpfc_cmd->fcp_bpl; in lpfc_scsi_prep_dma_buf_s4() local
3255 sgl += 1; in lpfc_scsi_prep_dma_buf_s4()
3257 sgl->word2 = le32_to_cpu(sgl->word2); in lpfc_scsi_prep_dma_buf_s4()
3258 bf_set(lpfc_sli4_sge_last, sgl, 0); in lpfc_scsi_prep_dma_buf_s4()
3259 sgl->word2 = cpu_to_le32(sgl->word2); in lpfc_scsi_prep_dma_buf_s4()
3260 sgl += 1; in lpfc_scsi_prep_dma_buf_s4()
3261 first_data_sgl = sgl; in lpfc_scsi_prep_dma_buf_s4()
3286 sgl->addr_lo = cpu_to_le32(putPaddrLow(physaddr)); in lpfc_scsi_prep_dma_buf_s4()
3287 sgl->addr_hi = cpu_to_le32(putPaddrHigh(physaddr)); in lpfc_scsi_prep_dma_buf_s4()
3288 sgl->word2 = le32_to_cpu(sgl->word2); in lpfc_scsi_prep_dma_buf_s4()
3290 bf_set(lpfc_sli4_sge_last, sgl, 1); in lpfc_scsi_prep_dma_buf_s4()
3292 bf_set(lpfc_sli4_sge_last, sgl, 0); in lpfc_scsi_prep_dma_buf_s4()
3293 bf_set(lpfc_sli4_sge_offset, sgl, dma_offset); in lpfc_scsi_prep_dma_buf_s4()
3294 bf_set(lpfc_sli4_sge_type, sgl, LPFC_SGE_TYPE_DATA); in lpfc_scsi_prep_dma_buf_s4()
3295 sgl->word2 = cpu_to_le32(sgl->word2); in lpfc_scsi_prep_dma_buf_s4()
3296 sgl->sge_len = cpu_to_le32(dma_len); in lpfc_scsi_prep_dma_buf_s4()
3298 sgl++; in lpfc_scsi_prep_dma_buf_s4()
3312 sgl += 1; in lpfc_scsi_prep_dma_buf_s4()
3314 sgl->word2 = le32_to_cpu(sgl->word2); in lpfc_scsi_prep_dma_buf_s4()
3315 bf_set(lpfc_sli4_sge_last, sgl, 1); in lpfc_scsi_prep_dma_buf_s4()
3316 sgl->word2 = cpu_to_le32(sgl->word2); in lpfc_scsi_prep_dma_buf_s4()
3358 struct sli4_sge *sgl = (struct sli4_sge *)(lpfc_cmd->fcp_bpl); in lpfc_bg_scsi_prep_dma_buf_s4() local
3382 sgl += 1; in lpfc_bg_scsi_prep_dma_buf_s4()
3384 sgl->word2 = le32_to_cpu(sgl->word2); in lpfc_bg_scsi_prep_dma_buf_s4()
3385 bf_set(lpfc_sli4_sge_last, sgl, 0); in lpfc_bg_scsi_prep_dma_buf_s4()
3386 sgl->word2 = cpu_to_le32(sgl->word2); in lpfc_bg_scsi_prep_dma_buf_s4()
3388 sgl += 1; in lpfc_bg_scsi_prep_dma_buf_s4()
3403 num_sge = lpfc_bg_setup_sgl(phba, scsi_cmnd, sgl, in lpfc_bg_scsi_prep_dma_buf_s4()
3434 num_sge = lpfc_bg_setup_sgl_prot(phba, scsi_cmnd, sgl, in lpfc_bg_scsi_prep_dma_buf_s4()