/freebsd-current/sys/dev/spibus/controller/rockchip/ |
H A D | rk_spi.c | 121 #define RK_SPI_LOCK(sc) mtx_lock(&(sc)->mtx) 122 #define RK_SPI_UNLOCK(sc) mtx_unlock(&(sc)->mtx) 123 #define RK_SPI_READ_4(sc, reg) bus_read_4((sc)->res[0], (reg)) 124 #define RK_SPI_WRITE_4(sc, reg, val) bus_write_4((sc)->res[0], (reg), (val)) 132 rk_spi_enable_chip(struct rk_spi_softc *sc, int enable) argument 135 RK_SPI_WRITE_4(sc, RK_SPI_EN 139 rk_spi_set_cs(struct rk_spi_softc *sc, uint32_t cs, bool active) argument 162 rk_spi_hw_setup(struct rk_spi_softc *sc, uint32_t mode, uint32_t freq) argument 190 rk_spi_fifo_size(struct rk_spi_softc *sc) argument 209 rk_spi_empty_rxfifo(struct rk_spi_softc *sc) argument 220 rk_spi_fill_txfifo(struct rk_spi_softc *sc) argument 235 rk_spi_xfer_buf(struct rk_spi_softc *sc, void *rxbuf, void *txbuf, uint32_t len) argument 284 struct rk_spi_softc *sc; local 351 struct rk_spi_softc *sc; local 376 struct rk_spi_softc *sc; local 416 struct rk_spi_softc *sc; local [all...] |
/freebsd-current/sys/dev/rtwn/rtl8192c/pci/ |
H A D | r92ce_attach.c | 67 r92ce_postattach(struct rtwn_softc *sc) argument 69 struct r92c_softc *rs = sc->sc_priv; 70 struct ieee80211com *ic = &sc->sc_ic; 80 sc->fwname = "rtwn-rtl8192cfwE"; 82 sc->fwname = "rtwn-rtl8192cfwE_B"; 83 sc->fwsig = 0x88c; 92 r92ce_set_name(struct rtwn_softc *sc, uint8_t *buf) argument 94 struct r92c_softc *rs = sc->sc_priv; 97 sc->name = "RTL8192CE"; 99 sc 103 r92ce_attach_private(struct rtwn_softc *sc) argument 134 r92ce_adj_devcaps(struct rtwn_softc *sc) argument 148 struct rtwn_softc *sc = &pc->pc_sc; local [all...] |
/freebsd-current/sys/arm/ti/clk/ |
H A D | ti_dpll_clock.c | 113 register_clk(struct ti_dpll_softc *sc) { argument 116 sc->clkdom = clkdom_create(sc->dev); 117 if (sc->clkdom == NULL) { 118 DPRINTF(sc->dev, "Failed to create clkdom\n"); 122 err = ti_clknode_dpll_register(sc->clkdom, &sc->dpll_def); 124 DPRINTF(sc->dev, 129 err = clkdom_finit(sc->clkdom); 131 DPRINTF(sc 153 parse_dpll_reg(struct ti_dpll_softc *sc) argument 259 struct ti_dpll_softc *sc; local 322 struct ti_dpll_softc *sc; local [all...] |
/freebsd-current/sys/dev/qcom_mdio/ |
H A D | qcom_mdio_debug.h | 34 #define QCOM_MDIO_DPRINTF(sc, flags, ...) \ 36 if ((sc)->sc_debug & (flags)) \ 37 device_printf((sc)->sc_dev, __VA_ARGS__); \
|
/freebsd-current/sys/arm/xilinx/ |
H A D | zy7_qspi.c | 98 #define QSPI_SC_LOCK(sc) mtx_lock(&(sc)->sc_mtx) 99 #define QSPI_SC_UNLOCK(sc) mtx_unlock(&(sc)->sc_mtx) 100 #define QSPI_SC_LOCK_INIT(sc) \ 101 mtx_init(&(sc)->sc_mtx, device_get_nameunit((sc)->dev), NULL, MTX_DEF) 102 #define QSPI_SC_LOCK_DESTROY(sc) mtx_destroy(&(sc)->sc_mtx) 103 #define QSPI_SC_ASSERT_LOCKED(sc) mtx_asser 214 zy7_qspi_write_fifo(struct zy7_qspi_softc *sc, int nbytes) argument 271 zy7_qspi_read_fifo(struct zy7_qspi_softc *sc) argument 313 zy7_qspi_abort_transfer(struct zy7_qspi_softc *sc) argument 330 struct zy7_qspi_softc *sc = (struct zy7_qspi_softc *)arg; local 412 zy7_qspi_init_hw(struct zy7_qspi_softc *sc) argument 491 struct zy7_qspi_softc *sc = device_get_softc(dev); local 532 struct zy7_qspi_softc *sc; local 614 struct zy7_qspi_softc *sc = device_get_softc(dev); local 661 struct zy7_qspi_softc *sc = device_get_softc(dev); local [all...] |
/freebsd-current/sys/dev/iwm/ |
H A D | if_iwm_mac_ctxt.h | 110 extern int iwm_mac_ctxt_add(struct iwm_softc *sc, struct ieee80211vap *vap); 111 extern int iwm_mac_ctxt_changed(struct iwm_softc *sc, struct ieee80211vap *vap); 112 extern int iwm_mac_ctxt_remove(struct iwm_softc *sc, struct ieee80211vap *vap);
|
/freebsd-current/lib/libc/string/ |
H A D | strpbrk.c | 41 int c, sc; local 44 for (scanp = s2; (sc = *scanp++) != '\0';) 45 if (sc == c)
|
/freebsd-current/sys/dev/le/ |
H A D | lance.c | 101 lance_config(struct lance_softc *sc, const char* name, int unit) argument 106 if (LE_LOCK_INITIALIZED(sc) == 0) 109 ifp = sc->sc_ifp = if_alloc(IFT_ETHER); 113 callout_init_mtx(&sc->sc_wdog_ch, &sc->sc_mtx, 0); 116 if_setsoftc(ifp, sc); 130 ifmedia_init(&sc->sc_media, 0, lance_mediachange, lance_mediastatus); 131 if (sc->sc_supmedia != NULL) { 132 for (i = 0; i < sc->sc_nsupmedia; i++) 133 ifmedia_add(&sc 186 lance_attach(struct lance_softc *sc) argument 202 lance_detach(struct lance_softc *sc) argument 215 lance_suspend(struct lance_softc *sc) argument 224 lance_resume(struct lance_softc *sc) argument 236 struct lance_softc *sc = if_getsoftc(ifp); local 244 lance_stop(struct lance_softc *sc) argument 263 struct lance_softc *sc = (struct lance_softc *)xsc; local 275 lance_init_locked(struct lance_softc *sc) argument 340 lance_put(struct lance_softc *sc, int boff, struct mbuf *m) argument 374 lance_get(struct lance_softc *sc, int boff, int totlen) argument 434 struct lance_softc *sc = (struct lance_softc *)xsc; local 452 struct lance_softc *sc = if_getsoftc(ifp); local 475 struct lance_softc *sc = if_getsoftc(ifp); local 498 struct lance_softc *sc = if_getsoftc(ifp); local 575 struct lance_softc *sc; member in struct:lance_hash_maddr_ctx 583 struct lance_softc *sc = ctx->sc; local 599 lance_setladrf(struct lance_softc *sc, uint16_t *af) argument 638 lance_copytobuf_contig(struct lance_softc *sc, void *from, int boff, int len) argument 649 lance_copyfrombuf_contig(struct lance_softc *sc, void *to, int boff, int len) argument 660 lance_zerobuf_contig(struct lance_softc *sc, int boff, int len) argument [all...] |
/freebsd-current/sys/dev/sound/pci/hda/ |
H A D | hdac_private.h | 54 #define HDAC_ISDCTL(sc, n) (_HDAC_ISDCTL((n), (sc)->num_iss, (sc)->num_oss)) 55 #define HDAC_ISDSTS(sc, n) (_HDAC_ISDSTS((n), (sc)->num_iss, (sc)->num_oss)) 56 #define HDAC_ISDPICB(sc, n) (_HDAC_ISDPICB((n), (sc)->num_iss, (sc)->num_oss)) 57 #define HDAC_ISDCBL(sc, [all...] |
/freebsd-current/sys/dev/clk/allwinner/ |
H A D | aw_clk_nkmp.c | 76 struct aw_clk_nkmp_sc *sc; local 79 sc = clknode_get_softc(clk); 82 if ((sc->flags & AW_CLK_HAS_MUX) != 0) { 84 READ4(clk, sc->offset, &val); 87 idx = (val & sc->mux_mask) >> sc->mux_shift; 97 struct aw_clk_nkmp_sc *sc; local 100 sc = clknode_get_softc(clk); 102 if ((sc->flags & AW_CLK_HAS_GATE) == 0) 106 READ4(clk, sc 120 struct aw_clk_nkmp_sc *sc; local 139 aw_clk_nkmp_find_best(struct aw_clk_nkmp_sc *sc, uint64_t fparent, uint64_t *fout, uint32_t *factor_n, uint32_t *factor_k, uint32_t *factor_m, uint32_t *factor_p) argument 190 aw_clk_nkmp_set_freq_scale(struct clknode *clk, struct aw_clk_nkmp_sc *sc, uint32_t factor_n, uint32_t factor_k, uint32_t factor_m, uint32_t factor_p) argument 253 struct aw_clk_nkmp_sc *sc; local 325 struct aw_clk_nkmp_sc *sc; local 361 struct aw_clk_nkmp_sc *sc; local [all...] |
/freebsd-current/sys/dev/usb/gadget/ |
H A D | g_mouse.c | 170 g_mouse_button_press_timeout_reset(struct g_mouse_softc *sc) argument 175 sc->sc_data.buttons = 0; 176 sc->sc_do_button_update = 0; 178 sc->sc_do_button_update = 1; 186 usb_callout_reset(&sc->sc_button_press_callout, i, 187 &g_mouse_button_press_timeout, sc); 191 g_mouse_cursor_update_timeout_reset(struct g_mouse_softc *sc) argument 196 sc->sc_data.dx = 0; 197 sc->sc_data.dy = 0; 198 sc 214 g_mouse_update_mode_radius(struct g_mouse_softc *sc) argument 228 struct g_mouse_softc *sc = arg; local 242 struct g_mouse_softc *sc = arg; local 274 struct g_mouse_softc *sc = device_get_softc(dev); local 314 struct g_mouse_softc *sc = device_get_softc(dev); local 336 struct g_mouse_softc *sc = usbd_xfer_softc(xfer); local [all...] |
/freebsd-current/sys/dev/etherswitch/arswitch/ |
H A D | arswitch_vlans.c | 58 ar8xxx_vlan_op(struct arswitch_softc *sc, uint32_t op, uint32_t vid, argument 63 if (arswitch_waitreg(sc->sc_dev, AR8X16_REG_VLAN_CTRL, 69 err = arswitch_writereg(sc->sc_dev, AR8X16_REG_VLAN_DATA, 78 arswitch_writereg(sc->sc_dev, AR8X16_REG_VLAN_CTRL, op); 81 if (arswitch_waitreg(sc->sc_dev, AR8X16_REG_VLAN_CTRL, 89 ar8xxx_flush_dot1q_vlan(struct arswitch_softc *sc) argument 92 ARSWITCH_LOCK_ASSERT(sc, MA_OWNED); 93 return (ar8xxx_vlan_op(sc, AR8X16_VLAN_OP_FLUSH, 0, 0)); 97 ar8xxx_purge_dot1q_vlan(struct arswitch_softc *sc, int vid) argument 100 ARSWITCH_LOCK_ASSERT(sc, MA_OWNE 105 ar8xxx_get_dot1q_vlan(struct arswitch_softc *sc, uint32_t *ports, uint32_t *untagged_ports, int vid) argument 128 ar8xxx_set_dot1q_vlan(struct arswitch_softc *sc, uint32_t ports, uint32_t untagged_ports, int vid) argument 141 ar8xxx_get_port_vlan(struct arswitch_softc *sc, uint32_t *ports, int vid) argument 156 ar8xxx_set_port_vlan(struct arswitch_softc *sc, uint32_t ports, int vid) argument 175 ar8xxx_reset_vlans(struct arswitch_softc *sc) argument 264 ar8xxx_getvgroup(struct arswitch_softc *sc, etherswitch_vlangroup_t *vg) argument 311 ar8xxx_setvgroup(struct arswitch_softc *sc, etherswitch_vlangroup_t *vg) argument 367 ar8xxx_get_pvid(struct arswitch_softc *sc, int port, int *pvid) argument 378 ar8xxx_set_pvid(struct arswitch_softc *sc, int port, int pvid) argument [all...] |
/freebsd-current/sys/dev/atopcase/ |
H A D | atopcase_acpi.c | 109 atopcase_acpi_set_comm_enabled(struct atopcase_softc *sc, char *prop, argument 121 AcpiEvaluateObject(sc->sc_handle, prop, &args, NULL))) 141 struct atopcase_softc *sc = ctx; local 146 sx_xlock(&sc->sc_write_sx); 147 err = atopcase_receive_packet(sc); 148 sx_xunlock(&sc->sc_write_sx); 151 taskqueue_enqueue_timeout(sc->sc_tq, &sc->sc_task, 158 struct atopcase_softc *sc = ctx; local 162 sx_xlock(&sc 181 struct atopcase_softc *sc = ctx; local 220 struct atopcase_softc *sc = device_get_softc(dev); local 343 struct atopcase_softc *sc = device_get_softc(dev); local 379 struct atopcase_softc *sc = device_get_softc(dev); local 402 struct atopcase_softc *sc = device_get_softc(dev); local [all...] |
/freebsd-current/sys/dev/rtwn/ |
H A D | if_rtwn.c | 158 rtwn_attach(struct rtwn_softc *sc) argument 160 struct ieee80211com *ic = &sc->sc_ic; 163 sc->cur_bcnq_id = RTWN_VAP_ID_INVALID; 165 RTWN_NT_LOCK_INIT(sc); 166 rtwn_cmdq_init(sc); 168 callout_init_mtx(&sc->sc_watchdog_to, &sc->sc_mtx, 0); 170 callout_init(&sc->sc_calib_to, 0); 171 callout_init(&sc->sc_pwrmode_init, 0); 172 mbufq_init(&sc 312 rtwn_radiotap_attach(struct rtwn_softc *sc) argument 323 rtwn_sysctlattach(struct rtwn_softc *sc) argument 365 rtwn_detach(struct rtwn_softc *sc) argument 385 rtwn_suspend(struct rtwn_softc *sc) argument 393 rtwn_resume(struct rtwn_softc *sc) argument 401 rtwn_vap_decrement_counters(struct rtwn_softc *sc, enum ieee80211_opmode opmode, int id) argument 451 rtwn_set_ic_opmode(struct rtwn_softc *sc) argument 474 struct rtwn_softc *sc = ic->ic_softc; local 615 struct rtwn_softc *sc = ic->ic_softc; local 647 rtwn_read_chipid(struct rtwn_softc *sc) argument 670 struct rtwn_softc *sc = vap->iv_ic->ic_softc; local 703 rtwn_set_media_status(struct rtwn_softc *sc, union sec_param *data) argument 710 rtwn_tx_fwpkt_check(struct rtwn_softc *sc, struct ieee80211vap *vap) argument 730 rtwn_construct_nulldata(struct rtwn_softc *sc, struct ieee80211vap *vap, uint8_t *ptr, int qos) argument 774 rtwn_push_nulldata(struct rtwn_softc *sc, struct ieee80211vap *vap) argument 866 struct rtwn_softc *sc = arg; local 872 rtwn_set_pwrmode_cb(struct rtwn_softc *sc, union sec_param *data) argument 909 struct rtwn_softc *sc = vap->iv_ic->ic_softc; local 944 rtwn_tsf_sync_enable(struct rtwn_softc *sc, struct ieee80211vap *vap) argument 973 rtwn_set_ack_preamble(struct rtwn_softc *sc) argument 987 rtwn_set_mode(struct rtwn_softc *sc, uint8_t mode, int id) argument 1000 struct rtwn_softc *sc = ic->ic_softc; local 1047 struct rtwn_softc *sc = ic->ic_softc; local 1175 rtwn_calc_basicrates(struct rtwn_softc *sc) argument 1215 rtwn_run(struct rtwn_softc *sc, struct ieee80211vap *vap) argument 1345 struct rtwn_softc *sc = arg; local 1364 struct rtwn_softc *sc = ic->ic_softc; local 1380 rtwn_dma_init(struct rtwn_softc *sc) argument 1446 rtwn_mac_init(struct rtwn_softc *sc) argument 1462 rtwn_mrr_init(struct rtwn_softc *sc) argument 1476 struct rtwn_softc *sc = ic->ic_softc; local 1490 struct rtwn_softc *sc = ss->ss_ic->ic_softc; local 1503 struct rtwn_softc *sc = ic->ic_softc; local 1525 struct rtwn_softc *sc = ic->ic_softc; local 1560 struct rtwn_softc *sc = ic->ic_softc; local 1573 struct rtwn_softc *sc = ic->ic_softc; local 1620 rtwn_update_slot_cb(struct rtwn_softc *sc, union sec_param *data) argument 1635 rtwn_update_aifs(struct rtwn_softc *sc, uint8_t slottime) argument 1653 struct rtwn_softc *sc = ic->ic_softc; local 1664 struct rtwn_softc *sc = ic->ic_softc; local 1673 rtwn_set_bssid(struct rtwn_softc *sc, const uint8_t *bssid, int id) argument 1686 rtwn_set_macaddr(struct rtwn_softc *sc, const uint8_t *addr, int id) argument 1719 struct rtwn_softc *sc = ni->ni_ic->ic_softc; local 1750 struct rtwn_softc *sc = ni->ni_ic->ic_softc; local 1765 rtwn_init_beacon_reg(struct rtwn_softc *sc) argument 1776 rtwn_init(struct rtwn_softc *sc) argument 1926 rtwn_stop(struct rtwn_softc *sc) argument [all...] |
/freebsd-current/sys/dev/iicbus/controller/rockchip/ |
H A D | rk_i2c.c | 159 #define RK_I2C_LOCK(sc) mtx_lock(&(sc)->mtx) 160 #define RK_I2C_UNLOCK(sc) mtx_unlock(&(sc)->mtx) 161 #define RK_I2C_ASSERT_LOCKED(sc) mtx_assert(&(sc)->mtx, MA_OWNED) 162 #define RK_I2C_READ(sc, reg) bus_read_4((sc)->res[0], (reg)) 163 #define RK_I2C_WRITE(sc, reg, val) bus_write_4((sc) 166 rk_i2c_get_clkdiv(struct rk_i2c_softc *sc, uint32_t speed) argument 187 struct rk_i2c_softc *sc; local 211 rk_i2c_fill_tx(struct rk_i2c_softc *sc) argument 254 rk_i2c_drain_rx(struct rk_i2c_softc *sc) argument 280 rk_i2c_send_stop(struct rk_i2c_softc *sc) argument 294 rk_i2c_intr_locked(struct rk_i2c_softc *sc) argument 407 struct rk_i2c_softc *sc; local 417 rk_i2c_start_xfer(struct rk_i2c_softc *sc, struct iic_msg *msg, boolean_t last) argument 468 struct rk_i2c_softc *sc; local 602 struct rk_i2c_softc *sc; local 671 struct rk_i2c_softc *sc; local [all...] |
/freebsd-current/sys/dev/tsec/ |
H A D | if_tsec.h | 142 #define TSEC_BACK_GENERIC(sc, count, wrap) do { \ 143 if ((sc)->count > 0) \ 144 (sc)->count--; \ 146 (sc)->count = (wrap) - 1; \ 149 #define TSEC_FREE_TX_DESC(sc) \ 150 (((sc)->tx_idx_tail - (sc)->tx_idx_head - 1) & (TSEC_TX_NUM_DESC - 1)) 153 #define TSEC_RX_DESC_CNT_INIT(sc) do { \ 154 TSEC_CNT_INIT((sc)->rx_cur_desc_cnt, TSEC_RX_NUM_DESC); \ 157 #define TSEC_GET_CUR_RX_DESC(sc) \ [all...] |
/freebsd-current/sys/dev/etherswitch/mtkswitch/ |
H A D | mtkswitch_mt7620.c | 57 mtkswitch_phy_read_locked(struct mtkswitch_softc *sc, int phy, int reg) argument 61 MTKSWITCH_WRITE(sc, MTKSWITCH_PIAC, PIAC_PHY_ACS_ST | PIAC_MDIO_ST | 64 while ((data = MTKSWITCH_READ(sc, MTKSWITCH_PIAC)) & PIAC_PHY_ACS_ST); 72 struct mtkswitch_softc *sc = device_get_softc(dev); local 78 MTKSWITCH_LOCK_ASSERT(sc, MA_NOTOWNED); 79 MTKSWITCH_LOCK(sc); 80 data = mtkswitch_phy_read_locked(sc, phy, reg); 81 MTKSWITCH_UNLOCK(sc); 87 mtkswitch_phy_write_locked(struct mtkswitch_softc *sc, int phy, int reg, argument 91 MTKSWITCH_WRITE(sc, MTKSWITCH_PIA 102 struct mtkswitch_softc *sc = device_get_softc(dev); local 117 mtkswitch_reg_read32(struct mtkswitch_softc *sc, int reg) argument 124 mtkswitch_reg_write32(struct mtkswitch_softc *sc, int reg, uint32_t val) argument 132 mtkswitch_reg_read32_mt7621(struct mtkswitch_softc *sc, int reg) argument 146 mtkswitch_reg_write32_mt7621(struct mtkswitch_softc *sc, int reg, uint32_t val) argument 161 struct mtkswitch_softc *sc = device_get_softc(dev); local 173 struct mtkswitch_softc *sc = device_get_softc(dev); local 190 mtkswitch_reset(struct mtkswitch_softc *sc) argument 198 mtkswitch_hw_setup(struct mtkswitch_softc *sc) argument 211 mtkswitch_hw_global_setup(struct mtkswitch_softc *sc) argument 220 mtkswitch_port_init(struct mtkswitch_softc *sc, int port) argument 245 mtkswitch_get_port_status(struct mtkswitch_softc *sc, int port) argument 273 mtkswitch_atu_flush(struct mtkswitch_softc *sc) argument 288 mtkswitch_port_vlan_setup(struct mtkswitch_softc *sc, etherswitch_port_t *p) argument 319 mtkswitch_port_vlan_get(struct mtkswitch_softc *sc, etherswitch_port_t *p) argument 340 mtkswitch_invalidate_vlan(struct mtkswitch_softc *sc, uint32_t vid) argument 350 mtkswitch_vlan_init_hw(struct mtkswitch_softc *sc) argument 392 mtkswitch_vlan_getvgroup(struct mtkswitch_softc *sc, etherswitch_vlangroup_t *v) argument 447 mtkswitch_vlan_setvgroup(struct mtkswitch_softc *sc, etherswitch_vlangroup_t *v) argument 500 mtkswitch_vlan_get_pvid(struct mtkswitch_softc *sc, int port, int *pvid) argument 512 mtkswitch_vlan_set_pvid(struct mtkswitch_softc *sc, int port, int pvid) argument 525 mtk_attach_switch_mt7620(struct mtkswitch_softc *sc) argument [all...] |
/freebsd-current/sys/arm/freescale/imx/ |
H A D | imx_epit.c | 133 RD4(struct epit_softc *sc, bus_size_t offset) argument 136 return (bus_read_4(sc->memres, offset)); 140 WR4(struct epit_softc *sc, bus_size_t offset, uint32_t value) argument 143 bus_write_4(sc->memres, offset, value); 147 WR4B(struct epit_softc *sc, bus_size_t offset, uint32_t value) argument 150 bus_write_4(sc->memres, offset, value); 151 bus_barrier(sc->memres, offset, 4, BUS_SPACE_BARRIER_WRITE); 155 epit_read_counter(struct epit_softc *sc) argument 162 return (0xffffffff - RD4(sc, EPIT_CNR)); 168 struct epit_softc *sc local 197 epit_tc_attach(struct epit_softc *sc) argument 222 struct epit_softc *sc; local 254 struct epit_softc *sc; local 268 struct epit_softc *sc; local 299 epit_et_attach(struct epit_softc *sc) argument 408 struct epit_softc *sc; local [all...] |
/freebsd-current/sys/dev/iicbus/pmic/rockchip/ |
H A D | rk8xx_regulators.c | 47 /* #define dprintf(sc, format, arg...) device_printf(sc->base_dev, "%s: " format, __func__, arg) */ 48 #define dprintf(sc, format, arg...) (sc = sc) 53 struct rk8xx_reg_sc *sc; local 57 sc = regnode_get_softc(regnode); 58 dprintf(sc, "Regulator %s init called\n", sc->def->name); 90 struct rk8xx_reg_sc *sc; local 111 rk8xx_regnode_reg_to_voltage(struct rk8xx_reg_sc *sc, uint8_t val, int *uv) argument 148 rk8xx_regnode_voltage_to_reg(struct rk8xx_reg_sc *sc, int min_uvolt, int max_uvolt, uint8_t *val) argument 183 struct rk8xx_reg_sc *sc; local 200 struct rk8xx_reg_sc *sc; local 240 struct rk8xx_reg_sc *sc; local 315 rk8xx_attach_regulators(struct rk8xx_softc *sc) argument 354 struct rk8xx_softc *sc; local [all...] |
/freebsd-current/sys/dev/eqos/ |
H A D | if_eqos.c | 93 #define EQOS_LOCK(sc) mtx_lock(&(sc)->lock) 94 #define EQOS_UNLOCK(sc) mtx_unlock(&(sc)->lock) 95 #define EQOS_ASSERT_LOCKED(sc) mtx_assert(&(sc)->lock, MA_OWNED) 97 #define RD4(sc, o) bus_read_4(sc->res[EQOS_RES_MEM], (o)) 98 #define WR4(sc, o, v) bus_write_4(sc 113 struct eqos_softc *sc = device_get_softc(dev); local 144 struct eqos_softc *sc = device_get_softc(dev); local 175 struct eqos_softc *sc = device_get_softc(dev); local 227 struct eqos_softc *sc = if_getsoftc(ifp); local 240 struct eqos_softc *sc = if_getsoftc(ifp); local 250 eqos_setup_txdesc(struct eqos_softc *sc, int index, int flags, bus_addr_t paddr, u_int len, u_int total_len) argument 270 eqos_setup_txbuf(struct eqos_softc *sc, struct mbuf *m) argument 325 eqos_setup_rxdesc(struct eqos_softc *sc, int index, bus_addr_t paddr) argument 337 eqos_setup_rxbuf(struct eqos_softc *sc, int index, struct mbuf *m) argument 359 eqos_alloc_mbufcl(struct eqos_softc *sc) argument 369 eqos_enable_intr(struct eqos_softc *sc) argument 379 eqos_disable_intr(struct eqos_softc *sc) argument 409 eqos_setup_rxfilter(struct eqos_softc *sc) argument 453 eqos_reset(struct eqos_softc *sc) argument 469 eqos_init_rings(struct eqos_softc *sc) argument 491 struct eqos_softc *sc = if_softc; local 574 struct eqos_softc *sc = if_getsoftc(ifp); local 618 struct eqos_softc *sc = if_getsoftc(ifp); local 626 eqos_stop(struct eqos_softc *sc) argument 677 eqos_rxintr(struct eqos_softc *sc) argument 730 eqos_txintr(struct eqos_softc *sc) argument 774 eqos_intr_mtl(struct eqos_softc *sc, uint32_t mtl_status) argument 805 struct eqos_softc *sc = softc; local 828 struct eqos_softc *sc = arg; local 870 struct eqos_softc *sc = if_getsoftc(ifp); local 937 eqos_get_eaddr(struct eqos_softc *sc, uint8_t *eaddr) argument 958 eqos_axi_configure(struct eqos_softc *sc) argument 992 eqos_setup_dma(struct eqos_softc *sc) argument 1107 struct eqos_softc *sc = device_get_softc(dev); local 1208 struct eqos_softc *sc = device_get_softc(dev); local [all...] |
/freebsd-current/sys/dev/bhnd/cores/pmu/ |
H A D | bhnd_pmu.c | 104 struct bhnd_pmu_softc *sc; local 111 sc = device_get_softc(dev); 112 sc->dev = dev; 113 sc->res = res; 116 sc->caps = bhnd_bus_read_4(sc->res, BHND_PMU_CAP); 120 core = sc->dev; 129 device_printf(sc->dev, "bhnd bus not found\n"); 134 sc->cid = *bhnd_get_chipid(core); 135 if ((error = bhnd_read_board_info(core, &sc 223 struct bhnd_pmu_softc *sc; local 254 struct bhnd_pmu_softc *sc; local 271 struct bhnd_pmu_softc *sc; local 286 struct bhnd_pmu_softc *sc; local 301 struct bhnd_pmu_softc *sc; local 319 struct bhnd_pmu_softc *sc; local 338 struct bhnd_pmu_softc *sc = device_get_softc(dev); local 351 struct bhnd_pmu_softc *sc; local 370 struct bhnd_pmu_softc *sc = device_get_softc(dev); local 383 struct bhnd_pmu_softc *sc; local 402 struct bhnd_pmu_softc *sc = device_get_softc(dev); local 416 struct bhnd_pmu_softc *sc; local 444 struct bhnd_pmu_softc *sc; local 468 struct bhnd_pmu_softc *sc; local 493 struct bhnd_pmu_softc *sc; local 522 struct bhnd_pmu_softc *sc = device_get_softc(dev); local 554 struct bhnd_pmu_softc *sc; local 579 struct bhnd_pmu_softc *sc = ctx; local 587 struct bhnd_pmu_softc *sc = ctx; local 595 struct bhnd_pmu_softc *sc = ctx; local [all...] |
/freebsd-current/sys/dev/rtwn/rtl8812a/ |
H A D | r12a_calib.c | 62 r12a_lc_calib(struct rtwn_softc *sc) argument 67 RTWN_DPRINTF(sc, RTWN_DEBUG_CALIB, 70 txmode = rtwn_read_1(sc, R12A_SINGLETONE_CONT_TX + 2); 80 rtwn_write_1(sc, R92C_TXPAUSE, R92C_TX_QUEUE_ALL); 84 rtwn_rf_setbits(sc, 0, R12A_RF_LCK, 0, R12A_RF_LCK_MODE); 87 chnlbw = rtwn_rf_read(sc, 0, R92C_RF_CHNLBW); 88 rtwn_rf_write(sc, 0, R92C_RF_CHNLBW, chnlbw | R92C_RF_CHNLBW_LCSTART); 91 rtwn_delay(sc, 150000); /* 150 ms */ 94 rtwn_rf_setbits(sc, 0, R12A_RF_LCK, R12A_RF_LCK_MODE, 0); 105 rtwn_write_1(sc, R92C_TXPAUS 117 r12a_iq_calib_fw_supported(struct rtwn_softc *sc) argument 127 r12a_save_bb_afe_vals(struct rtwn_softc *sc, uint32_t vals[], const uint16_t regs[], int size) argument 140 r12a_restore_bb_afe_vals(struct rtwn_softc *sc, uint32_t vals[], const uint16_t regs[], int size) argument 153 r12a_save_rf_vals(struct rtwn_softc *sc, uint32_t vals[], const uint8_t regs[], int size) argument 167 r12a_restore_rf_vals(struct rtwn_softc *sc, uint32_t vals[], const uint8_t regs[], int size) argument 182 r12a_iq_tx(struct rtwn_softc *sc) argument 188 r12a_iq_config_mac(struct rtwn_softc *sc) argument 208 r12a_iq_calib_sw(struct rtwn_softc *sc) argument 274 r12a_iq_calib(struct rtwn_softc *sc) argument [all...] |
/freebsd-current/sys/dev/xilinx/ |
H A D | if_xae.c | 78 #define XAE_LOCK(sc) mtx_lock(&(sc)->mtx) 79 #define XAE_UNLOCK(sc) mtx_unlock(&(sc)->mtx) 80 #define XAE_ASSERT_LOCKED(sc) mtx_assert(&(sc)->mtx, MA_OWNED) 81 #define XAE_ASSERT_UNLOCKED(sc) mtx_assert(&(sc)->mtx, MA_NOTOWNED) 98 #define PHY1_RD(sc, _r) \ 99 xae_miibus_read_reg(sc 131 xae_rx_enqueue(struct xae_softc *sc, uint32_t n) argument 176 struct xae_softc *sc; local 211 struct xae_softc *sc; local 261 struct xae_softc *sc; local 300 struct xae_softc *sc; local 334 xae_stop_locked(struct xae_softc *sc) argument 358 xae_stat(struct xae_softc *sc, int counter_id) argument 379 xae_harvest_stats(struct xae_softc *sc) argument 408 struct xae_softc *sc; local 435 xae_init_locked(struct xae_softc *sc) argument 466 struct xae_softc *sc; local 478 struct xae_softc *sc; local 492 xae_media_change_locked(struct xae_softc *sc) argument 501 struct xae_softc *sc; local 516 struct xae_softc *sc = arg; local 543 xae_setup_rxfilter(struct xae_softc *sc) argument 584 struct xae_softc *sc; local 648 xae_get_hwaddr(struct xae_softc *sc, uint8_t *hwaddr) argument 669 mdio_wait(struct xae_softc *sc) argument 694 struct xae_softc *sc; local 720 struct xae_softc *sc; local 742 xae_phy_fixup(struct xae_softc *sc) argument 771 get_xdma_std(struct xae_softc *sc) argument 788 get_xdma_axistream(struct xae_softc *sc) argument 833 setup_xdma(struct xae_softc *sc) argument 933 struct xae_softc *sc; local 1041 struct xae_softc *sc; local 1083 struct xae_softc *sc; local [all...] |
/freebsd-current/sys/dev/acpica/ |
H A D | acpi_thermal.c | 132 static int acpi_tz_establish(struct acpi_tz_softc *sc); 136 static void acpi_tz_getparam(struct acpi_tz_softc *sc, char *node, 138 static void acpi_tz_sanity(struct acpi_tz_softc *sc, int *val, char *what); 145 static void acpi_tz_signal(struct acpi_tz_softc *sc, int flags); 146 static void acpi_tz_timeout(struct acpi_tz_softc *sc, int flags); 149 static int acpi_tz_cooling_is_available(struct acpi_tz_softc *sc); 150 static int acpi_tz_cooling_thread_start(struct acpi_tz_softc *sc); 201 struct acpi_tz_softc *sc; local 208 sc = device_get_softc(dev); 209 sc 333 struct acpi_tz_softc *sc; local 384 acpi_tz_establish(struct acpi_tz_softc *sc) argument 471 acpi_tz_get_temperature(struct acpi_tz_softc *sc) argument 504 struct acpi_tz_softc *sc; local 670 struct acpi_tz_softc *sc = (struct acpi_tz_softc *)arg; local 698 acpi_tz_getparam(struct acpi_tz_softc *sc, char *node, int *data) argument 718 acpi_tz_sanity(struct acpi_tz_softc *sc, int *val, char *what) argument 752 struct acpi_tz_softc *sc; local 775 struct acpi_tz_softc *sc; local 803 struct acpi_tz_softc *sc; local 832 struct acpi_tz_softc *sc; local 856 struct acpi_tz_softc *sc = (struct acpi_tz_softc *)context; local 882 acpi_tz_signal(struct acpi_tz_softc *sc, int flags) argument 899 acpi_tz_timeout(struct acpi_tz_softc *sc, int flags) argument 932 struct acpi_tz_softc *sc = (struct acpi_tz_softc *)arg; local 969 struct acpi_tz_softc **sc; local 1022 acpi_tz_cpufreq_restore(struct acpi_tz_softc *sc) argument 1041 acpi_tz_cpufreq_update(struct acpi_tz_softc *sc, int req) argument 1149 struct acpi_tz_softc *sc; local 1203 acpi_tz_cooling_is_available(struct acpi_tz_softc *sc) argument 1211 acpi_tz_cooling_thread_start(struct acpi_tz_softc *sc) argument [all...] |
/freebsd-current/sys/dev/rtwn/rtl8192c/ |
H A D | r92c_init.c | 55 r92c_check_condition(struct rtwn_softc *sc, const uint8_t cond[]) argument 57 struct r92c_softc *rs = sc->sc_priv; 64 RTWN_DPRINTF(sc, RTWN_DEBUG_RESET, 90 r92c_llt_init(struct rtwn_softc *sc) argument 95 for (i = 0; i < sc->page_count; i++) { 96 if ((error = r92c_llt_write(sc, i, i + 1)) != 0) 100 if ((error = r92c_llt_write(sc, i, 0xff)) != 0) 106 for (++i; i < sc->pktbuf_count - 1; i++) { 107 if ((error = r92c_llt_write(sc, i, i + 1)) != 0) 111 error = r92c_llt_write(sc, 116 r92c_set_page_size(struct rtwn_softc *sc) argument 123 r92c_init_bb_common(struct rtwn_softc *sc) argument 191 r92c_init_rf_chain(struct rtwn_softc *sc, const struct rtwn_rf_prog *rf_prog, int chain) argument 233 r92c_init_rf(struct rtwn_softc *sc) argument 286 r92c_init_edca(struct rtwn_softc *sc) argument 301 r92c_init_ampdu(struct rtwn_softc *sc) argument 311 r92c_init_antsel(struct rtwn_softc *sc) argument 326 r92c_pa_bias_init(struct rtwn_softc *sc) argument [all...] |