/freebsd-src/sys/dev/ath/ |
H A D | if_ath_rx.h | 39 #define ath_stoprecv(_sc, _dodelay) \ argument 41 #define ath_startrecv(_sc) \ argument 43 #define ath_rx_flush(_sc) \ argument 45 #define ath_rxbuf_init(_sc, _bf) \ argument 47 #define ath_rxdma_setup(_sc) \ argument 49 #define ath_rxdma_teardown(_sc) \ argument
|
H A D | if_ath_tx.h | 154 #define ath_txdma_setup(_sc) \ argument 156 #define ath_txdma_teardown(_sc) \ argument 158 #define ath_txq_restart_dma(_sc, _txq) \ argument 160 #define ath_tx_handoff(_sc, _txq, _bf) \ argument 162 #define ath_draintxq(_sc, _rtype) \ argument
|
/freebsd-src/sys/dev/bhnd/cores/pmu/ |
H A D | bhnd_pmu_private.h | 34 #define BHND_PMU_READ_4(_sc, _reg) (_sc)->io->rd4((_reg), (_sc)->io_ctx) argument 35 #define BHND_PMU_WRITE_4(_sc, _reg, _val) \ argument 38 #define BHND_PMU_AND_4(_sc, _reg, _val) \ argument 41 #define BHND_PMU_OR_4(_sc, _reg, _val) \ argument 46 #define BHND_PMU_IND_READ(_sc, _src, _reg) \ argument 49 #define BHND_PMU_IND_WRITE(_sc, _src, _reg, _val, _mask) \ argument 55 #define BHND_PMU_CCTRL_READ(_sc, _reg) \ argument 57 #define BHND_PMU_CCTRL_WRITE(_sc, _reg, _val, _mask) \ argument 61 #define BHND_PMU_REGCTRL_READ(_sc, _reg) \ argument 63 #define BHND_PMU_REGCTRL_WRITE(_sc, _reg, _val, _mask) \ argument [all …]
|
/freebsd-src/sys/arm/freescale/vybrid/ |
H A D | vf_common.h | 29 #define READ4(_sc, _reg) \ argument 31 #define WRITE4(_sc, _reg, _val) \ argument 33 #define READ2(_sc, _reg) \ argument 35 #define WRITE2(_sc, _reg, _val) \ argument 37 #define READ1(_sc, _reg) \ argument 39 #define WRITE1(_sc, _reg, _val) \ argument
|
/freebsd-src/sys/arm/altera/socfpga/ |
H A D | socfpga_common.h |
|
/freebsd-src/sys/dev/rtwn/ |
H A D | if_rtwnvar.h | 442 #define rtwn_write_1(_sc, _addr, _val) \ argument 444 #define rtwn_write_2(_sc, _addr, _val) \ argument 446 #define rtwn_write_4(_sc, _add argument 195 RTWN_CHIP_HAS_BCNQ1(_sc) global() argument 432 rtwn_write_1(_sc,_addr,_val) global() argument 434 rtwn_write_2(_sc,_addr,_val) global() argument 436 rtwn_write_4(_sc,_addr,_val) global() argument 438 rtwn_read_1(_sc,_addr) global() argument 440 rtwn_read_2(_sc,_addr) global() argument 448 rtwn_start_xfers(_sc) global() argument 450 rtwn_reset_lists(_sc,_vap) global() argument 452 rtwn_abort_xfers(_sc) global() argument 454 rtwn_fw_write_block(_sc,_buf,_reg,_len) global() argument 456 rtwn_get_qmap(_sc) global() argument 458 rtwn_set_desc_addr(_sc) global() argument 460 rtwn_drop_incorrect_tx(_sc) global() argument 462 rtwn_beacon_update_begin(_sc,_vap) global() argument 464 rtwn_beacon_update_end(_sc,_vap) global() argument 466 rtwn_beacon_unload(_sc,_id) global() argument 475 rtwn_rf_read(_sc,_chain,_addr) global() argument 477 rtwn_rf_write(_sc,_chain,_addr,_val) global() argument 479 rtwn_check_condition(_sc,_cond) global() argument 481 rtwn_efuse_postread(_sc) global() argument 483 rtwn_parse_rom(_sc,_rom) global() argument 485 rtwn_set_led(_sc,_led,_on) global() argument 487 rtwn_get_rx_stats(_sc,_rxs,_desc,_physt) global() argument 489 rtwn_get_rssi_cck(_sc,_physt) global() argument 491 rtwn_get_rssi_ofdm(_sc,_physt) global() argument 493 rtwn_power_on(_sc) global() argument 495 rtwn_power_off(_sc) global() argument 498 rtwn_fw_reset(_sc,_reason) global() argument 500 rtwn_fw_download_enable(_sc,_enable) global() argument 503 rtwn_llt_init(_sc) global() argument 505 rtwn_set_page_size(_sc) global() argument 507 rtwn_lc_calib(_sc) global() argument 509 rtwn_iq_calib(_sc) global() argument 511 rtwn_read_chipid_vendor(_sc,_reg) global() argument 513 rtwn_adj_devcaps(_sc) global() argument 515 rtwn_vap_preattach(_sc,_vap) global() argument 517 rtwn_postattach(_sc) global() argument 519 rtwn_detach_private(_sc) global() argument 521 rtwn_fill_tx_desc(_sc,_ni,_m,_buf,_ridx,_maxretry) global() argument 525 rtwn_fill_tx_desc_raw(_sc,_ni,_m,_buf,_params) global() argument 529 rtwn_fill_tx_desc_null(_sc,_buf,_11b,_qos,_id) global() argument 532 rtwn_dump_tx_desc(_sc,_desc) global() argument 534 rtwn_tx_radiotap_flags(_sc,_buf) global() argument 536 rtwn_rx_radiotap_flags(_sc,_buf) global() argument 538 rtwn_set_chan(_sc,_c) global() argument 541 rtwn_set_rsvd_page(_sc,_resp,_null,_qos_null) global() argument 544 rtwn_set_pwrmode(_sc,_vap,_off) global() argument 546 rtwn_set_rssi(_sc) global() argument 549 rtwn_classify_intr(_sc,_buf,_len) global() argument 551 rtwn_handle_tx_report(_sc,_buf,_len) global() argument 553 rtwn_handle_c2h_report(_sc,_buf,_len) global() argument 555 rtwn_check_frame(_sc,_m) global() argument 557 rtwn_beacon_init(_sc,_buf,_id) global() argument 559 rtwn_beacon_enable(_sc,_id,_enable) global() argument 561 rtwn_beacon_set_rate(_sc,_buf,_is5ghz) global() argument 563 rtwn_beacon_select(_sc,_id) global() argument 565 rtwn_temp_measure(_sc) global() argument 567 rtwn_temp_read(_sc) global() argument 569 rtwn_init_tx_agg(_sc) global() argument 571 rtwn_init_rx_agg(_sc) global() argument 573 rtwn_init_intr(_sc) global() argument 575 rtwn_init_ampdu(_sc) global() argument 577 rtwn_init_edca(_sc) global() argument 579 rtwn_init_bb(_sc) global() argument 581 rtwn_init_rf(_sc) global() argument 583 rtwn_init_antsel(_sc) global() argument 585 rtwn_post_init(_sc) global() argument 587 rtwn_init_bcnq1_boundary(_sc) global() argument [all...] |
/freebsd-src/sys/arm/broadcom/bcm2835/ |
H A D | bcm2835_pwm.c | 72 #define BCM_PWM_MEM_WRITE(_sc, _off, _val) \ argument 74 #define BCM_PWM_MEM_READ(_sc, _off) \ argument 76 #define BCM_PWM_CLK_WRITE(_sc, _off, _val) \ argument 78 #define BCM_PWM_CLK_READ(_sc, _of argument 81 W_CTL(_sc,_val) global() argument 82 R_CTL(_sc) global() argument 83 W_STA(_sc,_val) global() argument 84 R_STA(_sc) global() argument 85 W_RNG(_sc,_val) global() argument 86 R_RNG(_sc) global() argument 87 W_DAT(_sc,_val) global() argument 88 R_DAT(_sc) global() argument 89 W_RNG2(_sc,_val) global() argument 90 R_RNG2(_sc) global() argument 91 W_DAT2(_sc,_val) global() argument 92 R_DAT2(_sc) global() argument [all...] |
H A D | bcm2835_clkman.c | 65 #define BCM_CLKMAN_WRITE(_sc, _off, _val) \ argument 67 #define BCM_CLKMAN_READ(_sc, _off) \ argument 70 #define W_CMCLK(_sc, unit, _val) BCM_CLKMAN_WRITE(_sc, unit, 0x5a000000 | (_val)) argument 71 #define R_CMCLK(_sc, unit) BCM_CLKMAN_READ(_sc, uni argument 72 W_CMDIV(_sc,unit,_val) global() argument 73 R_CMDIV(_sc,unit) global() argument [all...] |
/freebsd-src/sys/arm/ti/am335x/ |
H A D | am335x_ecap.c | 57 #define ECAP_READ2(_sc, reg) bus_read_2((_sc)->sc_mem_res, reg); argument 58 #define ECAP_WRITE2(_sc, reg, value) \ argument 60 #define ECAP_READ4(_sc, reg) bus_read_4((_sc)->sc_mem_res, reg); argument 61 #define ECAP_WRITE4(_sc, reg, value) \ argument 64 #define PWM_LOCK(_sc) mtx_lock(&(_sc)->sc_mtx) argument 65 #define PWM_UNLOCK(_sc) mtx_unlock(&(_sc)->sc_mtx) argument 66 #define PWM_LOCK_INIT(_sc) mtx_init(&(_sc)->sc_mtx, \ argument 68 #define PWM_LOCK_DESTROY(_sc) mtx_destroy(&(_sc)->sc_mtx) argument
|
H A D | am335x_rtc.c | 45 #define RTC_LOCK(_sc) mtx_lock(&(_sc)->sc_mtx) argument 46 #define RTC_UNLOCK(_sc) mtx_unlock(&(_sc)->sc_mtx) argument 47 #define RTC_LOCK_INIT(_sc) mtx_init(&(_sc)->sc_mtx, \ argument 49 #define RTC_LOCK_DESTROY(_sc) mtx_destroy(&(_sc)->sc_mtx) argument 51 #define RTC_READ4(_sc, reg) \ argument 53 #define RTC_WRITE4(_sc, reg, value) \ argument
|
/freebsd-src/sys/fs/p9fs/ |
H A D | p9fs.h | 77 #define P9FS_VFID_MTX(_sc) (&(_sc)->vfid_mtx) argument 78 #define P9FS_VFID_LOCK(_sc) mtx_lock(P9FS_VFID_MTX(_sc)) argument 79 #define P9FS_VFID_UNLOCK(_sc) mtx_unlock(P9FS_VFID_MTX(_sc)) argument 80 #define P9FS_VFID_LOCK_INIT(_sc) mtx_init(P9FS_VFID_MTX(_sc), \ argument 82 #define P9FS_VFID_LOCK_DESTROY(_sc) mtx_destroy(P9FS_VFID_MTX(_sc)) argument 84 #define P9FS_VOFID_MTX(_sc) (&(_sc)->vofid_mtx) argument 85 #define P9FS_VOFID_LOCK(_sc) mtx_lock(P9FS_VOFID_MTX(_sc)) argument 86 #define P9FS_VOFID_UNLOCK(_sc) mtx_unlock(P9FS_VOFID_MTX(_sc)) argument 87 #define P9FS_VOFID_LOCK_INIT(_sc) mtx_init(P9FS_VOFID_MTX(_sc), \ argument 89 #define P9FS_VOFID_LOCK_DESTROY(_sc) mtx_destroy(P9FS_VOFID_MTX(_sc)) argument [all …]
|
/freebsd-src/sys/dev/syscon/ |
H A D | syscon_generic.c | 71 #define SYSCON_LOCK(_sc) mtx_lock_spin(&(_sc)->mtx) argument 72 #define SYSCON_UNLOCK(_sc) mtx_unlock_spin(&(_sc)->mtx) argument 73 #define SYSCON_LOCK_INIT(_sc) mtx_init(&(_sc)->mtx, \ argument 75 #define SYSCON_LOCK_DESTROY(_sc) mtx_destroy(&(_sc)->mtx); argument 76 #define SYSCON_ASSERT_LOCKED(_sc) mtx_asser argument 77 SYSCON_ASSERT_UNLOCKED(_sc) global() argument [all...] |
/freebsd-src/sys/arm/nvidia/ |
H A D | tegra_rtc.c | 75 #define WR4(_sc, _r, _v) bus_write_4((_sc)->mem_res, (_r), (_v)) argument 76 #define RD4(_sc, _r) bus_read_4((_sc)->mem_res, (_r)) argument 78 #define LOCK(_sc) mtx_lock(&(_sc)->mtx) argument 79 #define UNLOCK(_sc) mtx_unlock(&(_sc)->mtx) argument 80 #define SLEEP(_sc, timeout) \ argument 82 #define LOCK_INIT(_sc) \ argument 84 LOCK_DESTROY(_sc) global() argument 85 ASSERT_LOCKED(_sc) global() argument 86 ASSERT_UNLOCKED(_sc) global() argument [all...] |
H A D | tegra_mc.c | 97 #define WR4(_sc, _r, _v) bus_write_4((_sc)->mem_res, (_r), (_v)) argument 98 #define RD4(_sc, _r) bus_read_4((_sc)->mem_res, (_r)) argument 100 #define LOCK(_sc) mtx_lock(&(_sc)->mtx) argument 101 #define UNLOCK(_sc) mtx_unlock(&(_sc)->mtx) argument 102 #define SLEEP(_sc, timeout) mtx_sleep(sc, &sc->mtx, 0, "tegra_mc", timeout); argument 103 #define LOCK_INIT(_sc) \ argument 105 LOCK_DESTROY(_sc) global() argument 106 ASSERT_LOCKED(_sc) global() argument 107 ASSERT_UNLOCKED(_sc) global() argument [all...] |
/freebsd-src/sys/dev/wpi/ |
H A D | if_wpivar.h | 256 #define WPI_LOCK_INIT(_sc) \ argument 259 #define WPI_LOCK(_sc) mtx_lock(&(_sc)->sc_mtx) argument 260 #define WPI_UNLOCK(_sc) mtx_unlock(&(_sc)->sc_mtx) argument 261 #define WPI_LOCK_ASSERT(_sc) mtx_assert(&(_sc)->sc_mtx, MA_OWNED) argument 262 #define WPI_LOCK_DESTROY(_sc) mtx_destroy(&(_sc)->sc_mtx) argument 264 #define WPI_RXON_LOCK_INIT(_sc) \ argument 266 #define WPI_RXON_LOCK(_sc) mtx_lock(&(_sc)->rxon_mtx) argument 267 #define WPI_RXON_UNLOCK(_sc) mtx_unlock(&(_sc)->rxon_mtx) argument 268 #define WPI_RXON_LOCK_ASSERT(_sc) mtx_assert(&(_sc)->rxon_mtx, MA_OWNED) argument 269 #define WPI_RXON_LOCK_DESTROY(_sc) mtx_destroy(&(_sc)->rxon_mtx) argument [all …]
|
/freebsd-src/sys/dev/bhnd/cores/pci/ |
H A D | bhnd_pci_hostb.c | 174 #define BHND_PCI_SOFTC(_sc) (&((_sc)->common)) argument 176 #define BHND_PCI_READ_2(_sc, _reg) \ argument 179 #define BHND_PCI_READ_4(_sc, _reg) \ argument 182 #define BHND_PCI_WRITE_2(_sc, _reg, _val) \ argument 185 #define BHND_PCI_WRITE_4(_sc, _reg, _val) \ argument 188 #define BHND_PCI_PROTO_READ_4(_sc, _reg) \ argument 191 #define BHND_PCI_PROTO_WRITE_4(_sc, _reg, _val) \ argument 194 #define BHND_PCI_MDIO_READ(_sc, _phy, _reg) \ argument 197 #define BHND_PCI_MDIO_WRITE(_sc, _phy, _reg, _val) \ argument 200 #define BHND_PCI_MDIO_READ_EXT(_sc, _phy, _devaddr, _reg) \ argument [all …]
|
/freebsd-src/sys/dev/rtwn/rtl8192c/ |
H A D | r92c_var.h | 65 #define R92C_SOFTC(_sc) ((struct r92c_softc *)((_sc)->sc_priv)) argument 67 #define rtwn_r92c_set_bw20(_sc, _chan) \ argument 69 #define rtwn_r92c_get_txpower(_sc, _chain, _c, _power) \ argument 71 #define rtwn_r92c_set_gain(_sc, _gain) \ argument 73 #define rtwn_r92c_tx_enable_ampdu(_sc, _buf, _enable) \ argument 75 #define rtwn_r92c_tx_setup_hwseq(_sc, _buf) \ argument 77 #define rtwn_r92c_tx_setup_macid(_sc, _buf, _id) \ argument 79 #define rtwn_r92c_set_rom_opts(_sc, _buf) \ argument
|
/freebsd-src/sys/dev/altera/pio/ |
H A D | pio.c |
|
/freebsd-src/sys/dev/iicbus/pmic/ |
H A D | act8846.c | 60 #define LOCK(_sc) sx_xlock(&(_sc)->lock) argument 61 #define UNLOCK(_sc) sx_xunlock(&(_sc)->lock) argument 62 #define LOCK_INIT(_sc) sx_init(&(_sc)->lock, "act8846") argument 63 #define LOCK_DESTROY(_sc) sx_destroy(&(_sc)->lock); argument 64 #define ASSERT_LOCKED(_sc) sx_assert(&(_sc) argument 65 ASSERT_UNLOCKED(_sc) global() argument [all...] |
/freebsd-src/sys/dev/flash/ |
H A D | cqspi.c | 80 #define READ4(_sc, _reg) bus_read_4((_sc)->res[0], _reg) argument 81 #define READ2(_sc, _reg) bus_read_2((_sc)->res[0], _reg) argument 82 #define READ1(_sc, _reg) bus_read_1((_sc)->res[0], _reg) argument 83 #define WRITE4(_sc, _reg, _val) bus_write_4((_sc)->res[0], _reg, _val) argument 84 #define WRITE2(_sc, _reg, _val) bus_write_2((_sc) argument 85 WRITE1(_sc,_reg,_val) global() argument 86 READ_DATA_4(_sc,_reg) global() argument 87 READ_DATA_1(_sc,_reg) global() argument 88 WRITE_DATA_4(_sc,_reg,_val) global() argument 89 WRITE_DATA_1(_sc,_reg,_val) global() argument 119 CQSPI_LOCK(_sc) global() argument 120 CQSPI_UNLOCK(_sc) global() argument 121 CQSPI_LOCK_INIT(_sc) global() argument 124 CQSPI_LOCK_DESTROY(_sc) global() argument 125 CQSPI_ASSERT_LOCKED(_sc) global() argument 127 CQSPI_ASSERT_UNLOCKED(_sc) global() argument [all...] |
/freebsd-src/sys/dev/fdt/ |
H A D | simple_mfd.c | 64 #define SYSCON_LOCK(_sc) mtx_lock_spin(&(_sc)->mtx) argument 65 #define SYSCON_UNLOCK(_sc) mtx_unlock_spin(&(_sc)->mtx) argument 66 #define SYSCON_LOCK_INIT(_sc) mtx_init(&(_sc)->mtx, \ argument 68 #define SYSCON_LOCK_DESTROY(_sc) mtx_destroy(&(_sc)->mtx); argument 69 #define SYSCON_ASSERT_LOCKED(_sc) mtx_asser argument 70 SYSCON_ASSERT_UNLOCKED(_sc) global() argument [all...] |
/freebsd-src/sys/arm/ti/ |
H A D | ti_adcvar.h | 32 #define ADC_READ4(_sc, reg) bus_read_4((_sc)->sc_mem_res, reg) argument 33 #define ADC_WRITE4(_sc, reg, value) \ argument 73 #define TI_ADC_LOCK(_sc) \ argument 75 #define TI_ADC_UNLOCK(_sc) \ argument 77 #define TI_ADC_LOCK_INIT(_sc) \ argument 80 #define TI_ADC_LOCK_DESTROY(_sc) \ argument 82 #define TI_ADC_LOCK_ASSERT(_sc) \ argument
|
/freebsd-src/sys/powerpc/mambo/ |
H A D | mambo_disk.c | 72 #define MBODISK_LOCK(_sc) mtx_lock(&(_sc)->sc_mtx) argument 73 #define MBODISK_UNLOCK(_sc) mtx_unlock(&(_sc)->sc_mtx) argument 74 #define MBODISK_LOCK_INIT(_sc) \ argument 77 #define MBODISK_LOCK_DESTROY(_sc) mtx_destroy(&_sc->sc_mtx); argument 78 #define MBODISK_ASSERT_LOCKED(_sc) mtx_assert(&_sc->sc_mtx, MA_OWNED); argument 79 #define MBODISK_ASSERT_UNLOCKED(_sc) mtx_assert(&_sc->sc_mtx, MA_NOTOWNED); argument
|
/freebsd-src/sys/dev/gpio/ |
H A D | gpioled.c | 52 #define GPIOLED_LOCK(_sc) mtx_lock(&(_sc)->sc_mtx) argument 53 #define GPIOLED_UNLOCK(_sc) mtx_unlock(&(_sc)->sc_mtx) argument 54 #define GPIOLED_LOCK_INIT(_sc) mtx_init(&(_sc)->sc_mtx, \ argument 56 #define GPIOLED_LOCK_DESTROY(_sc) mtx_destroy(&(_sc)->sc_mtx) argument
|
/freebsd-src/sys/dev/rtwn/rtl8812a/ |
H A D | r12a_var.h | 107 ((R12A_SOFTC(_sc)->rs_fix_spur)((_sc), (_c))) argument 109 ((R12A_SOFTC(_sc)->rs_set_band_2ghz)((_sc), (_rates))) argument 111 ((R12A_SOFTC(_sc) argument 103 R12A_SOFTC(_sc) global() argument 105 rtwn_r12a_fix_spur(_sc,_c) global() argument 113 rtwn_r12a_init_ampdu_fwhw(_sc) global() argument 115 rtwn_r12a_crystalcap_write(_sc) global() argument 118 rtwn_r12a_iq_calib_fw_supported(_sc) global() argument 121 rtwn_r12a_iq_calib_sw(_sc) global() argument [all...] |