Lines Matching refs:spc
2046 int spc; in build_sriov_qp0_header() local
2111 spc = MLX4_INLINE_ALIGN - in build_sriov_qp0_header()
2113 if (header_size <= spc) { in build_sriov_qp0_header()
2118 inl->byte_count = cpu_to_be32(1 << 31 | spc); in build_sriov_qp0_header()
2119 memcpy(inl + 1, sqp->header_buf, spc); in build_sriov_qp0_header()
2121 inl = (void *) (inl + 1) + spc; in build_sriov_qp0_header()
2122 memcpy(inl + 1, sqp->header_buf + spc, header_size - spc); in build_sriov_qp0_header()
2137 inl->byte_count = cpu_to_be32(1 << 31 | (header_size - spc)); in build_sriov_qp0_header()
2168 int spc; in build_mlx_header() local
2339 spc = MLX4_INLINE_ALIGN - in build_mlx_header()
2341 if (header_size <= spc) { in build_mlx_header()
2346 inl->byte_count = cpu_to_be32(1 << 31 | spc); in build_mlx_header()
2347 memcpy(inl + 1, sqp->header_buf, spc); in build_mlx_header()
2349 inl = (void *) (inl + 1) + spc; in build_mlx_header()
2350 memcpy(inl + 1, sqp->header_buf + spc, header_size - spc); in build_mlx_header()
2365 inl->byte_count = cpu_to_be32(1 << 31 | (header_size - spc)); in build_mlx_header()
2519 int spc; in build_tunnel_header() local
2529 spc = MLX4_INLINE_ALIGN - in build_tunnel_header()
2531 if (sizeof (hdr) <= spc) { in build_tunnel_header()
2537 memcpy(inl + 1, &hdr, spc); in build_tunnel_header()
2539 inl->byte_count = cpu_to_be32(1 << 31 | spc); in build_tunnel_header()
2541 inl = (void *) (inl + 1) + spc; in build_tunnel_header()
2542 memcpy(inl + 1, (void *) &hdr + spc, sizeof (hdr) - spc); in build_tunnel_header()
2544 inl->byte_count = cpu_to_be32(1 << 31 | (sizeof (hdr) - spc)); in build_tunnel_header()