Lines Matching refs:perout
428 struct lan743x_ptp_perout *perout = &ptp->perout[index];
430 if (perout->gpio_pin >= 0) {
431 lan743x_gpio_release(adapter, perout->gpio_pin);
432 perout->gpio_pin = -1;
435 if (perout->event_ch >= 0) {
438 PTP_CLOCK_TARGET_SEC_X(perout->event_ch),
441 PTP_CLOCK_TARGET_NS_X(perout->event_ch),
446 (perout->event_ch);
448 lan743x_ptp_release_event_ch(adapter, perout->event_ch);
449 perout->event_ch = -1;
463 struct lan743x_ptp_perout *perout = &ptp->perout[index];
476 if (perout->event_ch >= 0 ||
477 perout->gpio_pin >= 0) {
482 perout->event_ch = lan743x_ptp_reserve_event_ch(adapter, index);
484 if (perout->event_ch < 0) {
492 perout->gpio_pin = lan743x_gpio_rsrv_ptp_out(adapter,
494 perout->event_ch);
496 if (perout->gpio_pin < 0) {
526 "perout period too small, minimum is 200nS\n");
590 "perout period too small, minimum is 200nS\n");
602 PTP_CLOCK_TARGET_SEC_X(perout->event_ch),
605 PTP_CLOCK_TARGET_NS_X(perout->event_ch), 0);
610 (perout->event_ch));
612 (perout->event_ch, pulse_width);
614 (perout->event_ch);
619 PTP_CLOCK_TARGET_RELOAD_SEC_X(perout->event_ch),
622 PTP_CLOCK_TARGET_RELOAD_NS_X(perout->event_ch),
627 PTP_CLOCK_TARGET_SEC_X(perout->event_ch),
630 PTP_CLOCK_TARGET_NS_X(perout->event_ch),
773 "perout period too small, min is 200nS\n");
972 if (request->perout.index < ptpci->n_per_out) {
975 &request->perout);
978 &request->perout);
1463 ptp->perout[i].event_ch = -1;
1464 ptp->perout[i].gpio_pin = -1;