Lines Matching refs:upsg

589 		struct user_sgmap64* upsg = (struct user_sgmap64*)&user_srbcmd->sg;  in aac_send_raw_srb()  local
597 for (i = 0; i < upsg->count; i++) { in aac_send_raw_srb()
600 if (upsg->sg[i].count > in aac_send_raw_srb()
609 p = kmalloc(upsg->sg[i].count,GFP_KERNEL|__GFP_DMA); in aac_send_raw_srb()
612 upsg->sg[i].count,i,upsg->count)); in aac_send_raw_srb()
616 addr = (u64)upsg->sg[i].addr[0]; in aac_send_raw_srb()
617 addr += ((u64)upsg->sg[i].addr[1]) << 32; in aac_send_raw_srb()
623 if(copy_from_user(p,sg_user[i],upsg->sg[i].count)){ in aac_send_raw_srb()
629 addr = pci_map_single(dev->pdev, p, upsg->sg[i].count, data_dir); in aac_send_raw_srb()
633 byte_count += upsg->sg[i].count; in aac_send_raw_srb()
634 psg->sg[i].count = cpu_to_le32(upsg->sg[i].count); in aac_send_raw_srb()
645 memcpy (usg, upsg, actual_fibsize - sizeof(struct aac_srb) in aac_send_raw_srb()
675 if(copy_from_user(p,sg_user[i],upsg->sg[i].count)){ in aac_send_raw_srb()
698 struct user_sgmap* upsg = &user_srbcmd->sg; in aac_send_raw_srb() local
702 struct user_sgmap64* usg = (struct user_sgmap64 *)upsg; in aac_send_raw_srb()
703 for (i = 0; i < upsg->count; i++) { in aac_send_raw_srb()
742 for (i = 0; i < upsg->count; i++) { in aac_send_raw_srb()
745 if (upsg->sg[i].count > in aac_send_raw_srb()
753 p = kmalloc(upsg->sg[i].count, GFP_KERNEL); in aac_send_raw_srb()
756 upsg->sg[i].count, i, upsg->count)); in aac_send_raw_srb()
760 sg_user[i] = (void __user *)(uintptr_t)upsg->sg[i].addr; in aac_send_raw_srb()
766 upsg->sg[i].count)) { in aac_send_raw_srb()
773 upsg->sg[i].count, data_dir); in aac_send_raw_srb()
776 byte_count += upsg->sg[i].count; in aac_send_raw_srb()
777 psg->sg[i].count = cpu_to_le32(upsg->sg[i].count); in aac_send_raw_srb()