Lines Matching refs:sg

200 	struct scatterlist *sg;
222 scsi_for_each_sg(cmd, sg, tot_dsds, i) {
236 append_dsd32(&cur_dsd, sg);
256 struct scatterlist *sg;
278 scsi_for_each_sg(cmd, sg, tot_dsds, i) {
292 append_dsd64(&cur_dsd, sg);
367 /* Map the sg table so we have an accurate count of sg entries needed */
707 struct scatterlist *sg;
741 scsi_for_each_sg(cmd, sg, tot_dsds, i) {
755 append_dsd64(&cur_dsd, sg);
796 struct scatterlist *sg;
803 sg = sgx->cur_sg;
806 sg_dma_addr = sg_dma_address(sg);
807 sg_len = sg_dma_len(sg);
825 sg = sg_next(sg);
827 sgx->cur_sg = sg;
865 sgx.cur_sg = tc->sg;
956 struct scatterlist *sg, *sgl;
966 sgl = tc->sg;
973 for_each_sg(sgl, sg, tot_dsds, i) {
1017 append_dsd64(&cur_dsd, sg);
1033 struct scatterlist *sg, *sgl;
1068 for_each_sg(sgl, sg, tot_dsds, i) {
1069 u64 sle_phys = sg_phys(sg);
1072 if (MSD(sle_phys + sg->length) ^ MSD(sle_phys)) {
1075 __func__, sle_phys, sg->length);
1110 for_each_sg(sgl, sg, tot_dsds, i) {
1111 u32 sglen = sg_dma_len(sg);
1114 "%s: sg[%x] (phys=%llx sglen=%x) ldma_sg_len: %x dif_bundl_len: %x ldma_needed: %x\n",
1115 __func__, i, (u64)sg_phys(sg), sglen, ldma_sg_len,
1174 sg_is_last(sg)) {
1269 for_each_sg(sgl, sg, tot_dsds, i) {
1314 append_dsd64(&cur_dsd, sg);
1580 /* Map the sg table so we have an accurate count of sg entries needed */
1747 /* Map the sg table so we have an accurate count of sg entries needed */
1795 /* Total Data and protection sg segment(s) */
1947 /* Map the sg table so we have an accurate count of sg entries needed */
2129 /* Map the sg table so we have an accurate count of sg entries needed */
2177 /* Total Data and protection sg segment(s) */
3226 struct scatterlist *sg;
3264 for_each_sg(bsg_job->reply_payload.sg_list, sg, tot_dsds, index) {
3280 append_dsd64(&cur_dsd, sg);
3293 struct scatterlist *sg;
3324 for_each_sg(bsg_job->request_payload.sg_list, sg, cmd_dsds, index) {
3338 append_dsd64(&cur_dsd, sg);
3344 for_each_sg(bsg_job->reply_payload.sg_list, sg, rsp_dsds, index) {
3358 append_dsd64(&cur_dsd, sg);
3421 /* Map the sg table so we have an accurate count of sg entries needed */
4058 struct scatterlist *sg;
4094 for_each_sg(bsg_job->request_payload.sg_list, sg,
4108 append_dsd64(&cur_dsd, sg);
4116 for_each_sg(bsg_job->reply_payload.sg_list, sg,
4130 append_dsd64(&cur_dsd, sg);
4282 /* Map the sg table so we have an accurate count of sg entries needed */