Lines Matching refs:spc
2870 int spc; in build_sriov_qp0_header() local
2938 spc = MLX4_INLINE_ALIGN - in build_sriov_qp0_header()
2940 if (header_size <= spc) { in build_sriov_qp0_header()
2945 inl->byte_count = cpu_to_be32(1 << 31 | spc); in build_sriov_qp0_header()
2946 memcpy(inl + 1, sqp->header_buf, spc); in build_sriov_qp0_header()
2948 inl = (void *) (inl + 1) + spc; in build_sriov_qp0_header()
2949 memcpy(inl + 1, sqp->header_buf + spc, header_size - spc); in build_sriov_qp0_header()
2964 inl->byte_count = cpu_to_be32(1 << 31 | (header_size - spc)); in build_sriov_qp0_header()
3023 int spc; in build_mlx_header() local
3239 spc = MLX4_INLINE_ALIGN - in build_mlx_header()
3241 if (header_size <= spc) { in build_mlx_header()
3246 inl->byte_count = cpu_to_be32(1 << 31 | spc); in build_mlx_header()
3247 memcpy(inl + 1, sqp->header_buf, spc); in build_mlx_header()
3249 inl = (void *) (inl + 1) + spc; in build_mlx_header()
3250 memcpy(inl + 1, sqp->header_buf + spc, header_size - spc); in build_mlx_header()
3265 inl->byte_count = cpu_to_be32(1 << 31 | (header_size - spc)); in build_mlx_header()
3398 int spc; in build_tunnel_header() local
3408 spc = MLX4_INLINE_ALIGN - in build_tunnel_header()
3410 if (sizeof (hdr) <= spc) { in build_tunnel_header()
3416 memcpy(inl + 1, &hdr, spc); in build_tunnel_header()
3418 inl->byte_count = cpu_to_be32(1 << 31 | spc); in build_tunnel_header()
3420 inl = (void *) (inl + 1) + spc; in build_tunnel_header()
3421 memcpy(inl + 1, (void *) &hdr + spc, sizeof (hdr) - spc); in build_tunnel_header()
3423 inl->byte_count = cpu_to_be32(1 << 31 | (sizeof (hdr) - spc)); in build_tunnel_header()