• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/scsi/

Lines Matching refs:period

94 /* The PPR values at which you calculate the period in ns by multiplying
420 /* Translate the period into ns according to the current spec
422 static int period_to_str(char *buf, int period)
426 if (period < 0 || period > 0xff) {
428 } else if (period <= SPI_STATIC_PPR) {
429 picosec = ppr_to_ps[period];
431 picosec = period * 4000;
444 show_spi_transport_period_helper(char *buf, int period)
446 int len = period_to_str(buf, period);
456 int j, picosec, period = -1;
474 period = j;
478 if (period == -1)
479 period = picosec / 4000;
481 if (period > 0xff)
482 period = 0xff;
484 *periodp = period;
502 return show_spi_transport_period_helper(buf, tp->period);
514 int period, retval;
519 retval = store_spi_transport_period_helper(cdev, buf, count, &period);
521 if (period < tp->min_period)
522 period = tp->min_period;
524 i->f->set_period(starget, period);
529 static DEVICE_ATTR(period, S_IRUGO,
742 int period = 0, prevperiod = 0;
773 period = newperiod > period ? newperiod : period;
774 if (period < 0x0d)
775 period++;
777 period += period >> 1;
779 if (unlikely(period > 0xff || period == prevperiod)) {
786 DV_SET(period, period);
787 prevperiod = period;
875 * for a transfer period that requires it */
898 DV_SET(period, min_period);
1102 if (tp->offset > 0 && tp->period > 0) {
1107 if (tp->period <= SPI_STATIC_PPR) {
1108 picosec = ppr_to_ps[tp->period];
1109 switch (tp->period) {
1118 picosec = tp->period * 4000;
1119 if (tp->period < 25)
1121 else if (tp->period < 50)
1161 int spi_populate_sync_msg(unsigned char *msg, int period, int offset)
1166 msg[3] = period;
1172 int spi_populate_ppr_msg(unsigned char *msg, int period, int offset,
1178 msg[3] = period;
1215 printk("period = %s ns ", buf);
1422 return TARGET_ATTRIBUTE_HELPER(period);
1425 return TARGET_ATTRIBUTE_HELPER(period);