• Home
  • Raw
  • Download

Lines Matching refs:sg

557 	if (user_srbcmd->sg.count > ARRAY_SIZE(sg_list)) {  in aac_send_raw_srb()
559 user_srbcmd->sg.count)); in aac_send_raw_srb()
563 if ((data_dir == DMA_NONE) && user_srbcmd->sg.count) { in aac_send_raw_srb()
569 ((user_srbcmd->sg.count & 0xff) * sizeof(struct sgentry)); in aac_send_raw_srb()
570 actual_fibsize64 = actual_fibsize + (user_srbcmd->sg.count & 0xff) * in aac_send_raw_srb()
578 actual_fibsize, actual_fibsize64, user_srbcmd->sg.count, in aac_send_raw_srb()
623 cpu_to_le32(user_srbcmd->sg.count); in aac_send_raw_srb()
625 user_srbcmd->sg.count * sizeof(struct aac_hba_sgl); in aac_send_raw_srb()
652 struct user_sgmap *usg32 = &user_srbcmd->sg; in aac_send_raw_srb()
654 (struct user_sgmap64 *)&user_srbcmd->sg; in aac_send_raw_srb()
661 usg64->sg[i].count : usg32->sg[i].count; in aac_send_raw_srb()
678 addr = (u64)usg64->sg[i].addr[0]; in aac_send_raw_srb()
679 addr += ((u64)usg64->sg[i].addr[1]) << 32; in aac_send_raw_srb()
681 addr = (u64)usg32->sg[i].addr; in aac_send_raw_srb()
714 struct user_sgmap64* upsg = (struct user_sgmap64*)&user_srbcmd->sg; in aac_send_raw_srb()
715 struct sgmap64* psg = (struct sgmap64*)&srbcmd->sg; in aac_send_raw_srb()
726 sg_count[i] = upsg->sg[i].count; in aac_send_raw_srb()
743 addr = (u64)upsg->sg[i].addr[0]; in aac_send_raw_srb()
744 addr += ((u64)upsg->sg[i].addr[1]) << 32; in aac_send_raw_srb()
760 psg->sg[i].addr[0] = cpu_to_le32(addr & 0xffffffff); in aac_send_raw_srb()
761 psg->sg[i].addr[1] = cpu_to_le32(addr>>32); 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()
800 sg_user[i] = (void __user *)(uintptr_t)usg->sg[i].addr; in aac_send_raw_srb()
816 psg->sg[i].addr[0] = cpu_to_le32(addr & 0xffffffff); in aac_send_raw_srb()
817 psg->sg[i].addr[1] = cpu_to_le32(addr>>32); in aac_send_raw_srb()
819 psg->sg[i].count = cpu_to_le32(sg_count[i]); in aac_send_raw_srb()
824 if (user_srbcmd->sg.count) in aac_send_raw_srb()
830 struct user_sgmap* upsg = &user_srbcmd->sg; in aac_send_raw_srb()
831 struct sgmap* psg = &srbcmd->sg; in aac_send_raw_srb()
839 sg_count[i] = usg->sg[i].count; in aac_send_raw_srb()
855 addr = (u64)usg->sg[i].addr[0]; in aac_send_raw_srb()
856 addr += ((u64)usg->sg[i].addr[1]) << 32; in aac_send_raw_srb()
869 addr = pci_map_single(dev->pdev, p, usg->sg[i].count, data_dir); in aac_send_raw_srb()
871 psg->sg[i].addr = cpu_to_le32(addr & 0xffffffff); in aac_send_raw_srb()
872 byte_count += usg->sg[i].count; 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()
896 sg_user[i] = (void __user *)(uintptr_t)upsg->sg[i].addr; in aac_send_raw_srb()
911 psg->sg[i].addr = cpu_to_le32(addr); in aac_send_raw_srb()
913 psg->sg[i].count = cpu_to_le32(sg_count[i]); in aac_send_raw_srb()
917 if (user_srbcmd->sg.count) in aac_send_raw_srb()