Lines Matching refs:to_buff
316 u8 *to_buff; in mlx5vf_add_stop_copy_header() local
331 to_buff = kmap_local_page(page); in mlx5vf_add_stop_copy_header()
332 memcpy(to_buff, &header, sizeof(header)); in mlx5vf_add_stop_copy_header()
335 memcpy(to_buff + sizeof(header), &data, sizeof(data)); in mlx5vf_add_stop_copy_header()
337 kunmap_local(to_buff); in mlx5vf_add_stop_copy_header()
617 u8 *to_buff; in mlx5vf_append_page_to_mig_buf() local
627 to_buff = kmap_local_page(page); in mlx5vf_append_page_to_mig_buf()
628 ret = copy_from_user(to_buff + page_offset, *buf, page_len); in mlx5vf_append_page_to_mig_buf()
629 kunmap_local(to_buff); in mlx5vf_append_page_to_mig_buf()
708 u8 *to_buff; in mlx5vf_resume_read_header_data() local
731 to_buff = kmap_local_page(page); in mlx5vf_resume_read_header_data()
733 le64_to_cpup((__le64 *)to_buff), MAX_LOAD_SIZE); in mlx5vf_resume_read_header_data()
734 kunmap_local(to_buff); in mlx5vf_resume_read_header_data()
759 u8 *to_buff; in mlx5vf_resume_read_header() local
767 to_buff = kmap_local_page(page); in mlx5vf_resume_read_header()
768 ret = copy_from_user(to_buff + vhca_buf->length, *buf, copy_len); in mlx5vf_resume_read_header()
783 record_size = le64_to_cpup((__le64 *)to_buff); in mlx5vf_resume_read_header()
790 flags = le32_to_cpup((__le32 *)(to_buff + in mlx5vf_resume_read_header()
792 migf->record_tag = le32_to_cpup((__le32 *)(to_buff + in mlx5vf_resume_read_header()
815 kunmap_local(to_buff); in mlx5vf_resume_read_header()