Lines Matching refs:hdr_size
214 static int hdr_size(struct ib_umad_file *file)
294 packet->mad.hdr.length = hdr_size(file) + mad_recv_wc->mad_len;
334 count < hdr_size(file) + packet->length) ||
336 count < hdr_size(file) + sizeof (*recv_buf->mad)))
339 if (copy_to_user(buf, &packet->mad, hdr_size(file)))
342 buf += hdr_size(file);
352 if (count < hdr_size(file) + packet->length) {
372 return hdr_size(file) + packet->length;
378 ssize_t size = hdr_size(file) + packet->length;
383 if (copy_to_user(buf, &packet->mad, hdr_size(file)))
386 buf += hdr_size(file);
401 if (count < hdr_size(file))
519 if (count < hdr_size(file) + IB_MGMT_RMPP_HDR)
526 if (copy_from_user(&packet->mad, buf, hdr_size(file))) {
536 buf += hdr_size(file);
582 data_len = count - hdr_size(file) - hdr_len;