Lines Matching refs:sg_count

495 	u32 sg_count[HBA_MAX_SG_EMBEDDED];  in aac_send_raw_srb()  local
656 sg_count[i] = (actual_fibsize64 == fibsize) ? in aac_send_raw_srb()
658 if (sg_count[i] > in aac_send_raw_srb()
661 i, sg_count[i], in aac_send_raw_srb()
667 p = kmalloc(sg_count[i], GFP_KERNEL); in aac_send_raw_srb()
686 sg_count[i])) { in aac_send_raw_srb()
691 addr = dma_map_single(&dev->pdev->dev, p, sg_count[i], in aac_send_raw_srb()
696 hbacmd->sge[i].len = cpu_to_le32(sg_count[i]); in aac_send_raw_srb()
698 byte_count += sg_count[i]; in aac_send_raw_srb()
722 sg_count[i] = upsg->sg[i].count; in aac_send_raw_srb()
723 if (sg_count[i] > in aac_send_raw_srb()
732 p = kmalloc(sg_count[i], GFP_KERNEL); in aac_send_raw_srb()
735 sg_count[i], i, upsg->count)); in aac_send_raw_srb()
747 sg_count[i])){ in aac_send_raw_srb()
754 sg_count[i], data_dir); in aac_send_raw_srb()
758 byte_count += sg_count[i]; in aac_send_raw_srb()
759 psg->sg[i].count = cpu_to_le32(sg_count[i]); in aac_send_raw_srb()
777 sg_count[i] = usg->sg[i].count; in aac_send_raw_srb()
778 if (sg_count[i] > in aac_send_raw_srb()
788 p = kmalloc(sg_count[i], GFP_KERNEL); in aac_send_raw_srb()
791 sg_count[i], i, usg->count)); in aac_send_raw_srb()
802 sg_count[i])) { in aac_send_raw_srb()
810 sg_count[i], data_dir); in aac_send_raw_srb()
814 byte_count += sg_count[i]; in aac_send_raw_srb()
815 psg->sg[i].count = cpu_to_le32(sg_count[i]); in aac_send_raw_srb()
835 sg_count[i] = usg->sg[i].count; in aac_send_raw_srb()
836 if (sg_count[i] > in aac_send_raw_srb()
844 p = kmalloc(sg_count[i], GFP_KERNEL); in aac_send_raw_srb()
847 sg_count[i], i, usg->count)); in aac_send_raw_srb()
859 sg_count[i])){ in aac_send_raw_srb()
871 psg->sg[i].count = cpu_to_le32(sg_count[i]); in aac_send_raw_srb()
878 sg_count[i] = upsg->sg[i].count; in aac_send_raw_srb()
879 if (sg_count[i] > in aac_send_raw_srb()
887 p = kmalloc(sg_count[i], GFP_KERNEL); in aac_send_raw_srb()
890 sg_count[i], i, upsg->count)); in aac_send_raw_srb()
900 sg_count[i])) { in aac_send_raw_srb()
907 sg_count[i], data_dir); in aac_send_raw_srb()
910 byte_count += sg_count[i]; in aac_send_raw_srb()
911 psg->sg[i].count = cpu_to_le32(sg_count[i]); in aac_send_raw_srb()
935 if (copy_to_user(sg_user[i], sg_list[i], sg_count[i])) { in aac_send_raw_srb()