Lines Matching refs:per_id
15 static inline int imx_rdc_check_sema_required(int per_id) in imx_rdc_check_sema_required() argument
20 reg = readl(&imx_rdc->pdap[per_id]); in imx_rdc_check_sema_required()
34 int imx_rdc_check_permission(int per_id, int dom_id) in imx_rdc_check_permission() argument
39 reg = readl(&imx_rdc->pdap[per_id]); in imx_rdc_check_permission()
49 int imx_rdc_sema_lock(int per_id) in imx_rdc_sema_lock() argument
55 ret = imx_rdc_check_sema_required(per_id); in imx_rdc_sema_lock()
59 if (per_id < SEMA_GATES_NUM) in imx_rdc_sema_lock()
66 &imx_rdc_sema->gate[per_id % SEMA_GATES_NUM]); in imx_rdc_sema_lock()
67 reg = readb(&imx_rdc_sema->gate[per_id % SEMA_GATES_NUM]); in imx_rdc_sema_lock()
79 int imx_rdc_sema_unlock(int per_id) in imx_rdc_sema_unlock() argument
85 ret = imx_rdc_check_sema_required(per_id); in imx_rdc_sema_unlock()
89 if (per_id < SEMA_GATES_NUM) in imx_rdc_sema_unlock()
94 reg = readb(&imx_rdc_sema->gate[per_id % SEMA_GATES_NUM]); in imx_rdc_sema_unlock()
98 writeb(0x0, &imx_rdc_sema->gate[per_id % SEMA_GATES_NUM]); in imx_rdc_sema_unlock()