Home
last modified time | relevance | path

Searched refs:sc_hwmtx (Results 1 – 18 of 18) sorted by relevance

/freebsd/sys/dev/uart/
H A Duart_dev_lowrisc.c246 uart_lock(sc->sc_hwmtx); in lowrisc_uart_bus_ioctl()
258 uart_unlock(sc->sc_hwmtx); in lowrisc_uart_bus_ioctl()
273 uart_lock(sc->sc_hwmtx); in lowrisc_uart_bus_ipend()
277 uart_unlock(sc->sc_hwmtx); in lowrisc_uart_bus_ipend()
287 uart_lock(sc->sc_hwmtx); in lowrisc_uart_bus_param()
289 uart_unlock(sc->sc_hwmtx); in lowrisc_uart_bus_param()
325 uart_lock(sc->sc_hwmtx); in lowrisc_uart_bus_receive()
338 uart_unlock(sc->sc_hwmtx); in lowrisc_uart_bus_receive()
358 uart_lock(sc->sc_hwmtx); in lowrisc_uart_bus_transmit()
364 uart_unlock(sc->sc_hwmtx); in lowrisc_uart_bus_transmit()
[all …]
H A Duart_dev_mvebu.c329 uart_lock(sc->sc_hwmtx); in uart_mvebu_bus_attach()
341 uart_unlock(sc->sc_hwmtx); in uart_mvebu_bus_attach()
360 uart_lock(sc->sc_hwmtx); in uart_mvebu_bus_flush()
385 uart_unlock(sc->sc_hwmtx); in uart_mvebu_bus_flush()
404 uart_lock(sc->sc_hwmtx); in uart_mvebu_bus_ioctl()
426 uart_unlock(sc->sc_hwmtx); in uart_mvebu_bus_ioctl()
438 uart_lock(sc->sc_hwmtx); in uart_mvebu_bus_ipend()
457 uart_unlock(sc->sc_hwmtx); in uart_mvebu_bus_ipend()
468 uart_lock(sc->sc_hwmtx); in uart_mvebu_bus_param()
470 uart_unlock(sc->sc_hwmtx); in uart_mvebu_bus_param()
[all …]
H A Duart_dev_mu.c349 uart_lock(sc->sc_hwmtx); in uart_mu_bus_ioctl()
360 uart_unlock(sc->sc_hwmtx); in uart_mu_bus_ioctl()
376 uart_lock(sc->sc_hwmtx); in uart_mu_bus_ipend()
397 uart_unlock(sc->sc_hwmtx); in uart_mu_bus_ipend()
407 uart_lock(sc->sc_hwmtx); in uart_mu_bus_param()
409 uart_unlock(sc->sc_hwmtx); in uart_mu_bus_param()
434 uart_lock(sc->sc_hwmtx); in uart_mu_bus_receive()
447 uart_unlock(sc->sc_hwmtx); in uart_mu_bus_receive()
468 uart_lock(sc->sc_hwmtx); in uart_mu_bus_transmit()
479 uart_unlock(sc->sc_hwmtx); in uart_mu_bus_transmit()
[all …]
H A Duart_dev_pl011.c449 uart_lock(sc->sc_hwmtx); in uart_pl011_bus_ioctl()
460 uart_unlock(sc->sc_hwmtx); in uart_pl011_bus_ioctl()
476 uart_lock(sc->sc_hwmtx); in uart_pl011_bus_ipend()
494 uart_unlock(sc->sc_hwmtx); in uart_pl011_bus_ipend()
504 uart_lock(sc->sc_hwmtx); in uart_pl011_bus_param()
506 uart_unlock(sc->sc_hwmtx); in uart_pl011_bus_param()
577 uart_lock(sc->sc_hwmtx); in uart_pl011_bus_receive()
599 uart_unlock(sc->sc_hwmtx); in uart_pl011_bus_receive()
620 uart_lock(sc->sc_hwmtx); in uart_pl011_bus_transmit()
631 uart_unlock(sc->sc_hwmtx); in uart_pl011_bus_transmit()
[all …]
H A Duart_dev_msm.c364 uart_lock(sc->sc_hwmtx); in msm_bus_transmit()
383 uart_unlock(sc->sc_hwmtx); in msm_bus_transmit()
403 uart_lock(sc->sc_hwmtx); in msm_bus_receive()
426 uart_unlock(sc->sc_hwmtx); in msm_bus_receive()
442 uart_lock(sc->sc_hwmtx); in msm_bus_param()
445 uart_unlock(sc->sc_hwmtx); in msm_bus_param()
458 uart_lock(sc->sc_hwmtx); in msm_bus_ipend()
506 uart_unlock(sc->sc_hwmtx); in msm_bus_ipend()
540 uart_lock(sc->sc_hwmtx); in msm_bus_grab()
544 uart_unlock(sc->sc_hwmtx); in msm_bus_grab()
[all …]
H A Duart_dev_imx.c454 uart_lock(sc->sc_hwmtx); in imx_uart_bus_getsig()
456 uart_unlock(sc->sc_hwmtx); in imx_uart_bus_getsig()
473 uart_lock(sc->sc_hwmtx); in imx_uart_bus_ioctl()
485 uart_unlock(sc->sc_hwmtx); in imx_uart_bus_ioctl()
501 uart_lock(sc->sc_hwmtx); in imx_uart_bus_ipend()
536 uart_unlock(sc->sc_hwmtx); in imx_uart_bus_ipend()
546 uart_lock(sc->sc_hwmtx); in imx_uart_bus_param()
548 uart_unlock(sc->sc_hwmtx); in imx_uart_bus_param()
581 uart_lock(sc->sc_hwmtx); in imx_uart_bus_receive()
611 uart_unlock(sc->sc_hwmtx); in imx_uart_bus_receive()
[all …]
H A Duart_dev_ns8250.c665 uart_lock(sc->sc_hwmtx); in ns8250_bus_flush()
673 uart_unlock(sc->sc_hwmtx); in ns8250_bus_flush()
697 uart_lock(sc->sc_hwmtx); in ns8250_bus_getsig()
699 uart_unlock(sc->sc_hwmtx); in ns8250_bus_getsig()
723 uart_lock(sc->sc_hwmtx); in ns8250_bus_ioctl()
776 uart_unlock(sc->sc_hwmtx); in ns8250_bus_ioctl()
790 uart_lock(sc->sc_hwmtx); in ns8250_bus_ipend()
795 uart_unlock(sc->sc_hwmtx); in ns8250_bus_ipend()
799 uart_unlock(sc->sc_hwmtx); in ns8250_bus_ipend()
822 uart_unlock(sc->sc_hwmtx); in ns8250_bus_ipend()
[all …]
H A Duart_bus_scc.c77 sc->sc_hwmtx = (struct mtx *)(void *)mtx; in uart_scc_attach()
H A Duart_core.c613 if (sc->sc_hwmtx == NULL) in uart_bus_attach()
614 sc->sc_hwmtx = &sc->sc_hwmtx_s; in uart_bus_attach()
747 sc->sc_sysdev->hwmtx = sc->sc_hwmtx; in uart_bus_attach()
H A Duart_bus.h82 struct mtx *sc_hwmtx; member
/freebsd/sys/riscv/sifive/
H A Dsifive_uart.c262 uart_lock(sc->sc_hwmtx); in sfuart_bus_flush()
275 uart_unlock(sc->sc_hwmtx); in sfuart_bus_flush()
333 uart_lock(sc->sc_hwmtx); in sfuart_bus_ioctl()
351 uart_unlock(sc->sc_hwmtx); in sfuart_bus_ioctl()
364 uart_lock(sc->sc_hwmtx); in sfuart_bus_ipend()
382 uart_unlock(sc->sc_hwmtx); in sfuart_bus_ipend()
402 uart_lock(sc->sc_hwmtx); in sfuart_bus_param()
410 uart_unlock(sc->sc_hwmtx); in sfuart_bus_param()
419 uart_unlock(sc->sc_hwmtx); in sfuart_bus_param()
430 uart_lock(sc->sc_hwmtx); in sfuart_bus_receive()
[all …]
/freebsd/sys/arm/freescale/vybrid/
H A Dvf_uart.c343 uart_lock(sc->sc_hwmtx); in vf_uart_bus_ioctl()
356 uart_unlock(sc->sc_hwmtx); in vf_uart_bus_ioctl()
372 uart_lock(sc->sc_hwmtx); in vf_uart_bus_ipend()
403 uart_unlock(sc->sc_hwmtx); in vf_uart_bus_ipend()
413 uart_lock(sc->sc_hwmtx); in vf_uart_bus_param()
415 uart_unlock(sc->sc_hwmtx); in vf_uart_bus_param()
444 uart_lock(sc->sc_hwmtx); in vf_uart_bus_receive()
463 uart_unlock(sc->sc_hwmtx); in vf_uart_bus_receive()
495 uart_lock(sc->sc_hwmtx); in vf_uart_bus_transmit()
510 uart_unlock(sc->sc_hwmtx); in vf_uart_bus_transmit()
/freebsd/sys/arm/xilinx/
H A Duart_dev_cdnc.c459 uart_lock(sc->sc_hwmtx); in cdnc_uart_bus_transmit()
471 uart_unlock(sc->sc_hwmtx); in cdnc_uart_bus_transmit()
492 uart_lock(sc->sc_hwmtx); in cdnc_uart_bus_setsig()
501 uart_unlock(sc->sc_hwmtx); in cdnc_uart_bus_setsig()
512 uart_lock(sc->sc_hwmtx); in cdnc_uart_bus_receive()
540 uart_unlock(sc->sc_hwmtx); in cdnc_uart_bus_receive()
561 uart_lock(sc->sc_hwmtx); in cdnc_uart_bus_ipend()
600 uart_unlock(sc->sc_hwmtx); in cdnc_uart_bus_ipend()
621 uart_lock(sc->sc_hwmtx); in cdnc_uart_bus_getsig()
623 uart_unlock(sc->sc_hwmtx); in cdnc_uart_bus_getsig()
[all …]
/freebsd/sys/dev/scc/
H A Dscc_dev_quicc.c111 mtx_lock_spin(&sc->sc_hwmtx); in quicc_bfe_iclear()
118 mtx_unlock_spin(&sc->sc_hwmtx); in quicc_bfe_iclear()
137 mtx_lock_spin(&sc->sc_hwmtx); in quicc_bfe_ipend()
140 mtx_unlock_spin(&sc->sc_hwmtx); in quicc_bfe_ipend()
H A Dscc_dev_z8530.c116 mtx_lock_spin(&sc->sc_hwmtx); in z8530_bfe_iclear()
127 mtx_unlock_spin(&sc->sc_hwmtx); in z8530_bfe_iclear()
152 mtx_lock_spin(&sc->sc_hwmtx); in z8530_bfe_ipend()
194 mtx_unlock_spin(&sc->sc_hwmtx); in z8530_bfe_ipend()
H A Dscc_bfe.h123 struct mtx sc_hwmtx; /* Spinlock protecting hardware. */ member
H A Dscc_core.c126 mtx_init(&sc->sc_hwmtx, "scc_hwmtx", NULL, MTX_SPIN); in scc_bfe_attach()
345 mtx_destroy(&sc->sc_hwmtx); in scc_bfe_detach()
489 *result = (uintptr_t)&sc->sc_hwmtx; in scc_bus_read_ivar()
/freebsd/sys/arm/nvidia/
H A Dtegra_uart.c99 uart_lock(sc->sc_hwmtx); in tegra_uart_grab()
108 uart_unlock(sc->sc_hwmtx); in tegra_uart_grab()
120 uart_lock(sc->sc_hwmtx); in tegra_uart_ungrab()
124 uart_unlock(sc->sc_hwmtx); in tegra_uart_ungrab()