Lines Matching refs:ptp_clk_lock
174 struct mutex ptp_clk_lock; /* PHC access sync */ member
440 mutex_lock(&cpts->ptp_clk_lock); in am65_cpts_ptp_adjfine()
497 mutex_unlock(&cpts->ptp_clk_lock); in am65_cpts_ptp_adjfine()
507 mutex_lock(&cpts->ptp_clk_lock); in am65_cpts_ptp_adjtime()
511 mutex_unlock(&cpts->ptp_clk_lock); in am65_cpts_ptp_adjtime()
523 mutex_lock(&cpts->ptp_clk_lock); in am65_cpts_ptp_gettimex()
525 mutex_unlock(&cpts->ptp_clk_lock); in am65_cpts_ptp_gettimex()
536 mutex_lock(&cpts->ptp_clk_lock); in am65_cpts_ns_gettime()
538 mutex_unlock(&cpts->ptp_clk_lock); in am65_cpts_ns_gettime()
551 mutex_lock(&cpts->ptp_clk_lock); in am65_cpts_ptp_settime()
553 mutex_unlock(&cpts->ptp_clk_lock); in am65_cpts_ptp_settime()
584 mutex_lock(&cpts->ptp_clk_lock); in am65_cpts_extts_enable()
586 mutex_unlock(&cpts->ptp_clk_lock); in am65_cpts_extts_enable()
684 mutex_lock(&cpts->ptp_clk_lock); in am65_cpts_perout_enable()
686 mutex_unlock(&cpts->ptp_clk_lock); in am65_cpts_perout_enable()
707 mutex_lock(&cpts->ptp_clk_lock); in am65_cpts_pps_enable()
729 mutex_unlock(&cpts->ptp_clk_lock); in am65_cpts_pps_enable()
1157 mutex_init(&cpts->ptp_clk_lock); in am65_cpts_create()