Lines Matching refs:perout
458 struct lan743x_ptp_perout *perout = &ptp->perout[index];
460 if (perout->gpio_pin >= 0) {
461 lan743x_gpio_release(adapter, perout->gpio_pin);
462 perout->gpio_pin = -1;
465 if (perout->event_ch >= 0) {
468 PTP_CLOCK_TARGET_SEC_X(perout->event_ch),
471 PTP_CLOCK_TARGET_NS_X(perout->event_ch),
476 (perout->event_ch);
478 lan743x_ptp_release_event_ch(adapter, perout->event_ch);
479 perout->event_ch = -1;
493 struct lan743x_ptp_perout *perout = &ptp->perout[index];
509 if (perout->event_ch >= 0 ||
510 perout->gpio_pin >= 0) {
515 perout->event_ch = lan743x_ptp_reserve_event_ch(adapter, index);
517 if (perout->event_ch < 0) {
524 perout->gpio_pin = lan743x_gpio_rsrv_ptp_out(adapter,
526 perout->event_ch);
528 if (perout->gpio_pin < 0) {
558 "perout period too small, minimum is 200nS\n");
567 PTP_CLOCK_TARGET_SEC_X(perout->event_ch),
570 PTP_CLOCK_TARGET_NS_X(perout->event_ch), 0);
575 (perout->event_ch));
577 (perout->event_ch, pulse_width);
579 (perout->event_ch);
584 PTP_CLOCK_TARGET_RELOAD_SEC_X(perout->event_ch),
587 PTP_CLOCK_TARGET_RELOAD_NS_X(perout->event_ch),
592 PTP_CLOCK_TARGET_SEC_X(perout->event_ch),
595 PTP_CLOCK_TARGET_NS_X(perout->event_ch),
618 if (request->perout.index < ptpci->n_per_out)
620 &request->perout);
959 ptp->perout[i].event_ch = -1;
960 ptp->perout[i].gpio_pin = -1;