Lines Matching refs:nvmem
7 * Based on the nvmem driver written by: Vadym Kochan <vadym.kochan@plvision.eu>
13 #include <linux/nvmem-consumer.h>
14 #include <linux/nvmem-provider.h>
98 static int onie_tlv_add_cells(struct device *dev, struct nvmem_device *nvmem,
108 layout = of_nvmem_layout_get_container(nvmem);
129 ret = nvmem_add_one_cell(nvmem, &cell);
185 static int onie_tlv_parse_table(struct device *dev, struct nvmem_device *nvmem,
193 ret = nvmem_device_read(nvmem, 0, sizeof(hdr), &hdr);
214 ret = nvmem_device_read(nvmem, 0, table_len, table);
222 ret = onie_tlv_add_cells(dev, nvmem, data_len, data);