Lines Matching refs:sg_count
494 u32 sg_count[HBA_MAX_SG_EMBEDDED]; in aac_send_raw_srb() local
660 sg_count[i] = (actual_fibsize64 == fibsize) ? in aac_send_raw_srb()
662 if (sg_count[i] > in aac_send_raw_srb()
665 i, sg_count[i], in aac_send_raw_srb()
671 p = kmalloc(sg_count[i], GFP_KERNEL); in aac_send_raw_srb()
690 sg_count[i])) { in aac_send_raw_srb()
695 addr = pci_map_single(dev->pdev, p, sg_count[i], in aac_send_raw_srb()
700 hbacmd->sge[i].len = cpu_to_le32(sg_count[i]); in aac_send_raw_srb()
702 byte_count += sg_count[i]; in aac_send_raw_srb()
726 sg_count[i] = upsg->sg[i].count; in aac_send_raw_srb()
727 if (sg_count[i] > in aac_send_raw_srb()
736 p = kmalloc(sg_count[i], GFP_KERNEL); in aac_send_raw_srb()
739 sg_count[i], i, upsg->count)); in aac_send_raw_srb()
751 sg_count[i])){ in aac_send_raw_srb()
758 sg_count[i], data_dir); in aac_send_raw_srb()
762 byte_count += sg_count[i]; in aac_send_raw_srb()
763 psg->sg[i].count = cpu_to_le32(sg_count[i]); in aac_send_raw_srb()
781 sg_count[i] = usg->sg[i].count; in aac_send_raw_srb()
782 if (sg_count[i] > in aac_send_raw_srb()
792 p = kmalloc(sg_count[i], GFP_KERNEL); in aac_send_raw_srb()
795 sg_count[i], i, usg->count)); in aac_send_raw_srb()
806 sg_count[i])) { in aac_send_raw_srb()
814 sg_count[i], data_dir); in aac_send_raw_srb()
818 byte_count += sg_count[i]; in aac_send_raw_srb()
819 psg->sg[i].count = cpu_to_le32(sg_count[i]); in aac_send_raw_srb()
839 sg_count[i] = usg->sg[i].count; in aac_send_raw_srb()
840 if (sg_count[i] > in aac_send_raw_srb()
848 p = kmalloc(sg_count[i], GFP_KERNEL|GFP_DMA32); in aac_send_raw_srb()
851 sg_count[i], i, usg->count)); in aac_send_raw_srb()
863 sg_count[i])){ in aac_send_raw_srb()
873 psg->sg[i].count = cpu_to_le32(sg_count[i]); in aac_send_raw_srb()
880 sg_count[i] = upsg->sg[i].count; in aac_send_raw_srb()
881 if (sg_count[i] > in aac_send_raw_srb()
889 p = kmalloc(sg_count[i], GFP_KERNEL|GFP_DMA32); in aac_send_raw_srb()
892 sg_count[i], i, upsg->count)); in aac_send_raw_srb()
902 sg_count[i])) { in aac_send_raw_srb()
909 sg_count[i], data_dir); in aac_send_raw_srb()
912 byte_count += sg_count[i]; in aac_send_raw_srb()
913 psg->sg[i].count = cpu_to_le32(sg_count[i]); in aac_send_raw_srb()
937 if (copy_to_user(sg_user[i], sg_list[i], sg_count[i])) { in aac_send_raw_srb()