Searched refs:bpw (Results 1 – 6 of 6) sorted by relevance
| /linux/drivers/spi/ |
| H A D | spi-topcliff-pch.c | 516 static void pch_spi_set_tx(struct pch_spi_data *data, int *bpw) in pch_spi_set_tx() argument 537 *bpw = data->cur_trans->bits_per_word; in pch_spi_set_tx() 539 *bpw = data->current_msg->spi->bits_per_word; in pch_spi_set_tx() 546 data->bpw_len = data->cur_trans->len / (*bpw / 8); in pch_spi_set_tx() 577 if (*bpw == 8) { in pch_spi_set_tx() 694 static void pch_spi_copy_rx_data(struct pch_spi_data *data, int bpw) in pch_spi_copy_rx_data() argument 704 if (bpw == 8) { in pch_spi_copy_rx_data() 715 static void pch_spi_copy_rx_data_for_dma(struct pch_spi_data *data, int bpw) in pch_spi_copy_rx_data_for_dma() argument 727 if (bpw == 8) { in pch_spi_copy_rx_data_for_dma() 819 static void pch_spi_request_dma(struct pch_spi_data *data, int bpw) in pch_spi_request_dma() argument [all …]
|
| H A D | spi-stm32.c | 601 u32 packet, bpw; in stm32h7_spi_prepare_fthlv() local 607 bpw = DIV_ROUND_UP(spi->cur_bpw, 8); in stm32h7_spi_prepare_fthlv() 608 return DIV_ROUND_UP(packet, bpw); in stm32h7_spi_prepare_fthlv() 1783 u32 bpw; in stm32f7_spi_set_bpw() local 1786 bpw = spi->cur_bpw - 1; in stm32f7_spi_set_bpw() 1789 cr2_setb |= FIELD_PREP(STM32F7_SPI_CR2_DS, bpw); in stm32f7_spi_set_bpw() 1808 u32 bpw, fthlv; in stm32h7_spi_set_bpw() local 1811 bpw = spi->cur_bpw - 1; in stm32h7_spi_set_bpw() 1814 cfg1_setb |= FIELD_PREP(STM32H7_SPI_CFG1_DSIZE, bpw); in stm32h7_spi_set_bpw()
|
| H A D | spi-s3c64xx.c | 811 u8 bpw; in s3c64xx_spi_transfer_one() local 819 bpw = xfer->bits_per_word; in s3c64xx_spi_transfer_one() 822 if (bpw != sdd->cur_bpw || speed != sdd->cur_speed) { in s3c64xx_spi_transfer_one() 823 sdd->cur_bpw = bpw; in s3c64xx_spi_transfer_one()
|
| /linux/include/linux/spi/ |
| H A D | spi.h | 1371 static inline bool spi_is_bpw_supported(struct spi_device *spi, u32 bpw) in spi_is_bpw_supported() argument 1375 if (bpw == 8 || (bpw <= 32 && bpw_mask & SPI_BPW_MASK(bpw))) in spi_is_bpw_supported() 1402 static inline u32 spi_bpw_to_bytes(u32 bpw) in spi_bpw_to_bytes() argument 1404 return roundup_pow_of_two(BITS_TO_BYTES(bpw)); in spi_bpw_to_bytes()
|
| /linux/include/drm/ |
| H A D | drm_mipi_dbi.h | 199 u8 bpw, const void *buf, size_t len);
|
| /linux/drivers/crypto/stm32/ |
| H A D | stm32-cryp.c | 488 int bpw = sizeof(u32); in ux500_swizzle_key() local 492 j = len - bpw; in ux500_swizzle_key() 494 for (i = 0; i < bpw; i++) { in ux500_swizzle_key() 495 index = len - j - bpw + i; in ux500_swizzle_key() 499 j -= bpw; in ux500_swizzle_key()
|