Lines Matching refs:offs
81 int offs, blk_num; in memcpy_hsa() local
90 offs = 0; in memcpy_hsa()
97 offs = min((PAGE_SIZE - (src % PAGE_SIZE)), count); in memcpy_hsa()
100 buf + (src % PAGE_SIZE), offs)) in memcpy_hsa()
103 memcpy(dest, buf + (src % PAGE_SIZE), offs); in memcpy_hsa()
105 if (offs == count) in memcpy_hsa()
109 for (; (offs + PAGE_SIZE) <= count; offs += PAGE_SIZE) { in memcpy_hsa()
110 blk_num = (src + offs) / PAGE_SIZE + 2; in memcpy_hsa()
116 if (copy_to_user((__force __user void*) dest + offs, in memcpy_hsa()
120 memcpy(dest + offs, buf, PAGE_SIZE); in memcpy_hsa()
122 if (offs == count) in memcpy_hsa()
126 blk_num = (src + offs) / PAGE_SIZE + 2; in memcpy_hsa()
132 if (copy_to_user((__force __user void*) dest + offs, buf, in memcpy_hsa()
133 count - offs)) in memcpy_hsa()
136 memcpy(dest + offs, buf, count - offs); in memcpy_hsa()