SIZE_OF_CRC
extra_bytes = ib_bth_get_pad(packet->ohdr) + (SIZE_OF_CRC << 2) +
return -(hdr_size + payload + (SIZE_OF_CRC << 2) +
payload_dwords = ((skb->len + pad_cnt) >> 2) + SIZE_OF_CRC;
dwords - SIZE_OF_CRC +
*hwords - 2, SIZE_OF_CRC);
hfi1_make_ib_hdr(hdr, lrh0, *hwords + SIZE_OF_CRC,
*nwords = SIZE_OF_CRC + ((extra_bytes + SIZE_OF_LT) >> 2);
u8 extra_bytes = pad + packet->extra_byte + (SIZE_OF_CRC << 2);
u8 extra_bytes = pad + packet->extra_byte + (SIZE_OF_CRC << 2);
u32 nwords = SIZE_OF_CRC + ((ps->s_txreq->s_cur_size +
u32 nwords = SIZE_OF_CRC + ((ps->s_txreq->s_cur_size +
(SIZE_OF_CRC << 2);
(SIZE_OF_CRC << 2);
u8 extra_bytes = pad + packet->extra_byte + (SIZE_OF_CRC << 2);
nwords = ((wqe->length + extra_bytes) >> 2) + SIZE_OF_CRC;
nwords = ((wqe->length + extra_bytes + SIZE_OF_LT) >> 2) + SIZE_OF_CRC;
SIZE_OF_LT) >> 2) + SIZE_OF_CRC;
(hwords - LRH_9B_DWORDS + SIZE_OF_CRC) << 2);
hfi1_make_ib_hdr(&hdr.ibh, lrh0, hwords + SIZE_OF_CRC, dlid, slid);
extra_bytes = packet->pad + packet->extra_byte + (SIZE_OF_CRC << 2);
(SIZE_OF_CRC << 2) + SIZE_OF_LT;
dwords = (len + extra_bytes + (SIZE_OF_CRC << 2) +
extra_bytes = pad_size + (SIZE_OF_CRC << 2) + SIZE_OF_LT;