HomeSort by: relevance | last modified time | path
    Searched refs:phandle (Results 1 - 25 of 439) sorted by relevancy

1 2 3 4 5 6 7 8 91011>>

  /src/sys/dev/fdt/
fdt_pinctrl.c 55 fdtbus_register_pinctrl_config(device_t dev, int phandle,
62 pc->pc_phandle = phandle;
71 fdtbus_pinctrl_lookup(int phandle)
76 if (pc->pc_phandle == phandle)
84 fdtbus_pinctrl_set_config_index(int phandle, u_int index)
94 pinctrl_data = fdtbus_get_prop(phandle, buf, &len);
119 fdtbus_pinctrl_set_config(int phandle, const char *cfgname)
124 err = fdtbus_get_index(phandle, "pinctrl-names", cfgname, &index);
128 return fdtbus_pinctrl_set_config_index(phandle, index);
132 fdtbus_pinctrl_has_config(int phandle, const char *cfgname
    [all...]
fdt_subr.c 75 fdtbus_phandle2offset(int phandle)
79 if (phandle == -1)
80 phandle = dtoff;
82 if (phandle < dtoff)
85 return phandle - dtoff;
97 fdtbus_get_addr_cells(int phandle)
101 if (of_getprop_uint32(phandle, "#address-cells", &addr_cells))
108 fdtbus_get_size_cells(int phandle)
112 if (of_getprop_uint32(phandle, "#size-cells", &size_cells))
119 fdtbus_get_phandle(int phandle, const char *prop
    [all...]
fdt_powerdomain.c 62 fdtbus_register_powerdomain_controller(device_t dev, int phandle,
68 if (of_getprop_uint32(phandle, "#power-domain-cells", &cells) != 0) {
75 pdc->pdc_phandle = phandle;
85 fdtbus_powerdomain_lookup(int phandle)
90 if (pdc->pdc_phandle == phandle)
98 fdtbus_powerdomain_enable_internal(int phandle, int index, bool enable)
101 const uint32_t *pds = fdtbus_get_prop(phandle, "power-domains", &len);
127 fdtbus_powerdomain_enable_index(int phandle, int index)
129 return fdtbus_powerdomain_enable_internal(phandle, index, true);
133 fdtbus_powerdomain_disable_index(int phandle, int index
    [all...]
fdt_syscon.c 54 fdtbus_register_syscon(device_t dev, int phandle,
61 sc->sc_phandle = phandle;
70 fdtbus_get_syscon(int phandle)
75 if (sc->sc_phandle == phandle)
83 fdtbus_syscon_acquire(int phandle, const char *prop)
88 sc_phandle = fdtbus_get_phandle(phandle, prop);
100 fdtbus_syscon_lookup(int phandle)
104 sc = fdtbus_get_syscon(phandle);
fdt_clock.c 54 fdtbus_register_clock_controller(device_t dev, int phandle,
61 cc->cc_phandle = phandle;
66 fdtbus_clock_assign(phandle);
72 fdtbus_get_clock_controller(int phandle)
77 if (cc->cc_phandle == phandle)
85 fdtbus_clock_get_index_prop(int phandle, u_int index, const char *prop)
93 p = fdtbus_get_prop(phandle, prop, &len);
118 fdtbus_clock_get_index(int phandle, u_int index)
120 return fdtbus_clock_get_index_prop(phandle, index, "clocks");
124 fdtbus_clock_get_prop(int phandle, const char *clkname, const char *prop
    [all...]
fdt_openfirm.c 38 OF_peer(int phandle)
47 if (phandle == 0) {
51 off = fdtbus_phandle2offset(phandle);
69 OF_child(int phandle)
78 off = fdtbus_phandle2offset(phandle);
96 OF_parent(int phandle)
105 off = fdtbus_phandle2offset(phandle);
119 OF_nextprop(int phandle, const char *prop, void *nextprop)
130 off = fdtbus_phandle2offset(phandle);
169 OF_getprop(int phandle, const char *prop, void *buf, int buflen
    [all...]
fdt_dai.c 52 fdtbus_register_dai_controller(device_t dev, int phandle,
59 dc->dc_phandle = phandle;
68 fdtbus_get_dai_controller(int phandle)
73 if (dc->dc_phandle == phandle)
81 fdtbus_dai_acquire(int phandle, const char *prop)
83 return fdtbus_dai_acquire_index(phandle, prop, 0);
87 fdtbus_dai_acquire_index(int phandle, const char *prop, int index)
94 dais = fdtbus_get_prop(phandle, prop, &len);
fdt_pwm.c 52 fdtbus_register_pwm_controller(device_t dev, int phandle,
59 pc->pc_phandle = phandle;
68 fdtbus_get_pwm_controller(int phandle)
73 if (pc->pc_phandle == phandle)
81 fdtbus_pwm_acquire(int phandle, const char *prop)
83 return fdtbus_pwm_acquire_index(phandle, prop, 0);
87 fdtbus_pwm_acquire_index(int phandle, const char *prop, int index)
94 pwms = fdtbus_get_prop(phandle, prop, &len);
dw_apb_uart.c 80 const int phandle = faa->faa_phandle; local in function:dw_apb_uart_attach
89 if (fdtbus_get_reg(phandle, 0, &addr, &size) != 0) {
94 if (of_getprop_uint32(phandle, "reg-shift", &reg_shift)) {
98 if (of_getprop_uint32(phandle, "reg-io-width", &reg_iowidth)) {
105 ssc->ssc_clk = fdtbus_clock_get_index(phandle, 0);
115 ssc->ssc_pclk = fdtbus_clock_get(phandle, "apb_pclk");
121 ssc->ssc_rst = fdtbus_reset_get_index(phandle, 0);
140 if (!fdtbus_intr_str(phandle, 0, intrstr, sizeof(intrstr))) {
145 ssc->ssc_ih = fdtbus_intr_establish_xname(phandle, 0,
159 dw_apb_uart_console_match(int phandle)
167 const int phandle = faa->faa_phandle; local in function:dw_apb_uart_console_consinit
    [all...]
fdt_intr.c 82 * return the phandle of the interrupt controller for this node, or the phandle
87 fdtbus_get_interrupt_parent(int phandle)
89 int iparent = phandle;
97 if (phandle != iparent && of_hasprop(iparent, "interrupt-controller"))
110 if (phandle != iparent && of_hasprop(iparent, "interrupt-map"))
123 fdtbus_get_interrupt_controller(int phandle)
127 if (ic->ic_phandle == phandle)
134 fdtbus_register_interrupt_controller(device_t dev, int phandle,
141 ic->ic_phandle = phandle;
    [all...]
fixedregulator.c 95 const int phandle = faa->faa_phandle; local in function:fixedregulator_attach
100 sc->sc_phandle = phandle;
104 len = OF_getproplen(phandle, "regulator-name");
107 if (OF_getprop(phandle, "regulator-name", name, len) == len) {
118 if (of_getprop_bool(phandle, "gpio-open-drain"))
121 sc->sc_always_on = of_getprop_bool(phandle, "regulator-always-on");
122 sc->sc_boot_on = of_getprop_bool(phandle, "regulator-boot-on");
123 sc->sc_enable_val = of_getprop_bool(phandle, "enable-active-high");
124 if (of_getprop_uint32(phandle, "startup-delay-us", &sc->sc_delay) != 0)
126 of_getprop_uint32(phandle, "regulator-min-microvolt", &sc->sc_min_uvol)
    [all...]
ahcisata_fdt.c 63 const int phandle = faa->faa_phandle; local in function:ahcisata_fdt_attach
71 if (fdtbus_get_reg(phandle, 0, &addr, &size) != 0) {
84 if (of_getprop_uint32(phandle, "ports-implemented", &sc->sc_ahci_ports) != 0)
87 if (!fdtbus_intr_str(phandle, 0, intrstr, sizeof(intrstr))) {
92 for (i = 0; (clk = fdtbus_clock_get_index(phandle, i)) != NULL; i++)
97 for (i = 0; (rst = fdtbus_reset_get_index(phandle, i)) != NULL; i++)
106 if (fdtbus_intr_establish_xname(phandle, 0, IPL_BIO, 0,
  /src/sys/dev/ofw/
ofw_pci_subr.c 50 int phandle = devhandle_to_of(call_handle); local in function:ofw_pci_bus_get_child_devhandle
65 for (phandle = OF_child(phandle); phandle != 0;
66 phandle = OF_peer(phandle)) {
67 len = OF_getprop(phandle, "reg", &opr, sizeof(opr));
80 args->devhandle = devhandle_from_of(call_handle, phandle);
  /src/sys/arch/arm/sunxi/
sunxi_gmac.c 61 sunxi_gmac_reset(const int phandle)
68 pin_reset = fdtbus_gpio_acquire(phandle, "snps,reset-gpio", GPIO_PIN_OUTPUT);
72 reset_delay_us = fdtbus_get_prop(phandle, "snps,reset-delays-us", &len);
76 reset_active_low = of_hasprop(phandle, "snps,reset-active-low");
97 sunxi_gmac_get_phyid(int phandle)
102 phy_phandle = fdtbus_get_phandle(phandle, "phy");
104 phy_phandle = fdtbus_get_phandle(phandle, "phy-handle");
127 const int phandle = faa->faa_phandle; local in function:sunxi_gmac_attach
136 if (fdtbus_get_reg(phandle, 0, &addr, &size) != 0) {
149 if (!fdtbus_intr_str(phandle, 0, intrstr, sizeof(intrstr)))
    [all...]
  /src/sys/arch/arm/amlogic/
meson_dwmac.c 69 meson_dwmac_reset_eth(const int phandle)
76 pin_reset = fdtbus_gpio_acquire(phandle, "snps,reset-gpio",
81 reset_delay_us = fdtbus_get_prop(phandle, "snps,reset-delays-us", &len);
85 reset_active_low = of_hasprop(phandle, "snps,reset-active-low");
100 meson_dwmac_reset_phy(const int phandle)
107 pin_reset = fdtbus_gpio_acquire(phandle, "reset-gpios",
112 reset_assert_us = fdtbus_get_prop(phandle, "reset-assert-us", &len);
115 reset_deassert_us = fdtbus_get_prop(phandle, "reset-deassert-us", &len);
118 reset_gpios = fdtbus_get_prop(phandle, "reset-gpios", &len);
135 meson_dwmac_set_mode_rgmii(int phandle, bus_space_tag_t bst
193 const int phandle = faa->faa_phandle; local in function:meson_dwmac_attach
    [all...]
  /src/sys/arch/riscv/starfive/
jh7110_eqos.c 61 jh7110_parse_phyprops(struct jh7110_eqos_softc *jh_sc, int phandle)
66 if (of_hasprop(phandle, "motorcomm,tx-clk-adj-enabled")) {
70 if (of_hasprop(phandle, "motorcomm,tx-clk-100-inverted")) {
74 if (of_hasprop(phandle, "motorcomm,tx-clk-1000-inverted")) {
80 if (of_getprop_uint32(phandle,
85 if (of_getprop_uint32(phandle,
90 if (of_getprop_uint32(phandle,
95 if (of_getprop_uint32(phandle,
123 const int phandle = faa->faa_phandle; local in function:jh7110_eqos_attach
148 if (!fdtbus_intr_str(phandle, 0, intrstr, sizeof(intrstr)))
    [all...]
  /src/sys/arch/sparc/stand/ofwboot/
promlib.c 60 static int phandle = -1; local in function:openfirmware_chosen
62 if (phandle == -1) {
63 if ( (phandle = OF_finddevice("/chosen")) == -1) {
68 return (phandle);
141 int phandle, size; local in function:prom_init
179 phandle = openfirmware_chosen();
180 size = _prom_getprop(phandle, "stdin", &promops.po_stdin,
182 size += _prom_getprop(phandle, "stdout", &promops.po_stdout,
  /src/sys/arch/arm/xilinx/
zynq7000_uart.c 63 const int phandle = faa->faa_phandle; local in function:zynquart_attach
68 if (fdtbus_get_reg(phandle, 0, &addr, &size) != 0) {
73 if (!fdtbus_intr_str(phandle, 0, intrstr, sizeof(intrstr))) {
78 if (fdtbus_intr_establish(phandle, 0, IPL_SERIAL, IST_LEVEL,
93 zynq_uart_console_match(int phandle)
95 return of_compatible_match(phandle, compat_data);
101 const int phandle = faa->faa_phandle; local in function:zynq_uart_console_consinit
107 fdtbus_get_reg(phandle, 0, &addr, NULL);
zynq_cemac.c 56 cemac_get_phyid(const int phandle)
61 phy_phandle = fdtbus_get_phandle(phandle, "phy");
63 phy_phandle = fdtbus_get_phandle(phandle, "phy-handle");
86 const int phandle = faa->faa_phandle; local in function:cemac_attach
92 if (fdtbus_get_reg(phandle, 0, &addr, &size) != 0) {
104 if (!fdtbus_intr_str(phandle, 0, intrstr, sizeof(intrstr))) {
109 if (fdtbus_intr_establish(phandle, 0, IPL_NET, 0, cemac_intr,
119 sc->sc_phyno = cemac_get_phyid(phandle);
  /src/sys/arch/arm/nxp/
if_enet_imx.c 78 const int phandle = faa->faa_phandle; local in function:enet_attach
85 if (fdtbus_get_reg(phandle, 0, &addr, &size) != 0) {
96 sc->sc_clk_ipg = fdtbus_clock_get(phandle, "ipg");
101 sc->sc_clk_enet = fdtbus_clock_get(phandle, "ahb");
106 sc->sc_clk_enet_ref = fdtbus_clock_get(phandle, "ptp");
112 if (fdtbus_clock_enable(phandle, "enet_clk_ref", false) != 0) {
116 if (fdtbus_clock_enable(phandle, "enet_out", false) != 0) {
129 sc->sc_imxtype = of_compatible_lookup(phandle, compat_data)->value;
131 sc->sc_phyid = enet_phy_id(sc, phandle);
133 const char *phy_mode = fdtbus_get_string(phandle, "phy-mode")
    [all...]
imx_com.c 69 const int phandle = faa->faa_phandle; local in function:imx_com_attach
77 if (fdtbus_get_reg(phandle, 0, &addr, &size) != 0) {
87 if (fdtbus_clock_enable(phandle, "ipg", false) != 0) {
92 per = fdtbus_clock_get(phandle, "per");
114 if (!fdtbus_intr_str(phandle, 0, intrstr, sizeof(intrstr))) {
119 sc->sc_ih = fdtbus_intr_establish_xname(phandle, 0, IPL_SERIAL,
136 imx_com_console_match(int phandle)
138 return of_compatible_match(phandle, compat_data);
144 const int phandle = faa->faa_phandle; local in function:imx_com_console_consinit
151 fdtbus_get_reg(phandle, 0, &addr, &size)
    [all...]
  /src/sys/arch/arm/fdt/
psci_fdt.c 92 const int phandle = faa->faa_phandle; local in function:psci_fdt_attach
94 psci_fdt_init(phandle);
103 fdtbus_register_power_controller(self, phandle,
108 psci_fdt_init(const int phandle)
113 method = fdtbus_get_string(phandle, "method");
114 psciver = fdtbus_get_string(phandle, "compatible");
135 if (of_getprop_uint32(phandle, "cpu_on", &val) == 0)
147 const int phandle = OF_finddevice("/psci"); local in function:psci_fdt_preinit
148 if (phandle == -1) {
153 return psci_fdt_init(phandle);
    [all...]
  /src/sys/arch/arm/rockchip/
rk_eqos.c 180 rk3588_eqos_clock_selection(struct rk_eqos_softc *rk_sc, int phandle)
185 clock_in_out = fdtbus_get_string(phandle, "clock_in_out");
212 rk3588_eqos_get_unit(struct rk_eqos_softc *rk_sc, int phandle)
217 fdtbus_get_reg(phandle, 0, &addr, &size);
236 rk_eqos_reset_gpio(const int phandle)
243 if (!of_hasprop(phandle, "snps,reset-gpio"))
246 pin_reset = fdtbus_gpio_acquire(phandle, "snps,reset-gpio",
251 reset_delay_us = fdtbus_get_prop(phandle, "snps,reset-delays-us", &len);
255 reset_active_low = of_hasprop(phandle, "snps,reset-active-low");
268 rk_eqos_init_props(struct eqos_softc *sc, int phandle)
296 const int phandle = faa->faa_phandle; local in function:rk_eqos_attach
    [all...]
  /src/sys/arch/arm/ofw/
openfirm.c 89 OF_peer(int phandle)
95 int phandle; member in struct:OF_peer::__anonc50777430108
103 args.phandle = phandle;
110 OF_child(int phandle)
116 int phandle; member in struct:OF_child::__anonc50777430208
124 args.phandle = phandle;
131 OF_parent(int phandle)
137 int phandle; member in struct:OF_parent::__anonc50777430308
159 int phandle; member in struct:OF_instance_to_package::__anonc50777430408
179 int phandle; member in struct:OF_nextprop::__anonc50777430508
205 int phandle; member in struct:OF_getprop::__anonc50777430608
234 int phandle; member in struct:OF_setprop::__anonc50777430708
263 int phandle; member in struct:OF_getproplen::__anonc50777430808
287 int phandle; member in struct:OF_finddevice::__anonc50777430908
332 int phandle; member in struct:OF_package_to_path::__anonc50777430b08
    [all...]
  /src/sys/arch/macppc/macppc/
autoconf.c 48 macppc_assign_sensor_names_old(device_t dev, device_t gparent, int phandle)
59 int len = OF_getprop(phandle, "hwsensor-id", ids, sizeof(ids));
66 if (OF_getprop(phandle, "name", buf, sizeof(buf)) <= 0) {
80 int sllen = OF_getprop(phandle, "hwsensor-location", buf,
107 int phandle = devhandle_to_of(device_handle(dev)); local in function:macppc_assign_sensor_names
110 snode = OF_child(phandle);
112 macppc_assign_sensor_names_old(dev, gparent, phandle);

Completed in 20 milliseconds

1 2 3 4 5 6 7 8 91011>>