Lines Matching refs:hdr_size
171 static int hdr_size(struct ib_umad_file *file)
251 packet->mad.hdr.length = hdr_size(file) + mad_recv_wc->mad_len;
309 count < hdr_size(file) + packet->length) ||
311 count < hdr_size(file) + seg_size))
314 if (copy_to_user(buf, &packet->mad, hdr_size(file)))
317 buf += hdr_size(file);
327 if (count < hdr_size(file) + packet->length) {
350 return hdr_size(file) + packet->length;
356 ssize_t size = hdr_size(file) + packet->length;
361 if (copy_to_user(buf, &packet->mad, hdr_size(file)))
364 buf += hdr_size(file);
382 if (count < hdr_size(file))
511 if (count < hdr_size(file) + IB_MGMT_RMPP_HDR)
518 if (copy_from_user(&packet->mad, buf, hdr_size(file))) {
528 buf += hdr_size(file);
582 data_len = count - hdr_size(file) - hdr_len;