/u-boot/drivers/misc/ |
A D | nvmem.c | 19 dev_dbg(cell->nvmem, "%s: off=%u size=%zu\n", __func__, cell->offset, size); in nvmem_cell_read() 20 if (size != cell->size) in nvmem_cell_read() 25 return i2c_eeprom_read(cell->nvmem, cell->offset, buf, size); in nvmem_cell_read() 27 int ret = misc_read(cell->nvmem, cell->offset, buf, size); in nvmem_cell_read() 36 return dm_rtc_read(cell->nvmem, cell->offset, buf, size); in nvmem_cell_read() 44 dev_dbg(cell->nvmem, "%s: off=%u size=%zu\n", __func__, cell->offset, size); in nvmem_cell_write() 45 if (size != cell->size) in nvmem_cell_write() 50 return i2c_eeprom_write(cell->nvmem, cell->offset, buf, size); in nvmem_cell_write() 52 int ret = misc_write(cell->nvmem, cell->offset, buf, size); in nvmem_cell_write() 61 return dm_rtc_write(cell->nvmem, cell->offset, buf, size); in nvmem_cell_write() [all …]
|
/u-boot/include/ |
A D | nvmem.h | 50 int nvmem_cell_read(struct nvmem_cell *cell, void *buf, size_t size); 64 int nvmem_cell_write(struct nvmem_cell *cell, const void *buf, size_t size); 84 struct nvmem_cell *cell); 105 struct nvmem_cell *cell); 109 static inline int nvmem_cell_read(struct nvmem_cell *cell, void *buf, int size) in nvmem_cell_read() argument 114 static inline int nvmem_cell_write(struct nvmem_cell *cell, const void *buf, in nvmem_cell_write() argument 121 struct nvmem_cell *cell) in nvmem_cell_get_by_index() argument 127 struct nvmem_cell *cell) in nvmem_cell_get_by_name() argument
|
/u-boot/lib/ |
A D | fdtdec_common.c | 25 const int *cell; in fdtdec_get_int() local 29 cell = fdt_getprop(blob, node, prop_name, &len); in fdtdec_get_int() 30 if (cell && len >= sizeof(int)) { in fdtdec_get_int() 31 int val = fdt32_to_cpu(cell[0]); in fdtdec_get_int() 43 const int *cell; in fdtdec_get_uint() local 47 cell = fdt_getprop(blob, node, prop_name, &len); in fdtdec_get_uint() 48 if (cell && len >= sizeof(unsigned int)) { in fdtdec_get_uint() 49 unsigned int val = fdt32_to_cpu(cell[0]); in fdtdec_get_uint()
|
A D | fdtdec.c | 295 const char *cell; in fdtdec_get_is_enabled() local 305 if (cell) in fdtdec_get_is_enabled() 669 if (!cell) in get_prop_check_min_len() 675 return cell; in get_prop_check_min_len() 681 const u32 *cell; in fdtdec_get_int_array() local 705 if (!cell) in fdtdec_get_int_array_count() 864 const u8 *cell; in fdtdec_get_byte_array() local 876 const u8 *cell; in fdtdec_locate_byte_array() local 882 return cell; in fdtdec_locate_byte_array() 1765 if (!cell) { in fdtdec_decode_ram_size() [all …]
|
/u-boot/drivers/pci/ |
A D | pci_sandbox.c | 83 const fdt32_t *cell; in sandbox_pci_probe() local 87 cell = ofnode_get_property(dev_ofnode(dev), "sandbox,dev-info", &len); in sandbox_pci_probe() 88 if (!cell) in sandbox_pci_probe() 97 fdt32_to_cpu(cell[0]), fdt32_to_cpu(cell[1]), in sandbox_pci_probe() 98 fdt32_to_cpu(cell[2]), fdt32_to_cpu(cell[3])); in sandbox_pci_probe() 100 pdev = fdt32_to_cpu(cell[0]); in sandbox_pci_probe() 101 pfn = fdt32_to_cpu(cell[1]); in sandbox_pci_probe() 105 priv->vendev[devfn].vendor = fdt32_to_cpu(cell[2]); in sandbox_pci_probe() 106 priv->vendev[devfn].device = fdt32_to_cpu(cell[3]); in sandbox_pci_probe() 108 cell += FDT_DEV_INFO_CELLS; in sandbox_pci_probe()
|
/u-boot/arch/powerpc/dts/ |
A D | qoriq-fman-0.dtsi | 13 cell-index = <0>; 29 cell-index = <0x1>; 35 cell-index = <0x2>; 41 cell-index = <0x3>; 47 cell-index = <0x4>; 53 cell-index = <0x5>; 60 cell-index = <0x6>; 67 cell-index = <0x7>;
|
A D | qoriq-fman-1.dtsi | 13 cell-index = <1>; 29 cell-index = <0x1>; 35 cell-index = <0x2>; 41 cell-index = <0x3>; 47 cell-index = <0x4>; 53 cell-index = <0x5>; 60 cell-index = <0x6>; 67 cell-index = <0x7>;
|
A D | qoriq-fman3-1.dtsi | 13 cell-index = <1>; 29 cell-index = <0x2>; 35 cell-index = <0x3>; 41 cell-index = <0x4>; 47 cell-index = <0x5>; 53 cell-index = <0x6>; 59 cell-index = <0x7>;
|
A D | qoriq-fman3-0.dtsi | 13 cell-index = <0>; 29 cell-index = <0x2>; 35 cell-index = <0x3>; 41 cell-index = <0x4>; 47 cell-index = <0x5>; 53 cell-index = <0x6>; 59 cell-index = <0x7>;
|
A D | qoriq-fman3l-0.dtsi | 13 cell-index = <0>; 29 cell-index = <0x2>; 35 cell-index = <0x3>; 41 cell-index = <0x4>; 47 cell-index = <0x5>;
|
A D | qoriq-fman-1-10g-0.dtsi | 12 cell-index = <0x10>; 18 cell-index = <0x30>; 24 cell-index = <0x8>;
|
A D | qoriq-fman-0-10g-0.dtsi | 12 cell-index = <0x10>; 18 cell-index = <0x30>; 24 cell-index = <0x8>;
|
/u-boot/drivers/core/ |
A D | simple-bus.c | 46 u32 cell[3]; in simple_bus_post_bind() 48 ret = dev_read_u32_array(dev, "ranges", cell, in simple_bus_post_bind() 49 ARRAY_SIZE(cell)); in simple_bus_post_bind() 51 plat->base = cell[0]; in simple_bus_post_bind() 52 plat->target = cell[1]; in simple_bus_post_bind() 53 plat->size = cell[2]; in simple_bus_post_bind()
|
A D | of_extra.c | 58 const fdt_addr_t *cell; in ofnode_decode_region() local 62 cell = ofnode_get_property(node, prop_name, &len); in ofnode_decode_region() 63 if (!cell || (len < sizeof(fdt_addr_t) * 2)) { in ofnode_decode_region() 64 debug("cell=%p, len=%d\n", cell, len); in ofnode_decode_region() 68 *basep = fdt_addr_to_cpu(*cell); in ofnode_decode_region() 69 *sizep = fdt_size_to_cpu(cell[1]); in ofnode_decode_region()
|
/u-boot/arch/arm/mach-socfpga/ |
A D | pinmux_arria10.c | 17 const u32 *cell; in do_pinctr_pin() local 22 cell = fdt_getprop(blob, child, "pinctrl-single,pins", &len); in do_pinctr_pin() 23 if (!cell || len <= 0) in do_pinctr_pin() 26 debug("%p %d\n", cell, len); in do_pinctr_pin() 28 offset = fdt32_to_cpu(*cell++); in do_pinctr_pin() 29 value = fdt32_to_cpu(*cell++); in do_pinctr_pin()
|
/u-boot/boot/ |
A D | common_fit.c | 15 const u32 *cell; in fdt_getprop_u32() local 18 cell = fdt_getprop(fdt, node, prop, &len); in fdt_getprop_u32() 19 if (!cell || len != sizeof(*cell)) in fdt_getprop_u32() 22 return fdt32_to_cpu(*cell); in fdt_getprop_u32()
|
/u-boot/arch/x86/cpu/ |
A D | irq.c | 154 const u32 *cell; in create_pirq_routing_table() local 180 if (!cell || len != 8) in create_pirq_routing_table() 182 priv->link_base = fdt_addr_to_cpu(cell[0]); in create_pirq_routing_table() 183 priv->link_num = fdt_addr_to_cpu(cell[1]); in create_pirq_routing_table() 191 if (cell) { in create_pirq_routing_table() 209 map->link = fdt_addr_to_cpu(cell[0]); in create_pirq_routing_table() 210 map->offset = fdt_addr_to_cpu(cell[1]); in create_pirq_routing_table() 250 if (!cell || len % sizeof(struct pirq_routing)) in create_pirq_routing_table() 273 pr.bdf = fdt_addr_to_cpu(cell[0]); in create_pirq_routing_table() 274 pr.pin = fdt_addr_to_cpu(cell[1]); in create_pirq_routing_table() [all …]
|
/u-boot/arch/arm/dts/ |
A D | qoriq-fman3-0.dtsi | 13 cell-index = <0>; 28 cell-index = <0x2>; 34 cell-index = <0x3>; 40 cell-index = <0x4>; 46 cell-index = <0x5>; 52 cell-index = <0x6>; 58 cell-index = <0x7>;
|
A D | qoriq-fman3-0-10g-0.dtsi | 12 cell-index = <0x10>; 19 cell-index = <0x30>; 26 cell-index = <0x8>;
|
A D | qoriq-fman3-0-10g-1.dtsi | 12 cell-index = <0x11>; 19 cell-index = <0x31>; 26 cell-index = <0x9>;
|
/u-boot/drivers/reboot-mode/ |
A D | reboot-mode-nvmem.c | 16 struct nvmem_cell cell; member 23 return nvmem_cell_read(&priv->cell, mode, sizeof(*mode)); in reboot_mode_get() 30 return nvmem_cell_write(&priv->cell, &mode, sizeof(mode)); in reboot_mode_set() 42 return nvmem_cell_get_by_name(dev, "reboot-mode", &priv->cell); in reboot_mode_probe()
|
/u-boot/include/dm/ |
A D | of.h | 129 static inline u64 of_read_number(const __be32 *cell, int size) in of_read_number() argument 133 r = (r << 32) | be32_to_cpu(*(cell++)); in of_read_number() 138 static inline unsigned long of_read_ulong(const __be32 *cell, int size) in of_read_ulong() argument 141 return of_read_number(cell, size); in of_read_ulong()
|
/u-boot/drivers/pinctrl/ath79/ |
A D | pinctrl_ar933x.c | 76 u32 cell[2]; in ar933x_pinctrl_get_periph_id() local 80 "interrupts", cell, ARRAY_SIZE(cell)); in ar933x_pinctrl_get_periph_id() 84 switch (cell[0]) { in ar933x_pinctrl_get_periph_id()
|
/u-boot/doc/device-tree-bindings/misc/ |
A D | intel,irq-router.txt | 23 first cell is the register offset that controls the first PIRQ link routing. 24 The second cell is the total number of PIRQ links the router supports. 26 encoded as 2 cells a group for each link. The first cell is the PIRQ link 27 number (0 for PIRQA, 1 for PIRQB, etc). The second cell is the PIRQ routing 30 link, as specified by the first cell of intel,pirq-link. 34 encoded as 3 cells a group for a device. The first cell is the device's PCI 36 The second cell is the PCI interrupt pin used by this device. The last cell
|
/u-boot/doc/device-tree-bindings/gpio/ |
A D | nvidia,tegra20-gpio.txt | 9 - #gpio-cells : Should be two. The first cell is the pin number and the 10 second cell is used to specify optional parameters: 14 The first cell is the GPIO number. 15 The second cell is used to specify flags:
|