Searched refs:phandle (Results 1 - 25 of 445) sorted by relevance

1234567891011>>

/src/sys/dev/fdt/
H A Dfdt_pinctrl.c55 fdtbus_register_pinctrl_config(device_t dev, int phandle, argument
62 pc->pc_phandle = phandle;
71 fdtbus_pinctrl_lookup(int phandle) argument
76 if (pc->pc_phandle == phandle)
84 fdtbus_pinctrl_set_config_index(int phandle, u_int index) argument
94 pinctrl_data = fdtbus_get_prop(phandle, buf, &len);
119 fdtbus_pinctrl_set_config(int phandle, const char *cfgname) argument
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, cons argument
155 fdtbus_pinctrl_parse_function(int phandle) argument
161 fdtbus_pinctrl_parse_pins(int phandle,int * pins_len) argument
180 fdtbus_pinctrl_parse_groups(int phandle,int * groups_len) argument
194 fdtbus_pinctrl_parse_pinmux(int phandle,int * pinmux_len) argument
207 fdtbus_pinctrl_parse_bias(int phandle,int * pull_strength) argument
244 fdtbus_pinctrl_parse_drive(int phandle) argument
259 fdtbus_pinctrl_parse_drive_strength(int phandle) argument
273 fdtbus_pinctrl_parse_input_output(int phandle,int * output_value) argument
[all...]
H A Dfdt_subr.c75 fdtbus_phandle2offset(int phandle) argument
79 if (phandle == -1)
80 phandle = dtoff;
82 if (phandle < dtoff)
85 return phandle - dtoff;
97 fdtbus_get_addr_cells(int phandle) argument
101 if (of_getprop_uint32(phandle, "#address-cells", &addr_cells))
108 fdtbus_get_size_cells(int phandle) argument
112 if (of_getprop_uint32(phandle, "#size-cells", &size_cells))
119 fdtbus_get_phandle(int phandle, cons argument
136 fdtbus_get_phandle_with_data(int phandle,const char * prop,const char * cells,int index,struct fdt_phandle_data * data) argument
172 fdtbus_get_phandle_from_native(int phandle) argument
182 fdtbus_get_path(int phandle,char * buf,size_t buflen) argument
206 fdtbus_decode_range(int phandle,uint64_t paddr) argument
258 fdtbus_get_reg_byname(int phandle,const char * name,bus_addr_t * paddr,bus_size_t * psize) argument
272 fdtbus_get_reg(int phandle,u_int index,bus_addr_t * paddr,bus_size_t * psize) argument
293 fdtbus_get_reg64(int phandle,u_int index,uint64_t * paddr,uint64_t * psize) argument
337 fdtbus_status_okay(int phandle) argument
349 fdtbus_get_prop(int phandle,const char * prop,int * plen) argument
357 fdtbus_get_string(int phandle,const char * prop) argument
368 fdtbus_get_string_index(int phandle,const char * prop,u_int index) argument
382 fdtbus_get_index(int phandle,const char * prop,const char * name,u_int * idx) argument
[all...]
H A Dfdt_powerdomain.c62 fdtbus_register_powerdomain_controller(device_t dev, int phandle, argument
68 if (of_getprop_uint32(phandle, "#power-domain-cells", &cells) != 0) {
75 pdc->pdc_phandle = phandle;
85 fdtbus_powerdomain_lookup(int phandle) argument
90 if (pdc->pdc_phandle == phandle)
98 fdtbus_powerdomain_enable_internal(int phandle, int index, bool enable) argument
101 const uint32_t *pds = fdtbus_get_prop(phandle, "power-domains", &len);
127 fdtbus_powerdomain_enable_index(int phandle, int index) argument
129 return fdtbus_powerdomain_enable_internal(phandle, index, true);
133 fdtbus_powerdomain_disable_index(int phandle, in argument
[all...]
H A Dfdt_syscon.c54 fdtbus_register_syscon(device_t dev, int phandle, argument
61 sc->sc_phandle = phandle;
70 fdtbus_get_syscon(int phandle) argument
75 if (sc->sc_phandle == phandle)
83 fdtbus_syscon_acquire(int phandle, const char *prop) argument
88 sc_phandle = fdtbus_get_phandle(phandle, prop);
100 fdtbus_syscon_lookup(int phandle) argument
104 sc = fdtbus_get_syscon(phandle);
H A Dfdt_clock.c54 fdtbus_register_clock_controller(device_t dev, int phandle, argument
61 cc->cc_phandle = phandle;
66 fdtbus_clock_assign(phandle);
72 fdtbus_get_clock_controller(int phandle) argument
77 if (cc->cc_phandle == phandle)
85 fdtbus_clock_get_index_prop(int phandle, u_int index, const char *prop) argument
93 p = fdtbus_get_prop(phandle, prop, &len);
118 fdtbus_clock_get_index(int phandle, u_int index) argument
120 return fdtbus_clock_get_index_prop(phandle, index, "clocks");
124 fdtbus_clock_get_prop(int phandle, cons argument
137 fdtbus_clock_count(int phandle,const char * prop) argument
159 fdtbus_clock_get(int phandle,const char * clkname) argument
165 fdtbus_clock_enable(int phandle,const char * clkname,bool required) argument
177 fdtbus_clock_enable_index(int phandle,u_int index,bool required) argument
224 fdtbus_clock_assign(int phandle) argument
[all...]
H A Dfdt_openfirm.c38 OF_peer(int phandle) argument
47 if (phandle == 0) {
51 off = fdtbus_phandle2offset(phandle);
69 OF_child(int phandle) argument
78 off = fdtbus_phandle2offset(phandle);
96 OF_parent(int phandle) argument
105 off = fdtbus_phandle2offset(phandle);
119 OF_nextprop(int phandle, const char *prop, void *nextprop) argument
130 off = fdtbus_phandle2offset(phandle);
169 OF_getprop(int phandle, cons argument
229 OF_getproplen(int phandle,const char * prop) argument
282 OF_setprop(int phandle,const char * prop,const void * buf,int buflen) argument
306 OF_package_to_path(int phandle,char * buf,int buflen) argument
[all...]
H A Dfdt_dai.c52 fdtbus_register_dai_controller(device_t dev, int phandle, argument
59 dc->dc_phandle = phandle;
68 fdtbus_get_dai_controller(int phandle) argument
73 if (dc->dc_phandle == phandle)
81 fdtbus_dai_acquire(int phandle, const char *prop) argument
83 return fdtbus_dai_acquire_index(phandle, prop, 0);
87 fdtbus_dai_acquire_index(int phandle, const char *prop, int index) argument
94 dais = fdtbus_get_prop(phandle, prop, &len);
H A Dfdt_pwm.c52 fdtbus_register_pwm_controller(device_t dev, int phandle, argument
59 pc->pc_phandle = phandle;
68 fdtbus_get_pwm_controller(int phandle) argument
73 if (pc->pc_phandle == phandle)
81 fdtbus_pwm_acquire(int phandle, const char *prop) argument
83 return fdtbus_pwm_acquire_index(phandle, prop, 0);
87 fdtbus_pwm_acquire_index(int phandle, const char *prop, int index) argument
94 pwms = fdtbus_get_prop(phandle, prop, &len);
H A Ddw_apb_uart.c80 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) argument
167 const int phandle = faa->faa_phandle; local in function:dw_apb_uart_console_consinit
[all...]
H A Dfdt_intr.c82 * return the phandle of the interrupt controller for this node, or the phandle
87 fdtbus_get_interrupt_parent(int phandle) argument
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) argument
127 if (ic->ic_phandle == phandle)
134 fdtbus_register_interrupt_controller(device_t dev, int phandle, argument
141 ic->ic_phandle = phandle;
181 fdtbus_intr_parent(int phandle) argument
187 fdtbus_intr_establish(int phandle,u_int index,int ipl,int flags,int (* func)(void *),void * arg) argument
195 fdtbus_intr_establish_xname(int phandle,u_int index,int ipl,int flags,int (* func)(void *),void * arg,const char * xname) argument
210 fdtbus_intr_establish_byname(int phandle,const char * name,int ipl,int flags,int (* func)(void *),void * arg,const char * xname) argument
267 fdtbus_intr_disestablish(int phandle,void * cookie) argument
296 fdtbus_intr_mask(int phandle,void * cookie) argument
316 fdtbus_intr_unmask(int phandle,void * cookie) argument
336 fdtbus_intr_str(int phandle,u_int index,char * buf,size_t buflen) argument
361 find_address_cells(int phandle) argument
372 find_interrupt_cells(int phandle) argument
385 get_specifier_from_map(int phandle,const u_int * interrupt_spec,int * piphandle) argument
455 get_specifier_from_extended(int phandle,int pindex,int * piphandle) argument
470 get_specifier_by_index(int phandle,int pindex,int * piphandle) argument
[all...]
H A Dfixedregulator.c95 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, "regulato
[all...]
H A Dahcisata_fdt.c63 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/
H A Dofw_pci_subr.c50 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/
H A Dsunxi_gmac.c61 sunxi_gmac_reset(const int phandle) argument
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) argument
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,
[all...]
/src/sys/arch/arm/amlogic/
H A Dmeson_dwmac.c69 meson_dwmac_reset_eth(const int phandle) argument
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) argument
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_ argument
159 meson_dwmac_set_mode_rmii(int phandle,bus_space_tag_t bst,bus_space_handle_t bsh) argument
193 const int phandle = faa->faa_phandle; local in function:meson_dwmac_attach
[all...]
/src/sys/arch/riscv/starfive/
H A Djh7110_eqos.c61 jh7110_parse_phyprops(struct jh7110_eqos_softc *jh_sc, int phandle) argument
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,
[all...]
/src/sys/arch/sparc/stand/ofwboot/
H A Dpromlib.c60 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/
H A Dzynq7000_uart.c63 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) argument
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);
H A Dzynq_cemac.c56 cemac_get_phyid(const int phandle) argument
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/
H A Dif_enet_imx.c78 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, "ph
182 enet_intr_establish(struct enet_softc * sc,int phandle,u_int index) argument
233 enet_phy_reset(struct enet_fdt_softc * sc,const int phandle) argument
259 enet_phy_id(struct enet_softc * sc,const int phandle) argument
[all...]
H A Dimx_com.c69 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) argument
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,
[all...]
/src/sys/arch/arm/fdt/
H A Dpsci_fdt.c92 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) argument
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/
H A Drk_eqos.c180 rk3588_eqos_clock_selection(struct rk_eqos_softc *rk_sc, int phandle) argument
185 clock_in_out = fdtbus_get_string(phandle, "clock_in_out");
212 rk3588_eqos_get_unit(struct rk_eqos_softc *rk_sc, int phandle) argument
217 fdtbus_get_reg(phandle, 0, &addr, &size);
236 rk_eqos_reset_gpio(const int phandle) argument
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) argument
296 const int phandle = faa->faa_phandle; local in function:rk_eqos_attach
[all...]
/src/sys/arch/arm/ofw/
H A Dopenfirm.c89 OF_peer(int phandle) argument
95 int phandle; member in struct:OF_peer::__anon557a7ee90108
103 args.phandle = phandle;
110 OF_child(int phandle) argument
116 int phandle; member in struct:OF_child::__anon557a7ee90208
124 args.phandle = phandle;
131 OF_parent(int phandle) argument
137 int phandle; member in struct:OF_parent::__anon557a7ee90308
159 int phandle; member in struct:OF_instance_to_package::__anon557a7ee90408
179 int phandle; member in struct:OF_nextprop::__anon557a7ee90508
205 int phandle; member in struct:OF_getprop::__anon557a7ee90608
234 int phandle; member in struct:OF_setprop::__anon557a7ee90708
263 int phandle; member in struct:OF_getproplen::__anon557a7ee90808
287 int phandle; member in struct:OF_finddevice::__anon557a7ee90908
326 OF_package_to_path(int phandle,char * buf,int buflen) argument
332 int phandle; member in struct:OF_package_to_path::__anon557a7ee90b08
[all...]
/src/sys/arch/macppc/macppc/
H A Dautoconf.c48 macppc_assign_sensor_names_old(device_t dev, device_t gparent, int phandle) argument
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

1234567891011>>