Lines Matching refs:src
38 (const _type * dst, const _type * src, size_t size)\
43 if (*dst++ != *src++) \
59 const _type * dst, const _type * src, size_t size) \
62 if (*--dst != *--src) \
108 if (spill && spill == SPILL(src, _type) && \
111 diff_offs = vmw_find_first_diff_u8(dst, src, spill); \
116 src += spill; \
121 if (!spill && !SPILL(src, _type)) { \
125 ((_type *) dst, (_type *) src, to_copy); \
130 src += diff_offs; \
138 * vmw_find_first_diff - find the first difference between dst and src
141 * @src: The source address
148 static size_t vmw_find_first_diff(const u8 *dst, const u8 *src, size_t size,
164 return round_down(offset + vmw_find_first_diff_u8(dst, src, size),
182 if (spill && spill <= size && spill == SPILL(src, _type)) { \
183 diff_offs = vmw_find_last_diff_u8(dst, src, spill); \
190 src -= spill; \
194 if (!spill && !SPILL(src, _type)) { \
198 ((_type *) dst, (_type *) src, to_copy); \
204 src -= to_copy - diff_offs; \
211 * vmw_find_last_diff - find the last difference between dst and src
214 * @src: The source address
220 static ssize_t vmw_find_last_diff(const u8 *dst, const u8 *src, size_t size,
224 src += size;
232 return round_down(vmw_find_last_diff_u8(dst, src, size) - 1,
243 * @src: The copy source.
246 void vmw_memcpy(struct vmw_diff_cpy *diff, u8 *dest, const u8 *src, size_t n)
248 memcpy(dest, src, n);
275 * @src: The copy source.
288 void vmw_diff_memcpy(struct vmw_diff_cpy *diff, u8 *dest, const u8 *src,
297 csize = vmw_find_first_diff(dest, src, n, diff->cpp);
308 src += csize;
310 csize = vmw_find_last_diff(dest, src, n, diff->cpp);
315 memcpy(dest, src, byte_len);
429 * @src: Source buffer object.
448 struct ttm_buffer_object *src,
464 if (!(src->mem.placement & TTM_PL_FLAG_NO_EVICT))
465 dma_resv_assert_held(src->base.resv);
473 if (!ttm_tt_is_populated(src->ttm)) {
474 ret = src->bdev->driver->ttm_tt_populate(src->bdev, src->ttm, &ctx);
484 d.src_pages = src->ttm->pages;
486 d.src_num_pages = src->num_pages;
488 d.src_prot = ttm_io_prot(src->mem.placement, PAGE_KERNEL);