Searched refs:count_sg (Results 1 – 2 of 2) sorted by relevance
846 int i, count_sg; in inia100_build_scb() local866 count_sg = scsi_dma_map(cmd); in inia100_build_scb()867 if (count_sg < 0) in inia100_build_scb()868 return count_sg; in inia100_build_scb()869 BUG_ON(count_sg > TOTAL_SG_ENTRY); in inia100_build_scb()872 if (count_sg) { in inia100_build_scb()873 scb->sg_len = cpu_to_le32((u32) (count_sg * 8)); in inia100_build_scb()874 scsi_for_each_sg(cmd, sg, count_sg, i) { in inia100_build_scb()
209 int i, count_sg; in wd719x_queuecommand() local249 count_sg = scsi_dma_map(cmd); in wd719x_queuecommand()250 if (count_sg < 0) in wd719x_queuecommand()252 BUG_ON(count_sg > WD719X_SG); in wd719x_queuecommand()254 if (count_sg) { in wd719x_queuecommand()257 scb->data_length = cpu_to_le32(count_sg * in wd719x_queuecommand()262 scsi_for_each_sg(cmd, sg, count_sg, i) { in wd719x_queuecommand()