• Home
  • Raw
  • Download

Lines Matching refs:period

413 static int period_to_str(char *buf, int period)  in period_to_str()  argument
417 if (period < 0 || period > 0xff) { in period_to_str()
419 } else if (period <= SPI_STATIC_PPR) { in period_to_str()
420 picosec = ppr_to_ps[period]; in period_to_str()
422 picosec = period * 4000; in period_to_str()
435 show_spi_transport_period_helper(char *buf, int period) in show_spi_transport_period_helper() argument
437 int len = period_to_str(buf, period); in show_spi_transport_period_helper()
447 int j, picosec, period = -1; in store_spi_transport_period_helper() local
465 period = j; in store_spi_transport_period_helper()
469 if (period == -1) in store_spi_transport_period_helper()
470 period = picosec / 4000; in store_spi_transport_period_helper()
472 if (period > 0xff) in store_spi_transport_period_helper()
473 period = 0xff; in store_spi_transport_period_helper()
475 *periodp = period; in store_spi_transport_period_helper()
493 return show_spi_transport_period_helper(buf, tp->period); in show_spi_transport_period()
505 int period, retval; in store_spi_transport_period() local
510 retval = store_spi_transport_period_helper(cdev, buf, count, &period); in store_spi_transport_period()
512 if (period < tp->min_period) in store_spi_transport_period()
513 period = tp->min_period; in store_spi_transport_period()
515 i->f->set_period(starget, period); in store_spi_transport_period()
520 static DEVICE_ATTR(period, S_IRUGO,
755 int period = 0, prevperiod = 0; in spi_dv_retrain() local
786 period = newperiod > period ? newperiod : period; in spi_dv_retrain()
787 if (period < 0x0d) in spi_dv_retrain()
788 period++; in spi_dv_retrain()
790 period += period >> 1; in spi_dv_retrain()
792 if (unlikely(period > 0xff || period == prevperiod)) { in spi_dv_retrain()
799 DV_SET(period, period); in spi_dv_retrain()
800 prevperiod = period; in spi_dv_retrain()
912 DV_SET(period, min_period); in spi_dv_device_internal()
1134 if (tp->offset > 0 && tp->period > 0) { in spi_display_xfer_agreement()
1139 if (tp->period <= SPI_STATIC_PPR) { in spi_display_xfer_agreement()
1140 picosec = ppr_to_ps[tp->period]; in spi_display_xfer_agreement()
1141 switch (tp->period) { in spi_display_xfer_agreement()
1150 picosec = tp->period * 4000; in spi_display_xfer_agreement()
1151 if (tp->period < 25) in spi_display_xfer_agreement()
1153 else if (tp->period < 50) in spi_display_xfer_agreement()
1193 int spi_populate_sync_msg(unsigned char *msg, int period, int offset) in spi_populate_sync_msg() argument
1198 msg[3] = period; in spi_populate_sync_msg()
1204 int spi_populate_ppr_msg(unsigned char *msg, int period, int offset, in spi_populate_ppr_msg() argument
1210 msg[3] = period; in spi_populate_ppr_msg()
1478 return TARGET_ATTRIBUTE_HELPER(period); in target_attribute_is_visible()
1481 return TARGET_ATTRIBUTE_HELPER(period); in target_attribute_is_visible()