| /linux/drivers/nvmem/ |
| H A D | rockchip-otp.c | 72 int word_size; member 270 int ret, word_size; in rockchip_otp_read() local 282 word_size = otp->data->word_size; in rockchip_otp_read() 284 if (word_size > 1) { in rockchip_otp_read() 289 addr_start = offset / word_size; in rockchip_otp_read() 290 addr_end = DIV_ROUND_UP(offset + bytes, word_size); in rockchip_otp_read() 293 buf = kzalloc(array_size(count, word_size), GFP_KERNEL); in rockchip_otp_read() 301 memcpy(val, buf + (offset % word_size), bytes); in rockchip_otp_read() 321 .word_size = sizeof(u8), 342 .word_size = sizeof(u16), [all …]
|
| H A D | bcm-ocotp.c | 157 u32 address = offset / priv->config->word_size; in bcm_otpc_read() 188 u32 address = offset / priv->config->word_size; in bcm_otpc_write() 191 if (offset % priv->config->word_size) in bcm_otpc_write() 223 .word_size = 4, 287 bcm_otpc_nvmem_config.word_size = 8; in bcm_otpc_probe()
|
| H A D | core.c | 229 if (count < nvmem->word_size) in bin_attr_nvmem_read() 232 count = round_down(count, nvmem->word_size); in bin_attr_nvmem_read() 262 if (count < nvmem->word_size) in bin_attr_nvmem_write() 265 count = round_down(count, nvmem->word_size); in bin_attr_nvmem_write() 597 cell->raw_len = ALIGN(cell->bytes, nvmem->word_size); in nvmem_cell_info_to_nvmem_cell_entry_nodup() 607 if (!IS_ALIGNED(cell->raw_len, nvmem->word_size)) { in nvmem_cell_info_to_nvmem_cell_entry_nodup() 611 nvmem->word_size); in nvmem_cell_info_to_nvmem_cell_entry_nodup() 616 cell->raw_len = ALIGN(cell->raw_len, nvmem->word_size); in nvmem_cell_info_to_nvmem_cell_entry_nodup() 762 if ((keepout->end - keepout->start < nvmem->word_size) || in nvmem_validate_keepouts() 764 (keepout->start - cur < nvmem->word_size))) { in nvmem_validate_keepouts() [all …]
|
| H A D | imx-ocotp.c | 325 if ((bytes != priv->config->word_size) || in imx_ocotp_write() 326 (offset % priv->config->word_size)) in imx_ocotp_write() 366 offset = offset / priv->config->word_size; in imx_ocotp_write() 483 .word_size = 4,
|
| H A D | internals.h | 15 int word_size; member
|
| H A D | apple-spmi-nvmem.c | 28 .word_size = 1, in apple_spmi_nvmem_probe()
|
| H A D | qoriq-efuse.c | 37 .word_size = sizeof(u32), in qoriq_efuse_probe()
|
| H A D | apple-efuses.c | 43 .word_size = sizeof(u32), in apple_efuses_probe()
|
| H A D | uniphier-efuse.c | 49 econfig.word_size = 1; in uniphier_efuse_probe()
|
| H A D | sec-qfprom.c | 52 .word_size = 1, in sec_qfprom_probe()
|
| H A D | layerscape-sfp.c | 42 .word_size = 4,
|
| H A D | meson-efuse.c | 84 econfig->word_size = 1; in meson_efuse_probe()
|
| H A D | nintendo-otp.c | 84 .word_size = WORD_SIZE, in nintendo_otp_probe()
|
| H A D | qnap-mcu-eeprom.c | 90 nvcfg.word_size = 1; in qnap_mcu_eeprom_probe()
|
| /linux/sound/soc/adi/ |
| H 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/sound/soc/codecs/ |
| H A D | rt5677-spi.c | 460 u32 word_size = min_t(u32, dstlen, 8); in rt5677_spi_reverse() local 462 for (w = 0; w < dstlen; w += word_size) { in rt5677_spi_reverse() 463 for (i = 0; i < word_size && i + w < dstlen; i++) { in rt5677_spi_reverse() 464 si = w + word_size - i - 1; in rt5677_spi_reverse()
|
| /linux/drivers/net/wireless/ralink/rt2x00/ |
| H 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()
|
| H A D | rt2x00debug.h | 38 unsigned int word_size; \
|
| /linux/sound/soc/sunxi/ |
| H A D | sun8i-codec.c | 579 int bclk_div, lrck_div_order, ret, word_size; in sun8i_codec_hw_params() local 585 word_size = 0x0; in sun8i_codec_hw_params() 588 word_size = 0x1; in sun8i_codec_hw_params() 591 word_size = 0x2; in sun8i_codec_hw_params() 594 word_size = 0x3; in sun8i_codec_hw_params() 602 word_size << SUN8I_AIF_CLK_CTRL_WORD_SIZ); in sun8i_codec_hw_params()
|
| /linux/drivers/rtc/ |
| H A D | rtc-rx8581.c | 249 .word_size = 1, in rx8581_probe() 256 .word_size = 1, in rx8581_probe()
|
| /linux/drivers/net/ethernet/intel/igc/ |
| H A D | igc_base.c | 89 nvm->word_size = BIT(size); in igc_init_nvm_params_base() 97 if (nvm->word_size == BIT(15)) in igc_init_nvm_params_base()
|
| /linux/drivers/soc/atmel/ |
| H A D | sfr.c | 35 .word_size = 4,
|
| /linux/drivers/net/ethernet/intel/e1000e/ |
| H A D | 82571.c | 149 nvm->word_size = 2048; in e1000_init_nvm_params_82571() 169 nvm->word_size = BIT(size); in e1000_init_nvm_params_82571() 436 s32 sw_timeout = hw->nvm.word_size + 1; in e1000_get_hw_semaphore_82571() 437 s32 fw_timeout = hw->nvm.word_size + 1; in e1000_get_hw_semaphore_82571() 814 if ((offset >= nvm->word_size) || (words > (nvm->word_size - offset)) || in e1000_write_nvm_eewr_82571()
|
| /linux/drivers/dma/ |
| H A D | imx-dma.c | 153 enum dma_slave_buswidth word_size; member 668 imxdmac->word_size = dmaengine_cfg->src_addr_width; in imxdma_config_write() 672 imxdmac->word_size = dmaengine_cfg->dst_addr_width; in imxdma_config_write() 675 switch (imxdmac->word_size) { in imxdma_config_write() 701 imxdmac->word_size, DMA_BLR(imxdmac->channel)); in imxdma_config_write() 815 switch (imxdmac->word_size) { in imxdma_prep_slave_sg()
|
| /linux/include/linux/ |
| H A D | nvmem-provider.h | 132 int word_size; member
|