Lines Matching refs:to_copy
262 int copied = 0, to_copy = sizeof(tmp); in arch_ptrace() local
265 pr_debug("ptrace: PEEKTEXT at addr 0x%08lx + %i\n", addr, to_copy); in arch_ptrace()
266 if (is_user_addr_valid(child, addr, to_copy) < 0) in arch_ptrace()
270 switch (bfin_mem_access_type(addr, to_copy)) { in arch_ptrace()
274 to_copy, 0); in arch_ptrace()
280 addr + to_copy <= FIXED_CODE_END) { in arch_ptrace()
281 copy_from_user_page(0, 0, 0, &tmp, paddr, to_copy); in arch_ptrace()
282 copied = to_copy; in arch_ptrace()
284 memcpy(&tmp, paddr, to_copy); in arch_ptrace()
285 copied = to_copy; in arch_ptrace()
290 if (safe_dma_memcpy(&tmp, paddr, to_copy)) in arch_ptrace()
291 copied = to_copy; in arch_ptrace()
294 if (isram_memcpy(&tmp, paddr, to_copy)) in arch_ptrace()
295 copied = to_copy; in arch_ptrace()
303 if (copied == to_copy) in arch_ptrace()
314 int copied = 0, to_copy = sizeof(data); in arch_ptrace() local
318 addr, to_copy, data); in arch_ptrace()
319 if (is_user_addr_valid(child, addr, to_copy) < 0) in arch_ptrace()
323 switch (bfin_mem_access_type(addr, to_copy)) { in arch_ptrace()
327 to_copy, 1); in arch_ptrace()
330 if (safe_dma_memcpy(paddr, &data, to_copy)) in arch_ptrace()
331 copied = to_copy; in arch_ptrace()
334 if (isram_memcpy(paddr, &data, to_copy)) in arch_ptrace()
335 copied = to_copy; in arch_ptrace()
343 if (copied == to_copy) in arch_ptrace()