Lines Matching refs:spc
2834 int spc; in build_sriov_qp0_header() local
2902 spc = MLX4_INLINE_ALIGN - in build_sriov_qp0_header()
2904 if (header_size <= spc) { in build_sriov_qp0_header()
2909 inl->byte_count = cpu_to_be32(1 << 31 | spc); in build_sriov_qp0_header()
2910 memcpy(inl + 1, sqp->header_buf, spc); in build_sriov_qp0_header()
2912 inl = (void *) (inl + 1) + spc; in build_sriov_qp0_header()
2913 memcpy(inl + 1, sqp->header_buf + spc, header_size - spc); in build_sriov_qp0_header()
2928 inl->byte_count = cpu_to_be32(1 << 31 | (header_size - spc)); in build_sriov_qp0_header()
2987 int spc; in build_mlx_header() local
3206 spc = MLX4_INLINE_ALIGN - in build_mlx_header()
3208 if (header_size <= spc) { in build_mlx_header()
3213 inl->byte_count = cpu_to_be32(1 << 31 | spc); in build_mlx_header()
3214 memcpy(inl + 1, sqp->header_buf, spc); in build_mlx_header()
3216 inl = (void *) (inl + 1) + spc; in build_mlx_header()
3217 memcpy(inl + 1, sqp->header_buf + spc, header_size - spc); in build_mlx_header()
3232 inl->byte_count = cpu_to_be32(1 << 31 | (header_size - spc)); in build_mlx_header()
3365 int spc; in build_tunnel_header() local
3375 spc = MLX4_INLINE_ALIGN - in build_tunnel_header()
3377 if (sizeof (hdr) <= spc) { in build_tunnel_header()
3383 memcpy(inl + 1, &hdr, spc); in build_tunnel_header()
3385 inl->byte_count = cpu_to_be32(1 << 31 | spc); in build_tunnel_header()
3387 inl = (void *) (inl + 1) + spc; in build_tunnel_header()
3388 memcpy(inl + 1, (void *) &hdr + spc, sizeof (hdr) - spc); in build_tunnel_header()
3390 inl->byte_count = cpu_to_be32(1 << 31 | (sizeof (hdr) - spc)); in build_tunnel_header()