Searched refs:sc_phandle (Results 1 - 25 of 209) sorted by relevance

123456789

/src/sys/dev/fdt/
H A Dfdt_syscon.c44 int sc_phandle; member in struct:fdtbus_syscon
61 sc->sc_phandle = phandle;
75 if (sc->sc_phandle == phandle)
86 int sc_phandle; local in function:fdtbus_syscon_acquire
88 sc_phandle = fdtbus_get_phandle(phandle, prop);
89 if (sc_phandle < 0)
92 sc = fdtbus_get_syscon(sc_phandle);
H A Dmmc_pwrseq_emmc.c50 int sc_phandle; member in struct:mmcpwrseq_emmc_softc
85 sc->sc_phandle = phandle;
H A Dvirtio_mmio_fdt.c52 int sc_phandle; member in struct:virtio_mmio_fdt_softc
91 fsc->sc_phandle = faa->faa_phandle;
151 if (!fdtbus_intr_str(fsc->sc_phandle, 0, intrstr, sizeof(intrstr))) {
159 msc->sc_ih = fdtbus_intr_establish_xname(fsc->sc_phandle, 0,
178 fdtbus_intr_disestablish(fsc->sc_phandle, msc->sc_ih);
H A Dconnector_fdt.c61 int sc_phandle; member in struct:fdt_connector_softc
96 sc->sc_phandle = phandle;
H A Dfixedfactorclock.c70 int sc_phandle; member in struct:fixedfactorclock_softc
101 sc->sc_phandle = phandle;
166 clkp_parent = fdtbus_clock_get_index(sc->sc_phandle, 0);
H A Dfixedregulator.c60 int sc_phandle; member in struct:fixedregulator_softc
100 sc->sc_phandle = phandle;
150 sc->sc_pin = fdtbus_gpio_acquire(sc->sc_phandle, "gpio",
/src/sys/arch/arm/samsung/
H A Dmct_var.h43 int sc_phandle; member in struct:mct_softc
/src/sys/arch/arm/ti/
H A Dti_omapwugen.c51 int sc_phandle; member in struct:omapwugen_softc
60 const int ihandle = fdtbus_intr_parent(sc->sc_phandle);
80 const int ihandle = fdtbus_intr_parent(sc->sc_phandle);
111 sc->sc_phandle = phandle;
H A Dti_div_clock.c73 int sc_phandle; member in struct:ti_div_clock_softc
113 sc->sc_phandle = phandle;
176 if (of_hasprop(sc->sc_phandle, "ti,index-power-of-two"))
179 const int start_index = of_hasprop(sc->sc_phandle, "ti,index-starts-at-one") ? 1 : 0;
181 if (of_getprop_uint32(sc->sc_phandle, "ti,bit-shift", &bit_shift) != 0)
184 if (of_getprop_uint32(sc->sc_phandle, "ti,max-div", &max_div) == 0) {
212 return fdtbus_clock_get_index(sc->sc_phandle, 0);
H A Dti_comp_clock.c72 int sc_phandle; member in struct:ti_comp_clock_softc
107 sc->sc_phandle = phandle;
160 struct clk *clk_gate = fdtbus_clock_get_index(sc->sc_phandle, 0);
169 struct clk *clk_gate = fdtbus_clock_get_index(sc->sc_phandle, 0);
179 return fdtbus_clock_get_index(sc->sc_phandle, 1);
/src/sys/external/bsd/vchiq/dist/interface/vchiq_arm/
H A Dvchiq_netbsd_fdt.c53 int sc_phandle; member in struct:vchiq_fdt_softc
94 fsc->sc_phandle = phandle;
127 const int phandle = fsc->sc_phandle;
/src/sys/arch/arm/sunxi/
H A Dsunxi_hstimer.c91 int sc_phandle; member in struct:sunxi_hstimer_softc
148 sc->sc_phandle = phandle;
185 if (!fdtbus_intr_str(sc->sc_phandle, 0, intrstr, sizeof(intrstr))) {
189 sc->sc_ih = fdtbus_intr_establish_xname(sc->sc_phandle, 0, IPL_CLOCK,
H A Dsunxi_dwhdmi.c62 int sc_phandle; member in struct:sunxi_dwhdmi_softc
280 sc->sc_phandle = faa->faa_phandle;
286 sc->sc_regulator = fdtbus_regulator_acquire(sc->sc_phandle, "hvcc-supply");
288 sc->sc_phy = fdtbus_phy_get(sc->sc_phandle, "hdmi-phy");
290 sc->sc_phy = fdtbus_phy_get(sc->sc_phandle, "phy");
H A Dsun9i_a80_cpusclk.c72 int sc_phandle; member in struct:sun9i_a80_cpusclk_softc
116 sc->sc_phandle = phandle;
196 return fdtbus_clock_get_index(sc->sc_phandle, sel);
/src/sys/arch/arm/nxp/
H A Dimx8mq_usbphy.c67 int sc_phandle; member in struct:imx8mq_usbphy_softc
101 if (of_hasprop(sc->sc_phandle, "vbus-supply")) {
102 reg = fdtbus_regulator_acquire(sc->sc_phandle, "vbus-supply");
162 sc->sc_phandle = phandle;
/src/sys/dev/ofw/
H A Dofrtc.c86 int sc_phandle; member in struct:ofrtc_softc
127 of->sc_phandle = oba->oba_phandle;
129 if ((l = OF_getprop(of->sc_phandle, "name", name,
137 if ((l = OF_package_to_path(of->sc_phandle, path,
/src/sys/arch/arm/amlogic/
H A Dmesongxbb_aoclkc.c92 sc->sc_phandle = faa->faa_phandle;
93 sc->sc_syscon = fdtbus_syscon_lookup(OF_parent(sc->sc_phandle));
H A Dmeson_usbphy.c75 int sc_phandle; member in struct:meson_usbphy_softc
96 if (phy_phandle != sc->sc_phandle)
127 if (of_hasprop(sc->sc_phandle, "phy-supply")) {
128 reg = fdtbus_regulator_acquire(sc->sc_phandle, "phy-supply");
207 sc->sc_phandle = phandle;
/src/sys/arch/arm/nvidia/
H A Dtegra_nouveau.c69 int sc_phandle; member in struct:tegra_nouveau_softc
150 sc->sc_phandle = faa->faa_phandle;
217 if (fdtbus_get_reg(sc->sc_phandle, 0, &addr[0], &size[0]) != 0 ||
218 fdtbus_get_reg(sc->sc_phandle, 1, &addr[1], &size[1]) != 0) {
288 if (!fdtbus_intr_str(sc->sc_phandle, 0, intrstr, sizeof(intrstr))) {
293 sc->sc_ih = fdtbus_intr_establish_xname(sc->sc_phandle, 0, IPL_VM,
311 fdtbus_intr_disestablish(sc->sc_phandle, sc->sc_ih);
/src/sys/dev/i2c/
H A Dcwfg.c87 int sc_phandle; member in struct:cwfg_softc
364 batinfo = fdtbus_get_prop(sc->sc_phandle,
368 batinfo = fdtbus_get_prop(sc->sc_phandle,
385 if (of_getprop_uint32(sc->sc_phandle,
388 } else if (of_getprop_uint32(sc->sc_phandle,
396 const int bphandle = fdtbus_get_phandle(sc->sc_phandle, "monitored-battery");
400 } else if (of_getprop_uint32(sc->sc_phandle,
408 if (of_getprop_uint32(sc->sc_phandle,
441 sc->sc_phandle = devhandle_to_of(device_handle(self));
H A Dfan53555.c67 int sc_phandle; member in struct:fan53555_softc
251 of_getprop_uint32(sc->sc_phandle, "fcs,suspend-voltage-selector",
267 of_getprop_uint32(sc->sc_phandle, "regulator-ramp-delay",
310 sc->sc_phandle = devhandle_to_of(device_handle(self));
318 fdtbus_register_regulator_controller(self, sc->sc_phandle,
/src/sys/arch/arm/sociox/
H A Dsni_emmc.c74 int sc_phandle; member in struct:sniemmc_softc
142 sc->sc_phandle = phandle;
202 sc->sc_phandle = 0;
236 if (sc->sc_phandle)
237 fdtbus_intr_disestablish(sc->sc_phandle, sc->sc_ih);
H A Dsni_gpio.c72 int sc_phandle; member in struct:snigpio_softc
144 sc->sc_phandle = phandle;
192 sc->sc_phandle = 0;
/src/sys/arch/arm/broadcom/
H A Dbcm2835_dwctwo.c60 int sc_phandle; member in struct:bcmdwc2_softc
134 sc->sc_phandle = phandle;
167 fdtbus_intr_disestablish(sc->sc_phandle, sc->sc_ih);
/src/sys/arch/arm/fdt/
H A Dpmu_fdt.c85 int sc_phandle; member in struct:pmu_fdt_softc
110 sc->sc_phandle = phandle;
119 const int phandle = sc->sc_phandle;

Completed in 20 milliseconds

123456789