Home
last modified time | relevance | path

Searched refs:sc_phandle (Results 1 – 25 of 194) sorted by relevance

12345678

/netbsd/sys/dev/fdt/
H A Dfdt_syscon.c44 int sc_phandle; member
61 sc->sc_phandle = phandle; in fdtbus_register_syscon()
75 if (sc->sc_phandle == phandle) in fdtbus_get_syscon()
86 int sc_phandle; in fdtbus_syscon_acquire() local
88 sc_phandle = fdtbus_get_phandle(phandle, prop); in fdtbus_syscon_acquire()
89 if (sc_phandle < 0) in fdtbus_syscon_acquire()
92 sc = fdtbus_get_syscon(sc_phandle); in fdtbus_syscon_acquire()
H A Dvirtio_mmio_fdt.c52 int sc_phandle; member
91 fsc->sc_phandle = faa->faa_phandle; in virtio_mmio_fdt_attach()
151 if (!fdtbus_intr_str(fsc->sc_phandle, 0, intrstr, sizeof(intrstr))) { in virtio_mmio_fdt_alloc_interrupts()
159 msc->sc_ih = fdtbus_intr_establish_xname(fsc->sc_phandle, 0, in virtio_mmio_fdt_alloc_interrupts()
178 fdtbus_intr_disestablish(fsc->sc_phandle, msc->sc_ih); in virtio_mmio_fdt_free_interrupts()
/netbsd/sys/arch/arm/ti/
H A Dti_div_clock.c70 int sc_phandle; member
110 sc->sc_phandle = phandle; in ti_div_clock_attach()
165 if (of_hasprop(sc->sc_phandle, "ti,index-power-of-two")) in ti_div_clock_get_rate()
168 const int start_index = of_hasprop(sc->sc_phandle, "ti,index-starts-at-one") ? 1 : 0; in ti_div_clock_get_rate()
170 if (of_getprop_uint32(sc->sc_phandle, "ti,bit-shift", &bit_shift) != 0) in ti_div_clock_get_rate()
173 if (of_getprop_uint32(sc->sc_phandle, "ti,max-div", &max_div) == 0) { in ti_div_clock_get_rate()
201 return fdtbus_clock_get_index(sc->sc_phandle, 0); in ti_div_clock_get_parent()
H A Dti_omaptimer.c101 int sc_phandle; member
133 if (!fdtbus_intr_str(sc->sc_phandle, 0, intrstr, sizeof(intrstr))) in omaptimer_cpu_initclocks()
135 ih = fdtbus_intr_establish_xname(sc->sc_phandle, 0, IPL_CLOCK, in omaptimer_cpu_initclocks()
190 sc->sc_phandle = phandle; in omaptimer_attach()
H A Dti_mux_clock.c67 int sc_phandle; member
117 sc->sc_phandle = phandle; in ti_mux_clock_attach()
192 return fdtbus_clock_get_index(sc->sc_phandle, sel - sc->sc_start_index); in ti_mux_clock_get_parent()
203 if (fdtbus_clock_get_index(sc->sc_phandle, sel - sc->sc_start_index) == parent_clk) in ti_mux_clock_set_parent()
/netbsd/sys/dev/i2c/
H A Dcwfg.c87 int sc_phandle; member
364 batinfo = fdtbus_get_prop(sc->sc_phandle, in cwfg_parse_resources()
368 batinfo = fdtbus_get_prop(sc->sc_phandle, in cwfg_parse_resources()
385 if (of_getprop_uint32(sc->sc_phandle, in cwfg_parse_resources()
388 } else if (of_getprop_uint32(sc->sc_phandle, in cwfg_parse_resources()
396 const int bphandle = fdtbus_get_phandle(sc->sc_phandle, "monitored-battery"); in cwfg_parse_resources()
400 } else if (of_getprop_uint32(sc->sc_phandle, in cwfg_parse_resources()
408 if (of_getprop_uint32(sc->sc_phandle, in cwfg_parse_resources()
441 sc->sc_phandle = ia->ia_cookie; in cwfg_attach()
H A Dtcakp.c92 int sc_phandle; member
241 of_getprop_uint32(sc->sc_phandle, "keypad,num-rows", &sc->sc_rows); in tcakp_configure_fdt()
242 of_getprop_uint32(sc->sc_phandle, "keypad,num-columns", &sc->sc_cols); in tcakp_configure_fdt()
243 sc->sc_autorepeat = of_getprop_bool(sc->sc_phandle, "keypad,autorepeat"); in tcakp_configure_fdt()
245 keymap = fdtbus_get_prop(sc->sc_phandle, "linux,keymap", &len); in tcakp_configure_fdt()
383 sc->sc_phandle = ia->ia_cookie; in tcakp_attach()
389 sc->sc_ih = fdtbus_intr_establish(sc->sc_phandle, 0, IPL_VM, 0, in tcakp_attach()
H A Dsy8106a.c57 int sc_phandle; member
205 sc->sc_phandle = ia->ia_cookie; in sy8106a_attach()
210 of_getprop_uint32(sc->sc_phandle, "regulator-ramp-delay", in sy8106a_attach()
213 fdtbus_register_regulator_controller(self, sc->sc_phandle, in sy8106a_attach()
H A Dfan53555.c67 int sc_phandle; member
251 of_getprop_uint32(sc->sc_phandle, "fcs,suspend-voltage-selector", in fan53555_init()
267 of_getprop_uint32(sc->sc_phandle, "regulator-ramp-delay", in fan53555_init()
310 sc->sc_phandle = ia->ia_cookie; in fan53555_attach()
318 fdtbus_register_regulator_controller(self, sc->sc_phandle, in fan53555_attach()
/netbsd/sys/arch/arm/nvidia/
H A Dtegra_nouveau.c69 int sc_phandle; member
150 sc->sc_phandle = faa->faa_phandle; in tegra_nouveau_attach()
217 if (fdtbus_get_reg(sc->sc_phandle, 0, &addr[0], &size[0]) != 0 || in tegra_nouveau_init()
218 fdtbus_get_reg(sc->sc_phandle, 1, &addr[1], &size[1]) != 0) { in tegra_nouveau_init()
288 if (!fdtbus_intr_str(sc->sc_phandle, 0, intrstr, sizeof(intrstr))) { in nvkm_device_tegra_init()
293 sc->sc_ih = fdtbus_intr_establish_xname(sc->sc_phandle, 0, IPL_VM, in nvkm_device_tegra_init()
311 fdtbus_intr_disestablish(sc->sc_phandle, sc->sc_ih); in nvkm_device_tegra_fini()
/netbsd/sys/arch/arm/amlogic/
H A Dmeson_usbphy.c75 int sc_phandle; member
96 if (phy_phandle != sc->sc_phandle) in meson_usbphy_dr_mode()
127 if (of_hasprop(sc->sc_phandle, "phy-supply")) { in meson_usbphy_enable()
128 reg = fdtbus_regulator_acquire(sc->sc_phandle, "phy-supply"); in meson_usbphy_enable()
207 sc->sc_phandle = phandle; in meson_usbphy_attach()
H A Dmeson_usbctrl.c124 int sc_phandle; member
135 p = fdtbus_get_string_index(sc->sc_phandle, "phy-names", i); in meson_usbctrl_usb2_init()
236 phyname = fdtbus_get_string_index(sc->sc_phandle, in meson_usbctrl_enable_usb3_phys()
241 phy = fdtbus_phy_get_index(sc->sc_phandle, i); in meson_usbctrl_enable_usb3_phys()
269 sc->sc_phandle = phandle = faa->faa_phandle; in meson_usbctrl_attach()
/netbsd/sys/dev/ofw/
H A Dofrtc.c86 int sc_phandle; member
127 of->sc_phandle = oba->oba_phandle; in ofrtc_attach()
129 if ((l = OF_getprop(of->sc_phandle, "name", name, in ofrtc_attach()
137 if ((l = OF_package_to_path(of->sc_phandle, path, in ofrtc_attach()
/netbsd/sys/arch/arm/sociox/
H A Dsni_emmc.c74 int sc_phandle; member
142 sc->sc_phandle = phandle; in sniemmc_fdt_attach()
202 sc->sc_phandle = 0; in sniemmc_acpi_attach()
236 if (sc->sc_phandle) in sniemmc_attach_i()
237 fdtbus_intr_disestablish(sc->sc_phandle, sc->sc_ih); in sniemmc_attach_i()
/netbsd/sys/arch/arm/nxp/
H A Dimx8mq_usbphy.c67 int sc_phandle; member
101 if (of_hasprop(sc->sc_phandle, "vbus-supply")) { in imx8mq_usbphy_enable()
102 reg = fdtbus_regulator_acquire(sc->sc_phandle, "vbus-supply"); in imx8mq_usbphy_enable()
162 sc->sc_phandle = phandle; in imx8mq_usbphy_attach()
H A Dimx6_usb.c60 int sc_phandle; member
108 ifsc->sc_phandle = phandle; in imx6_usb_attach()
289 if (!fdtbus_intr_str(ifsc->sc_phandle, 0, intrstr, sizeof(intrstr))) { in imx6_usb_intr_establish()
293 ih = fdtbus_intr_establish_xname(ifsc->sc_phandle, 0, IPL_USB, in imx6_usb_intr_establish()
/netbsd/sys/arch/arm/sunxi/
H A Dsunxi_nmi.c106 int sc_phandle; member
212 const int ihandle = fdtbus_intr_parent(sc->sc_phandle); in sunxi_nmi_fdt_establish()
272 sc->sc_ih = fdtbus_intr_establish_xname(sc->sc_phandle, 0, ipl, flags, in sunxi_nmi_fdt_establish()
320 fdtbus_intr_disestablish(sc->sc_phandle, sc->sc_ih); in sunxi_nmi_fdt_disestablish()
337 const int ihandle = fdtbus_intr_parent(sc->sc_phandle); in sunxi_nmi_fdt_intrstr()
384 sc->sc_phandle = phandle; in sunxi_nmi_attach()
H A Dsunxi_hstimer.c91 int sc_phandle; member
148 sc->sc_phandle = phandle; in sunxi_hstimer_attach()
185 if (!fdtbus_intr_str(sc->sc_phandle, 0, intrstr, sizeof(intrstr))) { in sunxi_hstimer_attach()
189 sc->sc_ih = fdtbus_intr_establish_xname(sc->sc_phandle, 0, IPL_CLOCK, in sunxi_hstimer_attach()
H A Dsunxi_dwhdmi.c62 int sc_phandle; member
282 sc->sc_phandle = faa->faa_phandle; in sunxi_dwhdmi_attach()
288 sc->sc_regulator = fdtbus_regulator_acquire(sc->sc_phandle, "hvcc-supply"); in sunxi_dwhdmi_attach()
290 sc->sc_phy = fdtbus_phy_get(sc->sc_phandle, "hdmi-phy"); in sunxi_dwhdmi_attach()
292 sc->sc_phy = fdtbus_phy_get(sc->sc_phandle, "phy"); in sunxi_dwhdmi_attach()
H A Dsunxi_timer.c103 int sc_phandle; member
144 if (!fdtbus_intr_str(sc->sc_phandle, 0, intrstr, sizeof(intrstr))) in sunxi_timer_cpu_initclocks()
147 ih = fdtbus_intr_establish_xname(sc->sc_phandle, 0, IPL_CLOCK, in sunxi_timer_cpu_initclocks()
208 sc->sc_phandle = phandle; in sunxi_timer_attach()
/netbsd/sys/arch/arm/fdt/
H A Dpcihost_fdt.c136 sc->sc_phandle = faa->faa_phandle; in pcihost_attach()
143 sc->sc_type = of_compatible_lookup(sc->sc_phandle, compat_data)->value; in pcihost_attach()
166 if ((data = fdtbus_get_prop(sc->sc_phandle, "bus-range", &len)) != NULL) { in pcihost_init2()
184 if (of_getprop_uint32(sc->sc_phandle, "linux,pci-domain", &sc->sc_seg)) in pcihost_init2()
267 ranges = fdtbus_get_prop(sc->sc_phandle, "ranges", &len); in pcihost_config()
491 imap = fdtbus_get_prop(sc->sc_phandle, "interrupt-map", &imaplen); in pcihost_intr_map()
492 imask = fdtbus_get_prop(sc->sc_phandle, "interrupt-map-mask", &imasklen); in pcihost_intr_map()
539 imap = fdtbus_get_prop(sc->sc_phandle, "interrupt-map", &imaplen); in pcihost_find_intr()
660 fdtbus_intr_disestablish(sc->sc_phandle, vih); in pcihost_intr_disestablish()
H A Dgicv3_fdt.c105 int sc_phandle; member
150 sc->sc_phandle = phandle; in gicv3_fdt_attach()
204 const int phandle = sc->sc_phandle; in gicv3_fdt_map_registers()
282 if (of_getprop_uint64(sc->sc_phandle, "mbi-alias", &addr) != 0 && in gicv3_fdt_attach_mbi()
283 fdtbus_get_reg(sc->sc_phandle, 0, &addr, NULL) != 0) { in gicv3_fdt_attach_mbi()
288 ranges = fdtbus_get_prop(sc->sc_phandle, "mbi-ranges", &len); in gicv3_fdt_attach_mbi()
/netbsd/sys/external/bsd/vchiq/dist/interface/vchiq_arm/
H A Dvchiq_netbsd_fdt.c53 int sc_phandle; member
94 fsc->sc_phandle = phandle; in vchiq_fdt_attach()
127 const int phandle = fsc->sc_phandle; in vchiq_fdt_defer()
/netbsd/sys/arch/arm/broadcom/
H A Dbcm2835_dwctwo.c60 int sc_phandle; member
134 sc->sc_phandle = phandle; in bcmdwc2_attach()
167 fdtbus_intr_disestablish(sc->sc_phandle, sc->sc_ih); in bcmdwc2_attach()
/netbsd/sys/arch/arm/rockchip/
H A Drk_cru.c302 if (of_hasprop(sc->sc_phandle, "rockchip,grf")) { in rk_cru_attach()
303 sc->sc_grf = fdtbus_syscon_acquire(sc->sc_phandle, in rk_cru_attach()
311 if (fdtbus_get_reg(sc->sc_phandle, 0, &addr, &size) != 0) { in rk_cru_attach()
328 fdtbus_register_clock_controller(sc->sc_dev, sc->sc_phandle, in rk_cru_attach()
331 fdtbus_register_reset_controller(sc->sc_dev, sc->sc_phandle, in rk_cru_attach()

12345678