Lines Matching +full:1 +full:- +full:cell

1 /*-
7 * 1. Redistributions of source code must retain the above copyright
40 nvmem_get_cell_node(phandle_t node, int idx, phandle_t *cell) in nvmem_get_cell_node() argument
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()
64 *cell = cell_node; in nvmem_get_cell_node()
76 rv = ofw_bus_find_string_index(node, "nvmem-cell-names", name, &idx); 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()
95 nvmem_read_cell_by_idx(phandle_t node, int idx, void *cell, size_t buflen) in nvmem_read_cell_by_idx() argument
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()
133 nvmem_read_cell_by_name(phandle_t node, const char *name, void *cell, size_t buflen) in nvmem_read_cell_by_name() argument
137 rv = ofw_bus_find_string_index(node, "nvmem-cell-names", name, &idx); in nvmem_read_cell_by_name()
141 return (nvmem_read_cell_by_idx(node, idx, cell, buflen)); in nvmem_read_cell_by_name()
145 nvmem_write_cell_by_idx(phandle_t node, int idx, void *cell, size_t buflen) in nvmem_write_cell_by_idx() argument
157 if (OF_hasprop(prov_node, "read-only")) 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()
187 nvmem_write_cell_by_name(phandle_t node, const char *name, void *cell, size_t buflen) in nvmem_write_cell_by_name() argument
191 rv = ofw_bus_find_string_index(node, "nvmem-cell-names", name, &idx); in nvmem_write_cell_by_name()
195 return (nvmem_write_cell_by_idx(node, idx, cell, buflen)); in nvmem_write_cell_by_name()