/freebsd/sys/dev/uart/ |
H A D | uart_dev_lowrisc.c | 246 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 D | uart_dev_mvebu.c | 329 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 D | uart_dev_mu.c | 349 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 D | uart_dev_pl011.c | 449 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 D | uart_dev_msm.c | 364 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 D | uart_dev_imx.c | 454 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 D | uart_dev_ns8250.c | 665 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 D | uart_bus_scc.c | 77 sc->sc_hwmtx = (struct mtx *)(void *)mtx; in uart_scc_attach()
|
H A D | uart_core.c | 613 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 D | uart_bus.h | 82 struct mtx *sc_hwmtx; member
|
/freebsd/sys/riscv/sifive/ |
H A D | sifive_uart.c | 262 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 D | vf_uart.c | 343 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 D | uart_dev_cdnc.c | 459 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 D | scc_dev_quicc.c | 111 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 D | scc_dev_z8530.c | 116 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 D | scc_bfe.h | 123 struct mtx sc_hwmtx; /* Spinlock protecting hardware. */ member
|
H A D | scc_core.c | 126 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 D | tegra_uart.c | 99 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()
|