Lines Matching refs:perout
435 struct lan743x_ptp_perout *perout = &ptp->perout[index]; in lan743x_ptp_perout_off() local
437 if (perout->gpio_pin >= 0) { in lan743x_ptp_perout_off()
438 lan743x_gpio_release(adapter, perout->gpio_pin); in lan743x_ptp_perout_off()
439 perout->gpio_pin = -1; in lan743x_ptp_perout_off()
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()
470 struct lan743x_ptp_perout *perout = &ptp->perout[index]; in lan743x_ptp_perout() local
487 if (perout->event_ch >= 0 || in lan743x_ptp_perout()
488 perout->gpio_pin >= 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()
503 perout->gpio_pin = lan743x_gpio_rsrv_ptp_out(adapter, in lan743x_ptp_perout()
505 perout->event_ch); in lan743x_ptp_perout()
507 if (perout->gpio_pin < 0) { 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()
983 if (request->perout.index < ptpci->n_per_out) { in lan743x_ptpci_enable()
986 &request->perout); in lan743x_ptpci_enable()
989 &request->perout); in lan743x_ptpci_enable()
1474 ptp->perout[i].event_ch = -1; in lan743x_ptp_init()
1475 ptp->perout[i].gpio_pin = -1; in lan743x_ptp_init()