/linux/drivers/nvmem/ |
A D | meson-mx-efuse.c | 41 unsigned int word_size; member 151 for (i = 0; i < bytes; i += efuse->config.word_size) { in meson_mx_efuse_read() 152 addr = (offset + i) / efuse->config.word_size; in meson_mx_efuse_read() 159 min_t(size_t, bytes - i, efuse->config.word_size)); in meson_mx_efuse_read() 172 .word_size = 1, 177 .word_size = 4, 182 .word_size = 4, 217 efuse->config.stride = drvdata->word_size; in meson_mx_efuse_probe() 218 efuse->config.word_size = drvdata->word_size; in meson_mx_efuse_probe()
|
A D | bcm-ocotp.c | 168 u32 address = offset / priv->config->word_size; in bcm_otpc_read() 199 u32 address = offset / priv->config->word_size; in bcm_otpc_write() 202 if (offset % priv->config->word_size) in bcm_otpc_write() 234 .word_size = 4, 300 bcm_otpc_nvmem_config.word_size = 8; in bcm_otpc_probe()
|
A D | imx-ocotp.c | 329 if ((bytes != priv->config->word_size) || in imx_ocotp_write() 330 (offset % priv->config->word_size)) in imx_ocotp_write() 370 offset = offset / priv->config->word_size; in imx_ocotp_write() 487 .word_size = 4,
|
A D | core.c | 26 int word_size; member 231 if (count < nvmem->word_size) in bin_attr_nvmem_read() 237 count = round_down(count, nvmem->word_size); in bin_attr_nvmem_read() 271 if (count < nvmem->word_size) in bin_attr_nvmem_write() 277 count = round_down(count, nvmem->word_size); in bin_attr_nvmem_write() 653 if ((keepout->end - keepout->start < nvmem->word_size) || in nvmem_validate_keepouts() 655 (keepout->start - cur < nvmem->word_size))) { in nvmem_validate_keepouts() 790 nvmem->word_size = config->word_size ?: 1; in nvmem_register()
|
A D | zynqmp_nvmem.c | 39 .word_size = 1,
|
A D | uniphier-efuse.c | 50 econfig.word_size = 1; in uniphier_efuse_probe()
|
A D | lpc18xx_otp.c | 62 .word_size = LPC18XX_OTP_WORD_SIZE,
|
A D | mtk-efuse.c | 49 econfig.word_size = 4; in mtk_efuse_probe()
|
/linux/drivers/net/ethernet/intel/igb/ |
A D | e1000_nvm.c | 316 if ((offset >= nvm->word_size) || (words > (nvm->word_size - offset)) || in igb_read_nvm_spi() 374 if ((offset >= nvm->word_size) || (words > (nvm->word_size - offset)) || in igb_read_nvm_eerd() 419 if ((offset >= nvm->word_size) || (words > (nvm->word_size - offset)) || in igb_write_nvm_spi()
|
/linux/sound/soc/adi/ |
A D | axi-i2s.c | 92 unsigned int bclk_div, word_size; in axi_i2s_hw_params() local 97 word_size = AXI_I2S_BITS_PER_FRAME / 2 - 1; in axi_i2s_hw_params() 100 regmap_write(i2s->regmap, AXI_I2S_REG_CLK_CTRL, (word_size << 16) | in axi_i2s_hw_params()
|
/linux/drivers/net/ethernet/intel/e1000e/ |
A D | nvm.c | 300 if ((offset >= nvm->word_size) || (words > (nvm->word_size - offset)) || in e1000e_read_nvm_eerd() 344 if ((offset >= nvm->word_size) || (words > (nvm->word_size - offset)) || in e1000e_write_nvm_spi()
|
A D | 82571.c | 149 nvm->word_size = 2048; in e1000_init_nvm_params_82571() 170 nvm->word_size = BIT(size); in e1000_init_nvm_params_82571() 437 s32 sw_timeout = hw->nvm.word_size + 1; in e1000_get_hw_semaphore_82571() 438 s32 fw_timeout = hw->nvm.word_size + 1; in e1000_get_hw_semaphore_82571() 815 if ((offset >= nvm->word_size) || (words > (nvm->word_size - offset)) || in e1000_write_nvm_eewr_82571()
|
/linux/sound/soc/sunxi/ |
A D | sun8i-codec.c | 501 int bclk_div, lrck_div_order, ret, word_size; in sun8i_codec_hw_params() local 507 word_size = 0x0; in sun8i_codec_hw_params() 510 word_size = 0x1; in sun8i_codec_hw_params() 513 word_size = 0x2; in sun8i_codec_hw_params() 516 word_size = 0x3; in sun8i_codec_hw_params() 524 word_size << SUN8I_AIF_CLK_CTRL_WORD_SIZ); in sun8i_codec_hw_params()
|
/linux/drivers/net/ethernet/intel/igc/ |
A D | igc_nvm.c | 106 if (offset >= nvm->word_size || (words > (nvm->word_size - offset)) || in igc_read_nvm_eerd()
|
A D | igc_i225.c | 42 s32 timeout = hw->nvm.word_size + 1; in igc_get_hw_semaphore_i225() 229 if (offset >= nvm->word_size || (words > (nvm->word_size - offset)) || in igc_write_nvm_srwr()
|
A D | igc_base.c | 86 nvm->word_size = BIT(size); in igc_init_nvm_params_base() 94 if (nvm->word_size == BIT(15)) in igc_init_nvm_params_base()
|
/linux/drivers/thunderbolt/ |
A D | nvm.c | 69 config.word_size = 4; in tb_nvm_add_active() 134 config.word_size = 4; in tb_nvm_add_non_active()
|
/linux/sound/soc/codecs/ |
A D | rt5677-spi.c | 459 u32 word_size = min_t(u32, dstlen, 8); in rt5677_spi_reverse() local 461 for (w = 0; w < dstlen; w += word_size) { in rt5677_spi_reverse() 462 for (i = 0; i < word_size && i + w < dstlen; i++) { in rt5677_spi_reverse() 463 si = w + word_size - i - 1; in rt5677_spi_reverse()
|
/linux/drivers/net/wireless/ralink/rt2x00/ |
A D | rt2x00debug.c | 429 debug->__name.word_size); \ 432 index *= debug->__name.word_size; \ 471 debug->__name.word_size); \ 474 index *= debug->__name.word_size; \ 621 debug->__name.word_size); \ in rt2x00debug_create_file_chipset()
|
A D | rt2x00debug.h | 38 unsigned int word_size; \
|
/linux/drivers/net/ethernet/intel/ixgbe/ |
A D | ixgbe_x540.c | 200 eeprom->word_size = BIT(eeprom_size + in ixgbe_init_eeprom_params_X540() 204 eeprom->type, eeprom->word_size); in ixgbe_init_eeprom_params_X540() 347 pointer >= hw->eeprom.word_size) in ixgbe_calc_eeprom_checksum_X540() 357 (pointer + length) >= hw->eeprom.word_size) in ixgbe_calc_eeprom_checksum_X540()
|
/linux/drivers/rtc/ |
A D | rtc-rx8581.c | 260 .word_size = 1, in rx8581_probe() 267 .word_size = 1, in rx8581_probe()
|
/linux/drivers/dma/ |
A D | imx-dma.c | 152 enum dma_slave_buswidth word_size; member 669 imxdmac->word_size = dmaengine_cfg->src_addr_width; in imxdma_config_write() 673 imxdmac->word_size = dmaengine_cfg->dst_addr_width; in imxdma_config_write() 676 switch (imxdmac->word_size) { in imxdma_config_write() 702 imxdmac->word_size, DMA_BLR(imxdmac->channel)); in imxdma_config_write() 817 switch (imxdmac->word_size) { in imxdma_prep_slave_sg()
|
A D | imx-sdma.c | 430 enum dma_slave_buswidth word_size; member 1535 if (sdmac->word_size > DMA_SLAVE_BUSWIDTH_4_BYTES) in sdma_prep_slave_sg() 1538 switch (sdmac->word_size) { in sdma_prep_slave_sg() 1619 if (sdmac->word_size > DMA_SLAVE_BUSWIDTH_4_BYTES) in sdma_prep_dma_cyclic() 1621 if (sdmac->word_size == DMA_SLAVE_BUSWIDTH_4_BYTES) in sdma_prep_dma_cyclic() 1624 bd->mode.command = sdmac->word_size; in sdma_prep_dma_cyclic() 1662 sdmac->word_size = dmaengine_cfg->src_addr_width; in sdma_config_write() 1670 sdmac->word_size = dmaengine_cfg->dst_addr_width; in sdma_config_write() 1675 sdmac->word_size = dmaengine_cfg->dst_addr_width; in sdma_config_write()
|
/linux/drivers/soc/atmel/ |
A D | sfr.c | 36 .word_size = 4,
|