Lines Matching refs:perout
435 struct lan743x_ptp_perout *perout = &ptp->perout[index];
437 if (perout->gpio_pin >= 0) {
438 lan743x_gpio_release(adapter, perout->gpio_pin);
439 perout->gpio_pin = -1;
442 if (perout->event_ch >= 0) {
445 PTP_CLOCK_TARGET_SEC_X(perout->event_ch),
448 PTP_CLOCK_TARGET_NS_X(perout->event_ch),
453 (perout->event_ch);
455 lan743x_ptp_release_event_ch(adapter, perout->event_ch);
456 perout->event_ch = -1;
470 struct lan743x_ptp_perout *perout = &ptp->perout[index];
487 if (perout->event_ch >= 0 ||
488 perout->gpio_pin >= 0) {
493 perout->event_ch = lan743x_ptp_reserve_event_ch(adapter, index);
495 if (perout->event_ch < 0) {
503 perout->gpio_pin = lan743x_gpio_rsrv_ptp_out(adapter,
505 perout->event_ch);
507 if (perout->gpio_pin < 0) {
537 "perout period too small, minimum is 200nS\n");
601 "perout period too small, minimum is 200nS\n");
613 PTP_CLOCK_TARGET_SEC_X(perout->event_ch),
616 PTP_CLOCK_TARGET_NS_X(perout->event_ch), 0);
621 (perout->event_ch));
623 (perout->event_ch, pulse_width);
625 (perout->event_ch);
630 PTP_CLOCK_TARGET_RELOAD_SEC_X(perout->event_ch),
633 PTP_CLOCK_TARGET_RELOAD_NS_X(perout->event_ch),
638 PTP_CLOCK_TARGET_SEC_X(perout->event_ch),
641 PTP_CLOCK_TARGET_NS_X(perout->event_ch),
784 "perout period too small, min is 200nS\n");
983 if (request->perout.index < ptpci->n_per_out) {
986 &request->perout);
989 &request->perout);
1474 ptp->perout[i].event_ch = -1;
1475 ptp->perout[i].gpio_pin = -1;