Home
last modified time | relevance | path

Searched refs:bits_per_word (Results 1 – 25 of 192) sorted by relevance

12345678

/Linux-v6.6/drivers/spi/
Dspi-fsl-spi.c115 int bits_per_word, int msb_first) in fsl_spi_qe_cpu_set_shifts() argument
120 if (bits_per_word <= 8) { in fsl_spi_qe_cpu_set_shifts()
123 } else if (bits_per_word <= 16) { in fsl_spi_qe_cpu_set_shifts()
128 if (bits_per_word <= 8) in fsl_spi_qe_cpu_set_shifts()
134 int bits_per_word, int msb_first) in fsl_spi_grlib_set_shifts() argument
138 if (bits_per_word <= 16) { in fsl_spi_grlib_set_shifts()
141 *tx_shift = 32 - bits_per_word; /* MSB in bit 31 */ in fsl_spi_grlib_set_shifts()
143 *rx_shift = 16 - bits_per_word; /* MSB in bit 15 */ in fsl_spi_grlib_set_shifts()
151 int bits_per_word) in mspi_apply_cpu_mode_quirks() argument
155 if (bits_per_word <= 8) { in mspi_apply_cpu_mode_quirks()
[all …]
Dspi-mpc52xx-psc.c33 u8 bits_per_word; member
40 int bits_per_word; member
54 cs->bits_per_word = (t && t->bits_per_word) in mpc52xx_psc_spi_transfer_setup()
55 ? t->bits_per_word : spi->bits_per_word; in mpc52xx_psc_spi_transfer_setup()
56 cs->bits_per_word = ((cs->bits_per_word + 7) / 8) * 8; in mpc52xx_psc_spi_transfer_setup()
97 mps->bits_per_word = cs->bits_per_word; in mpc52xx_psc_spi_activate_cs()
190 if (t->bits_per_word || t->speed_hz) { in mpc52xx_psc_spi_transfer_one_message()
221 if (spi->bits_per_word%8) in mpc52xx_psc_spi_setup()
231 cs->bits_per_word = spi->bits_per_word; in mpc52xx_psc_spi_setup()
275 mps->bits_per_word = 8; in mpc52xx_psc_spi_port_config()
Dspi-bitbang.c65 unsigned bits = t->bits_per_word; in bitbang_txrx_8()
94 unsigned bits = t->bits_per_word; in bitbang_txrx_16()
123 unsigned bits = t->bits_per_word; in bitbang_txrx_32()
144 u8 bits_per_word; in spi_bitbang_setup_transfer() local
148 bits_per_word = t->bits_per_word; in spi_bitbang_setup_transfer()
151 bits_per_word = 0; in spi_bitbang_setup_transfer()
156 if (!bits_per_word) in spi_bitbang_setup_transfer()
157 bits_per_word = spi->bits_per_word; in spi_bitbang_setup_transfer()
158 if (bits_per_word <= 8) in spi_bitbang_setup_transfer()
160 else if (bits_per_word <= 16) in spi_bitbang_setup_transfer()
[all …]
Dspi-mpc512x-psc.c57 u8 bits_per_word; member
65 int bits_per_word; member
79 cs->bits_per_word = (t && t->bits_per_word) in mpc512x_psc_spi_transfer_setup()
80 ? t->bits_per_word : spi->bits_per_word; in mpc512x_psc_spi_transfer_setup()
81 cs->bits_per_word = ((cs->bits_per_word + 7) / 8) * 8; in mpc512x_psc_spi_transfer_setup()
122 mps->bits_per_word = cs->bits_per_word; in mpc512x_psc_spi_activate_cs()
361 if (spi->bits_per_word % 8) in mpc512x_psc_spi_setup()
372 cs->bits_per_word = spi->bits_per_word; in mpc512x_psc_spi_setup()
437 mps->bits_per_word = 8; in mpc512x_psc_spi_port_config()
Dspi-bcm-qspi.c180 u8 bits_per_word; member
606 (cur->bits_per_word != prev->bits_per_word); in bcmspi_parms_did_change()
632 if (xp->bits_per_word != 16 && xp->bits_per_word != 64) in bcm_qspi_hw_set_parms()
633 spcr |= xp->bits_per_word << MSPI_SPCR0_MSB_BITS_SHIFT; in bcm_qspi_hw_set_parms()
661 if (xp->bits_per_word > 16) { in bcm_qspi_hw_set_parms()
700 xp.bits_per_word = trans->bits_per_word; in bcm_qspi_update_parms()
710 if (spi->bits_per_word > 64) in bcm_qspi_setup()
723 if (spi->bits_per_word) in bcm_qspi_setup()
724 xp->bits_per_word = spi->bits_per_word; in bcm_qspi_setup()
726 xp->bits_per_word = 8; in bcm_qspi_setup()
[all …]
Dspi-npcm-pspi.c28 u8 bits_per_word; member
178 if (priv->bits_per_word == 8 && !(t->len & 0x1)) in npcm_pspi_setup_transfer()
179 t->bits_per_word = 16; in npcm_pspi_setup_transfer()
181 if (!priv->is_save_param || priv->bits_per_word != t->bits_per_word) { in npcm_pspi_setup_transfer()
182 npcm_pspi_set_transfer_size(priv, t->bits_per_word); in npcm_pspi_setup_transfer()
183 priv->bits_per_word = t->bits_per_word; in npcm_pspi_setup_transfer()
200 wsize = min(bytes_per_word(priv->bits_per_word), priv->tx_bytes); in npcm_pspi_send()
227 rsize = min(bytes_per_word(priv->bits_per_word), priv->rx_bytes); in npcm_pspi_recv()
Dspi-pic32.c107 u32 bits_per_word; member
388 static int pic32_spi_set_word_size(struct pic32_spi *pic32s, u8 bits_per_word) in pic32_spi_set_word_size() argument
393 switch (bits_per_word) { in pic32_spi_set_word_size()
419 bits_per_word / 8); in pic32_spi_set_word_size()
450 if (pic32s->bits_per_word != spi->bits_per_word) { in pic32_spi_prepare_message()
451 pic32_spi_set_word_size(pic32s, spi->bits_per_word); in pic32_spi_prepare_message()
452 pic32s->bits_per_word = spi->bits_per_word; in pic32_spi_prepare_message()
507 if (transfer->bits_per_word && in pic32_spi_one_transfer()
508 (transfer->bits_per_word != pic32s->bits_per_word)) { in pic32_spi_one_transfer()
509 ret = pic32_spi_set_word_size(pic32s, transfer->bits_per_word); in pic32_spi_one_transfer()
[all …]
Dspi-uniphier.c40 u8 bits_per_word; member
234 if (!priv->is_save_param || priv->bits_per_word != t->bits_per_word) { in uniphier_spi_setup_transfer()
235 uniphier_spi_set_transfer_size(spi, t->bits_per_word); in uniphier_spi_setup_transfer()
236 priv->bits_per_word = t->bits_per_word; in uniphier_spi_setup_transfer()
256 wsize = min(bytes_per_word(priv->bits_per_word), priv->tx_bytes); in uniphier_spi_send()
283 rsize = min(bytes_per_word(priv->bits_per_word), priv->rx_bytes); in uniphier_spi_recv()
320 unsigned int bpw = bytes_per_word(priv->bits_per_word); in uniphier_spi_fill_tx_fifo()
354 unsigned int bpw = bytes_per_word(priv->bits_per_word); in uniphier_spi_can_dma()
400 if (priv->bits_per_word <= 8) in uniphier_spi_transfer_one_dma()
402 else if (priv->bits_per_word <= 16) in uniphier_spi_transfer_one_dma()
Dspi-fsl-espi.c164 if (first->bits_per_word != t->bits_per_word || in fsl_espi_check_message()
172 if (!(m->spi->mode & SPI_LSB_FIRST) && first->bits_per_word != 8 && in fsl_espi_check_message()
173 first->bits_per_word != 16) { in fsl_espi_check_message()
176 first->bits_per_word); in fsl_espi_check_message()
327 int bits_per_word = t ? t->bits_per_word : spi->bits_per_word; in fsl_espi_setup_transfer() local
335 cs->hw_mode |= CSMODE_LEN(bits_per_word - 1); in fsl_espi_setup_transfer()
404 espi->swab = spi->mode & SPI_LSB_FIRST && trans->bits_per_word > 8; in fsl_espi_trans()
460 trans.bits_per_word = t->bits_per_word; in fsl_espi_do_one_msg()
Dspi-lantiq-ssc.c181 unsigned int bits_per_word; member
297 unsigned int bits_per_word) in hw_setup_bits_per_word() argument
302 bm = (bits_per_word - 1) << LTQ_SPI_CON_BM_S; in hw_setup_bits_per_word()
367 hw_setup_bits_per_word(spi, spi->bits_per_word); in lantiq_ssc_hw_init()
435 unsigned int bits_per_word = t->bits_per_word; in hw_setup_transfer() local
438 if (bits_per_word != spi->bits_per_word || in hw_setup_transfer()
442 hw_setup_bits_per_word(spi, bits_per_word); in hw_setup_transfer()
446 spi->bits_per_word = bits_per_word; in hw_setup_transfer()
488 switch (spi->bits_per_word) { in tx_fifo_write()
537 switch (spi->bits_per_word) { in rx_fifo_read_full_duplex()
[all …]
Dspi-imx.c104 unsigned int bits_per_word; member
222 static int spi_imx_bytes_per_word(const int bits_per_word) in spi_imx_bytes_per_word() argument
224 if (bits_per_word <= 8) in spi_imx_bytes_per_word()
226 else if (bits_per_word <= 16) in spi_imx_bytes_per_word()
314 bytes_per_word = spi_imx_bytes_per_word(spi_imx->bits_per_word); in spi_imx_buf_rx_swap_u32()
339 if (spi_imx_bytes_per_word(spi_imx->bits_per_word) == 2) { in spi_imx_buf_rx_swap()
369 bytes_per_word = spi_imx_bytes_per_word(spi_imx->bits_per_word); in spi_imx_buf_tx_swap_u32()
391 if (spi_imx_bytes_per_word(spi_imx->bits_per_word) == 2) { in spi_imx_buf_tx_swap()
665 ctrl |= (spi_imx->count * spi_imx->bits_per_word - 1) in mx51_ecspi_prepare_transfer()
789 reg |= (spi_imx->bits_per_word - 1) << MX35_CSPICTRL_BL_SHIFT; in mx31_prepare_transfer()
[all …]
Dspi-xilinx.c395 int ret, num_cs = 0, bits_per_word; in xilinx_spi_probe() local
404 bits_per_word = pdata->bits_per_word; in xilinx_spi_probe()
411 &bits_per_word); in xilinx_spi_probe()
413 bits_per_word = 8; in xilinx_spi_probe()
469 master->bits_per_word_mask = SPI_BPW_MASK(bits_per_word); in xilinx_spi_probe()
470 xspi->bytes_per_word = bits_per_word / 8; in xilinx_spi_probe()
Dspi-ppc4xx.c169 u8 bits_per_word; in spi_ppc4xx_setupxfer() local
172 bits_per_word = spi->bits_per_word; in spi_ppc4xx_setupxfer()
180 if (t->bits_per_word) in spi_ppc4xx_setupxfer()
181 bits_per_word = t->bits_per_word; in spi_ppc4xx_setupxfer()
Dspi-atmel.c437 static int atmel_spi_dma_slave_config(struct atmel_spi *as, u8 bits_per_word) in atmel_spi_dma_slave_config() argument
443 if (bits_per_word > 8) { in atmel_spi_dma_slave_config()
590 if (xfer->bits_per_word > 8) in atmel_spi_next_xfer_single()
598 xfer->bits_per_word); in atmel_spi_next_xfer_single()
621 current_remaining_data = ((xfer->bits_per_word > 8) ? in atmel_spi_next_xfer_fifo()
640 if (xfer->bits_per_word > 8) { in atmel_spi_next_xfer_fifo()
653 if (xfer->bits_per_word > 8) in atmel_spi_next_xfer_fifo()
665 xfer->bits_per_word); in atmel_spi_next_xfer_fifo()
711 if (atmel_spi_dma_slave_config(as, xfer->bits_per_word)) in atmel_spi_next_xfer_dma_submit()
864 if (xfer->bits_per_word > 8) in atmel_spi_pdc_next_xfer()
[all …]
Dspi-geni-qcom.c337 unsigned int bits_per_word) in spi_setup_word_len() argument
348 if (!(mas->fifo_width_bits % bits_per_word)) in spi_setup_word_len()
349 pack_words = mas->fifo_width_bits / bits_per_word; in spi_setup_word_len()
352 geni_se_config_packing(&mas->se, bits_per_word, pack_words, msb_first, in spi_setup_word_len()
354 word_len = (bits_per_word - MIN_WORD_LEN) & WORD_LEN_MSK; in spi_setup_word_len()
419 mas->cur_bits_per_word = spi_slv->bits_per_word; in setup_fifo_params()
421 spi_setup_word_len(mas, spi_slv->mode, spi_slv->bits_per_word); in setup_fifo_params()
469 if (xfer->bits_per_word != mas->cur_bits_per_word || in setup_gsi_xfer()
471 mas->cur_bits_per_word = xfer->bits_per_word; in setup_gsi_xfer()
496 peripheral.word_len = xfer->bits_per_word - MIN_WORD_LEN; in setup_gsi_xfer()
[all …]
/Linux-v6.6/drivers/net/wireless/silabs/wfx/
Dbus_spi.c198 if (!func->bits_per_word) in wfx_spi_probe()
199 func->bits_per_word = 16; in wfx_spi_probe()
211 spi_get_chipselect(func, 0), func->mode, func->bits_per_word, func->max_speed_hz); in wfx_spi_probe()
212 if (func->bits_per_word != 16 && func->bits_per_word != 8) in wfx_spi_probe()
213 dev_warn(&func->dev, "unusual bits/word value: %d\n", func->bits_per_word); in wfx_spi_probe()
221 if (func->bits_per_word == 8 || IS_ENABLED(CONFIG_CPU_BIG_ENDIAN)) in wfx_spi_probe()
/Linux-v6.6/drivers/net/wireless/st/cw1200/
Dcw1200_spi.c89 if (self->func->bits_per_word == 8) in cw1200_spi_memcpy_fromio()
112 if (self->func->bits_per_word == 8) in cw1200_spi_memcpy_fromio()
154 if (self->func->bits_per_word == 8) in cw1200_spi_memcpy_toio()
184 if (self->func->bits_per_word == 8) in cw1200_spi_memcpy_toio()
373 func->bits_per_word = plat_data->spi_bits_per_word; in cw1200_spi_probe()
374 if (!func->bits_per_word) in cw1200_spi_probe()
375 func->bits_per_word = 16; in cw1200_spi_probe()
381 spi_get_chipselect(func, 0), func->mode, func->bits_per_word, in cw1200_spi_probe()
/Linux-v6.6/drivers/iio/imu/
Dadis.c42 .bits_per_word = 8, in __adis_write_reg()
51 .bits_per_word = 8, in __adis_write_reg()
60 .bits_per_word = 8, in __adis_write_reg()
69 .bits_per_word = 8, in __adis_write_reg()
75 .bits_per_word = 8, in __adis_write_reg()
142 .bits_per_word = 8, in __adis_read_reg()
151 .bits_per_word = 8, in __adis_read_reg()
161 .bits_per_word = 8, in __adis_read_reg()
170 .bits_per_word = 8, in __adis_read_reg()
/Linux-v6.6/drivers/iio/adc/
Dad7949.c100 switch (ad7949_adc->spi->bits_per_word) { in ad7949_spi_write_cfg()
150 if (ad7949_adc->spi->bits_per_word == 8) in ad7949_spi_read_channel()
166 switch (ad7949_adc->spi->bits_per_word) { in ad7949_spi_read_channel()
341 spi->bits_per_word = ad7949_adc->resolution; in ad7949_spi_probe()
343 spi->bits_per_word = 16; in ad7949_spi_probe()
345 spi->bits_per_word = 8; in ad7949_spi_probe()
/Linux-v6.6/drivers/video/fbdev/mmp/hw/
Dmmp_spi.c40 switch (spi->bits_per_word) { in lcd_spi_write()
88 CFG_TXBITS(spi->bits_per_word) | in lcd_spi_setup()
113 switch (spi->bits_per_word) { in lcd_spi_one_transfer()
/Linux-v6.6/include/trace/events/
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-v6.6/drivers/iio/gyro/
Dadxrs450.c98 .bits_per_word = 8, in adxrs450_spi_read_reg_16()
103 .bits_per_word = 8, in adxrs450_spi_read_reg_16()
172 .bits_per_word = 8, in adxrs450_spi_sensor_data()
177 .bits_per_word = 8, in adxrs450_spi_sensor_data()
212 .bits_per_word = 8, in adxrs450_spi_initial()
/Linux-v6.6/drivers/gpu/drm/panel/
Dpanel-tpo-tpg110.c210 t[0].bits_per_word = 8; in tpg110_readwrite_reg()
216 t[1].bits_per_word = 8; in tpg110_readwrite_reg()
227 t[0].bits_per_word = 7; in tpg110_readwrite_reg()
233 t[1].bits_per_word = 8; in tpg110_readwrite_reg()
426 spi->bits_per_word = 8; in tpg110_probe()
/Linux-v6.6/drivers/mfd/
Drsmu_spi.c41 xfer.bits_per_word = client->bits_per_word; in rsmu_read_device()
81 xfer.bits_per_word = client->bits_per_word; in rsmu_write_device()
/Linux-v6.6/drivers/input/touchscreen/
Dtsc2005.c30 .bits_per_word = 8, in tsc2005_cmd()
54 spi->bits_per_word = 8; in tsc2005_probe()

12345678