Lines Matching defs:pbuf
56 * @pbuf: Pointer to a buffer holding the packed value.
59 * the packed value starts within pbuf. Must be larger than, or
62 * the packed value ends within pbuf. Must be smaller than, or equal
64 * @pbuflen: The length in bytes of the packed buffer pointed to by @pbuf.
66 * into pbuf, between startbit and endbit.
67 * If UNPACK, then pbuf will be treated as const pointer and the logical
74 * If op is PACK, pbuf is modified.
77 int packing(void *pbuf, u64 *uval, int startbit, int endbit, size_t pbuflen,
81 * also width of the field to access in the pbuf
113 /* Iterate through an idealistic view of the pbuf as an u64 with
153 /* Determine the offset of the u8 box inside the pbuf,
155 * effective addressing inside the pbuf (so it's not
168 /* Read from pbuf, write to uval */
169 pval = ((u8 *)pbuf)[box_addr] & box_mask;
183 /* Write to pbuf, read from uval */
193 ((u8 *)pbuf)[box_addr] &= ~box_mask;
194 ((u8 *)pbuf)[box_addr] |= pval;