Lines Matching refs:lrhlen
84 struct hfi1_pkt_header *hdr, u32 lrhlen,
706 u32 lrhlen = get_lrh_len(req->hdr, pad_len(datalen)); in user_sdma_txadd_ahg() local
718 if (PBC2LRH(pbclen) != lrhlen) { in user_sdma_txadd_ahg()
719 pbclen = (pbclen & 0xf000) | LRH2PBC(lrhlen); in user_sdma_txadd_ahg()
722 ret = check_header_template(req, &tx->hdr, lrhlen, datalen); in user_sdma_txadd_ahg()
916 struct hfi1_pkt_header *hdr, u32 lrhlen, in check_header_template() argument
929 if (req->info.fragsize % PIO_BLOCK_SIZE || lrhlen & 0x3 || in check_header_template()
930 lrhlen > get_lrh_len(*hdr, req->info.fragsize)) in check_header_template()
993 u32 tidval = 0, lrhlen = get_lrh_len(*hdr, pad_len(datalen)); in set_txreq_header() local
1003 if (PBC2LRH(pbclen) != lrhlen) { in set_txreq_header()
1004 pbclen = (pbclen & 0xf000) | LRH2PBC(lrhlen); in set_txreq_header()
1006 hdr->lrh[2] = cpu_to_be16(lrhlen >> 2); in set_txreq_header()
1031 ret = check_header_template(req, hdr, lrhlen, datalen); in set_txreq_header()
1108 u32 val32, tidval = 0, lrhlen = get_lrh_len(*hdr, pad_len(datalen)); in set_txreq_header_ahg() local
1111 if (PBC2LRH(pbclen) != lrhlen) { in set_txreq_header_ahg()
1114 (__force u16)cpu_to_le16(LRH2PBC(lrhlen))); in set_txreq_header_ahg()
1119 (__force u16)cpu_to_be16(lrhlen >> 2)); in set_txreq_header_ahg()