Lines Matching refs:spc
2835 int spc; in build_sriov_qp0_header() local
2903 spc = MLX4_INLINE_ALIGN - in build_sriov_qp0_header()
2905 if (header_size <= spc) { in build_sriov_qp0_header()
2910 inl->byte_count = cpu_to_be32(1 << 31 | spc); in build_sriov_qp0_header()
2911 memcpy(inl + 1, sqp->header_buf, spc); in build_sriov_qp0_header()
2913 inl = (void *) (inl + 1) + spc; in build_sriov_qp0_header()
2914 memcpy(inl + 1, sqp->header_buf + spc, header_size - spc); in build_sriov_qp0_header()
2929 inl->byte_count = cpu_to_be32(1 << 31 | (header_size - spc)); in build_sriov_qp0_header()
2988 int spc; in build_mlx_header() local
3204 spc = MLX4_INLINE_ALIGN - in build_mlx_header()
3206 if (header_size <= spc) { in build_mlx_header()
3211 inl->byte_count = cpu_to_be32(1 << 31 | spc); in build_mlx_header()
3212 memcpy(inl + 1, sqp->header_buf, spc); in build_mlx_header()
3214 inl = (void *) (inl + 1) + spc; in build_mlx_header()
3215 memcpy(inl + 1, sqp->header_buf + spc, header_size - spc); in build_mlx_header()
3230 inl->byte_count = cpu_to_be32(1 << 31 | (header_size - spc)); in build_mlx_header()
3363 int spc; in build_tunnel_header() local
3373 spc = MLX4_INLINE_ALIGN - in build_tunnel_header()
3375 if (sizeof (hdr) <= spc) { in build_tunnel_header()
3381 memcpy(inl + 1, &hdr, spc); in build_tunnel_header()
3383 inl->byte_count = cpu_to_be32(1 << 31 | spc); in build_tunnel_header()
3385 inl = (void *) (inl + 1) + spc; in build_tunnel_header()
3386 memcpy(inl + 1, (void *) &hdr + spc, sizeof (hdr) - spc); in build_tunnel_header()
3388 inl->byte_count = cpu_to_be32(1 << 31 | (sizeof (hdr) - spc)); in build_tunnel_header()