Home
last modified time | relevance | path

Searched refs:bitoffs (Results 1 – 2 of 2) sorted by relevance

/freebsd/contrib/ofed/libibmad/
H A Dfields.c1136 memcpy(((void *)(char *)buf + base_offs + f->bitoffs / 8), in _set_field64()
1143 memcpy((void *)&val, (void *)((char *)buf + base_offs + f->bitoffs / 8), in _get_field64()
1151 int prebits = (8 - (f->bitoffs & 7)) & 7; in _set_field()
1152 int postbits = (f->bitoffs + f->bitlen) & 7; in _set_field()
1154 unsigned idx = base_offs + f->bitoffs / 8; in _set_field()
1157 if (!bytelen && (f->bitoffs & 7) + f->bitlen < 8) { in _set_field()
1158 p[3 ^ idx] &= ~((((1 << f->bitlen) - 1)) << (f->bitoffs & 7)); in _set_field()
1160 (val & ((1 << f->bitlen) - 1)) << (f->bitoffs & 7); in _set_field()
1182 int prebits = (8 - (f->bitoffs & 7)) & 7; in _get_field()
1183 int postbits = (f->bitoffs + f->bitlen) & 7; in _get_field()
[all …]
H A Dmad.h321 int bitoffs; member