Lines Matching defs:tx
70 * @buf_lock: mutex to protect tx and rx
71 * @tx: transmit buffer
77 __be32 tx ____cacheline_aligned;
94 u32 tx;
98 .tx_buf = &st->tx,
100 .len = sizeof(st->tx),
110 tx = ADXRS450_READ_DATA | (reg_address << 17);
112 if (!(hweight32(tx) & 1))
113 tx |= ADXRS450_P;
115 st->tx = cpu_to_be32(tx);
142 u32 tx;
146 tx = ADXRS450_WRITE_DATA | (reg_address << 17) | (val << 1);
148 if (!(hweight32(tx) & 1))
149 tx |= ADXRS450_P;
151 st->tx = cpu_to_be32(tx);
152 ret = spi_write(st->us, &st->tx, sizeof(st->tx));
172 .tx_buf = &st->tx,
174 .len = sizeof(st->tx),
184 st->tx = cpu_to_be32(ADXRS450_SENSOR_DATA);
209 u32 tx;
211 .tx_buf = &st->tx,
214 .len = sizeof(st->tx),
218 tx = ADXRS450_SENSOR_DATA;
220 tx |= (ADXRS450_CHK | ADXRS450_P);
221 st->tx = cpu_to_be32(tx);