Searched refs:bits_per_word (Results 1 - 25 of 193) sorted by relevance

12345678

/linux-master/include/linux/spi/
H A Dxilinx_spi.h9 * @bits_per_word: Number of bits per word.
15 u8 bits_per_word; member in struct:xspi_platform_data
/linux-master/drivers/spi/
H A Dspi-fsl-spi.c115 int bits_per_word, int msb_first)
120 if (bits_per_word <= 8) {
123 } else if (bits_per_word <= 16) {
128 if (bits_per_word <= 8)
134 int bits_per_word, int msb_first)
138 if (bits_per_word <= 16) {
141 *tx_shift = 32 - bits_per_word; /* MSB in bit 31 */
143 *rx_shift = 16 - bits_per_word; /* MSB in bit 15 */
151 int bits_per_word)
155 if (bits_per_word <
114 fsl_spi_qe_cpu_set_shifts(u32 *rx_shift, u32 *tx_shift, int bits_per_word, int msb_first) argument
133 fsl_spi_grlib_set_shifts(u32 *rx_shift, u32 *tx_shift, int bits_per_word, int msb_first) argument
148 mspi_apply_cpu_mode_quirks(struct spi_mpc8xxx_cs *cs, struct spi_device *spi, struct mpc8xxx_spi *mpc8xxx_spi, int bits_per_word) argument
181 int bits_per_word = 0; local
258 u8 bits_per_word; local
[all...]
H A Dspi-mpc52xx-psc.c33 u8 bits_per_word; member in struct:mpc52xx_psc_spi
40 int bits_per_word; member in struct:mpc52xx_psc_spi_cs
54 cs->bits_per_word = (t && t->bits_per_word)
55 ? t->bits_per_word : spi->bits_per_word;
56 cs->bits_per_word = ((cs->bits_per_word + 7) / 8) * 8;
97 mps->bits_per_word = cs->bits_per_word;
[all...]
H A Dspi-bitbang.c65 unsigned bits = t->bits_per_word;
94 unsigned bits = t->bits_per_word;
123 unsigned bits = t->bits_per_word;
144 u8 bits_per_word; local
148 bits_per_word = t->bits_per_word;
151 bits_per_word = 0;
156 if (!bits_per_word)
157 bits_per_word = spi->bits_per_word;
[all...]
H A Dspi-mpc512x-psc.c57 u8 bits_per_word; member in struct:mpc512x_psc_spi
65 int bits_per_word; member in struct:mpc512x_psc_spi_cs
79 cs->bits_per_word = (t && t->bits_per_word)
80 ? t->bits_per_word : spi->bits_per_word;
81 cs->bits_per_word = ((cs->bits_per_word + 7) / 8) * 8;
122 mps->bits_per_word = cs->bits_per_word;
[all...]
H A Dspi-npcm-pspi.c28 u8 bits_per_word; member in struct:npcm_pspi
178 if (priv->bits_per_word == 8 && !(t->len & 0x1))
179 t->bits_per_word = 16;
181 if (!priv->is_save_param || priv->bits_per_word != t->bits_per_word) {
182 npcm_pspi_set_transfer_size(priv, t->bits_per_word);
183 priv->bits_per_word = t->bits_per_word;
200 wsize = min(bytes_per_word(priv->bits_per_word), priv->tx_bytes);
227 rsize = min(bytes_per_word(priv->bits_per_word), pri
[all...]
H A Dspi-axi-spi-engine.c144 if (xfer->bits_per_word <= 8)
146 else if (xfer->bits_per_word <= 16)
225 u8 bits_per_word = 0; local
246 if (bits_per_word != xfer->bits_per_word) {
247 bits_per_word = xfer->bits_per_word;
250 bits_per_word));
373 if (st->tx_xfer->bits_per_word <= 8) {
381 } else if (st->tx_xfer->bits_per_word <
[all...]
H A Dspi-bcm-qspi.c180 u8 bits_per_word; member in struct:bcm_qspi_parms
606 (cur->bits_per_word != prev->bits_per_word);
632 if (xp->bits_per_word != 16 && xp->bits_per_word != 64)
633 spcr |= xp->bits_per_word << MSPI_SPCR0_MSB_BITS_SHIFT;
661 if (xp->bits_per_word > 16) {
700 xp.bits_per_word = trans->bits_per_word;
710 if (spi->bits_per_word > 6
[all...]
H A Dspi-xilinx.c395 int ret, num_cs = 0, bits_per_word; local
404 bits_per_word = pdata->bits_per_word;
411 &bits_per_word);
413 bits_per_word = 8;
469 host->bits_per_word_mask = SPI_BPW_MASK(bits_per_word);
470 xspi->bytes_per_word = bits_per_word / 8;
H A Dspi-pic32.c107 u32 bits_per_word; member in struct:pic32_spi
388 static int pic32_spi_set_word_size(struct pic32_spi *pic32s, u8 bits_per_word) argument
393 switch (bits_per_word) {
419 bits_per_word / 8);
449 /* set device specific bits_per_word */
450 if (pic32s->bits_per_word != spi->bits_per_word) {
451 pic32_spi_set_word_size(pic32s, spi->bits_per_word);
452 pic32s->bits_per_word = spi->bits_per_word;
[all...]
H A Dspi-imx.c105 unsigned int bits_per_word; member in struct:spi_imx_data
223 static int spi_imx_bytes_per_word(const int bits_per_word) argument
225 if (bits_per_word <= 8)
227 else if (bits_per_word <= 16)
315 bytes_per_word = spi_imx_bytes_per_word(spi_imx->bits_per_word);
340 if (spi_imx_bytes_per_word(spi_imx->bits_per_word) == 2) {
370 bytes_per_word = spi_imx_bytes_per_word(spi_imx->bits_per_word);
392 if (spi_imx_bytes_per_word(spi_imx->bits_per_word) == 2) {
664 ctrl |= (spi_imx->bits_per_word - 1)
671 ctrl |= (spi_imx->count / DIV_ROUND_UP(spi_imx->bits_per_word,
[all...]
H A Dspi-lantiq-ssc.c181 unsigned int bits_per_word; member in struct:lantiq_ssc_spi
297 unsigned int bits_per_word)
301 /* CON.BM value = bits_per_word - 1 */
302 bm = (bits_per_word - 1) << LTQ_SPI_CON_BM_S;
367 hw_setup_bits_per_word(spi, spi->bits_per_word);
435 unsigned int bits_per_word = t->bits_per_word; local
438 if (bits_per_word != spi->bits_per_word ||
442 hw_setup_bits_per_word(spi, bits_per_word);
296 hw_setup_bits_per_word(const struct lantiq_ssc_spi *spi, unsigned int bits_per_word) argument
[all...]
/linux-master/drivers/input/touchscreen/
H A Dtsc2005.c30 .bits_per_word = 8,
54 spi->bits_per_word = 8;
/linux-master/drivers/net/wireless/silabs/wfx/
H A Dbus_spi.c61 * A little endian host with bits_per_word == 16 should do the right job natively. The code below to
198 if (!func->bits_per_word)
199 func->bits_per_word = 16;
211 spi_get_chipselect(func, 0), func->mode, func->bits_per_word, func->max_speed_hz);
212 if (func->bits_per_word != 16 && func->bits_per_word != 8)
213 dev_warn(&func->dev, "unusual bits/word value: %d\n", func->bits_per_word);
221 if (func->bits_per_word == 8 || IS_ENABLED(CONFIG_CPU_BIG_ENDIAN))
/linux-master/drivers/iio/magnetometer/
H A Drm3100-spi.c35 spi->bits_per_word = 8;
/linux-master/drivers/iio/imu/
H A Dadis.c42 .bits_per_word = 8,
49 .bits_per_word = 8,
56 .bits_per_word = 8,
63 .bits_per_word = 8,
69 .bits_per_word = 8,
136 .bits_per_word = 8,
143 .bits_per_word = 8,
151 .bits_per_word = 8,
158 .bits_per_word = 8,
/linux-master/drivers/video/fbdev/mmp/hw/
H A Dmmp_spi.c40 switch (spi->bits_per_word) {
88 CFG_TXBITS(spi->bits_per_word) |
113 switch (spi->bits_per_word) {
/linux-master/drivers/iio/adc/
H A Dad7949.c100 switch (ad7949_adc->spi->bits_per_word) {
150 if (ad7949_adc->spi->bits_per_word == 8)
166 switch (ad7949_adc->spi->bits_per_word) {
341 spi->bits_per_word = ad7949_adc->resolution;
343 spi->bits_per_word = 16;
345 spi->bits_per_word = 8;
/linux-master/drivers/net/wireless/st/cw1200/
H A Dcw1200_spi.c91 if (self->func->bits_per_word == 8)
114 if (self->func->bits_per_word == 8)
156 if (self->func->bits_per_word == 8)
186 if (self->func->bits_per_word == 8)
369 func->bits_per_word = plat_data->spi_bits_per_word;
370 if (!func->bits_per_word)
371 func->bits_per_word = 16;
377 spi_get_chipselect(func, 0), func->mode, func->bits_per_word,
/linux-master/include/uapi/linux/spi/
H A Dspidev.h41 * @bits_per_word: Temporary override of the device's wordsize.
78 __u8 bits_per_word; member in struct:spi_ioc_transfer
/linux-master/drivers/iio/pressure/
H A Dzpa2326_spi.c51 spi->bits_per_word = 8;
/linux-master/include/trace/events/
H A Dspi.h53 __field(unsigned int, bits_per_word)
62 __entry->bits_per_word = spi->bits_per_word;
74 __entry->bits_per_word, __entry->max_speed_hz,
/linux-master/drivers/mfd/
H A Drsmu_spi.c41 xfer.bits_per_word = client->bits_per_word;
81 xfer.bits_per_word = client->bits_per_word;
/linux-master/drivers/iio/gyro/
H A Dadxrs450.c98 .bits_per_word = 8,
103 .bits_per_word = 8,
172 .bits_per_word = 8,
177 .bits_per_word = 8,
212 .bits_per_word = 8,
/linux-master/drivers/gpu/drm/panel/
H A Dpanel-tpo-tpg110.c210 t[0].bits_per_word = 8;
216 t[1].bits_per_word = 8;
227 t[0].bits_per_word = 7;
233 t[1].bits_per_word = 8;
428 spi->bits_per_word = 8;

Completed in 380 milliseconds

12345678