Lines Matching defs:uval
57 * @uval: Pointer to an u64 holding the unpacked value.
65 * @op: If PACK, then uval will be treated as const pointer and copied (packed)
68 * value between startbit and endbit will be copied (unpacked) to uval.
75 * If op is UNPACK, uval is modified.
77 int packing(void *pbuf, u64 *uval, int startbit, int endbit, size_t pbuflen,
80 /* Number of bits for storing "uval"
98 /* Check if "uval" fits in "value_width" bits.
100 * 64-bit uval will surely fit.
102 if (op == PACK && value_width < 64 && (*uval >= (1ull << value_width)))
103 /* Cannot store "uval" inside "value_width" bits.
104 * Truncating "uval" is most certainly not desirable,
111 *uval = 0;
168 /* Read from pbuf, write to uval */
178 *uval &= ~proj_mask;
179 *uval |= pval;
183 /* Write to pbuf, read from uval */
184 pval = (*uval) & proj_mask;