Lines Matching defs:pbuf
68 * @pbuf: Pointer to a buffer holding the packed value.
71 * the packed value starts within pbuf. Must be larger than, or
74 * the packed value ends within pbuf. Must be smaller than, or equal
76 * @pbuflen: The length in bytes of the packed buffer pointed to by @pbuf.
78 * into pbuf, between startbit and endbit.
79 * If UNPACK, then pbuf will be treated as const pointer and the logical
86 * If op is PACK, pbuf is modified.
89 int packing(void *pbuf, u64 *uval, int startbit, int endbit, size_t pbuflen,
93 * also width of the field to access in the pbuf
125 /* Iterate through an idealistic view of the pbuf as an u64 with
165 /* Determine the offset of the u8 box inside the pbuf,
167 * effective addressing inside the pbuf (so it's not
180 /* Read from pbuf, write to uval */
181 pval = ((u8 *)pbuf)[box_addr] & box_mask;
195 /* Write to pbuf, read from uval */
205 ((u8 *)pbuf)[box_addr] &= ~box_mask;
206 ((u8 *)pbuf)[box_addr] |= pval;