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()
2259 struct sli4_sge *sgl, int datasegcnt) in lpfc_bg_setup_sgl() argument
2294 diseed = (struct sli4_sge_diseed *) sgl; in lpfc_bg_setup_sgl()
2296 bf_set(lpfc_sli4_sge_type, sgl, LPFC_SGE_TYPE_DISEED); in lpfc_bg_setup_sgl()
2331 sgl++; in lpfc_bg_setup_sgl()
2337 sgl->addr_lo = cpu_to_le32(putPaddrLow(physaddr)); in lpfc_bg_setup_sgl()
2338 sgl->addr_hi = cpu_to_le32(putPaddrHigh(physaddr)); in lpfc_bg_setup_sgl()
2340 bf_set(lpfc_sli4_sge_last, sgl, 1); in lpfc_bg_setup_sgl()
2342 bf_set(lpfc_sli4_sge_last, sgl, 0); in lpfc_bg_setup_sgl()
2343 bf_set(lpfc_sli4_sge_offset, sgl, dma_offset); in lpfc_bg_setup_sgl()
2344 bf_set(lpfc_sli4_sge_type, sgl, LPFC_SGE_TYPE_DATA); in lpfc_bg_setup_sgl()
2346 sgl->sge_len = cpu_to_le32(dma_len); in lpfc_bg_setup_sgl()
2349 sgl++; in lpfc_bg_setup_sgl()
2396 struct sli4_sge *sgl, int datacnt, int protcnt) in lpfc_bg_setup_sgl_prot() argument
2455 diseed = (struct sli4_sge_diseed *) sgl; in lpfc_bg_setup_sgl_prot()
2457 bf_set(lpfc_sli4_sge_type, sgl, LPFC_SGE_TYPE_DISEED); in lpfc_bg_setup_sgl_prot()
2500 sgl++; in lpfc_bg_setup_sgl_prot()
2510 sgl->word2 = 0; in lpfc_bg_setup_sgl_prot()
2511 bf_set(lpfc_sli4_sge_type, sgl, LPFC_SGE_TYPE_DIF); in lpfc_bg_setup_sgl_prot()
2512 sgl->addr_hi = le32_to_cpu(putPaddrHigh(protphysaddr)); in lpfc_bg_setup_sgl_prot()
2513 sgl->addr_lo = le32_to_cpu(putPaddrLow(protphysaddr)); in lpfc_bg_setup_sgl_prot()
2514 sgl->word2 = cpu_to_le32(sgl->word2); in lpfc_bg_setup_sgl_prot()
2520 if ((sgl->addr_lo & 0xfff) + protgroup_len > 0x1000) { in lpfc_bg_setup_sgl_prot()
2521 protgroup_remainder = 0x1000 - (sgl->addr_lo & 0xfff); in lpfc_bg_setup_sgl_prot()
2546 sgl++; in lpfc_bg_setup_sgl_prot()
2566 sgl->addr_lo = cpu_to_le32(putPaddrLow(dataphysaddr)); in lpfc_bg_setup_sgl_prot()
2567 sgl->addr_hi = cpu_to_le32(putPaddrHigh(dataphysaddr)); in lpfc_bg_setup_sgl_prot()
2568 bf_set(lpfc_sli4_sge_last, sgl, 0); in lpfc_bg_setup_sgl_prot()
2569 bf_set(lpfc_sli4_sge_offset, sgl, dma_offset); in lpfc_bg_setup_sgl_prot()
2570 bf_set(lpfc_sli4_sge_type, sgl, LPFC_SGE_TYPE_DATA); in lpfc_bg_setup_sgl_prot()
2572 sgl->sge_len = cpu_to_le32(dma_len); in lpfc_bg_setup_sgl_prot()
2588 sgl++; in lpfc_bg_setup_sgl_prot()
2594 bf_set(lpfc_sli4_sge_last, sgl, 1); in lpfc_bg_setup_sgl_prot()
2599 sgl++; in lpfc_bg_setup_sgl_prot()
3235 struct sli4_sge *sgl = (struct sli4_sge *)lpfc_cmd->fcp_bpl; in lpfc_scsi_prep_dma_buf_s4() local
3262 sgl += 1; in lpfc_scsi_prep_dma_buf_s4()
3264 sgl->word2 = le32_to_cpu(sgl->word2); in lpfc_scsi_prep_dma_buf_s4()
3265 bf_set(lpfc_sli4_sge_last, sgl, 0); in lpfc_scsi_prep_dma_buf_s4()
3266 sgl->word2 = cpu_to_le32(sgl->word2); in lpfc_scsi_prep_dma_buf_s4()
3267 sgl += 1; in lpfc_scsi_prep_dma_buf_s4()
3268 first_data_sgl = sgl; in lpfc_scsi_prep_dma_buf_s4()
3293 sgl->addr_lo = cpu_to_le32(putPaddrLow(physaddr)); in lpfc_scsi_prep_dma_buf_s4()
3294 sgl->addr_hi = cpu_to_le32(putPaddrHigh(physaddr)); in lpfc_scsi_prep_dma_buf_s4()
3295 sgl->word2 = le32_to_cpu(sgl->word2); in lpfc_scsi_prep_dma_buf_s4()
3297 bf_set(lpfc_sli4_sge_last, sgl, 1); in lpfc_scsi_prep_dma_buf_s4()
3299 bf_set(lpfc_sli4_sge_last, sgl, 0); in lpfc_scsi_prep_dma_buf_s4()
3300 bf_set(lpfc_sli4_sge_offset, sgl, dma_offset); in lpfc_scsi_prep_dma_buf_s4()
3301 bf_set(lpfc_sli4_sge_type, sgl, LPFC_SGE_TYPE_DATA); in lpfc_scsi_prep_dma_buf_s4()
3302 sgl->word2 = cpu_to_le32(sgl->word2); in lpfc_scsi_prep_dma_buf_s4()
3303 sgl->sge_len = cpu_to_le32(dma_len); in lpfc_scsi_prep_dma_buf_s4()
3305 sgl++; in lpfc_scsi_prep_dma_buf_s4()
3319 sgl += 1; in lpfc_scsi_prep_dma_buf_s4()
3321 sgl->word2 = le32_to_cpu(sgl->word2); in lpfc_scsi_prep_dma_buf_s4()
3322 bf_set(lpfc_sli4_sge_last, sgl, 1); in lpfc_scsi_prep_dma_buf_s4()
3323 sgl->word2 = cpu_to_le32(sgl->word2); in lpfc_scsi_prep_dma_buf_s4()
3365 struct sli4_sge *sgl = (struct sli4_sge *)(lpfc_cmd->fcp_bpl); in lpfc_bg_scsi_prep_dma_buf_s4() local
3389 sgl += 1; in lpfc_bg_scsi_prep_dma_buf_s4()
3391 sgl->word2 = le32_to_cpu(sgl->word2); in lpfc_bg_scsi_prep_dma_buf_s4()
3392 bf_set(lpfc_sli4_sge_last, sgl, 0); in lpfc_bg_scsi_prep_dma_buf_s4()
3393 sgl->word2 = cpu_to_le32(sgl->word2); in lpfc_bg_scsi_prep_dma_buf_s4()
3395 sgl += 1; in lpfc_bg_scsi_prep_dma_buf_s4()
3410 num_sge = lpfc_bg_setup_sgl(phba, scsi_cmnd, sgl, in lpfc_bg_scsi_prep_dma_buf_s4()
3441 num_sge = lpfc_bg_setup_sgl_prot(phba, scsi_cmnd, sgl, in lpfc_bg_scsi_prep_dma_buf_s4()