Lines Matching refs:spc
692 int spc = MLX4_INLINE_ALIGN - CTRL_SIZE - sizeof(*inl); in build_inline_wqe() local
695 if (skb->len <= spc) { in build_inline_wqe()
709 inl->byte_count = cpu_to_be32(1 << 31 | spc); in build_inline_wqe()
710 if (hlen <= spc) { in build_inline_wqe()
712 if (hlen < spc) { in build_inline_wqe()
714 fragptr, spc - hlen); in build_inline_wqe()
715 fragptr += spc - hlen; in build_inline_wqe()
717 inl = (void *)inl->data + spc; in build_inline_wqe()
718 memcpy(inl->data, fragptr, skb->len - spc); in build_inline_wqe()
720 skb_copy_from_linear_data(skb, inl->data, spc); in build_inline_wqe()
721 inl = (void *)inl->data + spc; in build_inline_wqe()
722 skb_copy_from_linear_data_offset(skb, spc, inl->data, in build_inline_wqe()
723 hlen - spc); in build_inline_wqe()
725 memcpy(inl->data + hlen - spc, in build_inline_wqe()
731 inl->byte_count = cpu_to_be32(1 << 31 | (skb->len - spc)); in build_inline_wqe()