/* * Write an "empty" RcvArray entry. * This function exists so the TID registaration code can use it * to write to unused/unneeded entries and still take advantage * of the WC performance improvements. The HFI will ignore this * write to the RcvArray entry.
*/ staticinlinevoid rcv_array_wc_fill(struct hfi1_devdata *dd, u32 index)
{ /* * Doing the WC fill writes only makes sense if the device is * present and the RcvArray has been mapped as WC memory.
*/ if ((dd->flags & HFI1_PRESENT) && dd->rcvarray_wc) {
writeq(0, dd->rcvarray_wc + (index * 8)); if ((index & 3) == 3)
flush_wc();
}
}
/** * hfi1_tid_group_to_idx - convert an index to a group * @rcd - the receive context * @grp - the group pointer
*/ staticinline u16
hfi1_tid_group_to_idx(struct hfi1_ctxtdata *rcd, struct tid_group *grp)
{ return grp - &rcd->groups[0];
}
/** * hfi1_idx_to_tid_group - convert a group to an index * @rcd - the receive context * @idx - the index
*/ staticinlinestruct tid_group *
hfi1_idx_to_tid_group(struct hfi1_ctxtdata *rcd, u16 idx)
{ return &rcd->groups[idx];
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.