linux/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_lm.c
/**
 * _stage_offset(): returns the relative offset of the blend registers
 * for the stage to be setup
 * @c:     mixer ctx contains the mixer to be programmed
 * @stage: stage index to setup
 */
returns the relative offset of the blend registers
for the stage to be setup
@c:     mixer ctx contains the mixer to be programmed
@stage: stage index to setup
returns the relative offset of the blend registers for the stage to be setup @c : mixer ctx contains the mixer to be programmed @stage : stage index to setup
static inline int _stage_offset(struct dpu_hw_mixer *ctx, enum dpu_stage stage)
{
	const struct dpu_lm_sub_blks *sblk = ctx->cap->sblk;
	int rc;
	if (stage == DPU_STAGE_BASE)
		rc = -EINVAL;
	else if (stage <= sblk->maxblendstages)
		rc = sblk->blendstage_base[stage - DPU_STAGE_0];
	else
		rc = -EINVAL;
	return rc;
}
static inline int _stage_offset ( struct dpu_hw_mixer * ctx , enum dpu_stage stage ) { const struct dpu_lm_sub_blks * sblk = ctx -> cap -> sblk ; int rc ; if ( stage == DPU_STAGE_BASE ) rc = - EINVAL ; else if ( stage <= sblk -> maxblendstages ) rc = sblk -> blendstage_base [ stage - DPU_STAGE_0 ] ; else rc = - EINVAL ; return rc ; }
_stage_offset(): returns the relative offset of the blend registers
 for the stage to be setup
 @c:     mixer ctx contains the mixer to be programmed
 @stage: stage index to setup
_stage_offset () : returns the relative offset of the blend registers for the stage to be setup @c : mixer ctx contains the mixer to be programmed @stage : stage index to setup