Lines Matching refs:sg_count

479 	u32 sg_count[HBA_MAX_SG_EMBEDDED];  in aac_send_raw_srb()  local
645 sg_count[i] = (actual_fibsize64 == fibsize) ? in aac_send_raw_srb()
647 if (sg_count[i] > in aac_send_raw_srb()
650 i, sg_count[i], in aac_send_raw_srb()
656 p = kmalloc(sg_count[i], GFP_KERNEL); in aac_send_raw_srb()
675 sg_count[i])) { in aac_send_raw_srb()
680 addr = pci_map_single(dev->pdev, p, sg_count[i], in aac_send_raw_srb()
685 hbacmd->sge[i].len = cpu_to_le32(sg_count[i]); in aac_send_raw_srb()
687 byte_count += sg_count[i]; in aac_send_raw_srb()
711 sg_count[i] = upsg->sg[i].count; in aac_send_raw_srb()
712 if (sg_count[i] > in aac_send_raw_srb()
721 p = kmalloc(sg_count[i], GFP_KERNEL); in aac_send_raw_srb()
724 sg_count[i], i, upsg->count)); in aac_send_raw_srb()
736 sg_count[i])){ in aac_send_raw_srb()
743 sg_count[i], data_dir); in aac_send_raw_srb()
747 byte_count += sg_count[i]; in aac_send_raw_srb()
748 psg->sg[i].count = cpu_to_le32(sg_count[i]); in aac_send_raw_srb()
766 sg_count[i] = usg->sg[i].count; in aac_send_raw_srb()
767 if (sg_count[i] > in aac_send_raw_srb()
777 p = kmalloc(sg_count[i], GFP_KERNEL); in aac_send_raw_srb()
780 sg_count[i], i, usg->count)); in aac_send_raw_srb()
791 sg_count[i])) { in aac_send_raw_srb()
799 sg_count[i], data_dir); in aac_send_raw_srb()
803 byte_count += sg_count[i]; in aac_send_raw_srb()
804 psg->sg[i].count = cpu_to_le32(sg_count[i]); in aac_send_raw_srb()
824 sg_count[i] = usg->sg[i].count; in aac_send_raw_srb()
825 if (sg_count[i] > in aac_send_raw_srb()
833 p = kmalloc(sg_count[i], GFP_KERNEL); in aac_send_raw_srb()
836 sg_count[i], i, usg->count)); in aac_send_raw_srb()
848 sg_count[i])){ in aac_send_raw_srb()
858 psg->sg[i].count = cpu_to_le32(sg_count[i]); in aac_send_raw_srb()
865 sg_count[i] = upsg->sg[i].count; in aac_send_raw_srb()
866 if (sg_count[i] > in aac_send_raw_srb()
874 p = kmalloc(sg_count[i], GFP_KERNEL); in aac_send_raw_srb()
877 sg_count[i], i, upsg->count)); in aac_send_raw_srb()
887 sg_count[i])) { in aac_send_raw_srb()
894 sg_count[i], data_dir); in aac_send_raw_srb()
897 byte_count += sg_count[i]; in aac_send_raw_srb()
898 psg->sg[i].count = cpu_to_le32(sg_count[i]); in aac_send_raw_srb()
922 if (copy_to_user(sg_user[i], sg_list[i], sg_count[i])) { in aac_send_raw_srb()