Lines Matching defs:uval
69 * @uval: Pointer to an u64 holding the unpacked value.
77 * @op: If PACK, then uval will be treated as const pointer and copied (packed)
80 * value between startbit and endbit will be copied (unpacked) to uval.
87 * If op is UNPACK, uval is modified.
89 int packing(void *pbuf, u64 *uval, int startbit, int endbit, size_t pbuflen,
92 /* Number of bits for storing "uval"
110 /* Check if "uval" fits in "value_width" bits.
112 * 64-bit uval will surely fit.
114 if (op == PACK && value_width < 64 && (*uval >= (1ull << value_width)))
115 /* Cannot store "uval" inside "value_width" bits.
116 * Truncating "uval" is most certainly not desirable,
123 *uval = 0;
180 /* Read from pbuf, write to uval */
190 *uval &= ~proj_mask;
191 *uval |= pval;
195 /* Write to pbuf, read from uval */
196 pval = (*uval) & proj_mask;