Home
last modified time | relevance | path

Searched refs:sc_dev (Results 1 – 25 of 96) sorted by relevance

1234

/f-stack/freebsd/arm/ti/clk/
H A Dti_divider_clock.c62 device_t sc_dev; member
88 sc->clkdom = clkdom_create(sc->sc_dev); in register_clk()
90 DPRINTF(sc->sc_dev, "Failed to create clkdom\n"); in register_clk()
133 sc->sc_dev = dev; in ti_divider_attach()
160 device_printf(sc->sc_dev, "clock-output-names\n"); in ti_divider_attach()
162 device_printf(sc->sc_dev, "ti,dividers\n"); in ti_divider_attach()
181 read_clock_cells(sc->sc_dev, &sc->clock_cell); in ti_divider_attach()
190 return (bus_generic_attach(sc->sc_dev)); in ti_divider_attach()
197 DPRINTF(sc->sc_dev, "register_clk failed\n"); in ti_divider_attach()
198 return (bus_generic_attach(sc->sc_dev)); in ti_divider_attach()
[all …]
H A Dti_mux_clock.c64 device_t sc_dev; member
104 sc->clkdom = clkdom_create(sc->sc_dev); in register_clk()
106 DPRINTF(sc->sc_dev, "Failed to create clkdom\n"); in register_clk()
118 DPRINTF(sc->sc_dev, "Clk domain finit fails %x.\n", err); in register_clk()
134 sc->sc_dev = dev; in ti_mux_attach()
157 read_clock_cells(sc->sc_dev, &sc->clock_cell); in ti_mux_attach()
174 DPRINTF(sc->sc_dev, "find_parent_clock_names failed\n"); in ti_mux_attach()
175 return (bus_generic_attach(sc->sc_dev)); in ti_mux_attach()
182 DPRINTF(sc->sc_dev, "register_clk failed\n"); in ti_mux_attach()
183 return (bus_generic_attach(sc->sc_dev)); in ti_mux_attach()
[all …]
H A Dti_gate_clock.c64 device_t sc_dev; member
114 sc->clkdom = clkdom_create(sc->sc_dev); in register_clk()
116 DPRINTF(sc->sc_dev, "Failed to create clkdom\n"); in register_clk()
144 sc->sc_dev = dev; in ti_gate_attach()
169 DPRINTF(sc->sc_dev, in ti_gate_attach()
174 DPRINTF(sc->sc_dev, "on_value = 1, off_value = 0\n"); in ti_gate_attach()
179 read_clock_cells(sc->sc_dev, &sc->clock_cell); in ti_gate_attach()
193 return (bus_generic_attach(sc->sc_dev)); in ti_gate_attach()
200 DPRINTF(sc->sc_dev, "register_clk failed\n"); in ti_gate_attach()
201 return (bus_generic_attach(sc->sc_dev)); in ti_gate_attach()
[all …]
/f-stack/freebsd/arm/ti/usb/
H A Domap_host.c107 device_t sc_dev; member
142 ti_sysc_clock_enable(device_get_parent(isc->sc_dev)); in omap_uhh_init()
161 device_printf(isc->sc_dev, in omap_uhh_init()
164 device_printf(isc->sc_dev, in omap_uhh_init()
169 device_printf(isc->sc_dev, in omap_uhh_init()
174 device_printf(isc->sc_dev, in omap_uhh_init()
185 device_printf(isc->sc_dev, in omap_uhh_init()
188 device_printf(isc->sc_dev, in omap_uhh_init()
193 device_printf(isc->sc_dev, in omap_uhh_init()
198 device_printf(isc->sc_dev, in omap_uhh_init()
[all …]
H A Domap_tll.c136 device_t sc_dev; member
215 ti_sysc_clock_enable(device_get_parent(sc->sc_dev)); in omap_tll_init()
230 device_printf(sc->sc_dev, "TLL reset operation timed out\n"); in omap_tll_init()
250 ti_sysc_clock_disable(device_get_parent(sc->sc_dev)); in omap_tll_init()
269 device_printf(sc->sc_dev, "operation timed out\n"); in omap_tll_disable()
275 ti_sysc_clock_disable(device_get_parent(sc->sc_dev)); in omap_tll_disable()
300 sc->sc_dev = dev; in omap_tll_attach()
H A Domap_ehci.c131 device_t sc_dev; member
200 device_printf(isc->sc_dev, "PHY reset operation timed out\n"); in omap_ehci_soft_phy_reset()
227 uhh_dev = device_get_parent(isc->sc_dev); in omap_ehci_init()
228 device_printf(isc->sc_dev, "Starting TI EHCI USB Controller\n"); in omap_ehci_init()
318 isc->sc_dev = dev; in omap_ehci_attach()
/f-stack/freebsd/arm/freescale/imx/
H A Dimx_wdog.c60 device_t sc_dev; member
143 device_printf(sc->sc_dev, "Can not be disabled.\n"); in imx_watchdog()
194 sc->sc_dev = dev; in imx_wdog_attach()
209 if (ofw_bus_has_prop(sc->sc_dev, "fsl,ext-reset-output")) { in imx_wdog_attach()
211 bus_setup_intr(sc->sc_dev, sc->sc_res[IRQRES], in imx_wdog_attach()
227 if (OF_getencprop(ofw_bus_get_node(sc->sc_dev), "timeout-sec", in imx_wdog_attach()
230 device_printf(sc->sc_dev, "ERROR: bad timeout-sec " in imx_wdog_attach()
235 device_printf(sc->sc_dev, "watchdog enabled using " in imx_wdog_attach()
244 device_busy(sc->sc_dev); in imx_wdog_attach()
/f-stack/freebsd/mips/cavium/
H A Docteon_wdog.c55 device_t sc_dev; member
136 device_printf(sc->sc_dev, "%s: cmd: %x\n", __func__, cmd); in octeon_wdog_watchdog_fn()
156 struct sysctl_ctx_list *ctx = device_get_sysctl_ctx(sc->sc_dev); in octeon_wdog_sysctl()
157 struct sysctl_oid *tree = device_get_sysctl_tree(sc->sc_dev); in octeon_wdog_sysctl()
179 csc->csc_intr = bus_alloc_resource(sc->sc_dev, SYS_RES_IRQ, &rid, in octeon_wdog_setup()
185 error = bus_setup_intr(sc->sc_dev, csc->csc_intr, INTR_TYPE_MISC, in octeon_wdog_setup()
191 bus_bind_intr(sc->sc_dev, csc->csc_intr, core); in octeon_wdog_setup()
192 bus_describe_intr(sc->sc_dev, csc->csc_intr, csc->csc_intr_cookie, in octeon_wdog_setup()
240 sc->sc_dev = dev; in octeon_wdog_attach()
H A Dif_octm.c71 device_t sc_dev; member
162 sc->sc_dev = dev; in octm_attach()
197 sc->sc_intr = bus_alloc_resource(sc->sc_dev, SYS_RES_IRQ, &rid, in octm_attach()
204 error = bus_setup_intr(sc->sc_dev, sc->sc_intr, INTR_TYPE_NET, NULL, in octm_attach()
212 bus_describe_intr(sc->sc_dev, sc->sc_intr, sc->sc_intr_cookie, "rx"); in octm_attach()
504 device_printf(sc->sc_dev, "stray interrupt.\n"); in octm_rx_intr()
511 device_printf(sc->sc_dev, "no memory for receive mbuf.\n"); in octm_rx_intr()
/f-stack/freebsd/arm/arm/
H A Dpl310.c134 device_printf(sc->sc_dev, "Early BRESP response: %s\n", in pl310_print_config()
136 device_printf(sc->sc_dev, "Instruction prefetch: %s\n", in pl310_print_config()
138 device_printf(sc->sc_dev, "Data prefetch: %s\n", in pl310_print_config()
142 device_printf(sc->sc_dev, "Non-secure lockdown: %s\n", in pl310_print_config()
144 device_printf(sc->sc_dev, "Share override: %s\n", in pl310_print_config()
147 device_printf(sc->sc_dev, "Double linefill: %s\n", in pl310_print_config()
149 device_printf(sc->sc_dev, "Instruction prefetch: %s\n", in pl310_print_config()
151 device_printf(sc->sc_dev, "Data prefetch: %s\n", in pl310_print_config()
155 device_printf(sc->sc_dev, "Prefetch drop: %s\n", in pl310_print_config()
161 device_printf(sc->sc_dev, "Prefetch offset: %d\n", in pl310_print_config()
[all …]
/f-stack/freebsd/arm/broadcom/bcm2835/
H A Dbcm2835_clkman.c60 device_t sc_dev; member
104 sc->sc_dev = dev; in bcm2835_clkman_attach()
130 device_printf(sc->sc_dev, in bcm2835_clkman_set_frequency()
143 device_printf(sc->sc_dev, in bcm2835_clkman_set_frequency()
152 device_printf(sc->sc_dev, in bcm2835_clkman_set_frequency()
158 device_printf(sc->sc_dev, in bcm2835_clkman_set_frequency()
174 device_printf(sc->sc_dev, in bcm2835_clkman_set_frequency()
H A Dbcm2835_ft5406.c80 mtx_init(&_sc->sc_mtx, device_get_nameunit(_sc->sc_dev), \
113 device_t sc_dev; member
162 device_printf(sc->sc_dev, "bad touch id: %d", id); in ft5406ts_callout()
221 device_printf(sc->sc_dev, "failed to get touchbuf address\n"); in ft5406ts_init()
226 device_printf(sc->sc_dev, "touchscreen not detected\n"); in ft5406ts_init()
239 evdev_set_name(sc->sc_evdev, device_get_desc(sc->sc_dev)); in ft5406ts_init()
240 evdev_set_phys(sc->sc_evdev, device_get_nameunit(sc->sc_dev)); in ft5406ts_init()
288 sc->sc_dev = dev; in ft5406ts_attach()
H A Dbcm2835_intr.c126 device_t sc_dev; member
227 device_printf(sc->sc_dev, "Stray irq %u disabled\n", in bcm2835_intc_intr()
233 device_printf(sc->sc_dev, "Spurious interrupt detected\n"); in bcm2835_intc_intr()
338 name = device_get_nameunit(sc->sc_dev); in bcm_intc_pic_register()
357 error = intr_isrc_register(&bii->bii_isrc, sc->sc_dev, 0, in bcm_intc_pic_register()
362 if (intr_pic_register(sc->sc_dev, xref) == NULL) in bcm_intc_pic_register()
388 sc->sc_dev = dev; in bcm_intc_attach()
/f-stack/freebsd/arm/ti/
H A Daintc.c75 device_t sc_dev; member
130 device_printf(sc->sc_dev, in ti_aintc_intr()
142 device_printf(sc->sc_dev, "Stray irq %u disabled\n", irq); in ti_aintc_intr()
220 name = device_get_nameunit(sc->sc_dev); in ti_aintc_pic_attach()
225 sc->sc_dev, 0, "%s,%u", name, irq); in ti_aintc_pic_attach()
230 xref = OF_xref_from_node(ofw_bus_get_node(sc->sc_dev)); in ti_aintc_pic_attach()
231 pic = intr_pic_register(sc->sc_dev, xref); in ti_aintc_pic_attach()
235 return (intr_pic_claim_root(sc->sc_dev, xref, ti_aintc_intr, sc, 0)); in ti_aintc_pic_attach()
257 sc->sc_dev = dev; in ti_aintc_attach()
H A Dti_sdma.c107 device_t sc_dev; member
139 mtx_init(&_sc->sc_mtx, device_get_nameunit(_sc->sc_dev), \
241 device_printf(sc->sc_dev, "Spurious DMA IRQ for channel " in ti_sdma_intr()
248 device_printf(sc->sc_dev, "IRQ %d for a non-activated " in ti_sdma_intr()
255 device_printf(sc->sc_dev, "Synchronization event drop " in ti_sdma_intr()
259 device_printf(sc->sc_dev, "Secure transaction error event " in ti_sdma_intr()
262 device_printf(sc->sc_dev, "Misaligned address error event " in ti_sdma_intr()
265 device_printf(sc->sc_dev, "Transaction error event on " in ti_sdma_intr()
1161 sc->sc_dev = dev; in ti_sdma_attach()
1184 device_printf(sc->sc_dev, "error - unknown sDMA H/W revision\n"); in ti_sdma_attach()
[all …]
/f-stack/freebsd/arm/allwinner/a10/
H A Da10_intc.c102 device_t sc_dev; member
192 device_printf(sc->sc_dev, "Spurious interrupt %d\n", irq); in a10_intr()
198 device_printf(sc->sc_dev, "Spurious interrupt %d\n", in a10_intr()
206 device_printf(sc->sc_dev, in a10_intr()
226 name = device_get_nameunit(sc->sc_dev); in a10_intr_pic_attach()
231 sc->sc_dev, 0, "%s,%u", name, irq); in a10_intr_pic_attach()
236 xref = OF_xref_from_node(ofw_bus_get_node(sc->sc_dev)); in a10_intr_pic_attach()
237 pic = intr_pic_register(sc->sc_dev, xref); in a10_intr_pic_attach()
241 return (intr_pic_claim_root(sc->sc_dev, xref, a10_intr, sc, 0)); in a10_intr_pic_attach()
329 sc->sc_dev = dev; in a10_aintc_attach()
/f-stack/freebsd/arm/ti/am335x/
H A Dam335x_lcd.c203 device_t sc_dev; member
651 bus_get_dma_tag(sc->sc_dev), in am335x_lcd_configure()
675 device_printf(sc->sc_dev, "cannot load DMA map\n"); in am335x_lcd_configure()
824 err = (sc_attach_unit(device_get_unit(sc->sc_dev), in am335x_lcd_configure()
825 device_get_flags(sc->sc_dev) | SC_AUTODETECT_KBD)); in am335x_lcd_configure()
834 device_t fbd = device_add_child(sc->sc_dev, "fbd", in am335x_lcd_configure()
835 device_get_unit(sc->sc_dev)); in am335x_lcd_configure()
885 device_printf(sc->sc_dev, "failed to parse EDID\n"); in am335x_lcd_hdmi_event()
969 sc->sc_dev = dev; in am335x_lcd_attach()
1045 ctx = device_get_sysctl_ctx(sc->sc_dev); in am335x_lcd_attach()
[all …]
H A Dam335x_pmic.c60 device_t sc_dev; member
97 rv = am335x_pmic_read(sc->sc_dev, TPS65217_INT_REG, (uint8_t *)&int_reg, 1); in am335x_pmic_intr()
99 device_printf(sc->sc_dev, "Cannot read interrupt register\n"); in am335x_pmic_intr()
103 rv = am335x_pmic_read(sc->sc_dev, TPS65217_STATUS_REG, (uint8_t *)&status_reg, 1); in am335x_pmic_intr()
105 device_printf(sc->sc_dev, "Cannot read status register\n"); in am335x_pmic_intr()
129 sc->sc_dev = dev; in am335x_pmic_probe()
213 dev = sc->sc_dev; in am335x_pmic_start()
H A Dtda19988.c242 device_t sc_dev; member
264 result = (iicbus_transfer(sc->sc_dev, msg, 1)); in tda19988_set_page()
282 result = iicbus_transfer(sc->sc_dev, msg, 2); in tda19988_cec_read()
300 result = iicbus_transfer(sc->sc_dev, msg, 1); in tda19988_cec_write()
321 result = (iicbus_transfer(sc->sc_dev, msg, 2)); in tda19988_block_read()
342 result = (iicbus_transfer(sc->sc_dev, msg, 2)); in tda19988_reg_read()
363 result = iicbus_transfer(sc->sc_dev, msg, 1); in tda19988_reg_write()
386 result = iicbus_transfer(sc->sc_dev, msg, 1); in tda19988_reg_write2()
638 EVENTHANDLER_INVOKE(hdmi_event, sc->sc_dev, HDMI_EVENT_CONNECTED); in tda19988_read_edid()
653 dev = sc->sc_dev; in tda19988_start()
[all …]
H A Dam335x_rtc.c51 device_get_nameunit(_sc->sc_dev), "am335x_rtc", MTX_DEF)
62 device_t sc_dev; member
98 sc->sc_dev = dev; in am335x_rtc_attach()
166 device_printf(rtc_sc->sc_dev, "RTC does not stop.\n"); in am335x_rtc_pmic_pwr_toggle()
/f-stack/freebsd/arm/mv/
H A Dmv_pci.c292 device_t sc_dev; member
448 sc->sc_dev = self; in mv_pcib_attach()
545 mv_pcib_maxslots(sc->sc_dev)); in mv_pcib_attach()
815 hdrtype = mv_pcib_read_config(sc->sc_dev, bus, slot, in mv_pcib_init()
824 command = mv_pcib_read_config(sc->sc_dev, bus, slot, in mv_pcib_init()
827 mv_pcib_write_config(sc->sc_dev, bus, slot, func, in mv_pcib_init()
838 mv_pcib_write_config(sc->sc_dev, bus, slot, func, in mv_pcib_init()
842 class = mv_pcib_read_config(sc->sc_dev, bus, slot, in mv_pcib_init()
844 subclass = mv_pcib_read_config(sc->sc_dev, bus, slot, in mv_pcib_init()
875 device_printf(sc->sc_dev, in mv_pcib_init_all_bars()
[all …]
H A Dmpic.c110 device_t sc_dev; member
199 name = device_get_nameunit(sc->sc_dev); in mv_mpic_register_isrcs()
205 error = intr_isrc_register(isrc, sc->sc_dev, in mv_mpic_register_isrcs()
208 error = intr_isrc_register(isrc, sc->sc_dev, 0, "%s", in mv_mpic_register_isrcs()
213 device_printf(sc->sc_dev, "%s failed", __func__); in mv_mpic_register_isrcs()
234 sc->sc_dev = dev; in mv_mpic_attach()
313 device_printf(sc->sc_dev, "Stray irq %u " in mpic_intr()
548 node = ofw_bus_get_node(mv_mpic_sc->sc_dev); in mv_msi_data()
/f-stack/freebsd/arm/ti/twl/
H A Dtwl.c99 device_t sc_dev; member
117 mtx_init(&_sc->sc_mtx, device_get_nameunit(_sc->sc_dev), \
252 device_printf(sc->sc_dev, "iicbus write failed (adr:0x%02x, reg:0x%02x)\n", in twl_write()
283 if (iicbus_transfer(sc->sc_dev, &msg, 1) != 0) in twl_test_present()
317 device_printf(sc->sc_dev, "Found (sub)device at 0x%02x\n", (base + i)); in twl_scan()
359 sc->sc_dev = dev; in twl_probe()
403 sc->sc_dev = dev; in twl_attach()
H A Dtwl_clks.c127 device_t sc_dev; /* twl_clk device */ member
325 device_printf(sc->sc_dev, "%s : %sabled\n", clk->name, in twl_clks_set_state()
412 if ((err = twl_clks_is_enabled(sc->sc_dev, oidp->oid_name, &enabled)) != 0) in twl_clks_sysctl_clock()
438 struct sysctl_ctx_list *ctx = device_get_sysctl_ctx(sc->sc_dev); in twl_clks_add_clock()
439 struct sysctl_oid *tree = device_get_sysctl_tree(sc->sc_dev); in twl_clks_add_clock()
538 err = twl_clks_is_enabled(sc->sc_dev, entry->name, &enable); in twl_clks_add_clocks()
540 device_printf(sc->sc_dev, "%s : %s\n", entry->name, in twl_clks_add_clocks()
594 sc->sc_dev = dev; in twl_clks_attach()
/f-stack/freebsd/mips/ingenic/
H A Djz4780_mmc.c80 device_t sc_dev; member
167 sc->sc_dev = dev; in jz4780_mmc_attach()
197 device_printf(sc->sc_dev, "Couldn't setup DMA!\n"); in jz4780_mmc_attach()
201 device_printf(sc->sc_dev, "DMA status: %s\n", in jz4780_mmc_attach()
267 err = clk_get_by_ofw_name(sc->sc_dev, 0, "mmc", &sc->sc_clk); in jz4780_mmc_enable_clock()
426 device_printf(sc->sc_dev, "Failed to stop clk.\n"); in jz4780_mmc_reset()
547 device_printf(sc->sc_dev, in jz4780_mmc_timeout()
588 device_printf(sc->sc_dev, "rint: %#x, stat: %#x\n", in jz4780_mmc_intr()
600 device_printf(sc->sc_dev, in jz4780_mmc_intr()
719 device_printf(sc->sc_dev, in jz4780_mmc_request()
[all …]

1234