Lines Matching refs:spc

2155 	int spc;  in build_sriov_qp0_header()  local
2220 spc = MLX4_INLINE_ALIGN - in build_sriov_qp0_header()
2222 if (header_size <= spc) { in build_sriov_qp0_header()
2227 inl->byte_count = cpu_to_be32(1 << 31 | spc); in build_sriov_qp0_header()
2228 memcpy(inl + 1, sqp->header_buf, spc); in build_sriov_qp0_header()
2230 inl = (void *) (inl + 1) + spc; in build_sriov_qp0_header()
2231 memcpy(inl + 1, sqp->header_buf + spc, header_size - spc); in build_sriov_qp0_header()
2246 inl->byte_count = cpu_to_be32(1 << 31 | (header_size - spc)); in build_sriov_qp0_header()
2277 int spc; in build_mlx_header() local
2451 spc = MLX4_INLINE_ALIGN - in build_mlx_header()
2453 if (header_size <= spc) { in build_mlx_header()
2458 inl->byte_count = cpu_to_be32(1 << 31 | spc); in build_mlx_header()
2459 memcpy(inl + 1, sqp->header_buf, spc); in build_mlx_header()
2461 inl = (void *) (inl + 1) + spc; in build_mlx_header()
2462 memcpy(inl + 1, sqp->header_buf + spc, header_size - spc); in build_mlx_header()
2477 inl->byte_count = cpu_to_be32(1 << 31 | (header_size - spc)); in build_mlx_header()
2628 int spc; in build_tunnel_header() local
2638 spc = MLX4_INLINE_ALIGN - in build_tunnel_header()
2640 if (sizeof (hdr) <= spc) { in build_tunnel_header()
2646 memcpy(inl + 1, &hdr, spc); in build_tunnel_header()
2648 inl->byte_count = cpu_to_be32(1 << 31 | spc); in build_tunnel_header()
2650 inl = (void *) (inl + 1) + spc; in build_tunnel_header()
2651 memcpy(inl + 1, (void *) &hdr + spc, sizeof (hdr) - spc); in build_tunnel_header()
2653 inl->byte_count = cpu_to_be32(1 << 31 | (sizeof (hdr) - spc)); in build_tunnel_header()