/freebsd-11-stable/sys/dev/iicbus/ |
H A D | nxprtc.c | 239 read_reg(struct nxprtc_softc *sc, uint8_t reg, uint8_t *val) argument 242 return (iicdev_readfrom(sc->dev, reg, val, sizeof(*val), WAITFLAGS)); 246 write_reg(struct nxprtc_softc *sc, uint8_t reg, uint8_t val) argument 249 return (iicdev_writeto(sc->dev, reg, &val, sizeof(val), WAITFLAGS)); 253 read_timeregs(struct nxprtc_softc *sc, struct time_regs *tregs, uint8_t *tmr) argument 265 if (sc->use_timer) { 266 if ((err = read_reg(sc, sc->secaddr, &sec)) != 0) 268 if ((err = read_reg(sc, sc 302 write_timeregs(struct nxprtc_softc *sc, struct time_regs *tregs) argument 310 pcf8523_start(struct nxprtc_softc *sc) argument 404 pcf8523_start_timer(struct nxprtc_softc *sc) argument 436 pcf2127_start_timer(struct nxprtc_softc *sc) argument 457 pcf8563_start_timer(struct nxprtc_softc *sc) argument 480 struct nxprtc_softc *sc; local 557 struct nxprtc_softc *sc; local 623 struct nxprtc_softc *sc; local 753 struct nxprtc_softc *sc; local [all...] |
H A D | icee.c | 148 icee_init(struct icee_softc *sc) argument 153 ofw_bus_search_compatible(sc->dev, compat_data)->ocd_data; 155 return; /* attach will see sc->size == 0 and return error */ 157 sc->size = d->size; 158 sc->type = d->type; 159 sc->wr_sz = d->wr_sz; 171 icee_init(struct icee_softc *sc) argument 176 dname = device_get_name(sc->dev); 177 dunit = device_get_unit(sc->dev); 178 resource_int_value(dname, dunit, "size", &sc 187 struct icee_softc *sc = device_get_softc(dev); local 225 struct icee_softc *sc = device_get_softc(dev); local 234 struct icee_softc *sc; local 246 struct icee_softc *sc; local 256 struct icee_softc *sc; local 316 struct icee_softc *sc; local [all...] |
/freebsd-11-stable/sys/dev/mii/ |
H A D | micphy.c | 121 ksz9031_read(struct mii_softc *sc, uint32_t devaddr, uint32_t reg) argument 124 PHY_WRITE(sc, MII_KSZ9031_MMD_ACCESS_CTRL, devaddr); 125 PHY_WRITE(sc, MII_KSZ9031_MMD_ACCESS_DATA, reg); 128 PHY_WRITE(sc, MII_KSZ9031_MMD_ACCESS_CTRL, 131 return (PHY_READ(sc, MII_KSZ9031_MMD_ACCESS_DATA)); 135 ksz9031_write(struct mii_softc *sc, uint32_t devaddr, uint32_t reg, argument 140 PHY_WRITE(sc, MII_KSZ9031_MMD_ACCESS_CTRL, devaddr); 141 PHY_WRITE(sc, MII_KSZ9031_MMD_ACCESS_DATA, reg); 144 PHY_WRITE(sc, MII_KSZ9031_MMD_ACCESS_CTRL, 146 PHY_WRITE(sc, MII_KSZ9031_MMD_ACCESS_DAT 150 ksz9021_read(struct mii_softc *sc, uint32_t reg) argument 159 ksz9021_write(struct mii_softc *sc, uint32_t reg, uint32_t val) argument 167 ksz90x1_load_values(struct mii_softc *sc, phandle_t node, uint32_t dev, uint32_t reg, char *field1, uint32_t f1mask, int f1off, char *field2, uint32_t f2mask, int f2off, char *field3, uint32_t f3mask, int f3off, char *field4, uint32_t f4mask, int f4off) argument 212 ksz9031_load_values(struct mii_softc *sc, phandle_t node) argument 230 ksz9021_load_values(struct mii_softc *sc, phandle_t node) argument 254 struct mii_softc *sc; local 283 micphy_reset(struct mii_softc *sc) argument 301 micphy_service(struct mii_softc *sc, struct mii_data *mii, int cmd) argument [all...] |
/freebsd-11-stable/sys/dev/uart/ |
H A D | uart_bus.h | 159 uart_rx_empty(struct uart_softc *sc) argument 162 return ((sc->sc_rxget == sc->sc_rxput) ? 1 : 0); 166 uart_rx_full(struct uart_softc *sc) argument 169 return ((sc->sc_rxput + 1 < sc->sc_rxbufsz) ? 170 (sc->sc_rxput + 1 == sc->sc_rxget) : (sc->sc_rxget == 0)); 174 uart_rx_get(struct uart_softc *sc) argument 187 uart_rx_next(struct uart_softc *sc) argument 200 uart_rx_peek(struct uart_softc *sc) argument 209 uart_rx_put(struct uart_softc *sc, int xc) argument [all...] |
/freebsd-11-stable/sys/dev/ath/ |
H A D | if_ath_tx.c | 121 static int ath_tx_node_is_asleep(struct ath_softc *sc, struct ath_node *an); 123 static int ath_tx_ampdu_pending(struct ath_softc *sc, struct ath_node *an, 125 static int ath_tx_ampdu_running(struct ath_softc *sc, struct ath_node *an, 127 static ieee80211_seq ath_tx_tid_seqno_assign(struct ath_softc *sc, 129 static int ath_tx_action_frame_override_queue(struct ath_softc *sc, 132 ath_tx_retry_clone(struct ath_softc *sc, struct ath_node *an, 137 ath_tx_alq_post(struct ath_softc *sc, struct ath_buf *bf_first) argument 150 n = ((bf->bf_nseg - 1) / sc->sc_tx_nmaps) + 1; 153 i++, ds += sc->sc_tx_desclen) { 154 if_ath_alq_post(&sc 168 ath_tx_is_11n(struct ath_softc *sc) argument 182 ath_tx_gettid(struct ath_softc *sc, const struct mbuf *m0) argument 195 ath_tx_set_retry(struct ath_softc *sc, struct ath_buf *bf) argument 229 ath_tx_getac(struct ath_softc *sc, const struct mbuf *m0) argument 241 ath_txfrag_cleanup(struct ath_softc *sc, ath_bufhead *frags, struct ieee80211_node *ni) argument 262 ath_txfrag_setup(struct ath_softc *sc, ath_bufhead *frags, struct mbuf *m0, struct ieee80211_node *ni) argument 287 ath_tx_dmasetup(struct ath_softc *sc, struct ath_buf *bf, struct mbuf *m0) argument 350 ath_tx_chaindesclist(struct ath_softc *sc, struct ath_desc *ds0, struct ath_buf *bf, int is_aggr, int is_first_subframe, int is_last_subframe) argument 492 ath_tx_set_ratectrl(struct ath_softc *sc, struct ieee80211_node *ni, struct ath_buf *bf) argument 537 ath_tx_setds_11n(struct ath_softc *sc, struct ath_buf *bf_first) argument 684 ath_tx_handoff_mcast(struct ath_softc *sc, struct ath_txq *txq, struct ath_buf *bf) argument 727 ath_tx_handoff_hw(struct ath_softc *sc, struct ath_txq *txq, struct ath_buf *bf) argument 896 ath_legacy_tx_dma_restart(struct ath_softc *sc, struct ath_txq *txq) argument 945 ath_legacy_xmit_handoff(struct ath_softc *sc, struct ath_txq *txq, struct ath_buf *bf) argument 962 ath_tx_tag_crypto(struct ath_softc *sc, struct ieee80211_node *ni, struct mbuf *m0, int iswep, int isfrag, int *hdrlen, int *pktlen, int *keyix) argument 1031 ath_tx_calc_protection(struct ath_softc *sc, struct ath_buf *bf) argument 1094 ath_tx_calc_duration(struct ath_softc *sc, struct ath_buf *bf) argument 1233 ath_tx_set_rtscts(struct ath_softc *sc, struct ath_buf *bf) argument 1305 ath_tx_setds(struct ath_softc *sc, struct ath_buf *bf) argument 1353 ath_tx_do_ratelookup(struct ath_softc *sc, struct ath_buf *bf) argument 1388 ath_tx_update_clrdmask(struct ath_softc *sc, struct ath_tid *tid, struct ath_buf *bf) argument 1414 ath_tx_should_swq_frame(struct ath_softc *sc, struct ath_node *an, struct mbuf *m0, int *queue_to_head) argument 1476 ath_tx_xmit_normal(struct ath_softc *sc, struct ath_txq *txq, struct ath_buf *bf) argument 1526 ath_tx_normal_setup(struct ath_softc *sc, struct ieee80211_node *ni, struct ath_buf *bf, struct mbuf *m0, struct ath_txq *txq) argument 1841 ath_tx_start(struct ath_softc *sc, struct ieee80211_node *ni, struct ath_buf *bf, struct mbuf *m0) argument 2060 ath_tx_raw_start(struct ath_softc *sc, struct ieee80211_node *ni, struct ath_buf *bf, struct mbuf *m0, const struct ieee80211_bpf_params *params) argument 2325 struct ath_softc *sc = ic->ic_softc; local 2510 ath_tx_action_frame_override_queue(struct ath_softc *sc, struct ieee80211_node *ni, struct mbuf *m0, int *tid) argument 2561 ath_tx_addto_baw(struct ath_softc *sc, struct ath_node *an, struct ath_tid *tid, struct ath_buf *bf) argument 2653 ath_tx_switch_baw_buf(struct ath_softc *sc, struct ath_node *an, struct ath_tid *tid, struct ath_buf *old_bf, struct ath_buf *new_bf) argument 2700 ath_tx_update_baw(struct ath_softc *sc, struct ath_node *an, struct ath_tid *tid, const struct ath_buf *bf) argument 2751 ath_tx_leak_count_update(struct ath_softc *sc, struct ath_tid *tid, struct ath_buf *bf) argument 2791 ath_tx_tid_can_tx_or_sched(struct ath_softc *sc, struct ath_tid *tid) argument 2813 ath_tx_tid_sched(struct ath_softc *sc, struct ath_tid *tid) argument 2866 ath_tx_tid_unsched(struct ath_softc *sc, struct ath_tid *tid) argument 2885 ath_tx_tid_seqno_assign(struct ath_softc *sc, struct ieee80211_node *ni, struct ath_buf *bf, struct mbuf *m0) argument 2941 ath_tx_xmit_aggr(struct ath_softc *sc, struct ath_node *an, struct ath_txq *txq, struct ath_buf *bf) argument 3029 ath_tx_swq(struct ath_softc *sc, struct ieee80211_node *ni, struct ath_txq *txq, int queue_to_head, struct ath_buf *bf) argument 3175 ath_tx_set_clrdmask(struct ath_softc *sc, struct ath_node *an) argument 3197 ath_tx_tid_init(struct ath_softc *sc, struct ath_node *an) argument 3235 ath_tx_tid_pause(struct ath_softc *sc, struct ath_tid *tid) argument 3251 ath_tx_tid_resume(struct ath_softc *sc, struct ath_tid *tid) argument 3309 ath_tx_tid_filt_addbuf(struct ath_softc *sc, struct ath_tid *tid, struct ath_buf *bf) argument 3334 ath_tx_tid_filt_comp_buf(struct ath_softc *sc, struct ath_tid *tid, struct ath_buf *bf) argument 3359 ath_tx_tid_filt_comp_complete(struct ath_softc *sc, struct ath_tid *tid) argument 3402 ath_tx_tid_filt_comp_single(struct ath_softc *sc, struct ath_tid *tid, struct ath_buf *bf) argument 3453 ath_tx_tid_filt_comp_aggr(struct ath_softc *sc, struct ath_tid *tid, struct ath_buf *bf_first, ath_bufhead *bf_q) argument 3512 ath_tx_tid_bar_suspend(struct ath_softc *sc, struct ath_tid *tid) argument 3546 ath_tx_tid_bar_unsuspend(struct ath_softc *sc, struct ath_tid *tid) argument 3575 ath_tx_tid_bar_tx_ready(struct ath_softc *sc, struct ath_tid *tid) argument 3606 ath_tx_tid_bar_tx(struct ath_softc *sc, struct ath_tid *tid) argument 3687 ath_tx_tid_drain_pkt(struct ath_softc *sc, struct ath_node *an, struct ath_tid *tid, ath_bufhead *bf_cq, struct ath_buf *bf) argument 3727 ath_tx_tid_drain_print(struct ath_softc *sc, struct ath_node *an, const char *pfx, struct ath_tid *tid, struct ath_buf *bf) argument 3809 ath_tx_tid_drain(struct ath_softc *sc, struct ath_node *an, struct ath_tid *tid, ath_bufhead *bf_cq) argument 3899 ath_tx_tid_reset(struct ath_softc *sc, struct ath_tid *tid) argument 3968 ath_tx_node_flush(struct ath_softc *sc, struct ath_node *an) argument 4023 ath_tx_txq_drain(struct ath_softc *sc, struct ath_txq *txq) argument 4067 ath_tx_normal_comp(struct ath_softc *sc, struct ath_buf *bf, int fail) argument 4152 ath_tx_comp_cleanup_unaggr(struct ath_softc *sc, struct ath_buf *bf) argument 4193 ath_tx_tid_cleanup_frame(struct ath_softc *sc, struct ath_node *an, int tid, struct ath_buf *bf_head, ath_bufhead *bf_cq) argument 4258 ath_tx_tid_cleanup(struct ath_softc *sc, struct ath_node *an, int tid, ath_bufhead *bf_cq) argument 4329 ath_tx_retry_clone(struct ath_softc *sc, struct ath_node *an, struct ath_tid *tid, struct ath_buf *bf) argument 4395 ath_tx_aggr_retry_unaggr(struct ath_softc *sc, struct ath_buf *bf) argument 4485 ath_tx_retry_subframe(struct ath_softc *sc, struct ath_buf *bf, ath_bufhead *bf_q) argument 4551 ath_tx_comp_aggr_error(struct ath_softc *sc, struct ath_buf *bf_first, struct ath_tid *tid) argument 4639 ath_tx_comp_cleanup_aggr(struct ath_softc *sc, struct ath_buf *bf_first) argument 4702 ath_tx_aggr_comp_aggr(struct ath_softc *sc, struct ath_buf *bf_first, int fail) argument 5037 ath_tx_aggr_comp_unaggr(struct ath_softc *sc, struct ath_buf *bf, int fail) argument 5225 ath_tx_aggr_comp(struct ath_softc *sc, struct ath_buf *bf, int fail) argument 5239 ath_tx_tid_hw_queue_aggr(struct ath_softc *sc, struct ath_node *an, struct ath_tid *tid) argument 5468 ath_tx_tid_hw_queue_norm(struct ath_softc *sc, struct ath_node *an, struct ath_tid *tid) argument 5560 ath_txq_sched(struct ath_softc *sc, struct ath_txq *txq) argument 5662 ath_tx_ampdu_running(struct ath_softc *sc, struct ath_node *an, int tid) argument 5680 ath_tx_ampdu_pending(struct ath_softc *sc, struct ath_node *an, int tid) argument 5711 struct ath_softc *sc = ni->ni_ic->ic_softc; local 5789 struct ath_softc *sc = ni->ni_ic->ic_softc; local 5836 struct ath_softc *sc = ni->ni_ic->ic_softc; local 5912 ath_tx_node_reassoc(struct ath_softc *sc, struct ath_node *an) argument 5971 struct ath_softc *sc = ni->ni_ic->ic_softc; local 6044 struct ath_softc *sc = ni->ni_ic->ic_softc; local 6073 ath_tx_node_is_asleep(struct ath_softc *sc, struct ath_node *an) argument 6100 ath_tx_node_sleep(struct ath_softc *sc, struct ath_node *an) argument 6137 ath_tx_node_wakeup(struct ath_softc *sc, struct ath_node *an) argument 6173 ath_legacy_dma_txsetup(struct ath_softc *sc) argument 6181 ath_legacy_dma_txteardown(struct ath_softc *sc) argument 6189 ath_xmit_setup_legacy(struct ath_softc *sc) argument [all...] |
H A D | if_ath_tx_edma.c | 139 static void ath_edma_tx_processq(struct ath_softc *sc, int dosched); 143 ath_tx_alq_edma_push(struct ath_softc *sc, int txq, int nframes, argument 153 if_ath_alq_post(&sc->sc_alq, ATH_ALQ_TX_FIFO_PUSH, 171 ath_tx_edma_push_staging_list(struct ath_softc *sc, struct ath_txq *txq, argument 239 ath_hal_settxdesclink(sc->sc_ah, bfp->bf_lastds, 248 if (sc->sc_debug & ATH_DEBUG_XMIT_DESC) 249 ath_printtxbuf(sc, bfi, txq->axq_qnum, i, 0); 252 if (if_ath_alq_checkdebug(&sc->sc_alq, ATH_ALQ_EDMA_TXDESC)) 253 ath_tx_alq_post(sc, bfi); 271 DPRINTF(sc, ATH_DEBUG_XMI 294 ath_edma_tx_fifo_fill(struct ath_softc *sc, struct ath_txq *txq) argument 390 ath_edma_dma_restart(struct ath_softc *sc, struct ath_txq *txq) argument 516 ath_edma_xmit_handoff_hw(struct ath_softc *sc, struct ath_txq *txq, struct ath_buf *bf) argument 553 ath_edma_xmit_handoff_mcast(struct ath_softc *sc, struct ath_txq *txq, struct ath_buf *bf) argument 608 ath_edma_xmit_handoff(struct ath_softc *sc, struct ath_txq *txq, struct ath_buf *bf) argument 626 ath_edma_setup_txfifo(struct ath_softc *sc, int qnum) argument 648 ath_edma_free_txfifo(struct ath_softc *sc, int qnum) argument 658 ath_edma_dma_txsetup(struct ath_softc *sc) argument 681 ath_edma_dma_txteardown(struct ath_softc *sc) argument 698 ath_edma_tx_drain(struct ath_softc *sc, ATH_RESET_TYPE reset_type) argument 751 struct ath_softc *sc = (struct ath_softc *) arg; local 764 ath_edma_tx_processq(struct ath_softc *sc, int dosched) argument 1005 ath_edma_attach_comp_func(struct ath_softc *sc) argument 1012 ath_xmit_setup_edma(struct ath_softc *sc) argument [all...] |
/freebsd-11-stable/sys/dev/sge/ |
H A D | if_sge.c | 182 #define CSR_WRITE_4(sc, reg, val) bus_write_4(sc->sge_res, reg, val) 183 #define CSR_WRITE_2(sc, reg, val) bus_write_2(sc->sge_res, reg, val) 184 #define CSR_WRITE_1(cs, reg, val) bus_write_1(sc->sge_res, reg, val) 186 #define CSR_READ_4(sc, reg) bus_read_4(sc->sge_res, reg) 187 #define CSR_READ_2(sc, reg) bus_read_2(sc->sge_res, reg) 188 #define CSR_READ_1(sc, re 211 sge_read_eeprom(struct sge_softc *sc, int offset) argument 236 sge_get_mac_addr_eeprom(struct sge_softc *sc, uint8_t *dest) argument 264 sge_get_mac_addr_apc(struct sge_softc *sc, uint8_t *dest) argument 333 struct sge_softc *sc; local 357 struct sge_softc *sc; local 380 struct sge_softc *sc; local 444 sge_rxfilter(struct sge_softc *sc) argument 485 sge_setvlan(struct sge_softc *sc) argument 504 sge_reset(struct sge_softc *sc) argument 554 struct sge_softc *sc; local 671 struct sge_softc *sc; local 710 struct sge_softc *sc; local 722 struct sge_softc *sc; local 737 struct sge_softc *sc; local 750 sge_dma_alloc(struct sge_softc *sc) argument 906 sge_dma_free(struct sge_softc *sc) argument 980 sge_list_tx_init(struct sge_softc *sc) argument 999 sge_list_tx_free(struct sge_softc *sc) argument 1028 sge_list_rx_init(struct sge_softc *sc) argument 1047 sge_list_rx_free(struct sge_softc *sc) argument 1073 sge_newbuf(struct sge_softc *sc, int prod) argument 1122 sge_discard_rxbuf(struct sge_softc *sc, int index) argument 1139 sge_rxeof(struct sge_softc *sc) argument 1230 sge_txeof(struct sge_softc *sc) argument 1301 struct sge_softc *sc; local 1330 struct sge_softc *sc; local 1389 sge_encap(struct sge_softc *sc, struct mbuf **m_head) argument 1554 struct sge_softc *sc; local 1565 struct sge_softc *sc; local 1613 struct sge_softc *sc; local 1622 sge_init_locked(struct sge_softc *sc) argument 1712 struct sge_softc *sc; local 1734 struct sge_softc *sc; local 1753 struct sge_softc *sc; local 1845 sge_watchdog(struct sge_softc *sc) argument 1877 sge_stop(struct sge_softc *sc) argument [all...] |
/freebsd-11-stable/sys/dev/txp/ |
H A D | if_txp.c | 256 struct txp_softc *sc; local 264 sc = device_get_softc(dev); 265 sc->sc_dev = dev; 267 mtx_init(&sc->sc_mtx, device_get_nameunit(dev), MTX_NETWORK_LOCK, 269 callout_init_mtx(&sc->sc_tick, &sc->sc_mtx, 0); 270 TASK_INIT(&sc->sc_int_task, 0, txp_int_task, sc); 271 TAILQ_INIT(&sc->sc_busy_list); 272 TAILQ_INIT(&sc 487 struct txp_softc *sc; local 523 txp_reset(struct txp_softc *sc) argument 564 txp_boot(struct txp_softc *sc, uint32_t state) argument 600 txp_download_fw(struct txp_softc *sc) argument 681 txp_download_fw_wait(struct txp_softc *sc) argument 708 txp_download_fw_section(struct txp_softc *sc, struct txp_fw_section_header *sect, int sectnum) argument 801 struct txp_softc *sc; local 818 struct txp_softc *sc; local 897 txp_rx_reclaim(struct txp_softc *sc, struct txp_rx_ring *r, int count) argument 995 txp_rxbuf_reclaim(struct txp_softc *sc) argument 1061 txp_tx_reclaim(struct txp_softc *sc, struct txp_tx_ring *r) argument 1124 struct txp_softc *sc; local 1179 struct txp_softc *sc; local 1222 txp_dma_alloc(struct txp_softc *sc, char *type, bus_dma_tag_t *tag, bus_size_t alignment, bus_size_t boundary, bus_dmamap_t *map, void **buf, bus_size_t size, bus_addr_t *paddr) argument 1272 txp_dma_free(struct txp_softc *sc, bus_dma_tag_t *tag, bus_dmamap_t map, void **buf, bus_addr_t *paddr) argument 1289 txp_alloc_rings(struct txp_softc *sc) argument 1579 txp_init_rings(struct txp_softc *sc) argument 1599 txp_wait(struct txp_softc *sc, uint32_t state) argument 1615 txp_free_rings(struct txp_softc *sc) argument 1709 struct txp_softc *sc = ifp->if_softc; local 1789 txp_rxring_fill(struct txp_softc *sc) argument 1844 txp_rxring_empty(struct txp_softc *sc) argument 1876 struct txp_softc *sc; local 1885 txp_init_locked(struct txp_softc *sc) argument 2000 struct txp_softc *sc; local 2045 struct txp_softc *sc; local 2056 struct txp_softc *sc; local 2103 txp_encap(struct txp_softc *sc, struct txp_tx_ring *r, struct mbuf **m_head) argument 2207 txp_command(struct txp_softc *sc, uint16_t id, uint16_t in1, uint32_t in2, uint32_t in3, uint16_t *out1, uint32_t *out2, uint32_t *out3, int wait) argument 2233 txp_ext_command(struct txp_softc *sc, uint16_t id, uint16_t in1, uint32_t in2, uint32_t in3, struct txp_ext_desc *in_extp, uint8_t in_extn, struct txp_rsp_desc **rspp, int wait) argument 2320 txp_response(struct txp_softc *sc, uint16_t id, uint16_t seq, struct txp_rsp_desc **rspp) argument 2405 txp_rsp_fixup(struct txp_softc *sc, struct txp_rsp_desc *rsp, struct txp_rsp_desc *dst) argument 2432 txp_cmd_desc_numfree(struct txp_softc *sc) argument 2461 txp_sleep(struct txp_softc *sc, int capenable) argument 2487 txp_stop(struct txp_softc *sc) argument 2536 txp_watchdog(struct txp_softc *sc) argument 2555 struct txp_softc *sc = ifp->if_softc; local 2599 struct txp_softc *sc = ifp->if_softc; local 2721 txp_set_filter(struct txp_softc *sc) argument 2769 txp_set_capabilities(struct txp_softc *sc) argument 2801 txp_stats_save(struct txp_softc *sc) argument 2821 txp_stats_update(struct txp_softc *sc, struct txp_rsp_desc *rsp) argument 2866 struct txp_softc *sc; local 2906 txp_sysctl_node(struct txp_softc *sc) argument [all...] |
/freebsd-11-stable/sys/dev/ciss/ |
H A D | ciss.c | 123 static int ciss_init_pci(struct ciss_softc *sc); 124 static int ciss_setup_msix(struct ciss_softc *sc); 125 static int ciss_init_perf(struct ciss_softc *sc); 126 static int ciss_wait_adapter(struct ciss_softc *sc); 127 static int ciss_flush_adapter(struct ciss_softc *sc); 128 static int ciss_init_requests(struct ciss_softc *sc); 131 static int ciss_identify_adapter(struct ciss_softc *sc); 132 static int ciss_init_logical(struct ciss_softc *sc); 133 static int ciss_init_physical(struct ciss_softc *sc); 134 static int ciss_filter_physical(struct ciss_softc *sc, struc 411 struct ciss_softc *sc; local 550 struct ciss_softc *sc = device_get_softc(dev); local 575 struct ciss_softc *sc = device_get_softc(dev); local 591 ciss_init_sysctl(struct ciss_softc *sc) argument 603 ciss_init_pci(struct ciss_softc *sc) argument 879 ciss_setup_msix(struct ciss_softc *sc) argument 921 ciss_init_perf(struct ciss_softc *sc) argument 994 ciss_wait_adapter(struct ciss_softc *sc) argument 1020 ciss_flush_adapter(struct ciss_softc *sc) argument 1075 ciss_soft_reset(struct ciss_softc *sc) argument 1117 ciss_init_requests(struct ciss_softc *sc) argument 1188 ciss_identify_adapter(struct ciss_softc *sc) argument 1307 ciss_report_luns(struct ciss_softc *sc, int opcode, int nunits) argument 1401 ciss_init_logical(struct ciss_softc *sc) argument 1485 ciss_init_physical(struct ciss_softc *sc) argument 1602 ciss_filter_physical(struct ciss_softc *sc, struct ciss_lun_report *cll) argument 1648 ciss_inquiry_logical(struct ciss_softc *sc, struct ciss_ldrive *ld) argument 1709 ciss_identify_logical(struct ciss_softc *sc, struct ciss_ldrive *ld) argument 1809 ciss_get_ldrive_status(struct ciss_softc *sc, struct ciss_ldrive *ld) argument 1871 ciss_update_config(struct ciss_softc *sc) argument 1895 ciss_accept_media(struct ciss_softc *sc, struct ciss_ldrive *ld) argument 1950 ciss_free(struct ciss_softc *sc) argument 2112 ciss_done(struct ciss_softc *sc, cr_qhead_t *qh) argument 2145 ciss_perf_done(struct ciss_softc *sc, cr_qhead_t *qh) argument 2187 struct ciss_softc *sc = (struct ciss_softc *)arg; local 2203 struct ciss_softc *sc = (struct ciss_softc *)arg; local 2218 struct ciss_softc *sc = (struct ciss_softc *)arg; local 2238 ciss_complete(struct ciss_softc *sc, cr_qhead_t *qh) argument 2383 struct ciss_softc *sc; local 2485 ciss_get_request(struct ciss_softc *sc, struct ciss_request **crp) argument 2537 struct ciss_softc *sc; local 2552 ciss_get_bmic_request(struct ciss_softc *sc, struct ciss_request **crp, int opcode, void **bufp, size_t bufsize) argument 2629 ciss_user_command(struct ciss_softc *sc, IOCTL_Command_struct *ioc) argument 2719 struct ciss_softc *sc; local 2766 struct ciss_softc *sc; local 2822 struct ciss_softc *sc; local 2854 ciss_cam_init(struct ciss_softc *sc) argument 2941 ciss_cam_rescan_target(struct ciss_softc *sc, int bus, int target) argument 2969 struct ciss_softc *sc; local 3107 struct ciss_softc *sc; local 3212 ciss_cam_emulate(struct ciss_softc *sc, struct ccb_scsiio *csio) argument 3280 struct ciss_softc *sc = cam_sim_softc(sim); local 3298 struct ciss_softc *sc; local 3384 ciss_cam_complete_fixup(struct ciss_softc *sc, struct ccb_scsiio *csio) argument 3435 ciss_name_device(struct ciss_softc *sc, int bus, int target) argument 3468 struct ciss_softc *sc; local 3531 struct ciss_softc *sc; local 3552 ciss_disable_adapter(struct ciss_softc *sc) argument 3607 ciss_notify_event(struct ciss_softc *sc) argument 3696 struct ciss_softc *sc; local 3772 ciss_notify_abort(struct ciss_softc *sc) argument 3896 ciss_notify_abort_bmic(struct ciss_softc *sc) argument 3952 ciss_notify_rescan_logical(struct ciss_softc *sc) argument 4025 ciss_notify_logical(struct ciss_softc *sc, struct ciss_notify *cn) argument 4111 ciss_notify_physical(struct ciss_softc *sc, struct ciss_notify *cn) argument 4119 ciss_notify_hotplug(struct ciss_softc *sc, struct ciss_notify *cn) argument 4168 struct ciss_softc *sc; local 4216 ciss_spawn_notify_thread(struct ciss_softc *sc) argument 4229 ciss_kill_notify_thread(struct ciss_softc *sc) argument 4247 struct ciss_softc *sc; local 4303 ciss_print_ldrive(struct ciss_softc *sc, struct ciss_ldrive *ld) argument 4367 ciss_print_adapter(struct ciss_softc *sc) argument 4399 struct ciss_softc *sc; local 4544 struct ciss_softc *sc; local 4564 struct ciss_softc *sc; local 4585 struct ciss_softc *sc; local [all...] |
/freebsd-11-stable/sys/arm/amlogic/aml8726/ |
H A D | aml8726_usb_phy-m3.c | 103 #define CSR_WRITE_4(sc, reg, val) bus_write_4((sc)->res[0], reg, (val)) 104 #define CSR_READ_4(sc, reg) bus_read_4((sc)->res[0], reg) 105 #define CSR_BARRIER(sc, reg) bus_barrier((sc)->res[0], reg, 4, \ 165 struct aml8726_usb_phy_softc *sc = device_get_softc(dev); local 177 sc->dev = dev; 189 if (bus_alloc_resources(dev, aml8726_usb_phy_spec, sc->res)) { 202 sc 379 struct aml8726_usb_phy_softc *sc = device_get_softc(dev); local [all...] |
/freebsd-11-stable/sys/geom/cache/ |
H A D | g_cache.c | 90 static int g_cache_destroy(struct g_cache_softc *sc, boolean_t force); 105 #define OFF2BNO(off, sc) ((off) >> (sc)->sc_bshift) 106 #define BNO2OFF(bno, sc) ((bno) << (sc)->sc_bshift) 110 g_cache_alloc(struct g_cache_softc *sc) argument 114 mtx_assert(&sc->sc_mtx, MA_OWNED); 116 if (!TAILQ_EMPTY(&sc->sc_usedlist)) { 117 dp = TAILQ_FIRST(&sc->sc_usedlist); 118 TAILQ_REMOVE(&sc 141 g_cache_free(struct g_cache_softc *sc, struct g_cache_desc *dp) argument 152 g_cache_free_used(struct g_cache_softc *sc) argument 171 g_cache_deliver(struct g_cache_softc *sc, struct bio *bp, struct g_cache_desc *dp, int error) argument 213 struct g_cache_softc *sc; local 245 g_cache_lookup(struct g_cache_softc *sc, off_t bno) argument 258 g_cache_read(struct g_cache_softc *sc, struct bio *bp) argument 312 g_cache_invalidate(struct g_cache_softc *sc, struct bio *bp) argument 342 struct g_cache_softc *sc; local 405 struct g_cache_softc *sc = arg; local 469 struct g_cache_softc *sc; local 550 g_cache_destroy(struct g_cache_softc *sc, boolean_t force) argument 777 struct g_cache_softc *sc; local 857 struct g_cache_softc *sc; local 903 struct g_cache_softc *sc; local 984 struct g_cache_softc *sc; local [all...] |
/freebsd-11-stable/sys/arm/broadcom/bcm2835/ |
H A D | bcm2835_sdhci.c | 125 struct bcm_sdhci_softc *sc = arg; local 128 sc->dmamap_status = err; 129 sc->dmamap_seg_count = nseg; 133 sc->dmamap_seg_addrs[i] = segs[i].ds_addr; 134 sc->dmamap_seg_sizes[i] = segs[i].ds_len; 156 struct bcm_sdhci_softc *sc = device_get_softc(dev); local 162 sc->sc_dev = dev; 163 sc->sc_req = NULL; 181 node = ofw_bus_get_node(sc->sc_dev); 193 sc 291 struct bcm_sdhci_softc *sc = arg; local 304 RD4(struct bcm_sdhci_softc *sc, bus_size_t off) argument 311 WR4(struct bcm_sdhci_softc *sc, bus_size_t off, uint32_t val) argument 327 struct bcm_sdhci_softc *sc = device_get_softc(dev); local 336 struct bcm_sdhci_softc *sc = device_get_softc(dev); local 353 struct bcm_sdhci_softc *sc = device_get_softc(dev); local 362 struct bcm_sdhci_softc *sc = device_get_softc(dev); local 370 struct bcm_sdhci_softc *sc = device_get_softc(dev); local 380 struct bcm_sdhci_softc *sc = device_get_softc(dev); local 400 struct bcm_sdhci_softc *sc = device_get_softc(dev); local 408 struct bcm_sdhci_softc *sc = device_get_softc(dev); local 414 bcm_sdhci_start_dma_seg(struct bcm_sdhci_softc *sc) argument 469 struct bcm_sdhci_softc *sc = (struct bcm_sdhci_softc *)arg; local 554 struct bcm_sdhci_softc *sc = device_get_softc(slot->bus); local 583 struct bcm_sdhci_softc *sc = device_get_softc(slot->bus); local [all...] |
/freebsd-11-stable/sys/arm/lpc/ |
H A D | lpc_rtc.c | 79 struct lpc_rtc_softc *sc = device_get_softc(dev); local 82 sc->lr_dev = dev; 86 sc->lr_mem_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, 88 if (!sc->lr_mem_res) { 93 sc->lr_bst = rman_get_bustag(sc->lr_mem_res); 94 sc->lr_bsh = rman_get_bushandle(sc->lr_mem_res); 102 struct lpc_rtc_softc *sc = device_get_softc(dev); local 104 ts->tv_sec = bus_space_read_4(sc 113 struct lpc_rtc_softc *sc = device_get_softc(dev); local [all...] |
/freebsd-11-stable/sys/arm/allwinner/ |
H A D | a10_sramc.c | 65 #define sramc_read_4(sc, reg) \ 66 bus_space_read_4((sc)->bst, (sc)->bsh, (reg)) 67 #define sramc_write_4(sc, reg, val) \ 68 bus_space_write_4((sc)->bst, (sc)->bsh, (reg), (val)) 86 struct a10_sramc_softc *sc = device_get_softc(dev); local 89 sc->res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, RF_ACTIVE); 90 if (!sc->res) { 95 sc 123 struct a10_sramc_softc *sc = a10_sramc_sc; local 140 struct a10_sramc_softc *sc = a10_sramc_sc; local [all...] |
/freebsd-11-stable/sys/dev/twe/ |
H A D | twe_compat.h | 74 #define TWE_CONTROL(sc, val) bus_write_4((sc)->twe_io, 0x0, (u_int32_t)val) 75 #define TWE_STATUS(sc) (u_int32_t)bus_read_4((sc)->twe_io, 0x4) 76 #define TWE_COMMAND_QUEUE(sc, val) bus_write_4((sc)->twe_io, 0x8, (u_int32_t)val) 77 #define TWE_RESPONSE_QUEUE(sc) (TWE_Response_Queue)bus_read_4((sc)->twe_io, 0xc) 111 #define twe_printf(sc, fmt, args...) device_printf(sc [all...] |
/freebsd-11-stable/sys/dev/tx/ |
H A D | if_txvar.h | 120 #define EPIC_LOCK(sc) mtx_lock(&(sc)->lock) 121 #define EPIC_UNLOCK(sc) mtx_unlock(&(sc)->lock) 122 #define EPIC_ASSERT_LOCKED(sc) mtx_assert(&(sc)->lock, MA_OWNED) 130 #define CSR_WRITE_4(sc, reg, val) \ 131 bus_write_4((sc)->res, (reg), (val)) 132 #define CSR_WRITE_2(sc, reg, val) \ 133 bus_write_2((sc) [all...] |
/freebsd-11-stable/sys/dev/cm/ |
H A D | if_cm_isa.c | 62 struct cm_softc *sc = device_get_softc(dev); local 66 sc->port_res = bus_alloc_resource_anywhere( 68 if (sc->port_res == NULL) 77 sc->mem_res = bus_alloc_resource_anywhere( 79 if (sc->mem_res == NULL) { 85 sc->irq_res = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid, RF_ACTIVE); 86 if (sc->irq_res == NULL) { 98 struct cm_softc *sc = device_get_softc(dev); local 102 mtx_init(&sc->sc_mtx, device_get_nameunit(dev), 104 error = bus_setup_intr(dev, sc 126 struct cm_softc *sc = device_get_softc(dev); local [all...] |
/freebsd-11-stable/sys/netinet/ |
H A D | ip_carp.c | 256 #define CARP_LOCK_INIT(sc) mtx_init(&(sc)->sc_mtx, "carp_softc", \ 258 #define CARP_LOCK_DESTROY(sc) mtx_destroy(&(sc)->sc_mtx) 259 #define CARP_LOCK_ASSERT(sc) mtx_assert(&(sc)->sc_mtx, MA_OWNED) 260 #define CARP_LOCK(sc) mtx_lock(&(sc)->sc_mtx) 261 #define CARP_UNLOCK(sc) mtx_unlock(&(sc) 336 carp_hmac_prepare(struct carp_softc *sc) argument 410 carp_hmac_generate(struct carp_softc *sc, uint32_t counter[2], unsigned char md[20]) argument 431 carp_hmac_verify(struct carp_softc *sc, uint32_t counter[2], unsigned char md[20]) argument 600 struct carp_softc *sc; local 708 carp_prepare_ad(struct mbuf *m, struct carp_softc *sc, struct carp_header *ch) argument 745 struct carp_softc *sc; local 763 struct carp_softc *sc = v; local 773 carp_send_ad_error(struct carp_softc *sc, int error) argument 802 carp_send_ad_locked(struct carp_softc *sc) argument 948 carp_addroute(struct carp_softc *sc) argument 979 carp_delroute(struct carp_softc *sc) argument 1012 struct carp_softc *sc = ifa->ifa_carp; local 1024 carp_send_arp(struct carp_softc *sc) argument 1040 struct carp_softc *sc = ifa->ifa_carp; local 1053 carp_send_na(struct carp_softc *sc) argument 1106 struct carp_softc *sc = ifa->ifa_carp; local 1131 struct carp_softc *sc; local 1158 struct carp_softc *sc = v; local 1172 carp_master_down_locked(struct carp_softc *sc, const char *reason) argument 1207 carp_setrun(struct carp_softc *sc, sa_family_t af) argument 1410 struct carp_softc *sc; local 1485 struct carp_softc *sc; local 1525 carp_grow_ifas(struct carp_softc *sc) argument 1539 carp_destroy(struct carp_softc *sc) argument 1620 carp_carprcp(struct carpreq *carpr, struct carp_softc *sc, int priv) argument 1640 struct carp_softc *sc = NULL; local 1819 struct carp_softc *sc; local 1895 struct carp_softc *sc = ifa->ifa_carp; local 1949 carp_set_state(struct carp_softc *sc, int state, const char *reason) argument 1973 struct carp_softc *sc; local 1985 carp_sc_state(struct carp_softc *sc) argument 2026 struct carp_softc *sc; local [all...] |
/freebsd-11-stable/sys/dev/sound/pci/ |
H A D | ds1.c | 198 ds_rd(struct sc_info *sc, int regno, int size) argument 202 return bus_space_read_1(sc->st, sc->sh, regno); 204 return bus_space_read_2(sc->st, sc->sh, regno); 206 return bus_space_read_4(sc->st, sc->sh, regno); 213 ds_wr(struct sc_info *sc, int regno, u_int32_t data, int size) argument 217 bus_space_write_1(sc->st, sc 229 wrl(struct sc_info *sc, u_int32_t *ptr, u_int32_t val) argument 238 ds_cdbusy(struct sc_info *sc, int sec) argument 255 struct sc_info *sc = (struct sc_info *)devinfo; local 281 struct sc_info *sc = (struct sc_info *)devinfo; local 308 struct sc_info *sc = (struct sc_info *)devinfo; local 337 ds_enadsp(struct sc_info *sc, int on) argument 357 ds_allocpslot(struct sc_info *sc) argument 427 ds_enapslot(struct sc_info *sc, int slot, int go) argument 454 struct sc_info *sc = ch->parent; local 484 struct sc_info *sc = devinfo; local 533 struct sc_info *sc = ch->parent; local 549 struct sc_info *sc = ch->parent; local 577 struct sc_info *sc = ch->parent; local 615 struct sc_info *sc = devinfo; local 661 struct sc_info *sc = ch->parent; local 677 struct sc_info *sc = ch->parent; local 707 struct sc_info *sc = ch->parent; local 735 struct sc_info *sc = (struct sc_info *)p; local 780 struct sc_info *sc = arg; local 792 ds_init(struct sc_info *sc) argument 893 ds_uninit(struct sc_info *sc) argument 945 struct sc_info *sc; local 1048 struct sc_info *sc; local 1067 struct sc_info *sc; local [all...] |
/freebsd-11-stable/sys/dev/mge/ |
H A D | if_mge.c | 108 static void mge_watchdog(struct mge_softc *sc); 113 static void mge_ver_params(struct mge_softc *sc); 115 static void mge_intrs_ctrl(struct mge_softc *sc, int enable); 118 static void mge_intr_rx_check(struct mge_softc *sc, uint32_t int_cause, 120 static int mge_intr_rx_locked(struct mge_softc *sc, int count); 122 static void mge_intr_tx_locked(struct mge_softc *sc); 126 static void mge_stop(struct mge_softc *sc); 129 static void mge_get_mac_address(struct mge_softc *sc, uint8_t *addr); 130 static void mge_set_mac_address(struct mge_softc *sc); 131 static void mge_set_ucast_address(struct mge_softc *sc, uint8_ 213 struct mge_softc *sc; local 259 struct mge_softc *sc; local 287 struct mge_softc *sc; local 314 struct mge_softc *sc; local 333 mge_get_mac_address(struct mge_softc *sc, uint8_t *addr) argument 398 mge_ver_params(struct mge_softc *sc) argument 436 mge_set_mac_address(struct mge_softc *sc) argument 456 mge_set_ucast_address(struct mge_softc *sc, uint8_t last_byte, uint8_t queue) argument 474 mge_set_prom_mode(struct mge_softc *sc, uint8_t queue) argument 556 mge_alloc_desc_dma(struct mge_softc *sc, struct mge_desc_wrapper* tab, uint32_t size, bus_dma_tag_t *buffer_tag) argument 627 mge_allocate_dma(struct mge_softc *sc) argument 663 mge_free_desc(struct mge_softc *sc, struct mge_desc_wrapper* tab, uint32_t size, bus_dma_tag_t buffer_tag, uint8_t free_mbufs) argument 695 mge_free_dma(struct mge_softc *sc) argument 710 mge_reinit_rx(struct mge_softc *sc) argument 744 struct mge_softc *sc = ifp->if_softc; local 783 struct mge_softc *sc; local 942 struct mge_softc *sc; local 991 struct mge_softc *sc; local 1050 struct mge_softc *sc = ifp->if_softc; local 1076 struct mge_softc *sc; local 1089 struct mge_softc *sc = arg; local 1224 struct mge_softc *sc; local 1260 struct mge_softc *sc; local 1271 struct mge_softc *sc; local 1281 struct mge_softc *sc; local 1304 mge_intr_rx_check(struct mge_softc *sc, uint32_t int_cause, uint32_t int_cause_ext) argument 1325 mge_intr_rx_locked(struct mge_softc *sc, int count) argument 1394 struct mge_softc *sc = arg; local 1404 struct mge_softc *sc = arg; local 1427 mge_intr_tx_locked(struct mge_softc *sc) argument 1484 struct mge_softc *sc = ifp->if_softc; local 1583 struct mge_softc *sc; local 1594 struct mge_softc *sc; local 1629 struct mge_softc *sc = device_get_softc(dev); local 1646 mge_encap(struct mge_softc *sc, struct mbuf *m0) argument 1704 struct mge_softc *sc = msc; local 1728 mge_watchdog(struct mge_softc *sc) argument 1748 struct mge_softc *sc = ifp->if_softc; local 1760 struct mge_softc *sc; local 1818 mge_stop(struct mge_softc *sc) argument 1923 mge_offload_setup_descriptor(struct mge_softc *sc, struct mge_desc_wrapper *dw) argument 1967 mge_intrs_ctrl(struct mge_softc *sc, int enable) argument 2034 mge_setup_multicast(struct mge_softc *sc) argument 2076 mge_set_rxic(struct mge_softc *sc) argument 2090 mge_set_txic(struct mge_softc *sc) argument 2106 struct mge_softc *sc = (struct mge_softc *)arg1; local 2129 mge_add_sysctls(struct mge_softc *sc) argument [all...] |
/freebsd-11-stable/sys/dev/usb/controller/ |
H A D | dwc_otg.c | 162 struct dwc_otg_softc *sc; local 164 sc = DWC_OTG_BUS2SC(udev->bus); 166 if (ep_addr < sc->sc_dev_ep_max) 167 *ppf = &sc->sc_hw_ep_profile[ep_addr].usb; 173 dwc_otg_write_fifo(struct dwc_otg_softc *sc, struct usb_page_cache *pc, argument 197 bus_space_write_region_4(sc->sc_io_tag, sc->sc_io_hdl, 209 sc->sc_bounce_buffer[(count - 1) / 4] = 0; 213 sc->sc_bounce_buffer, count); 216 bus_space_write_region_4(sc 223 dwc_otg_read_fifo(struct dwc_otg_softc *sc, struct usb_page_cache *pc, uint32_t offset, uint32_t count) argument 277 dwc_otg_tx_fifo_reset(struct dwc_otg_softc *sc, uint32_t value) argument 293 dwc_otg_init_fifo(struct dwc_otg_softc *sc, uint8_t mode) argument 471 dwc_otg_update_host_frame_interval(struct dwc_otg_softc *sc) argument 508 dwc_otg_clocks_on(struct dwc_otg_softc *sc) argument 522 dwc_otg_clocks_off(struct dwc_otg_softc *sc) argument 535 dwc_otg_pull_up(struct dwc_otg_softc *sc) argument 552 dwc_otg_pull_down(struct dwc_otg_softc *sc) argument 568 dwc_otg_enable_sof_irq(struct dwc_otg_softc *sc) argument 583 dwc_otg_resume_irq(struct dwc_otg_softc *sc) argument 606 dwc_otg_suspend_irq(struct dwc_otg_softc *sc) argument 629 dwc_otg_wakeup_peer(struct dwc_otg_softc *sc) argument 676 dwc_otg_set_address(struct dwc_otg_softc *sc, uint8_t addr) argument 689 dwc_otg_common_rx_ack(struct dwc_otg_softc *sc) argument 710 dwc_otg_clear_hcint(struct dwc_otg_softc *sc, uint8_t x) argument 723 dwc_otg_host_check_tx_fifo_empty(struct dwc_otg_softc *sc, struct dwc_otg_td *td) argument 757 dwc_otg_host_channel_alloc(struct dwc_otg_softc *sc, struct dwc_otg_td *td, uint8_t is_out) argument 822 dwc_otg_host_channel_free_sub(struct dwc_otg_softc *sc, struct dwc_otg_td *td, uint8_t index) argument 868 dwc_otg_host_channel_free(struct dwc_otg_softc *sc, struct dwc_otg_td *td) argument 876 dwc_otg_host_dump_rx(struct dwc_otg_softc *sc, struct dwc_otg_td *td) argument 892 dwc_otg_host_setup_tx(struct dwc_otg_softc *sc, struct dwc_otg_td *td) argument 1102 dwc_otg_setup_rx(struct dwc_otg_softc *sc, struct dwc_otg_td *td) argument 1204 dwc_otg_host_rate_check_interrupt(struct dwc_otg_softc *sc, struct dwc_otg_td *td) argument 1223 dwc_otg_host_rate_check(struct dwc_otg_softc *sc, struct dwc_otg_td *td) argument 1261 dwc_otg_host_data_rx_sub(struct dwc_otg_softc *sc, struct dwc_otg_td *td, uint8_t channel) argument 1359 dwc_otg_host_data_rx(struct dwc_otg_softc *sc, struct dwc_otg_td *td) argument 1669 dwc_otg_data_rx(struct dwc_otg_softc *sc, struct dwc_otg_td *td) argument 1797 dwc_otg_host_data_tx(struct dwc_otg_softc *sc, struct dwc_otg_td *td) argument 2136 dwc_otg_data_tx(struct dwc_otg_softc *sc, struct dwc_otg_td *td) argument 2330 dwc_otg_data_tx_sync(struct dwc_otg_softc *sc, struct dwc_otg_td *td) argument 2373 dwc_otg_xfer_do_fifo(struct dwc_otg_softc *sc, struct usb_xfer *xfer) argument 2426 dwc_otg_xfer_do_complete_locked(struct dwc_otg_softc *sc, struct usb_xfer *xfer) argument 2444 struct dwc_otg_softc *sc = _sc; local 2469 dwc_otg_timer_start(struct dwc_otg_softc *sc) argument 2483 dwc_otg_timer_stop(struct dwc_otg_softc *sc) argument 2503 dwc_otg_update_host_transfer_schedule_locked(struct dwc_otg_softc *sc) argument 2694 dwc_otg_interrupt_poll_locked(struct dwc_otg_softc *sc) argument 2824 dwc_otg_interrupt_complete_locked(struct dwc_otg_softc *sc) argument 2836 dwc_otg_vbus_interrupt(struct dwc_otg_softc *sc, uint8_t is_on) argument 2871 struct dwc_otg_softc *sc = arg; local 2924 struct dwc_otg_softc *sc = arg; local 3341 struct dwc_otg_softc *sc; local 3474 struct dwc_otg_softc *sc = DWC_OTG_BUS2SC(xfer->xroot->bus); local 3523 dwc_otg_root_intr(struct dwc_otg_softc *sc) argument 3656 struct dwc_otg_softc *sc = DWC_OTG_BUS2SC(xfer->xroot->bus); local 3688 struct dwc_otg_softc *sc; local 3741 dwc_otg_clear_stall_sub_locked(struct dwc_otg_softc *sc, uint32_t mps, uint8_t ep_no, uint8_t ep_type, uint8_t ep_dir) argument 3806 struct dwc_otg_softc *sc; local 3839 struct dwc_otg_softc *sc; local 3874 dwc_otg_init(struct dwc_otg_softc *sc) argument 4071 dwc_otg_uninit(struct dwc_otg_softc *sc) argument 4102 dwc_otg_suspend(struct dwc_otg_softc *sc) argument 4108 dwc_otg_resume(struct dwc_otg_softc *sc) argument 4116 struct dwc_otg_softc *sc = DWC_OTG_BUS2SC(bus); local 4185 struct dwc_otg_softc *sc = DWC_OTG_BUS2SC(xfer->xroot->bus); local 4344 struct dwc_otg_softc *sc = DWC_OTG_BUS2SC(udev->bus); local 4925 struct dwc_otg_softc *sc = DWC_OTG_BUS2SC(udev->bus); local 4960 struct dwc_otg_softc *sc = DWC_OTG_BUS2SC(bus); local [all...] |
/freebsd-11-stable/sys/geom/virstor/ |
H A D | g_virstor.c | 223 struct g_virstor_softc *sc; local 233 sc = virstor_find_geom(cp, name); 234 if (sc == NULL) { 241 sc->geom->name); 242 update_metadata(sc); 243 if ((error = virstor_geom_destroy(sc, TRUE, TRUE)) != 0) { 245 sc->geom->name, error); 263 struct g_virstor_softc *sc; local 293 sc = virstor_find_geom(cp, geom_name); 294 if (sc 471 update_metadata(struct g_virstor_softc *sc) argument 498 fill_metadata(struct g_virstor_softc *sc, struct g_virstor_metadata *md, u_int nc, u_int hardcode) argument 535 struct g_virstor_softc *sc; local 690 struct g_virstor_softc *sc; local 779 struct g_virstor_softc *sc; local 889 remove_component(struct g_virstor_softc *sc, struct g_virstor_component *comp, boolean_t delay) argument 924 virstor_geom_destroy(struct g_virstor_softc *sc, boolean_t force, boolean_t delay) argument 1064 struct g_virstor_softc *sc; local 1131 add_provider_to_geom(struct g_virstor_softc *sc, struct g_provider *pp, struct g_virstor_metadata *md) argument 1200 virstor_check_and_run(struct g_virstor_softc *sc) argument 1367 virstor_valid_components(struct g_virstor_softc *sc) argument 1386 struct g_virstor_softc *sc; local 1411 struct g_virstor_softc *sc; local 1464 struct g_virstor_softc *sc; local 1539 struct g_virstor_softc *sc; local 1570 struct g_virstor_softc *sc; local 1784 allocate_chunk(struct g_virstor_softc *sc, struct g_virstor_component **comp, u_int *comp_no_p, u_int *chunk) argument [all...] |
/freebsd-11-stable/sys/dev/nsp/ |
H A D | nsp_pccard.c | 87 struct nsp_softc *sc; local 89 sc = arg; 90 SCSI_LOW_LOCK(&sc->sc_sclow); 91 nspintr(sc); 92 SCSI_LOW_UNLOCK(&sc->sc_sclow); 98 struct nsp_softc *sc = device_get_softc(dev); local 100 if (sc->nsp_intrhand) 101 bus_teardown_intr(dev, sc->irq_res, sc->nsp_intrhand); 102 if (sc 117 struct nsp_softc *sc = device_get_softc(dev); local 186 struct nsp_softc *sc = device_get_softc(dev); local 242 struct nsp_softc *sc = device_get_softc(devi); local 252 struct nsp_softc *sc = device_get_softc(devi); local 263 struct nsp_softc *sc; local [all...] |
/freebsd-11-stable/sys/mips/atheros/ |
H A D | ar71xx_ohci.c | 84 struct ar71xx_ohci_softc *sc = device_get_softc(dev); local 89 sc->sc_ohci.sc_bus.parent = dev; 90 sc->sc_ohci.sc_bus.devices = sc->sc_ohci.sc_devices; 91 sc->sc_ohci.sc_bus.devices_max = OHCI_MAX_DEVICES; 92 sc->sc_ohci.sc_bus.dma_bits = 32; 95 if (usb_bus_mem_alloc_all(&sc->sc_ohci.sc_bus, 100 sc->sc_ohci.sc_dev = dev; 103 sc->sc_ohci.sc_io_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, 105 if (sc 158 struct ar71xx_ohci_softc *sc = device_get_softc(dev); local [all...] |
/freebsd-11-stable/sys/arm/freescale/imx/ |
H A D | tzic.c | 71 tzic_read_4(struct tzic_softc *sc, int reg) argument 74 return (bus_read_4(sc->tzicregs, reg)); 78 tzic_write_4(struct tzic_softc *sc, int reg, uint32_t val) argument 81 bus_write_4(sc->tzicregs, reg, val); 85 tzic_irq_eoi(struct tzic_softc *sc) argument 88 tzic_write_4(sc, TZIC_PRIOMASK, 0xff); 92 tzic_irq_mask(struct tzic_softc *sc, u_int irq) argument 95 tzic_write_4(sc, TZIC_ENCLEAR(irq >> 5), (1u << (irq & 0x1f))); 99 tzic_irq_unmask(struct tzic_softc *sc, u_int irq) argument 102 tzic_write_4(sc, TZIC_ENSE 108 struct tzic_softc *sc = arg; local 142 struct tzic_softc *sc = device_get_softc(dev); local 152 struct tzic_softc *sc = device_get_softc(dev); local 162 struct tzic_softc *sc; local 180 struct tzic_softc *sc = device_get_softc(dev); local 201 tzic_pic_attach(struct tzic_softc *sc) argument 243 struct tzic_softc *sc = device_get_softc(dev); local [all...] |