Lines Matching refs:tp
286 struct spi_transport_attrs *tp; \
288 tp = (struct spi_transport_attrs *)&starget->starget_data; \
289 return snprintf(buf, 20, format_string, tp->field); \
301 struct spi_transport_attrs *tp; \
303 tp = (struct spi_transport_attrs *)&starget->starget_data; \
305 tp->field = val; \
317 struct spi_transport_attrs *tp; \
319 tp = (struct spi_transport_attrs *)&starget->starget_data; \
322 return snprintf(buf, 20, format_string, tp->field); \
353 struct spi_transport_attrs *tp \
359 if (val > tp->max_##field) \
360 val = tp->max_##field; \
497 struct spi_transport_attrs *tp = in show_spi_transport_period() local
503 return show_spi_transport_period_helper(buf, tp->period); in show_spi_transport_period()
513 struct spi_transport_attrs *tp = in store_spi_transport_period() local
522 if (period < tp->min_period) in store_spi_transport_period()
523 period = tp->min_period; in store_spi_transport_period()
541 struct spi_transport_attrs *tp = in show_spi_transport_min_period() local
547 return show_spi_transport_period_helper(buf, tp->min_period); in show_spi_transport_min_period()
556 struct spi_transport_attrs *tp = in store_spi_transport_min_period() local
560 &tp->min_period); in store_spi_transport_min_period()
1123 struct spi_transport_attrs *tp; in spi_display_xfer_agreement() local
1124 tp = (struct spi_transport_attrs *)&starget->starget_data; in spi_display_xfer_agreement()
1126 if (tp->offset > 0 && tp->period > 0) { in spi_display_xfer_agreement()
1131 if (tp->period <= SPI_STATIC_PPR) { in spi_display_xfer_agreement()
1132 picosec = ppr_to_ps[tp->period]; in spi_display_xfer_agreement()
1133 switch (tp->period) { in spi_display_xfer_agreement()
1142 picosec = tp->period * 4000; in spi_display_xfer_agreement()
1143 if (tp->period < 25) in spi_display_xfer_agreement()
1145 else if (tp->period < 50) in spi_display_xfer_agreement()
1152 if (tp->width) in spi_display_xfer_agreement()
1158 scsi, tp->width ? "WIDE " : "", kb100/10, kb100 % 10, in spi_display_xfer_agreement()
1159 tp->dt ? "DT" : "ST", in spi_display_xfer_agreement()
1160 tp->iu ? " IU" : "", in spi_display_xfer_agreement()
1161 tp->qas ? " QAS" : "", in spi_display_xfer_agreement()
1162 tp->rd_strm ? " RDSTRM" : "", in spi_display_xfer_agreement()
1163 tp->rti ? " RTI" : "", in spi_display_xfer_agreement()
1164 tp->wr_flow ? " WRFLOW" : "", in spi_display_xfer_agreement()
1165 tp->pcomp_en ? " PCOMP" : "", in spi_display_xfer_agreement()
1166 tp->hold_mcs ? " HMCS" : "", in spi_display_xfer_agreement()
1167 tmp, tp->offset); in spi_display_xfer_agreement()
1170 tp->width ? "wide " : ""); in spi_display_xfer_agreement()