Home
last modified time | relevance | path

Searched refs:word_len (Results 1 – 14 of 14) sorted by relevance

/Linux-v5.10/drivers/spi/
Dspi-omap-100k.c77 int word_len; member
182 int word_len; in omap1_spi100k_txrx_pio() local
186 word_len = cs->word_len; in omap1_spi100k_txrx_pio()
188 if (word_len <= 8) { in omap1_spi100k_txrx_pio()
197 spi100k_write_data(spi->master, word_len, *tx++); in omap1_spi100k_txrx_pio()
199 *rx++ = spi100k_read_data(spi->master, word_len); in omap1_spi100k_txrx_pio()
201 } else if (word_len <= 16) { in omap1_spi100k_txrx_pio()
210 spi100k_write_data(spi->master, word_len, *tx++); in omap1_spi100k_txrx_pio()
212 *rx++ = spi100k_read_data(spi->master, word_len); in omap1_spi100k_txrx_pio()
214 } else if (word_len <= 32) { in omap1_spi100k_txrx_pio()
[all …]
Dspi-omap2-mcspi.c137 int word_len; member
190 static inline int mcspi_bytes_per_word(int word_len) in mcspi_bytes_per_word() argument
192 if (word_len <= 8) in mcspi_bytes_per_word()
194 else if (word_len <= 16) in mcspi_bytes_per_word()
306 bytes_per_word = mcspi_bytes_per_word(cs->word_len); in omap2_mcspi_set_fifo()
444 int word_len, element_count; in omap2_mcspi_rx_dma() local
461 word_len = cs->word_len; in omap2_mcspi_rx_dma()
464 if (word_len <= 8) in omap2_mcspi_rx_dma()
466 else if (word_len <= 16) in omap2_mcspi_rx_dma()
546 if (word_len <= 8) in omap2_mcspi_rx_dma()
[all …]
Dspi-orion.c432 int word_len; in orion_spi_write_read() local
437 word_len = spi->bits_per_word; in orion_spi_write_read()
448 if (vaddr && xfer->tx_buf && word_len == 8) { in orion_spi_write_read()
466 if (word_len == 8) { in orion_spi_write_read()
476 } else if (word_len == 16) { in orion_spi_write_read()
Dspi-geni-qcom.c185 u32 word_len; in spi_setup_word_len() local
197 word_len = (bits_per_word - MIN_WORD_LEN) & WORD_LEN_MSK; in spi_setup_word_len()
198 writel(word_len, se->base + SE_SPI_WORD_LEN); in spi_setup_word_len()
/Linux-v5.10/drivers/platform/chrome/wilco_ec/
Ddebugfs.c52 int word_len; in parse_hex_sentence() local
72 word_len = word_end - word_start; in parse_hex_sentence()
73 if (word_len > MAX_WORD_SIZE) in parse_hex_sentence()
75 memcpy(tmp, in + word_start, word_len); in parse_hex_sentence()
76 tmp[word_len] = '\0'; in parse_hex_sentence()
/Linux-v5.10/sound/soc/codecs/
Dad1836.c167 int word_len = 0; in ad1836_hw_params() local
172 word_len = AD1836_WORD_LEN_16; in ad1836_hw_params()
175 word_len = AD1836_WORD_LEN_20; in ad1836_hw_params()
179 word_len = AD1836_WORD_LEN_24; in ad1836_hw_params()
187 word_len << AD1836_DAC_WORD_LEN_OFFSET); in ad1836_hw_params()
191 word_len << AD1836_ADC_WORD_OFFSET); in ad1836_hw_params()
Dad193x.c316 int word_len = 0, master_rate = 0; in ad193x_hw_params() local
323 word_len = 3; in ad193x_hw_params()
326 word_len = 1; in ad193x_hw_params()
330 word_len = 0; in ad193x_hw_params()
354 word_len << AD193X_DAC_WORD_LEN_SHFT); in ad193x_hw_params()
358 AD193X_ADC_WORD_LEN_MASK, word_len); in ad193x_hw_params()
Dmt6660.c332 int word_len = params_physical_width(hw_params); in mt6660_component_aif_hw_params() local
340 dev_dbg(dai->dev, "word_len: %d, aud_bit: %d\n", word_len, aud_bit); in mt6660_component_aif_hw_params()
341 if (word_len > 32 || word_len < 16) { in mt6660_component_aif_hw_params()
369 MT6660_REG_TDM_CFG3, 0x3f0, word_len << 4); in mt6660_component_aif_hw_params()
Dda7219.c1561 int word_len = params_width(params); in da7219_hw_params() local
1564 switch (word_len) { in da7219_hw_params()
1613 if ((word_len * DA7219_DAI_CH_NUM_MAX) <= 32) in da7219_hw_params()
/Linux-v5.10/drivers/base/regmap/
Dregmap-spi-avmm.c159 unsigned char word_len; member
317 if (br->word_len == 1) in br_pkt_phy_tx_prepare()
321 aligned_phy_len = ALIGN(br->phy_len, br->word_len); in br_pkt_phy_tx_prepare()
378 ret = spi_read(br->spi, pb, br->word_len); in br_do_rx_and_pkt_phy_parse()
384 br->swap_words(pb, br->word_len); in br_do_rx_and_pkt_phy_parse()
387 for (i = 0; i < br->word_len; i++) { in br_do_rx_and_pkt_phy_parse()
644 br->word_len = spi->bits_per_word / 8; in spi_avmm_bridge_ctx_gen()
645 if (br->word_len == 4) { in spi_avmm_bridge_ctx_gen()
/Linux-v5.10/sound/soc/cirrus/
Dep93xx-i2s.c300 unsigned word_len, div, sdiv, lrdiv; in ep93xx_i2s_hw_params() local
305 word_len = EP93XX_I2S_WRDLEN_16; in ep93xx_i2s_hw_params()
309 word_len = EP93XX_I2S_WRDLEN_24; in ep93xx_i2s_hw_params()
313 word_len = EP93XX_I2S_WRDLEN_32; in ep93xx_i2s_hw_params()
321 ep93xx_i2s_write_reg(info, EP93XX_I2S_TXWRDLEN, word_len); in ep93xx_i2s_hw_params()
323 ep93xx_i2s_write_reg(info, EP93XX_I2S_RXWRDLEN, word_len); in ep93xx_i2s_hw_params()
/Linux-v5.10/drivers/staging/kpc2000/
Dkpc2000_spi.c356 unsigned int word_len = spidev->bits_per_word; in kp_spi_transfer_one_message() local
370 word_len = transfer->bits_per_word; in kp_spi_transfer_one_message()
371 sc.bitfield.wl = word_len - 1; in kp_spi_transfer_one_message()
/Linux-v5.10/drivers/iio/imu/st_lsm6dsx/
Dst_lsm6dsx_buffer.c325 unsigned int word_len, read_len = 0; in st_lsm6dsx_read_block() local
329 word_len = min_t(unsigned int, data_len - read_len, in st_lsm6dsx_read_block()
332 word_len); in st_lsm6dsx_read_block()
335 read_len += word_len; in st_lsm6dsx_read_block()
/Linux-v5.10/net/netfilter/
Dnf_conntrack_sip.c100 static int word_len(const char *dptr, const char *limit) in word_len() function
115 len = word_len(dptr, limit); in callid_len()
122 domain_len = word_len(dptr, limit); in callid_len()