| /components/drivers/ofw/ |
| A D | io.c | 109 const fdt32_t *cell = rt_ofw_prop_read_raw(np, "reg", &len); in ofw_get_address() local 111 if (cell && skip_cells < (len / sizeof(*cell))) in ofw_get_address() 113 cell += skip_cells; in ofw_get_address() 114 *out_address = rt_fdt_next_cell(&cell, addr_cells); in ofw_get_address() 116 *out_size = rt_fdt_read_number(cell, size_cells); in ofw_get_address() 223 max_nr = len / (sizeof(*cell) * (addr_cells + size_cells)); in rt_ofw_get_address_array() 234 *out_regs = rt_fdt_next_cell(&cell, addr_cells); in rt_ofw_get_address_array() 238 *out_regs = rt_fdt_next_cell(&cell, size_cells); in rt_ofw_get_address_array() 253 const fdt32_t *cell; in ofw_bus_ranges() local 302 groups = prop->length / sizeof(*cell); in ofw_bus_ranges() [all …]
|
| A D | irq.c | 398 const fdt32_t *cell; in ofw_parse_irq_cells() local 439 cell = rt_ofw_prop_read_raw(np, "interrupts", &interrupt_len); in ofw_parse_irq_cells() 441 if (!cell) in ofw_parse_irq_cells() 457 if (index >= interrupt_len / (interrupt_cells * sizeof(*cell))) in ofw_parse_irq_cells() 463 cell += index * interrupt_cells; in ofw_parse_irq_cells() 468 for (int idx = 0; idx < interrupt_cells; ++idx, ++cell) in ofw_parse_irq_cells() 470 out_irq_args->args[idx] = fdt32_to_cpu(*cell); in ofw_parse_irq_cells()
|
| A D | base.c | 874 const fdt32_t *cell = rt_ofw_prop_read_raw(cpu_np, propname, &prop_len); in rt_ofw_get_cpu_node() local 876 if (!cell && !addr_cells) in rt_ofw_get_cpu_node() 891 prop_len /= sizeof(*cell) * addr_cells; in rt_ofw_get_cpu_node() 895 rt_uint64_t hwid = rt_fdt_read_number(cell, addr_cells); in rt_ofw_get_cpu_node() 909 cell += addr_cells; in rt_ofw_get_cpu_node() 978 const fdt32_t *cell; in rt_ofw_get_cpu_state_node() local 981 rt_ofw_foreach_prop_u32(cpu_np, "cpu-idle-states", prop, cell, phandle) in rt_ofw_get_cpu_state_node() 1479 const fdt32_t *cell; in ofw_parse_phandle_cells() local 1512 rt_ofw_foreach_prop_u32(np, list_name, prop, cell, value) in ofw_parse_phandle_cells() 1527 cell = rt_ofw_prop_next_u32(prop, cell, &value); in ofw_parse_phandle_cells() [all …]
|
| A D | ofw.c | 562 fdt32_t *cell = value; in ofw_node_dump_dts() local 570 rt_kprintf("0x%02x ", fdt32_to_cpu(cell[i])); in ofw_node_dump_dts()
|
| A D | fdt.c | 53 rt_uint64_t rt_fdt_read_number(const fdt32_t *cell, int size) in rt_fdt_read_number() argument 57 for (; size--; ++cell) in rt_fdt_read_number() 59 val = (val << 32) | fdt32_to_cpu(*cell); in rt_fdt_read_number()
|
| /components/drivers/pci/ |
| A D | ofw.c | 165 const fdt32_t *cell; in pci_ofw_parse_ranges() local 173 cell = rt_ofw_prop_read_raw(dev_np, propname, &total_cells); in pci_ofw_parse_ranges() 175 if (!cell) in pci_ofw_parse_ranges() 180 groups = total_cells / sizeof(*cell) / (phy_addr_cells + phy_size_cells + cpu_addr_cells); in pci_ofw_parse_ranges() 212 phy_addr[j] = rt_fdt_read_number(cell++, 1); in pci_ofw_parse_ranges() 217 cpu_addr = rt_fdt_read_number(cell, cpu_addr_cells); in pci_ofw_parse_ranges() 218 cell += cpu_addr_cells; in pci_ofw_parse_ranges() 219 phy_addr_size = rt_fdt_read_number(cell, phy_size_cells); in pci_ofw_parse_ranges() 220 cell += phy_size_cells; in pci_ofw_parse_ranges()
|
| /components/drivers/thermal/ |
| A D | thermal.c | 208 cell->cooling_devices = cdev; in thermal_ofw_setup() 214 cell->level_range[0] = args.args[0]; in thermal_ofw_setup() 215 cell->level_range[1] = args.args[1]; in thermal_ofw_setup() 217 if (cell->cooling_devices) in thermal_ofw_setup() 724 struct rt_thermal_cooling_cell *cell; in rt_thermal_cooling_device_kick() local 729 cell = &map->cells[c]; in rt_thermal_cooling_device_kick() 730 cdev = cell->cooling_devices; in rt_thermal_cooling_device_kick() 749 if (level >= cell->level_range[0] && level <= cell->level_range[1]) in rt_thermal_cooling_device_kick() 880 struct rt_thermal_cooling_cell *cell; in list_thermal() local 886 cell = &map->cells[c]; in list_thermal() [all …]
|
| /components/drivers/pinctrl/ |
| A D | pinctrl.c | 24 const fdt32_t *cell; in ofw_pin_ctrl_confs_apply() local 31 rt_ofw_foreach_prop_u32(np, pinctrl_n_name, prop, cell, phandle) in ofw_pin_ctrl_confs_apply()
|
| /components/drivers/include/drivers/ |
| A D | ofw_fdt.h | 56 rt_uint64_t rt_fdt_read_number(const fdt32_t *cell, int size);
|
| /components/drivers/clk/ |
| A D | clk.c | 1397 const fdt32_t *cell; in rt_ofw_count_of_clk() local 1407 for (cell = rt_ofw_prop_next_u32(prop, RT_NULL, &idx); in rt_ofw_count_of_clk() 1408 cell; in rt_ofw_count_of_clk() 1409 cell = rt_ofw_prop_next_u32(prop, cell, &idx)) in rt_ofw_count_of_clk()
|
| /components/legacy/fdt/inc/ |
| A D | dtb_node.h | 310 static inline uint64_t dtb_node_read_number(const uint32_t *cell, int size) in dtb_node_read_number() argument 314 r = (r << 32) | fdt32_to_cpu(*(cell++)); in dtb_node_read_number()
|
| /components/drivers/dma/ |
| A D | dma_pool.c | 172 const fdt32_t *cell; in ofw_device_dma_ops() local 180 rt_ofw_foreach_prop_u32(np, "memory-region", prop, cell, phandle) in ofw_device_dma_ops()
|
| /components/legacy/fdt/src/ |
| A D | dtb_get.c | 422 fdt32_t *cell = (fdt32_t *)value; in _dtb_node_printf_dtb_node_info() local 427 rt_kprintf("0x%x ", fdt32_to_cpu(cell[i])); in _dtb_node_printf_dtb_node_info()
|