Lines Matching defs:data
134 * Count the number of DMA descriptors needed to send length bytes of data.
177 * Copy from the SGEs to the data buffer.
179 static void qib_copy_from_sge(void *data, struct rvt_sge_state *ss, u32 length)
186 memcpy(data, sge->vaddr, len);
204 data += len;
214 * @data: the packet data
223 int has_grh, void *data, u32 tlen, struct rvt_qp *qp)
242 qib_ud_rcv(ibp, hdr, has_grh, data, tlen, qp);
246 qib_rc_rcv(rcd, hdr, has_grh, data, tlen, qp);
250 qib_uc_rcv(ibp, hdr, has_grh, data, tlen, qp);
265 * @data: the packet payload
269 * interrupt level. Tlen is the length of the header + data + CRC in bytes.
271 void qib_ib_rcv(struct qib_ctxtdata *rcd, void *rhdr, void *data, u32 tlen)
333 qib_qp_rcv(rcd, hdr, 1, data, tlen, p->qp);
349 qib_qp_rcv(rcd, hdr, lnh == QIB_LRH_GRH, data, tlen, qp);
393 static inline u32 get_upper_bits(u32 data, u32 shift)
395 return data >> shift;
398 static inline u32 set_upper_bits(u32 data, u32 shift)
400 return data << shift;
403 static inline u32 clear_upper_bytes(u32 data, u32 n, u32 off)
405 data <<= ((sizeof(u32) - n) * BITS_PER_BYTE);
406 data >>= ((sizeof(u32) - n - off) * BITS_PER_BYTE);
407 return data;
410 static inline u32 get_upper_bits(u32 data, u32 shift)
412 return data << shift;
415 static inline u32 set_upper_bits(u32 data, u32 shift)
417 return data >> shift;
420 static inline u32 clear_upper_bytes(u32 data, u32 n, u32 off)
422 data >>= ((sizeof(u32) - n) * BITS_PER_BYTE);
423 data <<= ((sizeof(u32) - n - off) * BITS_PER_BYTE);
424 return data;
432 u32 data = 0;
451 data |= set_upper_bits(v, extra *
455 last = data;
458 __raw_writel(data, piobuf);
461 data = 0;
464 data |= clear_upper_bytes(v, len, extra);
466 last = data;
481 data |= set_upper_bits(v, shift);
482 __raw_writel(data, piobuf);
483 data = get_upper_bits(v, ushift);
495 data |= set_upper_bits(v, shift);
498 last = data;
501 __raw_writel(data, piobuf);
504 data = 0;
507 data |= clear_upper_bytes(v, l, extra);
509 last = data;
515 last = data;
541 data = clear_upper_bytes(v, extra, 0);
1434 * @dd: the device data structure
1493 * @dd: the device data structure