Searched refs:copy_offset (Results 1 - 2 of 2) sorted by relevance

/linux-4.1.27/drivers/staging/android/ion/
H A Dion_test.c105 size_t copy_offset = offset % PAGE_SIZE; ion_handle_test_kernel() local
123 to_copy = min_t(size_t, PAGE_SIZE - copy_offset, copy_size); ion_handle_test_kernel()
126 ret = copy_from_user(vaddr + copy_offset, ptr, to_copy); ion_handle_test_kernel()
128 ret = copy_to_user(ptr, vaddr + copy_offset, to_copy); ion_handle_test_kernel()
139 copy_offset = 0; ion_handle_test_kernel()
/linux-4.1.27/drivers/infiniband/core/
H A Duser_mad.c453 int ret, data_len, hdr_len, copy_offset, rmpp_active; ib_umad_write() local
512 copy_offset = IB_MGMT_RMPP_HDR; ib_umad_write()
516 copy_offset = IB_MGMT_MAD_HDR; ib_umad_write()
539 if (copy_from_user(packet->msg->mad + copy_offset, ib_umad_write()
540 buf + copy_offset, ib_umad_write()
541 hdr_len + data_len - copy_offset)) { ib_umad_write()

Completed in 126 milliseconds