Lines Matching refs:buf_b

4235  * @buf_b: second buffer
4242 * Return: A pointer into @buf_b from where non-overlapped data starts
4244 static unsigned char *adj_for_padding(unsigned char *buf_b,
4247 unsigned char *p = buf_b - MAX_PADDING;
4264 * @buf_b: second buffer
4266 * @consecutive: returns true if there is data in buf_b that is consecutive
4271 * first TSC of @buf_b in order to determine if the buffers overlap, and then
4272 * walk forward in @buf_b until a later TSC is found. A precondition is that
4273 * @buf_a and @buf_b are positioned at a PSB.
4275 * Return: A pointer into @buf_b from where non-overlapped data starts, or
4276 * @buf_b + @len_b if there is no non-overlapped data.
4280 unsigned char *buf_b,
4290 return buf_b; /* No PSB in buf_a => no overlap */
4298 return buf_b; /* No full PSB+ => assume no overlap */
4301 return buf_b; /* No TSC in buf_a => assume no overlap */
4306 if (intel_pt_next_tsc(buf_b, len_b, &tsc_b, &rem_b)) {
4314 start = buf_b + len_b - (rem_b - rem_a);
4318 return buf_b; /* tsc_a < tsc_b => no overlap */
4321 if (!intel_pt_step_psb(&buf_b, &len_b))
4322 return buf_b + len_b; /* No PSB in buf_b => no data */
4330 * @buf_b: second buffer
4333 * @consecutive: returns true if there is data in buf_b that is consecutive
4341 * Return: A pointer into @buf_b from where non-overlapped data starts, or
4342 * @buf_b + @len_b if there is no non-overlapped data.
4345 unsigned char *buf_b, size_t len_b,
4352 if (!intel_pt_next_psb(&buf_b, &len_b))
4353 return buf_b + len_b; /* No PSB */
4356 return buf_b; /* No overlap */
4359 found = intel_pt_find_overlap_tsc(buf_a, len_a, buf_b, len_b,
4371 return buf_b; /* No overlap */
4377 found = memmem(buf_a, len_a, buf_b, len_a);
4380 return adj_for_padding(buf_b + len_a, buf_a, len_a);
4385 return buf_b; /* No overlap */