Lines Matching refs:olaps

196 	struct fastrpc_buf_overlap *olaps;  member
367 kfree(ctx->olaps); in fastrpc_context_free()
410 ctx->olaps[i].start = ctx->args[i].ptr; in fastrpc_get_buff_overlaps()
411 ctx->olaps[i].end = ctx->olaps[i].start + ctx->args[i].length; in fastrpc_get_buff_overlaps()
412 ctx->olaps[i].raix = i; in fastrpc_get_buff_overlaps()
415 sort(ctx->olaps, ctx->nbufs, sizeof(*ctx->olaps), olaps_cmp, NULL); in fastrpc_get_buff_overlaps()
419 if (ctx->olaps[i].start < max_end) { in fastrpc_get_buff_overlaps()
420 ctx->olaps[i].mstart = max_end; in fastrpc_get_buff_overlaps()
421 ctx->olaps[i].mend = ctx->olaps[i].end; in fastrpc_get_buff_overlaps()
422 ctx->olaps[i].offset = max_end - ctx->olaps[i].start; in fastrpc_get_buff_overlaps()
424 if (ctx->olaps[i].end > max_end) { in fastrpc_get_buff_overlaps()
425 max_end = ctx->olaps[i].end; in fastrpc_get_buff_overlaps()
427 ctx->olaps[i].mend = 0; in fastrpc_get_buff_overlaps()
428 ctx->olaps[i].mstart = 0; in fastrpc_get_buff_overlaps()
432 ctx->olaps[i].mend = ctx->olaps[i].end; in fastrpc_get_buff_overlaps()
433 ctx->olaps[i].mstart = ctx->olaps[i].start; in fastrpc_get_buff_overlaps()
434 ctx->olaps[i].offset = 0; in fastrpc_get_buff_overlaps()
435 max_end = ctx->olaps[i].end; in fastrpc_get_buff_overlaps()
466 ctx->olaps = kcalloc(ctx->nscalars, in fastrpc_context_alloc()
467 sizeof(*ctx->olaps), GFP_KERNEL); in fastrpc_context_alloc()
468 if (!ctx->olaps) { in fastrpc_context_alloc()
511 kfree(ctx->olaps); in fastrpc_context_alloc()
725 if (ctx->olaps[i].offset == 0) in fastrpc_get_payload_size()
728 size += (ctx->olaps[i].mend - ctx->olaps[i].mstart); in fastrpc_get_payload_size()
797 i = ctx->olaps[oix].raix; in fastrpc_get_args()
826 if (ctx->olaps[oix].offset == 0) { in fastrpc_get_args()
831 mlen = ctx->olaps[oix].mend - ctx->olaps[oix].mstart; in fastrpc_get_args()
836 rpra[i].pv = args - ctx->olaps[oix].offset; in fastrpc_get_args()
838 ctx->olaps[oix].offset + in fastrpc_get_args()