Lines Matching refs:bitsPerWord
56 uint8_t bitsPerWord;
198 value |= (pl022->bitsPerWord - 1) << SPI_CR0_DSS_SHIFT;
284 if ((pl022->bitsPerWord < BITS_PER_WORD_MIN) || (pl022->bitsPerWord > BITS_PER_WORD_MAX)) {
285 HDF_LOGE("%s: pl022->bitsPerWord is %hhu not support", __func__, pl022->bitsPerWord);
351 static inline uint8_t Pl022ToByteWidth(uint8_t bitsPerWord)
353 if (bitsPerWord <= BITS_PER_WORD_EIGHT) {
363 uint8_t bytes = Pl022ToByteWidth(pl022->bitsPerWord);
377 uint8_t bytes = Pl022ToByteWidth(pl022->bitsPerWord);
400 uint8_t bytes = Pl022ToByteWidth(pl022->bitsPerWord);
482 if (cfg->bitsPerWord < BITS_PER_WORD_MIN || cfg->bitsPerWord > BITS_PER_WORD_MAX) {
483 HDF_LOGE("%s: bitsPerWord %hhu not support, use defaule bitsPerWord %d",
484 __func__, cfg->bitsPerWord, BITS_PER_WORD_EIGHT);
485 dev->cfg.bitsPerWord = BITS_PER_WORD_EIGHT;
487 dev->cfg.bitsPerWord = cfg->bitsPerWord;
594 dmaMsgRx.srcWidth = dmaMsgRx.destWidth = Pl022ToByteWidth(pl022->bitsPerWord);
679 pl022->bitsPerWord = dev->cfg.bitsPerWord;
743 device->cfg.bitsPerWord = pl022->bitsPerWord;
797 if (iface->GetUint8(node, "bitsPerWord", &pl022->bitsPerWord, 0) != HDF_SUCCESS) {
798 HDF_LOGE("%s: read bitsPerWord fail", __func__);