/linux/drivers/spi/ |
A D | spi-fsl-spi.c | 177 int bits_per_word) in mspi_apply_cpu_mode_quirks() argument 195 bits_per_word, in mspi_apply_cpu_mode_quirks() 203 return bits_per_word; in mspi_apply_cpu_mode_quirks() 236 bits_per_word = t->bits_per_word; in fsl_spi_setup_transfer() 241 if (!bits_per_word) in fsl_spi_setup_transfer() 242 bits_per_word = spi->bits_per_word; in fsl_spi_setup_transfer() 259 bits_per_word = 0; in fsl_spi_setup_transfer() 261 bits_per_word = bits_per_word - 1; in fsl_spi_setup_transfer() 313 u8 bits_per_word; in fsl_spi_bufs() local 317 bits_per_word = spi->bits_per_word; in fsl_spi_bufs() [all …]
|
A D | spi-bitbang.c | 65 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 …]
|
A D | spi-mpc52xx-psc.c | 38 u8 bits_per_word; member 51 int bits_per_word; member 65 cs->bits_per_word = (t && t->bits_per_word) in mpc52xx_psc_spi_transfer_setup() 66 ? t->bits_per_word : spi->bits_per_word; in mpc52xx_psc_spi_transfer_setup() 67 cs->bits_per_word = ((cs->bits_per_word + 7) / 8) * 8; in mpc52xx_psc_spi_transfer_setup() 108 mps->bits_per_word = cs->bits_per_word; in mpc52xx_psc_spi_activate_cs() 222 if (t->bits_per_word || t->speed_hz) { in mpc52xx_psc_spi_work() 264 if (spi->bits_per_word%8) in mpc52xx_psc_spi_setup() 274 cs->bits_per_word = spi->bits_per_word; in mpc52xx_psc_spi_setup() 340 mps->bits_per_word = 8; in mpc52xx_psc_spi_port_config()
|
A D | spi-mpc512x-psc.c | 62 u8 bits_per_word; member 72 int bits_per_word; member 86 cs->bits_per_word = (t && t->bits_per_word) in mpc512x_psc_spi_transfer_setup() 87 ? t->bits_per_word : spi->bits_per_word; in mpc512x_psc_spi_transfer_setup() 88 cs->bits_per_word = ((cs->bits_per_word + 7) / 8) * 8; in mpc512x_psc_spi_transfer_setup() 129 mps->bits_per_word = cs->bits_per_word; in mpc512x_psc_spi_activate_cs() 368 if (spi->bits_per_word % 8) in mpc512x_psc_spi_setup() 391 cs->bits_per_word = spi->bits_per_word; in mpc512x_psc_spi_setup() 458 mps->bits_per_word = 8; in mpc512x_psc_spi_port_config()
|
A D | spi-npcm-pspi.c | 28 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()
|
A D | spi-bcm-qspi.c | 180 u8 bits_per_word; member 608 if (xp->bits_per_word != 16 && xp->bits_per_word != 64) in bcm_qspi_hw_set_parms() 629 if (xp->bits_per_word > 16) { in bcm_qspi_hw_set_parms() 668 xp.bits_per_word = trans->bits_per_word; in bcm_qspi_update_parms() 678 if (spi->bits_per_word > 64) in bcm_qspi_setup() 691 if (spi->bits_per_word) in bcm_qspi_setup() 692 xp->bits_per_word = spi->bits_per_word; in bcm_qspi_setup() 694 xp->bits_per_word = 8; in bcm_qspi_setup() 1138 t[0].bits_per_word = spi->bits_per_word; in bcm_qspi_mspi_exec_mem_op() 1151 t[1].bits_per_word = spi->bits_per_word; in bcm_qspi_mspi_exec_mem_op() [all …]
|
A D | spi-pic32.c | 107 u32 bits_per_word; member 390 static int pic32_spi_set_word_size(struct pic32_spi *pic32s, u8 bits_per_word) in pic32_spi_set_word_size() argument 395 switch (bits_per_word) { in pic32_spi_set_word_size() 421 bits_per_word / 8); in pic32_spi_set_word_size() 452 if (pic32s->bits_per_word != spi->bits_per_word) { in pic32_spi_prepare_message() 453 pic32_spi_set_word_size(pic32s, spi->bits_per_word); in pic32_spi_prepare_message() 454 pic32s->bits_per_word = spi->bits_per_word; in pic32_spi_prepare_message() 509 if (transfer->bits_per_word && in pic32_spi_one_transfer() 510 (transfer->bits_per_word != pic32s->bits_per_word)) { in pic32_spi_one_transfer() 511 ret = pic32_spi_set_word_size(pic32s, transfer->bits_per_word); in pic32_spi_one_transfer() [all …]
|
A D | spi-imx.c | 101 unsigned int bits_per_word; member 220 if (bits_per_word <= 8) in spi_imx_bytes_per_word() 222 else if (bits_per_word <= 16) in spi_imx_bytes_per_word() 621 ctrl |= (spi_imx->bits_per_word - 1) in mx51_ecspi_prepare_transfer() 846 reg |= spi_imx->bits_per_word - 1; in mx21_prepare_transfer() 920 reg |= spi_imx->bits_per_word - 1; in mx1_prepare_transfer() 1218 spi_imx->bits_per_word = t->bits_per_word; in spi_imx_setupxfer() 1227 (spi_imx->bits_per_word == 8 || in spi_imx_setupxfer() 1228 spi_imx->bits_per_word == 16 || in spi_imx_setupxfer() 1229 spi_imx->bits_per_word == 32)) { in spi_imx_setupxfer() [all …]
|
A D | spi-lantiq-ssc.c | 180 unsigned int bits_per_word; member 296 unsigned int bits_per_word) in hw_setup_bits_per_word() argument 301 bm = (bits_per_word - 1) << LTQ_SPI_CON_BM_S; in hw_setup_bits_per_word() 366 hw_setup_bits_per_word(spi, spi->bits_per_word); in lantiq_ssc_hw_init() 434 unsigned int bits_per_word = t->bits_per_word; in hw_setup_transfer() local 437 if (bits_per_word != spi->bits_per_word || in hw_setup_transfer() 441 hw_setup_bits_per_word(spi, bits_per_word); in hw_setup_transfer() 445 spi->bits_per_word = bits_per_word; in hw_setup_transfer() 487 switch (spi->bits_per_word) { in tx_fifo_write() 536 switch (spi->bits_per_word) { in rx_fifo_read_full_duplex() [all …]
|
A D | spi-uniphier.c | 40 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()
|
A D | spi-fsl-espi.c | 164 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()
|
A D | spi-xilinx.c | 394 int ret, num_cs = 0, bits_per_word; in xilinx_spi_probe() local 402 bits_per_word = pdata->bits_per_word; in xilinx_spi_probe() 408 &bits_per_word); in xilinx_spi_probe() 410 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()
|
A D | spi-ppc4xx.c | 169 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()
|
A D | spi-geni-qcom.c | 251 unsigned int bits_per_word) in spi_setup_word_len() argument 262 if (!(mas->fifo_width_bits % bits_per_word)) in spi_setup_word_len() 263 pack_words = mas->fifo_width_bits / bits_per_word; in spi_setup_word_len() 268 word_len = (bits_per_word - MIN_WORD_LEN) & WORD_LEN_MSK; in spi_setup_word_len() 333 mas->cur_bits_per_word = spi_slv->bits_per_word; in setup_fifo_params() 379 if (xfer->bits_per_word != mas->cur_bits_per_word || in setup_gsi_xfer() 381 mas->cur_bits_per_word = xfer->bits_per_word; in setup_gsi_xfer() 406 peripheral.word_len = xfer->bits_per_word - MIN_WORD_LEN; in setup_gsi_xfer() 719 if (xfer->bits_per_word != mas->cur_bits_per_word) { in setup_fifo_xfer() 720 spi_setup_word_len(mas, mode, xfer->bits_per_word); in setup_fifo_xfer() [all …]
|
A D | spi-atmel.c | 438 u8 bits_per_word) in atmel_spi_dma_slave_config() argument 443 if (bits_per_word > 8) { in atmel_spi_dma_slave_config() 593 if (xfer->bits_per_word > 8) in atmel_spi_next_xfer_single() 601 xfer->bits_per_word); in atmel_spi_next_xfer_single() 656 if (xfer->bits_per_word > 8) in atmel_spi_next_xfer_fifo() 668 xfer->bits_per_word); in atmel_spi_next_xfer_fifo() 869 if (xfer->bits_per_word > 8) in atmel_spi_pdc_next_xfer() 888 if (xfer->bits_per_word > 8) in atmel_spi_pdc_next_xfer() 976 if (xfer->bits_per_word > 8) { in atmel_spi_pump_single_data() 1014 if (xfer->bits_per_word > 8) in atmel_spi_pump_fifo_data() [all …]
|
/linux/drivers/staging/wfx/ |
A D | bus_spi.c | 186 if (!func->bits_per_word) in wfx_spi_probe() 187 func->bits_per_word = 16; in wfx_spi_probe() 193 func->chip_select, func->mode, func->bits_per_word, in wfx_spi_probe() 195 if (func->bits_per_word != 16 && func->bits_per_word != 8) in wfx_spi_probe() 197 func->bits_per_word); in wfx_spi_probe() 206 if (func->bits_per_word == 8 || IS_ENABLED(CONFIG_CPU_BIG_ENDIAN)) in wfx_spi_probe()
|
/linux/drivers/net/wireless/st/cw1200/ |
A D | cw1200_spi.c | 89 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 func->chip_select, func->mode, func->bits_per_word, in cw1200_spi_probe()
|
/linux/drivers/iio/imu/ |
A D | adis.c | 42 .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/drivers/iio/adc/ |
A D | ad7949.c | 100 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/drivers/iio/gyro/ |
A D | adxrs450.c | 98 .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/drivers/gpu/drm/panel/ |
A D | panel-tpo-tpg110.c | 210 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/drivers/mfd/ |
A D | rsmu_spi.c | 39 xfer.bits_per_word = client->bits_per_word; in rsmu_read_device() 76 xfer.bits_per_word = client->bits_per_word; in rsmu_write_device()
|
/linux/include/trace/events/ |
A D | spi.h | 53 __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/drivers/staging/iio/meter/ |
A D | ade7854-spi.c | 27 .bits_per_word = 8, in ade7854_spi_write_reg() 80 .bits_per_word = 8, in ade7854_spi_read_reg() 84 .bits_per_word = 8, in ade7854_spi_read_reg()
|
/linux/drivers/video/fbdev/mmp/hw/ |
A D | mmp_spi.c | 40 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()
|