Home
last modified time | relevance | path

Searched refs:header_buf (Results 1 – 9 of 9) sorted by relevance

/linux-6.15/drivers/vfio/pci/virtio/
H A Dmigrate.c549 page = virtiovf_get_migration_page(header_buf, 0); in virtiovf_add_buf_header()
555 header_buf->length = sizeof(header); in virtiovf_add_buf_header()
556 header_buf->start_pos = header_buf->migf->max_pos; in virtiovf_add_buf_header()
557 migf->max_pos += header_buf->length; in virtiovf_add_buf_header()
559 list_add_tail(&header_buf->buf_elm, &migf->buf_list); in virtiovf_add_buf_header()
568 struct virtiovf_data_buffer *header_buf; in virtiovf_read_device_context_chunk() local
612 header_buf = virtiovf_get_data_buffer(migf, in virtiovf_read_device_context_chunk()
614 if (IS_ERR(header_buf)) { in virtiovf_read_device_context_chunk()
615 ret = PTR_ERR(header_buf); in virtiovf_read_device_context_chunk()
619 ret = virtiovf_add_buf_header(header_buf, res_size); in virtiovf_read_device_context_chunk()
[all …]
/linux-6.15/drivers/vfio/pci/mlx5/
H A Dcmd.c569 if (async_data->header_buf) in mlx5vf_mig_file_cleanup_cb()
600 header_buf->length = sizeof(header); in add_buf_header()
601 header_buf->start_pos = header_buf->migf->max_pos; in add_buf_header()
602 migf->max_pos += header_buf->length; in add_buf_header()
633 if (async_data->header_buf) { in mlx5vf_save_callback()
740 if (!header_buf) { in mlx5vf_cmd_save_vhca_state()
743 if (IS_ERR(header_buf)) { in mlx5vf_cmd_save_vhca_state()
744 err = PTR_ERR(header_buf); in mlx5vf_cmd_save_vhca_state()
752 async_data->header_buf = header_buf; in mlx5vf_cmd_save_vhca_state()
764 if (header_buf) in mlx5vf_cmd_save_vhca_state()
[all …]
H A Dmain.c369 struct mlx5_vhca_data_buffer *header_buf = NULL; in mlx5vf_add_stop_copy_header() local
376 header_buf = mlx5vf_get_data_buffer(migf, size, DMA_NONE); in mlx5vf_add_stop_copy_header()
377 if (IS_ERR(header_buf)) in mlx5vf_add_stop_copy_header()
378 return PTR_ERR(header_buf); in mlx5vf_add_stop_copy_header()
383 page = mlx5vf_get_migration_page(header_buf, 0); in mlx5vf_add_stop_copy_header()
390 header_buf->length = sizeof(header); in mlx5vf_add_stop_copy_header()
393 header_buf->length += sizeof(data); in mlx5vf_add_stop_copy_header()
395 header_buf->start_pos = header_buf->migf->max_pos; in mlx5vf_add_stop_copy_header()
396 migf->max_pos += header_buf->length; in mlx5vf_add_stop_copy_header()
398 list_add_tail(&header_buf->buf_elm, &migf->buf_list); in mlx5vf_add_stop_copy_header()
[all …]
H A Dcmd.h76 struct mlx5_vhca_data_buffer *header_buf; member
/linux-6.15/init/
H A Dinitramfs.c255 static __initdata char *header_buf, *symlink_buf, *name_buf; variable
259 read_into(header_buf, CPIO_HDRLEN, GotHeader); in do_start()
523 header_buf = bufs->header; in unpack_to_rootfs()
/linux-6.15/drivers/infiniband/hw/mthca/
H A Dmthca_provider.h249 void *header_buf; member
H A Dmthca_qp.c1386 qp->sqp->header_buf = in mthca_alloc_sqp()
1389 if (!qp->sqp->header_buf) in mthca_alloc_sqp()
1430 qp->sqp->header_buf, qp->sqp->header_dma); in mthca_alloc_sqp()
1494 qp->sqp->header_buf, qp->sqp->header_dma); in mthca_free_qp()
1557 sqp->header_buf + in build_mlx_header()
/linux-6.15/drivers/infiniband/hw/mlx4/
H A Dqp.c2942 header_size = ib_ud_header_pack(&sqp->ud_header, sqp->header_buf); in build_sriov_qp0_header()
2954 memcpy(inl + 1, sqp->header_buf, header_size); in build_sriov_qp0_header()
2958 memcpy(inl + 1, sqp->header_buf, spc); in build_sriov_qp0_header()
2961 memcpy(inl + 1, sqp->header_buf + spc, header_size - spc); in build_sriov_qp0_header()
3230 header_size = ib_ud_header_pack(&sqp->ud_header, sqp->header_buf); in build_mlx_header()
3238 be32_to_cpu(((__be32 *) sqp->header_buf)[i])); in build_mlx_header()
3255 memcpy(inl + 1, sqp->header_buf, header_size); in build_mlx_header()
3259 memcpy(inl + 1, sqp->header_buf, spc); in build_mlx_header()
3262 memcpy(inl + 1, sqp->header_buf + spc, header_size - spc); in build_mlx_header()
H A Dmlx4_ib.h319 u8 header_buf[MLX4_IB_UD_HEADER_SIZE]; member