Lines Matching refs:event_ch

442 	if (perout->event_ch >= 0) {  in lan743x_ptp_perout_off()
445 PTP_CLOCK_TARGET_SEC_X(perout->event_ch), in lan743x_ptp_perout_off()
448 PTP_CLOCK_TARGET_NS_X(perout->event_ch), in lan743x_ptp_perout_off()
453 (perout->event_ch); in lan743x_ptp_perout_off()
455 lan743x_ptp_release_event_ch(adapter, perout->event_ch); in lan743x_ptp_perout_off()
456 perout->event_ch = -1; in lan743x_ptp_perout_off()
487 if (perout->event_ch >= 0 || in lan743x_ptp_perout()
493 perout->event_ch = lan743x_ptp_reserve_event_ch(adapter, index); in lan743x_ptp_perout()
495 if (perout->event_ch < 0) { in lan743x_ptp_perout()
505 perout->event_ch); in lan743x_ptp_perout()
613 PTP_CLOCK_TARGET_SEC_X(perout->event_ch), in lan743x_ptp_perout()
616 PTP_CLOCK_TARGET_NS_X(perout->event_ch), 0); in lan743x_ptp_perout()
621 (perout->event_ch)); in lan743x_ptp_perout()
623 (perout->event_ch, pulse_width); in lan743x_ptp_perout()
625 (perout->event_ch); in lan743x_ptp_perout()
630 PTP_CLOCK_TARGET_RELOAD_SEC_X(perout->event_ch), in lan743x_ptp_perout()
633 PTP_CLOCK_TARGET_RELOAD_NS_X(perout->event_ch), in lan743x_ptp_perout()
638 PTP_CLOCK_TARGET_SEC_X(perout->event_ch), in lan743x_ptp_perout()
641 PTP_CLOCK_TARGET_NS_X(perout->event_ch), in lan743x_ptp_perout()
656 int event_ch; in lan743x_ptp_io_perout_off() local
660 event_ch = ptp->ptp_io_perout[index]; in lan743x_ptp_io_perout_off()
661 if (event_ch >= 0) { in lan743x_ptp_io_perout_off()
664 PTP_CLOCK_TARGET_SEC_X(event_ch), in lan743x_ptp_io_perout_off()
667 PTP_CLOCK_TARGET_NS_X(event_ch), in lan743x_ptp_io_perout_off()
672 (event_ch)); in lan743x_ptp_io_perout_off()
673 gen_cfg &= ~(HS_PTP_GENERAL_CONFIG_EVENT_POL_X_(event_ch)); in lan743x_ptp_io_perout_off()
674 gen_cfg |= HS_PTP_GENERAL_CONFIG_RELOAD_ADD_X_(event_ch); in lan743x_ptp_io_perout_off()
676 if (event_ch) in lan743x_ptp_io_perout_off()
682 lan743x_ptp_release_event_ch(adapter, event_ch); in lan743x_ptp_io_perout_off()
712 int event_ch; in lan743x_ptp_io_perout() local
718 event_ch = ptp->ptp_io_perout[index]; in lan743x_ptp_io_perout()
729 if (event_ch >= LAN743X_PTP_N_EVENT_CHAN) { in lan743x_ptp_io_perout()
734 event_ch = lan743x_ptp_reserve_event_ch(adapter, index); in lan743x_ptp_io_perout()
735 if (event_ch < 0) { in lan743x_ptp_io_perout()
741 ptp->ptp_io_perout[index] = event_ch; in lan743x_ptp_io_perout()
793 PTP_CLOCK_TARGET_SEC_X(event_ch), in lan743x_ptp_io_perout()
796 PTP_CLOCK_TARGET_NS_X(event_ch), 0); in lan743x_ptp_io_perout()
800 gen_cfg &= ~(HS_PTP_GENERAL_CONFIG_CLOCK_EVENT_X_MASK_(event_ch)); in lan743x_ptp_io_perout()
802 (event_ch, pulse_width); in lan743x_ptp_io_perout()
803 gen_cfg |= HS_PTP_GENERAL_CONFIG_EVENT_POL_X_(event_ch); in lan743x_ptp_io_perout()
804 gen_cfg &= ~(HS_PTP_GENERAL_CONFIG_RELOAD_ADD_X_(event_ch)); in lan743x_ptp_io_perout()
812 PTP_CLOCK_TARGET_RELOAD_SEC_X(event_ch), in lan743x_ptp_io_perout()
815 PTP_CLOCK_TARGET_RELOAD_NS_X(event_ch), in lan743x_ptp_io_perout()
824 PTP_CLOCK_TARGET_SEC_X(event_ch), in lan743x_ptp_io_perout()
827 PTP_CLOCK_TARGET_NS_X(event_ch), in lan743x_ptp_io_perout()
842 if (event_ch) in lan743x_ptp_io_perout()
1474 ptp->perout[i].event_ch = -1; in lan743x_ptp_init()