Lines Matching refs:data_len
35 size_t data_len; member
55 if (offset + bytes > priv->data_len) in brcm_nvram_read()
56 to_copy = max_t(ssize_t, (ssize_t)priv->data_len - offset, 0); in brcm_nvram_read()
79 for (priv->data_len = priv->nvmem_size; in brcm_nvram_copy_data()
80 priv->data_len; in brcm_nvram_copy_data()
81 priv->data_len--) { in brcm_nvram_copy_data()
82 if (readb(base + priv->data_len - 1) != priv->padding_byte) in brcm_nvram_copy_data()
85 WARN(priv->data_len > SZ_128K, "Unexpected (big) NVRAM size: %zu B\n", priv->data_len); in brcm_nvram_copy_data()
87 priv->data = devm_kzalloc(priv->dev, priv->data_len, GFP_KERNEL); in brcm_nvram_copy_data()
91 memcpy_fromio(priv->data, base, priv->data_len); in brcm_nvram_copy_data()
93 bcm47xx_nvram_init_from_iomem(base, priv->data_len); in brcm_nvram_copy_data()