Lines Matching refs:buf_b

4233  * @buf_b: second buffer
4240 * Return: A pointer into @buf_b from where non-overlapped data starts
4242 static unsigned char *adj_for_padding(unsigned char *buf_b,
4245 unsigned char *p = buf_b - MAX_PADDING;
4262 * @buf_b: second buffer
4264 * @consecutive: returns true if there is data in buf_b that is consecutive
4269 * first TSC of @buf_b in order to determine if the buffers overlap, and then
4270 * walk forward in @buf_b until a later TSC is found. A precondition is that
4271 * @buf_a and @buf_b are positioned at a PSB.
4273 * Return: A pointer into @buf_b from where non-overlapped data starts, or
4274 * @buf_b + @len_b if there is no non-overlapped data.
4278 unsigned char *buf_b,
4288 return buf_b; /* No PSB in buf_a => no overlap */
4296 return buf_b; /* No full PSB+ => assume no overlap */
4299 return buf_b; /* No TSC in buf_a => assume no overlap */
4304 if (intel_pt_next_tsc(buf_b, len_b, &tsc_b, &rem_b)) {
4312 start = buf_b + len_b - (rem_b - rem_a);
4316 return buf_b; /* tsc_a < tsc_b => no overlap */
4319 if (!intel_pt_step_psb(&buf_b, &len_b))
4320 return buf_b + len_b; /* No PSB in buf_b => no data */
4328 * @buf_b: second buffer
4331 * @consecutive: returns true if there is data in buf_b that is consecutive
4339 * Return: A pointer into @buf_b from where non-overlapped data starts, or
4340 * @buf_b + @len_b if there is no non-overlapped data.
4343 unsigned char *buf_b, size_t len_b,
4350 if (!intel_pt_next_psb(&buf_b, &len_b))
4351 return buf_b + len_b; /* No PSB */
4354 return buf_b; /* No overlap */
4357 found = intel_pt_find_overlap_tsc(buf_a, len_a, buf_b, len_b,
4369 return buf_b; /* No overlap */
4375 found = memmem(buf_a, len_a, buf_b, len_a);
4378 return adj_for_padding(buf_b + len_a, buf_a, len_a);
4383 return buf_b; /* No overlap */