Lines Matching +full:reg +full:- +full:property
1 /*-
46 if (!OF_hasprop(node, "nvmem-cells") || in nvmem_get_cell_node()
47 !OF_hasprop(node, "nvmem-cell-names")) in nvmem_get_cell_node()
50 ncell = OF_getencprop_alloc_multi(node, "nvmem-cells", sizeof(*p_cell), (void **)&p_cell); in nvmem_get_cell_node()
73 uint32_t reg[2]; in nvmem_get_cell_len() local
76 rv = ofw_bus_find_string_index(node, "nvmem-cell-names", name, &idx); in nvmem_get_cell_len()
84 if (OF_getencprop(cell_node, "reg", reg, sizeof(reg)) != sizeof(reg)) { in nvmem_get_cell_len()
86 printf("nvmem_get_cell_len: Cannot parse reg property of cell %s\n", in nvmem_get_cell_len()
91 return (reg[1]); in nvmem_get_cell_len()
99 uint32_t reg[2]; in nvmem_read_cell_by_idx() local
106 /* Validate the reg property */ in nvmem_read_cell_by_idx()
107 if (OF_getencprop(cell_node, "reg", reg, sizeof(reg)) != sizeof(reg)) { in nvmem_read_cell_by_idx()
109 printf("nvmem_get_cell_by_name: Cannot parse reg property of cell %d\n", in nvmem_read_cell_by_idx()
114 if (buflen != reg[1]) in nvmem_read_cell_by_idx()
124 rv = NVMEM_READ(provider, reg[0], reg[1], cell); in nvmem_read_cell_by_idx()
137 rv = ofw_bus_find_string_index(node, "nvmem-cell-names", name, &idx); in nvmem_read_cell_by_name()
149 uint32_t reg[2]; in nvmem_write_cell_by_idx() local
157 if (OF_hasprop(prov_node, "read-only")) in nvmem_write_cell_by_idx()
160 /* Validate the reg property */ in nvmem_write_cell_by_idx()
161 if (OF_getencprop(cell_node, "reg", reg, sizeof(reg)) != sizeof(reg)) { in nvmem_write_cell_by_idx()
163 printf("nvmem_get_cell_by_idx: Cannot parse reg property of cell %d\n", in nvmem_write_cell_by_idx()
168 if (buflen != reg[1]) in nvmem_write_cell_by_idx()
178 rv = NVMEM_WRITE(provider, reg[0], reg[1], cell); in nvmem_write_cell_by_idx()
191 rv = ofw_bus_find_string_index(node, "nvmem-cell-names", name, &idx); in nvmem_write_cell_by_name()