/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() 373 uart_lock(sc->sc_hwmtx); in lowrisc_uart_bus_grab() [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() 438 uart_lock(sc->sc_hwmtx); in uart_mvebu_bus_ipend() 468 uart_lock(sc->sc_hwmtx); in uart_mvebu_bus_param() 502 uart_lock(sc->sc_hwmtx); in uart_mvebu_bus_receive() 553 uart_lock(sc->sc_hwmtx); in uart_mvebu_bus_transmit() 587 uart_lock(sc->sc_hwmtx); in uart_mvebu_bus_grab() [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() 494 uart_lock(sc->sc_hwmtx); in uart_mu_bus_grab() [all …]
|
H A D | uart_dev_quicc.c | 334 uart_lock(sc->sc_hwmtx); in quicc_bus_getsig() 355 uart_lock(sc->sc_hwmtx); in quicc_bus_ioctl() 369 uart_unlock(sc->sc_hwmtx); in quicc_bus_ioctl() 383 uart_lock(sc->sc_hwmtx); in quicc_bus_ipend() 386 uart_unlock(sc->sc_hwmtx); in quicc_bus_ipend() 405 uart_lock(sc->sc_hwmtx); in quicc_bus_param() 436 uart_lock(sc->sc_hwmtx); in quicc_bus_receive() 464 uart_lock(sc->sc_hwmtx); in quicc_bus_setsig() 478 uart_lock(sc->sc_hwmtx); in quicc_bus_transmit() 498 uart_lock(sc->sc_hwmtx); in quicc_bus_grab() [all …]
|
H A D | uart_dev_pl011.c | 409 uart_lock(sc->sc_hwmtx); in uart_pl011_bus_ioctl() 420 uart_unlock(sc->sc_hwmtx); in uart_pl011_bus_ioctl() 436 uart_lock(sc->sc_hwmtx); in uart_pl011_bus_ipend() 454 uart_unlock(sc->sc_hwmtx); in uart_pl011_bus_ipend() 464 uart_lock(sc->sc_hwmtx); in uart_pl011_bus_param() 466 uart_unlock(sc->sc_hwmtx); in uart_pl011_bus_param() 537 uart_lock(sc->sc_hwmtx); in uart_pl011_bus_receive() 559 uart_unlock(sc->sc_hwmtx); in uart_pl011_bus_receive() 580 uart_lock(sc->sc_hwmtx); in uart_pl011_bus_transmit() 606 uart_lock(sc->sc_hwmtx); in uart_pl011_bus_grab() [all …]
|
H A D | uart_dev_z8530.c | 378 uart_lock(sc->sc_hwmtx); in z8530_bus_getsig() 398 uart_lock(sc->sc_hwmtx); in z8530_bus_ioctl() 418 uart_unlock(sc->sc_hwmtx); in z8530_bus_ioctl() 434 uart_lock(sc->sc_hwmtx); in z8530_bus_ipend() 490 uart_unlock(sc->sc_hwmtx); in z8530_bus_ipend() 502 uart_lock(sc->sc_hwmtx); in z8530_bus_param() 536 uart_lock(sc->sc_hwmtx); in z8530_bus_receive() 595 uart_lock(sc->sc_hwmtx); in z8530_bus_setsig() 617 uart_lock(sc->sc_hwmtx); in z8530_bus_transmit() 634 uart_lock(sc->sc_hwmtx); in z8530_bus_grab() [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() 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() 629 uart_lock(sc->sc_hwmtx); in imx_uart_bus_transmit() 654 uart_lock(sc->sc_hwmtx); in imx_uart_bus_grab() [all …]
|
H A D | uart_dev_ns8250.c | 629 uart_lock(sc->sc_hwmtx); in ns8250_bus_flush() 637 uart_unlock(sc->sc_hwmtx); in ns8250_bus_flush() 661 uart_lock(sc->sc_hwmtx); in ns8250_bus_getsig() 687 uart_lock(sc->sc_hwmtx); in ns8250_bus_ioctl() 761 uart_lock(sc->sc_hwmtx); in ns8250_bus_ipend() 807 uart_lock(sc->sc_hwmtx); in ns8250_bus_param() 995 uart_lock(sc->sc_hwmtx); in ns8250_bus_receive() 1038 uart_lock(sc->sc_hwmtx); in ns8250_bus_setsig() 1058 uart_lock(sc->sc_hwmtx); in ns8250_bus_transmit() 1102 uart_lock(sc->sc_hwmtx); in ns8250_bus_grab() [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 | 607 if (sc->sc_hwmtx == NULL) in uart_bus_attach() 608 sc->sc_hwmtx = &sc->sc_hwmtx_s; in uart_bus_attach() 741 sc->sc_sysdev->hwmtx = sc->sc_hwmtx; in uart_bus_attach()
|
H A D | uart_bus.h | 83 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() 430 uart_lock(sc->sc_hwmtx); in sfuart_bus_receive() 457 uart_lock(sc->sc_hwmtx); in sfuart_bus_transmit() 480 uart_lock(sc->sc_hwmtx); in sfuart_bus_grab() [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() 644 uart_lock(sc->sc_hwmtx); in cdnc_uart_bus_ioctl() [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()
|