Lines Matching refs:period

83 /* The PPR values at which you calculate the period in ns by multiplying
411 /* Translate the period into ns according to the current spec
413 static int period_to_str(char *buf, int period)
417 if (period < 0 || period > 0xff) {
419 } else if (period <= SPI_STATIC_PPR) {
420 picosec = ppr_to_ps[period];
422 picosec = period * 4000;
435 show_spi_transport_period_helper(char *buf, int period)
437 int len = period_to_str(buf, period);
447 int j, picosec, period = -1;
465 period = j;
469 if (period == -1)
470 period = picosec / 4000;
472 if (period > 0xff)
473 period = 0xff;
475 *periodp = period;
493 return show_spi_transport_period_helper(buf, tp->period);
505 int period, retval;
510 retval = store_spi_transport_period_helper(cdev, buf, count, &period);
512 if (period < tp->min_period)
513 period = tp->min_period;
515 i->f->set_period(starget, period);
520 static DEVICE_ATTR(period, S_IRUGO,
755 int period = 0, prevperiod = 0;
786 period = newperiod > period ? newperiod : period;
787 if (period < 0x0d)
788 period++;
790 period += period >> 1;
792 if (unlikely(period > 0xff || period == prevperiod)) {
799 DV_SET(period, period);
800 prevperiod = period;
889 * for a transfer period that requires it */
912 DV_SET(period, min_period);
1134 if (tp->offset > 0 && tp->period > 0) {
1139 if (tp->period <= SPI_STATIC_PPR) {
1140 picosec = ppr_to_ps[tp->period];
1141 switch (tp->period) {
1150 picosec = tp->period * 4000;
1151 if (tp->period < 25)
1153 else if (tp->period < 50)
1193 int spi_populate_sync_msg(unsigned char *msg, int period, int offset)
1198 msg[3] = period;
1204 int spi_populate_ppr_msg(unsigned char *msg, int period, int offset,
1210 msg[3] = period;
1269 printk("period = %s ns ", buf);
1478 return TARGET_ATTRIBUTE_HELPER(period);
1481 return TARGET_ATTRIBUTE_HELPER(period);