/drivers/spi/ |
H A D | spi-txx9.c | 119 u8 bits_per_word; local 126 bits_per_word = spi->bits_per_word; 127 if (bits_per_word != 8 && bits_per_word != 16) 192 u8 bits_per_word = t->bits_per_word ? : spi->bits_per_word; local 194 bits_per_word = bits_per_word 319 u8 bits_per_word = t->bits_per_word ? : spi->bits_per_word; local [all...] |
H A D | spi-xilinx.c | 90 u8 bits_per_word; member in struct:xilinx_spi 222 u8 bits_per_word; local 224 bits_per_word = (t && t->bits_per_word) 225 ? t->bits_per_word : spi->bits_per_word; 226 if (bits_per_word != xspi->bits_per_word) { 227 dev_err(&spi->dev, "%s, unsupported bits_per_word=%d\n", 228 __func__, bits_per_word); 361 xilinx_spi_init(struct device *dev, struct resource *mem, u32 irq, s16 bus_num, int num_cs, int little_endian, int bits_per_word) argument 469 int irq, num_cs = 0, little_endian = 0, bits_per_word = 8; local [all...] |
H A D | spi-fsl-espi.c | 134 int bits_per_word = 0; local 140 bits_per_word = t->bits_per_word; 145 if (!bits_per_word) 146 bits_per_word = spi->bits_per_word; 149 if ((bits_per_word < 4) || (bits_per_word > 16)) 159 if (bits_per_word <= 8) { 160 cs->rx_shift = 8 - bits_per_word; 225 u8 bits_per_word; local [all...] |
H A D | spi-orion.c | 141 unsigned int bits_per_word = spi->bits_per_word; local 149 if ((t != NULL) && t->bits_per_word) 150 bits_per_word = t->bits_per_word; 156 return orion_spi_set_transfer_size(orion_spi, bits_per_word); 251 word_len = spi->bits_per_word; 308 if (par_override || t->speed_hz || t->bits_per_word) { 313 if (!t->speed_hz && !t->bits_per_word) 399 unsigned int bits_per_word local [all...] |
H A D | spi-fsl-spi.c | 167 int bits_per_word) 171 if (bits_per_word <= 8) { 178 } else if (bits_per_word <= 16) { 185 } else if (bits_per_word <= 32) { 194 if (bits_per_word <= 8) 204 return bits_per_word; 209 int bits_per_word) 218 bits_per_word > 8) 220 if (bits_per_word > 8) 222 return bits_per_word; 164 mspi_apply_cpu_mode_quirks(struct spi_mpc8xxx_cs *cs, struct spi_device *spi, struct mpc8xxx_spi *mpc8xxx_spi, int bits_per_word) argument 207 mspi_apply_qe_mode_quirks(struct spi_mpc8xxx_cs *cs, struct spi_device *spi, int bits_per_word) argument 229 int bits_per_word = 0; local 426 u8 bits_per_word; local [all...] |
H A D | spi-bitbang.c | 72 unsigned bits = t->bits_per_word ? : spi->bits_per_word; 98 unsigned bits = t->bits_per_word ? : spi->bits_per_word; 124 unsigned bits = t->bits_per_word ? : spi->bits_per_word; 145 u8 bits_per_word; local 149 bits_per_word = t->bits_per_word; 152 bits_per_word [all...] |
H A D | spi-mpc512x-psc.c | 41 u8 bits_per_word; member in struct:mpc512x_psc_spi 57 int bits_per_word; member in struct:mpc512x_psc_spi_cs 71 cs->bits_per_word = (t && t->bits_per_word) 72 ? t->bits_per_word : spi->bits_per_word; 73 cs->bits_per_word = ((cs->bits_per_word + 7) / 8) * 8; 114 mps->bits_per_word = cs->bits_per_word; [all...] |
H A D | spi-mpc52xx-psc.c | 43 u8 bits_per_word; member in struct:mpc52xx_psc_spi 57 int bits_per_word; member in struct:mpc52xx_psc_spi_cs 71 cs->bits_per_word = (t && t->bits_per_word) 72 ? t->bits_per_word : spi->bits_per_word; 73 cs->bits_per_word = ((cs->bits_per_word + 7) / 8) * 8; 114 mps->bits_per_word = cs->bits_per_word; [all...] |
H A D | spi-ppc4xx.c | 176 u8 bits_per_word; local 179 bits_per_word = spi->bits_per_word; 187 if (t->bits_per_word) 188 bits_per_word = t->bits_per_word; 194 if (bits_per_word != 8) { 196 bits_per_word); 233 if (spi->bits_per_word != 8) { 235 spi->bits_per_word); [all...] |
H A D | spi-coldfire-qspi.c | 330 if (xfer->bits_per_word) 331 qmr |= xfer->bits_per_word << 10; 333 qmr |= spi->bits_per_word << 10; 347 if ((xfer->bits_per_word ? xfer->bits_per_word : 348 spi->bits_per_word) == 8) 392 if (xfer->bits_per_word && ((xfer->bits_per_word < 8) 393 || (xfer->bits_per_word > 16))) { 396 xfer->bits_per_word); [all...] |
H A D | spi-omap-100k.c | 275 u8 word_len = spi->bits_per_word; 277 if (t != NULL && t->bits_per_word) 278 word_len = t->bits_per_word; 282 if (spi->bits_per_word > 32) 303 if (spi->bits_per_word < 4 || spi->bits_per_word > 32) { 305 spi->bits_per_word); 371 if (par_override || t->speed_hz || t->bits_per_word) { 376 if (!t->speed_hz && !t->bits_per_word) 457 || (t->bits_per_word [all...] |
H A D | spi-ep93xx.c | 301 if (spi->bits_per_word < 4 || spi->bits_per_word > 16) { 303 spi->bits_per_word); 342 chip->dss = bits_per_word_to_dss(spi->bits_per_word); 370 if (t->bits_per_word) { 371 if (t->bits_per_word < 4 || t->bits_per_word > 16) 446 static inline int bits_per_word(const struct ep93xx_spi *espi) function 451 return t->bits_per_word ? t->bits_per_word [all...] |
H A D | spi-stmp.c | 128 u8 bits_per_word; local 133 bits_per_word = spi->bits_per_word; 134 if (t && t->bits_per_word) 135 bits_per_word = t->bits_per_word; 154 if (bits_per_word != 8) { 155 dev_err(&spi->dev, "%s, unsupported bits_per_word=%d\n", 156 __func__, bits_per_word); 191 if (spi->bits_per_word ! [all...] |
H A D | spi-tegra.c | 251 u8 bits_per_word; local 255 bits_per_word = t->bits_per_word ? t->bits_per_word : 256 spi->bits_per_word; 258 tspi->cur_bytes_per_word = (bits_per_word - 1) / 8 + 1; 280 val |= SLINK_BIT_LENGTH(bits_per_word - 1); 392 spi->bits_per_word, 444 if (t->bits_per_word < 0 || t->bits_per_word > 3 [all...] |
H A D | spi-omap-uwire.c | 102 unsigned bits_per_word; member in struct:uwire_state 215 unsigned bits = ust->bits_per_word; 341 bits = spi->bits_per_word; 342 if (t != NULL && t->bits_per_word) 343 bits = t->bits_per_word; 350 ust->bits_per_word = bits;
|
H A D | spi-pxa2xx.c | 164 u8 bits_per_word; member in struct:chip_data 825 u8 bits_per_word, u32 *burst_code, 854 if (bits_per_word <= 8) 856 else if (bits_per_word <= 16) 1023 if (transfer->speed_hz || transfer->bits_per_word) { 1025 bits = chip->bits_per_word; 1031 if (transfer->bits_per_word) 1032 bits = transfer->bits_per_word; 1068 "match bits_per_word\n"); 1296 && (spi->bits_per_word < 823 set_dma_burst_and_threshold(struct chip_data *chip, struct spi_device *spi, u8 bits_per_word, u32 *burst_code, u32 *threshold) argument [all...] |
H A D | spi-ti-ssp.c | 205 int bpw = spi->bits_per_word; 208 if (t->bits_per_word) 209 bpw = t->bits_per_word; 242 if (spi->bits_per_word > 32) 273 if (t->bits_per_word > 32) { 275 t->bits_per_word);
|
H A D | spi-bfin5xx.c | 564 unsigned int bits_per_word; local 644 bits_per_word = transfer->bits_per_word ? : 645 message->spi->bits_per_word ? : 8; 646 if (bits_per_word % 16 == 0) { 647 drv_data->n_bytes = bits_per_word/8; 651 } else if (bits_per_word % 8 == 0) { 652 drv_data->n_bytes = bits_per_word/8; 657 dev_err(&drv_data->pdev->dev, "transfer: unsupported bits_per_word\n"); 811 if (bits_per_word [all...] |
H A D | spi-davinci.c | 283 u8 bits_per_word = 0; local 292 bits_per_word = t->bits_per_word; 296 /* if bits_per_word is not set then set it default */ 297 if (!bits_per_word) 298 bits_per_word = spi->bits_per_word; 304 if (bits_per_word <= 8 && bits_per_word >= 2) { 308 } else if (bits_per_word < [all...] |
/drivers/staging/iio/meter/ |
H A D | ade7854-spi.c | 28 .bits_per_word = 8, 56 .bits_per_word = 8, 85 .bits_per_word = 8, 115 .bits_per_word = 8, 147 .bits_per_word = 8, 151 .bits_per_word = 8, 189 .bits_per_word = 8, 193 .bits_per_word = 8, 230 .bits_per_word = 8, 234 .bits_per_word [all...] |
H A D | ade7758_ring.c | 176 st->ring_xfer[0].bits_per_word = 8; 180 st->ring_xfer[1].bits_per_word = 8; 185 st->ring_xfer[2].bits_per_word = 8; 189 st->ring_xfer[3].bits_per_word = 8;
|
/drivers/mfd/ |
H A D | tps65912-spi.c | 43 xfer.bits_per_word = 24; 70 xfer.bits_per_word = 24;
|
/drivers/misc/ |
H A D | ti_dac7512.c | 61 spi->bits_per_word = 8;
|
/drivers/staging/iio/imu/ |
H A D | adis16400_ring.c | 30 .bits_per_word = 8, 34 .bits_per_word = 8, 93 xfers[j].bits_per_word = 16; 98 xfers[j].bits_per_word = 16;
|
/drivers/misc/eeprom/ |
H A D | eeprom_93xx46.c | 77 t[0].bits_per_word = bits; 82 t[1].bits_per_word = 8; 128 t.bits_per_word = bits; 178 t[0].bits_per_word = bits; 183 t[1].bits_per_word = 8; 268 t.bits_per_word = bits;
|