Lines Matching refs:period

83 /* The PPR values at which you calculate the period in ns by multiplying
410 /* Translate the period into ns according to the current spec
412 static int period_to_str(char *buf, int period)
416 if (period < 0 || period > 0xff) {
418 } else if (period <= SPI_STATIC_PPR) {
419 picosec = ppr_to_ps[period];
421 picosec = period * 4000;
434 show_spi_transport_period_helper(char *buf, int period)
436 int len = period_to_str(buf, period);
446 int j, picosec, period = -1;
464 period = j;
468 if (period == -1)
469 period = picosec / 4000;
471 if (period > 0xff)
472 period = 0xff;
474 *periodp = period;
492 return show_spi_transport_period_helper(buf, tp->period);
504 int period, retval;
509 retval = store_spi_transport_period_helper(cdev, buf, count, &period);
511 if (period < tp->min_period)
512 period = tp->min_period;
514 i->f->set_period(starget, period);
519 static DEVICE_ATTR(period, S_IRUGO,
754 int period = 0, prevperiod = 0;
785 period = newperiod > period ? newperiod : period;
786 if (period < 0x0d)
787 period++;
789 period += period >> 1;
791 if (unlikely(period > 0xff || period == prevperiod)) {
798 DV_SET(period, period);
799 prevperiod = period;
888 * for a transfer period that requires it */
911 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);