/freebsd-11-stable/sys/dev/bxe/ |
H A D | bxe_stats.c | 53 bxe_get_port_stats_dma_len(struct bxe_softc *sc) argument 59 if (SHMEM2_HAS(sc, sizeof_port_stats)) { 60 size = SHMEM2_RD(sc, sizeof_port_stats); 79 if (sc->devinfo.bc_ver >= REQ_BC_VER_4_PFC_STATS_SUPPORTED) { 87 DBASSERT(sc, !(res > 2 * DMAE_LEN32_RD_MAX), ("big stats dmae length\n")); 96 bxe_dp_stats(struct bxe_softc *sc) argument 100 BLOGD(sc, DBG_STATS, 109 sc->fw_stats_req->hdr.cmd_num, 110 sc->fw_stats_req->hdr.reserved0, 111 sc 142 bxe_storm_stats_post(struct bxe_softc *sc) argument 180 bxe_hw_stats_post(struct bxe_softc *sc) argument 230 bxe_stats_comp(struct bxe_softc *sc) argument 257 bxe_stats_pmf_update(struct bxe_softc *sc) argument 316 bxe_port_stats_init(struct bxe_softc *sc) argument 544 bxe_func_stats_init(struct bxe_softc *sc) argument 573 bxe_stats_start(struct bxe_softc *sc) argument 596 bxe_stats_pmf_start(struct bxe_softc *sc) argument 604 bxe_stats_restart(struct bxe_softc *sc) argument 619 bxe_bmac_stats_update(struct bxe_softc *sc) argument 722 bxe_mstat_stats_update(struct bxe_softc *sc) argument 800 bxe_emac_stats_update(struct bxe_softc *sc) argument 858 bxe_hw_stats_update(struct bxe_softc *sc) argument 935 bxe_storm_stats_validate_counters(struct bxe_softc *sc) argument 985 bxe_storm_stats_update(struct bxe_softc *sc) argument 1171 bxe_net_stats_update(struct bxe_softc *sc) argument 1182 struct bxe_softc *sc; local 1224 bxe_drv_stats_update(struct bxe_softc *sc) argument 1283 bxe_edebug_stats_stopped(struct bxe_softc *sc) argument 1299 bxe_stats_update(struct bxe_softc *sc) argument 1348 bxe_port_stats_stop(struct bxe_softc *sc) argument 1403 bxe_stats_stop(struct bxe_softc *sc) argument 1428 bxe_stats_do_nothing(struct bxe_softc *sc) argument 1451 bxe_stats_handle(struct bxe_softc *sc, enum bxe_stats_event event) argument 1475 bxe_port_stats_base_init(struct bxe_softc *sc) argument 1511 bxe_prep_fw_stats_req(struct bxe_softc *sc) argument 1594 bxe_stats_init(struct bxe_softc *sc) argument 1678 bxe_save_statistics(struct bxe_softc *sc) argument 1725 bxe_afex_collect_stats(struct bxe_softc *sc, void *void_afex_stats, uint32_t stats_type) argument [all...] |
/freebsd-11-stable/sys/dev/stge/ |
H A D | if_stge.c | 252 struct stge_softc *sc; local 255 sc = device_get_softc(dev); 257 val = CSR_READ_1(sc, STGE_PhyCtrl); 258 CSR_BARRIER(sc, STGE_PhyCtrl, 1, 271 struct stge_softc *sc; local 273 sc = device_get_softc(dev); 275 CSR_WRITE_1(sc, STGE_PhyCtrl, val); 276 CSR_BARRIER(sc, STGE_PhyCtrl, 1, 288 struct stge_softc *sc; local 291 sc 315 struct stge_softc *sc; local 333 struct stge_softc *sc; local 347 struct stge_softc *sc; local 366 struct stge_softc *sc; local 377 stge_eeprom_wait(struct stge_softc *sc) argument 395 stge_read_eeprom(struct stge_softc *sc, int offset, uint16_t *data) argument 433 struct stge_softc *sc; local 662 struct stge_softc *sc; local 724 stge_dma_alloc(struct stge_softc *sc) argument 896 stge_dma_free(struct stge_softc *sc) argument 981 stge_setwol(struct stge_softc *sc) argument 1008 struct stge_softc *sc; local 1024 struct stge_softc *sc; local 1050 stge_dma_wait(struct stge_softc *sc) argument 1065 stge_encap(struct stge_softc *sc, struct mbuf **m_head) argument 1159 struct stge_softc *sc; local 1170 struct stge_softc *sc; local 1227 stge_watchdog(struct stge_softc *sc) argument 1253 struct stge_softc *sc; local 1363 struct stge_softc *sc; local 1410 stge_tx_error(struct stge_softc *sc) argument 1453 struct stge_softc *sc; local 1527 stge_txeof(struct stge_softc *sc) argument 1579 stge_discard_rxbuf(struct stge_softc *sc, int idx) argument 1600 stge_fixup_rx(struct stge_softc *sc, struct mbuf *m) argument 1632 stge_rxeof(struct stge_softc *sc) argument 1781 struct stge_softc *sc; local 1833 struct stge_softc *sc; local 1866 stge_stats_update(struct stge_softc *sc) argument 1900 stge_reset(struct stge_softc *sc, uint32_t how) argument 1972 struct stge_softc *sc; local 1981 stge_init_locked(struct stge_softc *sc) argument 2177 stge_vlan_setup(struct stge_softc *sc) argument 2203 stge_stop(struct stge_softc *sc) argument 2276 stge_start_tx(struct stge_softc *sc) argument 2298 stge_start_rx(struct stge_softc *sc) argument 2320 stge_stop_tx(struct stge_softc *sc) argument 2341 stge_stop_rx(struct stge_softc *sc) argument 2362 stge_init_tx_ring(struct stge_softc *sc) argument 2396 stge_init_rx_ring(struct stge_softc *sc) argument 2431 stge_newbuf(struct stge_softc *sc, int idx) argument 2485 stge_set_filter(struct stge_softc *sc) argument 2509 stge_set_multi(struct stge_softc *sc) argument [all...] |
/freebsd-11-stable/sys/dev/sound/pci/ |
H A D | envy24ht.c | 457 envy24ht_rdcs(struct sc_info *sc, int regno, int size) argument 461 return bus_space_read_1(sc->cst, sc->csh, regno); 463 return bus_space_read_2(sc->cst, sc->csh, regno); 465 return bus_space_read_4(sc->cst, sc->csh, regno); 472 envy24ht_wrcs(struct sc_info *sc, int regno, u_int32_t data, int size) argument 476 bus_space_write_1(sc->cst, sc 488 envy24ht_rdmt(struct sc_info *sc, int regno, int size) argument 503 envy24ht_wrmt(struct sc_info *sc, int regno, u_int32_t data, int size) argument 523 envy24ht_rdi2c(struct sc_info *sc, u_int32_t dev, u_int32_t addr) argument 561 envy24ht_wri2c(struct sc_info *sc, u_int32_t dev, u_int32_t addr, u_int32_t data) argument 596 envy24ht_rdrom(struct sc_info *sc, u_int32_t addr) argument 615 envy24ht_rom2cfg(struct sc_info *sc) argument 827 envy24ht_gpiord(struct sc_info *sc) argument 836 envy24ht_gpiowr(struct sc_info *sc, u_int32_t data) argument 857 envy24ht_gpiosetmask(struct sc_info *sc, u_int32_t mask) argument 874 envy24ht_gpiosetdir(struct sc_info *sc, u_int32_t dir) argument 916 struct sc_info *sc = info; local 1046 envy24ht_setspeed(struct sc_info *sc, u_int32_t speed) argument 1098 envy24ht_setvolume(struct sc_info *sc, unsigned ch) argument 1110 envy24ht_mutevolume(struct sc_info *sc, unsigned ch) argument 1125 envy24ht_gethwptr(struct sc_info *sc, int dir) argument 1155 envy24ht_updintr(struct sc_info *sc, int dir) argument 1225 envy24ht_checkintr(struct sc_info *sc, int dir) argument 1258 envy24ht_start(struct sc_info *sc, int dir) argument 1282 envy24ht_stop(struct sc_info *sc, int dir) argument 1482 struct sc_info *sc = (struct sc_info *)devinfo; local 1529 struct sc_info *sc = ch->parent; local 1548 struct sc_info *sc = ch->parent; local 1682 struct sc_info *sc = ch->parent; local 1792 struct sc_info *sc = ch->parent; local 1814 struct sc_info *sc = ch->parent; local 1858 struct sc_info *sc = mix_getdevinfo(m); local 1885 struct sc_info *sc = mix_getdevinfo(m); local 1899 struct sc_info *sc = mix_getdevinfo(m); local 1913 struct sc_info *sc = mix_getdevinfo(m); local 1955 struct sc_info *sc = mix_getdevinfo(m); local 1982 struct sc_info *sc = (struct sc_info *)p; local 2084 struct sc_info *sc = arg; local 2102 struct sc_info *sc = arg; local 2118 envy24ht_dmafree(struct sc_info *sc) argument 2153 envy24ht_dmainit(struct sc_info *sc) argument 2198 envy24ht_putcfg(struct sc_info *sc) argument 2290 envy24ht_init(struct sc_info *sc) argument 2399 envy24ht_alloc_resource(struct sc_info *sc) argument 2454 struct sc_info *sc; local 2548 struct sc_info *sc; local [all...] |
/freebsd-11-stable/sys/arm/ti/ |
H A D | ti_spi.c | 83 struct ti_spi_softc *sc; local 86 sc = device_get_softc(dev); 87 reg = TI_SPI_READ(sc, MCSPI_SYSCONFIG); 89 reg = TI_SPI_READ(sc, MCSPI_SYSSTATUS); 91 reg = TI_SPI_READ(sc, MCSPI_IRQSTATUS); 93 reg = TI_SPI_READ(sc, MCSPI_IRQENABLE); 95 reg = TI_SPI_READ(sc, MCSPI_MODULCTRL); 97 for (i = 0; i < sc->sc_numcs; i++) { 98 ctrl = TI_SPI_READ(sc, MCSPI_CTRL_CH(i)); 99 conf = TI_SPI_READ(sc, MCSPI_CONF_C 123 ti_spi_set_clock(struct ti_spi_softc *sc, int ch, int freq) argument 171 struct ti_spi_softc *sc; local 290 struct ti_spi_softc *sc; local 315 ti_spi_fill_fifo(struct ti_spi_softc *sc) argument 348 ti_spi_drain_fifo(struct ti_spi_softc *sc) argument 384 struct ti_spi_softc *sc; local 419 ti_spi_pio_transfer(struct ti_spi_softc *sc) argument 449 struct ti_spi_softc *sc; local [all...] |
/freebsd-11-stable/sys/dev/aac/ |
H A D | aac_disk.c | 96 struct aac_disk *sc; local 100 sc = (struct aac_disk *)dp->d_drv1; 102 if (sc == NULL) { 108 if (sc->ad_controller->aac_state & AAC_STATE_SUSPEND) { 109 device_printf(sc->ad_controller->aac_dev, 111 sc->ad_controller->aac_state); 115 sc->ad_flags |= AAC_DISK_OPEN; 125 struct aac_disk *sc; local 129 sc = (struct aac_disk *)dp->d_drv1; 131 if (sc 144 struct aac_disk *sc; local 233 struct aac_softc *sc; local 361 struct aac_disk *sc; local 423 struct aac_disk *sc; local [all...] |
/freebsd-11-stable/sys/dev/tpm/ |
H A D | tpm.c | 251 struct tpm_softc *sc = device_get_softc(dev); local 254 sc->mem_rid = 0; 255 sc->mem_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &sc->mem_rid, 257 if (sc->mem_res == NULL) 260 sc->sc_bt = rman_get_bustag(sc->mem_res); 261 sc->sc_bh = rman_get_bushandle(sc->mem_res); 263 sc 312 struct tpm_softc * sc = device_get_softc(dev); local 375 struct tpm_softc *sc = (struct tpm_softc *)self; local 472 tpm_tis12_irqinit(struct tpm_softc *sc, int irq, int idx) argument 506 tpm_tis12_init(struct tpm_softc *sc, int irq, const char *name) argument 547 tpm_request_locality(struct tpm_softc *sc, int l) argument 589 tpm_getburst(struct tpm_softc *sc) argument 621 tpm_status(struct tpm_softc *sc) argument 651 struct tpm_softc *sc = device_get_softc(dev); local 685 struct tpm_softc *sc = device_get_softc(dev); local 701 struct tpm_softc *sc = (struct tpm_softc *)self; local 712 tpm_waitfor_poll(struct tpm_softc *sc, u_int8_t mask, int tmo, void *c) argument 735 tpm_waitfor_int(struct tpm_softc *sc, u_int8_t mask, int tmo, void *c, int inttype) argument 802 tpm_waitfor(struct tpm_softc *sc, u_int8_t b0, int tmo, void *c) argument 895 tpm_tis12_start(struct tpm_softc *sc, int flag) argument 940 tpm_tis12_read(struct tpm_softc *sc, void *buf, int len, size_t *count, int flags) argument 980 tpm_tis12_write(struct tpm_softc *sc, void *buf, int len) argument 1041 tpm_tis12_end(struct tpm_softc *sc, int flag, int err) argument 1091 struct tpm_softc *sc = v; local 1198 tpm_legacy_init(struct tpm_softc *sc, int irq, const char *name) argument 1223 tpm_legacy_start(struct tpm_softc *sc, int flag) argument 1251 tpm_legacy_read(struct tpm_softc *sc, void *buf, int len, size_t *count, int flags) argument 1276 tpm_legacy_write(struct tpm_softc *sc, void *buf, int len) argument 1295 tpm_legacy_end(struct tpm_softc *sc, int flag, int rv) argument 1335 struct tpm_softc *sc = TPMSOFTC(dev); local 1355 struct tpm_softc *sc = TPMSOFTC(dev); local 1375 struct tpm_softc *sc = TPMSOFTC(dev); local 1451 struct tpm_softc *sc = TPMSOFTC(dev); local [all...] |
/freebsd-11-stable/sys/dev/usb/wlan/ |
H A D | if_rsu.c | 354 struct rsu_softc *sc = ni->ni_ic->ic_softc; 371 RSU_DPRINTF(sc, RSU_DEBUG_AMPDU, "%s: establishing AMPDU TX for TID %d\n", 375 RSU_LOCK(sc); 376 if (rsu_fw_cmd(sc, R92S_CMD_ADDBA_REQ, &req, sizeof(req)) != 1) { 377 RSU_UNLOCK(sc); 382 RSU_UNLOCK(sc); 403 struct rsu_softc *sc = device_get_softc(self); local 404 struct ieee80211com *ic = &sc->sc_ic; 411 sc->sc_udev = uaa->device; 412 sc 580 struct rsu_softc *sc = device_get_softc(self); local 611 rsu_do_request(struct rsu_softc *sc, struct usb_device_request *req, void *data) argument 682 struct rsu_softc *sc = ic->ic_softc; local 705 struct rsu_softc *sc = ic->ic_softc; local 731 rsu_alloc_list(struct rsu_softc *sc, struct rsu_data data[], int ndata, int maxsz) argument 757 rsu_alloc_rx_list(struct rsu_softc *sc) argument 776 rsu_alloc_tx_list(struct rsu_softc *sc) argument 800 rsu_free_tx_list(struct rsu_softc *sc) argument 816 rsu_free_rx_list(struct rsu_softc *sc) argument 826 rsu_free_list(struct rsu_softc *sc, struct rsu_data data[], int ndata) argument 845 _rsu_getbuf(struct rsu_softc *sc) argument 858 rsu_getbuf(struct rsu_softc *sc) argument 872 rsu_freebuf(struct rsu_softc *sc, struct rsu_data *bf) argument 880 rsu_write_region_1(struct rsu_softc *sc, uint16_t addr, uint8_t *buf, int len) argument 895 rsu_write_1(struct rsu_softc *sc, uint16_t addr, uint8_t val) argument 901 rsu_write_2(struct rsu_softc *sc, uint16_t addr, uint16_t val) argument 908 rsu_write_4(struct rsu_softc *sc, uint16_t addr, uint32_t val) argument 915 rsu_read_region_1(struct rsu_softc *sc, uint16_t addr, uint8_t *buf, int len) argument 930 rsu_read_1(struct rsu_softc *sc, uint16_t addr) argument 940 rsu_read_2(struct rsu_softc *sc, uint16_t addr) argument 950 rsu_read_4(struct rsu_softc *sc, uint16_t addr) argument 960 rsu_fw_iocmd(struct rsu_softc *sc, uint32_t iocmd) argument 975 rsu_efuse_read_1(struct rsu_softc *sc, uint16_t addr) argument 997 rsu_read_rom(struct rsu_softc *sc) argument 1049 rsu_fw_cmd(struct rsu_softc *sc, uint8_t code, void *buf, int len) argument 1107 struct rsu_softc *sc = arg; local 1141 struct rsu_softc *sc = arg; local 1171 rsu_set_fw_power_state(struct rsu_softc *sc, int state) argument 1222 struct rsu_softc *sc = ic->ic_softc; local 1286 rsu_set_key(struct rsu_softc *sc, const struct ieee80211_key *k) argument 1315 rsu_delete_key(struct rsu_softc *sc, const struct ieee80211_key *k) argument 1326 rsu_site_survey(struct rsu_softc *sc, struct ieee80211vap *vap) argument 1354 rsu_join_bss(struct rsu_softc *sc, struct ieee80211_node *ni) argument 1455 rsu_disconnect(struct rsu_softc *sc) argument 1471 rsu_hwrssi_to_rssi(struct rsu_softc *sc, int hw_rssi) argument 1486 rsu_event_survey(struct rsu_softc *sc, uint8_t *buf, int len) argument 1552 rsu_event_join_bss(struct rsu_softc *sc, uint8_t *buf, int len) argument 1598 rsu_event_addba_req_report(struct rsu_softc *sc, uint8_t *buf, int len) argument 1627 rsu_rx_event(struct rsu_softc *sc, uint8_t code, uint8_t *buf, int len) argument 1694 rsu_rx_multi_event(struct rsu_softc *sc, uint8_t *buf, int len) argument 1750 rsu_rx_frame(struct rsu_softc *sc, uint8_t *buf, int pktlen) argument 1839 rsu_rx_multi_frame(struct rsu_softc *sc, uint8_t *buf, int len) argument 1892 struct rsu_softc *sc = data->sc; local 1917 struct rsu_softc *sc = usbd_xfer_softc(xfer); local 2000 struct rsu_softc *sc = usbd_xfer_softc(xfer); local 2019 struct rsu_softc *sc = usbd_xfer_softc(xfer); local 2079 struct rsu_softc *sc = usbd_xfer_softc(xfer); local 2090 struct rsu_softc *sc = usbd_xfer_softc(xfer); local 2101 struct rsu_softc *sc = usbd_xfer_softc(xfer); local 2115 rsu_tx_start(struct rsu_softc *sc, struct ieee80211_node *ni, struct mbuf *m0, struct rsu_data *data) argument 2248 struct rsu_softc *sc = ic->ic_softc; local 2279 rsu_drain_mbufq(struct rsu_softc *sc) argument 2294 _rsu_start(struct rsu_softc *sc) argument 2328 rsu_start(struct rsu_softc *sc) argument 2337 struct rsu_softc *sc = ic->ic_softc; local 2358 rsu_power_on_acut(struct rsu_softc *sc) argument 2440 rsu_power_on_bcut(struct rsu_softc *sc) argument 2557 rsu_power_off(struct rsu_softc *sc) argument 2590 rsu_fw_loadsection(struct rsu_softc *sc, const uint8_t *buf, int len) argument 2626 rsu_load_firmware(struct rsu_softc *sc) argument 2818 struct rsu_softc *sc = ic->ic_softc; local 2845 rsu_init(struct rsu_softc *sc) argument 2938 rsu_stop(struct rsu_softc *sc) argument 2964 rsu_ms_delay(struct rsu_softc *sc, int ms) argument [all...] |
/freebsd-11-stable/sys/dev/mii/ |
H A D | e1000phy.c | 134 struct mii_softc *sc; local 136 sc = device_get_softc(dev); 141 (sc->mii_flags & MIIF_MACPRIV0) != 0) 142 sc->mii_flags |= MIIF_PHYPRIV0; 144 switch (sc->mii_mpd_model) { 147 if (PHY_READ(sc, E1000_ESSR) & E1000_ESSR_FIBER_LINK) 148 sc->mii_flags |= MIIF_HAVEFIBER; 163 PHY_WRITE(sc, E1000_EADR, 0); 167 PHY_RESET(sc); 169 sc 185 e1000phy_reset(struct mii_softc *sc) argument 305 e1000phy_service(struct mii_softc *sc, struct mii_data *mii, int cmd) argument 410 e1000phy_status(struct mii_softc *sc) argument 473 e1000phy_mii_phy_auto(struct mii_softc *sc, int media) argument [all...] |
H A D | mii_physubr.c | 121 mii_phy_setmedia(struct mii_softc *sc) argument 123 struct mii_data *mii = sc->mii_pdata; 135 if ((PHY_READ(sc, MII_BMCR) & BMCR_AUTOEN) == 0 || 136 (sc->mii_flags & (MIIF_DOPAUSE | MIIF_FORCEANEG)) != 0) 137 (void)mii_phy_auto(sc); 220 (sc->mii_flags & MIIF_FORCEPAUSE) != 0)) { 221 if ((sc->mii_flags & MIIF_IS_1000X) != 0) 226 if ((sc->mii_flags & MIIF_HAVE_GTCR) != 0 && 227 (sc->mii_extcapabilities & 233 PHY_WRITE(sc, MII_ANA 240 mii_phy_auto(struct mii_softc *sc) argument 289 mii_phy_tick(struct mii_softc *sc) argument 332 mii_phy_reset(struct mii_softc *sc) argument 362 mii_phy_update(struct mii_softc *sc, int cmd) argument 383 mii_phy_add_media(struct mii_softc *sc) argument 541 struct mii_softc *sc; local 586 struct mii_softc *sc; local 630 mii_phy_flowstatus(struct mii_softc *sc) argument [all...] |
/freebsd-11-stable/sys/dev/et/ |
H A D | if_et.c | 222 struct et_softc *sc; local 228 sc = device_get_softc(dev); 229 sc->dev = dev; 230 mtx_init(&sc->sc_mtx, device_get_nameunit(dev), MTX_NETWORK_LOCK, 232 callout_init_mtx(&sc->sc_tick, &sc->sc_mtx, 0); 234 ifp = sc->ifp = if_alloc(IFT_ETHER); 244 sc->sc_rx_intr_npkts = et_rx_intr_npkts; 245 sc->sc_rx_intr_delay = et_rx_intr_delay; 246 sc 369 struct et_softc *sc; local 408 struct et_softc *sc; local 420 struct et_softc *sc; local 464 struct et_softc *sc; local 504 struct et_softc *sc; local 603 struct et_softc *sc; local 617 struct et_softc *sc; local 631 struct et_softc *sc; local 649 et_stop(struct et_softc *sc) argument 680 et_bus_config(struct et_softc *sc) argument 769 et_reset(struct et_softc *sc) argument 809 et_dma_ring_alloc(struct et_softc *sc, bus_size_t alignment, bus_size_t maxsize, bus_dma_tag_t *tag, uint8_t **ring, bus_dmamap_t *map, bus_addr_t *paddr, const char *msg) argument 845 et_dma_ring_free(struct et_softc *sc, bus_dma_tag_t *tag, uint8_t **ring, bus_dmamap_t map, bus_addr_t *paddr) argument 864 et_dma_alloc(struct et_softc *sc) argument 1043 et_dma_free(struct et_softc *sc) argument 1137 et_chip_attach(struct et_softc *sc) argument 1179 struct et_softc *sc; local 1220 et_init_locked(struct et_softc *sc) argument 1275 struct et_softc *sc = xsc; local 1285 struct et_softc *sc; local 1378 struct et_softc *sc; local 1446 struct et_softc *sc; local 1455 et_watchdog(struct et_softc *sc) argument 1477 et_stop_rxdma(struct et_softc *sc) argument 1492 et_stop_txdma(struct et_softc *sc) argument 1501 et_free_tx_ring(struct et_softc *sc) argument 1523 et_free_rx_ring(struct et_softc *sc) argument 1560 et_setmulti(struct et_softc *sc) argument 1621 et_chip_init(struct et_softc *sc) argument 1684 et_init_tx_ring(struct et_softc *sc) argument 1707 et_init_rx_ring(struct et_softc *sc) argument 1740 et_init_rxdma(struct et_softc *sc) argument 1812 et_init_txdma(struct et_softc *sc) argument 1849 et_init_mac(struct et_softc *sc) argument 1903 et_init_rxmac(struct et_softc *sc) argument 1990 et_init_txmac(struct et_softc *sc) argument 2009 et_start_rxdma(struct et_softc *sc) argument 2030 et_start_txdma(struct et_softc *sc) argument 2038 et_rxeof(struct et_softc *sc) argument 2156 et_encap(struct et_softc *sc, struct mbuf **m0) argument 2253 et_txeof(struct et_softc *sc) argument 2310 struct et_softc *sc; local 2329 struct et_softc *sc; local 2388 struct et_softc *sc; local 2442 et_add_sysctls(struct et_softc * sc) argument 2576 struct et_softc *sc; local 2603 struct et_softc *sc; local 2628 et_stats_update(struct et_softc *sc) argument 2684 struct et_softc *sc; local 2713 struct et_softc *sc; local 2733 struct et_softc *sc; local [all...] |
/freebsd-11-stable/sys/dev/an/ |
H A D | if_an.c | 315 struct an_softc *sc = device_get_softc(dev); local 326 if (rman_get_start(sc->port_res) == -1) 338 sc->mpi350 = 0; 339 CSR_WRITE_2(sc, AN_INT_EN(sc->mpi350), 0); 340 CSR_WRITE_2(sc, AN_EVENT_ACK(sc->mpi350), 0xFFFF); 342 sc->an_dev = dev; 343 mtx_init(&sc->an_mtx, device_get_nameunit(dev), MTX_NETWORK_LOCK, 345 AN_LOCK(sc); 377 struct an_softc *sc = device_get_softc(dev); local 396 struct an_softc *sc = device_get_softc(dev); local 416 struct an_softc *sc = device_get_softc(dev); local 437 struct an_softc *sc = device_get_softc(dev); local 462 an_dma_malloc(struct an_softc *sc, bus_size_t size, struct an_dma_alloc *dma, int mapflags) argument 491 an_dma_free(struct an_softc *sc, struct an_dma_alloc *dma) argument 504 struct an_softc *sc = device_get_softc(dev); local 545 an_init_mpi350_desc(struct an_softc *sc) argument 651 an_attach(struct an_softc *sc, int flags) argument 806 struct an_softc *sc = device_get_softc(dev); local 829 an_rxeof(struct an_softc *sc) argument 1095 an_txeof(struct an_softc *sc, int status) argument 1150 struct an_softc *sc; local 1188 struct an_softc *sc; local 1258 an_cmd_struct(struct an_softc *sc, struct an_command *cmd, struct an_reply *reply) argument 1306 an_cmd(struct an_softc *sc, int cmd, int val) argument 1352 an_reset(struct an_softc *sc) argument 1374 an_read_record(struct an_softc *sc, struct an_ltv_gen *ltv) argument 1487 an_write_record(struct an_softc *sc, struct an_ltv_gen *ltv) argument 1588 an_dump_record(struct an_softc *sc, struct an_ltv_gen *ltv, char *string) argument 1628 an_seek(struct an_softc *sc, int id, int off, int chan) argument 1662 an_read_data(struct an_softc *sc, int id, int off, caddr_t buf, int len) argument 1685 an_write_data(struct an_softc *sc, int id, int off, caddr_t buf, int len) argument 1712 an_alloc_nicmem(struct an_softc *sc, int len, int *id) argument 1743 an_setdef(struct an_softc *sc, struct an_req *areq) argument 1852 an_promisc(struct an_softc *sc, int promisc) argument 1875 struct an_softc *sc; local 2578 an_init_tx_ring(struct an_softc *sc) argument 2606 struct an_softc *sc = xsc; local 2614 an_init_locked(struct an_softc *sc) argument 2717 struct an_softc *sc; local 2728 struct an_softc *sc; local 2912 an_stop(struct an_softc *sc) argument 2942 an_watchdog(struct an_softc *sc) argument 2965 struct an_softc *sc; local 2979 struct an_softc *sc; local 3070 an_cache_store(struct an_softc *sc, struct ether_header *eh, struct mbuf *m, u_int8_t rx_rssi, u_int8_t rx_quality) argument 3223 struct an_softc *sc = ifp->if_softc; local 3267 struct an_softc *sc = ifp->if_softc; local 3305 struct an_softc *sc; local 3380 struct an_softc *sc; local 3491 struct an_softc *sc = ifp->if_softc; local 3511 struct an_softc *sc = ifp->if_softc; local 3534 struct an_softc *sc = ifp->if_softc; local 3568 struct an_softc *sc = ifp->if_softc; local 3598 struct an_softc *sc = ifp->if_softc; local 3633 struct an_softc *sc = ifp->if_softc; local 3689 struct an_softc *sc = ifp->if_softc; local 3722 struct an_softc *sc = ifp->if_softc; local 3740 struct an_softc *sc; local [all...] |
/freebsd-11-stable/sys/dev/twa/ |
H A D | tw_osl_freebsd.c | 92 struct twa_softc *sc = (struct twa_softc *)(dev->si_drv1); local 94 tw_osli_dbg_dprintf(5, sc, "entered"); 95 sc->open = TW_CL_TRUE; 117 struct twa_softc *sc = (struct twa_softc *)(dev->si_drv1); local 119 tw_osli_dbg_dprintf(5, sc, "entered"); 120 sc->open = TW_CL_FALSE; 146 struct twa_softc *sc = (struct twa_softc *)(dev->si_drv1); local 149 tw_osli_dbg_dprintf(5, sc, "entered"); 153 tw_osli_dbg_dprintf(6, sc, "ioctl: fw_passthru"); 154 error = tw_osli_fw_passthru(sc, (TW_INT 243 twa_setup_intr(struct twa_softc *sc) argument 257 twa_teardown_intr(struct twa_softc *sc) argument 286 struct twa_softc *sc = device_get_softc(dev); local 439 struct twa_softc *sc = ctlr_handle->osl_ctlr_ctxt; local 507 tw_osli_alloc_mem(struct twa_softc *sc) argument 734 tw_osli_free_resources(struct twa_softc *sc) argument 839 struct twa_softc *sc = device_get_softc(dev); local 882 struct twa_softc *sc = device_get_softc(dev); local 949 struct twa_softc *sc = (struct twa_softc *)arg; local 967 tw_osli_fw_passthru(struct twa_softc *sc, TW_INT8 *buf) argument 1152 struct twa_softc *sc = req->ctlr; local 1232 tw_osli_get_request(struct twa_softc *sc) argument 1285 struct twa_softc *sc = req->ctlr; local 1407 struct twa_softc *sc = req->ctlr; local 1546 struct twa_softc *sc = req->ctlr; local 1628 struct twa_softc *sc; local 1648 tw_osli_print_ctlr_stats(struct twa_softc *sc) argument 1674 struct twa_softc *sc = req->ctlr; local 1702 struct twa_softc *sc; local [all...] |
/freebsd-11-stable/sys/dev/altera/atse/ |
H A D | if_atse_nexus.c | 139 struct atse_softc *sc; local 142 sc = device_get_softc(dev); 143 sc->atse_dev = dev; 144 sc->atse_unit = device_get_unit(dev); 147 error = atse_resource_int(dev, "rx_irq", &sc->atse_rx_irq); 148 error += atse_resource_long(dev, "rx_maddr", &sc->atse_rx_maddr); 149 error += atse_resource_long(dev, "rx_msize", &sc->atse_rx_msize); 150 error += atse_resource_long(dev, "rxc_maddr", &sc->atse_rxc_maddr); 151 error += atse_resource_long(dev, "rxc_msize", &sc->atse_rxc_msize); 152 error += atse_resource_int(dev, "tx_irq", &sc [all...] |
/freebsd-11-stable/sys/arm/at91/ |
H A D | at91_ohci.c | 88 struct at91_ohci_softc *sc = device_get_softc(dev); local 93 sc->sc_ohci.sc_bus.parent = dev; 94 sc->sc_ohci.sc_bus.devices = sc->sc_ohci.sc_devices; 95 sc->sc_ohci.sc_bus.devices_max = OHCI_MAX_DEVICES; 96 sc->sc_ohci.sc_bus.dma_bits = 32; 99 if (usb_bus_mem_alloc_all(&sc->sc_ohci.sc_bus, 103 sc->mclk = at91_pmc_clock_ref("mck"); 104 sc->iclk = at91_pmc_clock_ref("ohci_clk"); 105 sc 167 struct at91_ohci_softc *sc = device_get_softc(dev); local [all...] |
/freebsd-11-stable/sys/arm/nvidia/ |
H A D | tegra_rtc.c | 84 mtx_sleep(sc, &sc->mtx, 0, "rtcwait", timeout); 109 tegra_rtc_wait(struct tegra_rtc_softc *sc) argument 114 if ((RD4(sc, RTC_BUSY) & RTC_BUSY_STATUS) == 0) 119 device_printf(sc->dev, "Device busy timeouted\n"); 130 struct tegra_rtc_softc *sc; local 134 sc = device_get_softc(dev); 136 LOCK(sc); 137 msec = RD4(sc, RTC_MILLI_SECONDS); 138 sec = RD4(sc, RTC_SHADOW_SECOND 150 struct tegra_rtc_softc *sc; local 168 struct tegra_rtc_softc *sc; local 194 struct tegra_rtc_softc *sc; local 273 struct tegra_rtc_softc *sc; local [all...] |
/freebsd-11-stable/sys/dev/vx/ |
H A D | if_vx.c | 146 struct vx_softc *sc = device_get_softc(dev); local 151 ifp = sc->vx_ifp = if_alloc(IFT_ETHER); 158 mtx_init(&sc->vx_mtx, device_get_nameunit(dev), MTX_NETWORK_LOCK, 160 callout_init_mtx(&sc->vx_callout, &sc->vx_mtx, 0); 161 callout_init_mtx(&sc->vx_watchdog, &sc->vx_mtx, 0); 163 CSR_WRITE_2(sc, VX_COMMAND, GLOBAL_RESET); 166 vx_getlink(sc); 175 if (vx_busy_eeprom(sc)) { 219 struct vx_softc *sc = (struct vx_softc *)xsc; local 227 vx_init_locked(struct vx_softc *sc) argument 281 vx_setfilter(struct vx_softc *sc) argument 293 vx_getlink(struct vx_softc *sc) argument 325 vx_setlink(struct vx_softc *sc) argument 428 struct vx_softc *sc = ifp->if_softc; local 438 struct vx_softc *sc = ifp->if_softc; local 558 vx_status(struct vx_softc *sc) argument 599 vx_txstat(struct vx_softc *sc) argument 643 struct vx_softc *sc = voidsc; local 690 vx_read(struct vx_softc *sc) argument 807 vx_get(struct vx_softc *sc, u_int totlen) argument 897 struct vx_softc *sc = ifp->if_softc; local 966 vx_reset(struct vx_softc *sc) argument 977 struct vx_softc *sc; local 995 vx_stop(struct vx_softc *sc) argument 1021 vx_busy_eeprom(struct vx_softc *sc) argument 1042 struct vx_softc *sc = (struct vx_softc *)sp; local 1065 vx_mbuf_empty(struct vx_softc *sc) argument [all...] |
/freebsd-11-stable/sys/dev/wl/ |
H A D | if_wl.c | 330 static void wlinit_locked(struct wl_softc *sc); 334 static void wlxmt(struct wl_softc *sc, struct mbuf *m); 335 static int wldiag(struct wl_softc *sc); 336 static int wlconfig(struct wl_softc *sc); 337 static int wlcmd(struct wl_softc *sc, char *str); 338 static void wlmmcstat(struct wl_softc *sc); 339 static u_short wlbldru(struct wl_softc *sc); 340 static u_short wlmmcread(struct wl_softc *sc, u_short reg); 341 static void wlinitmmc(struct wl_softc *sc); 342 static int wlhwrst(struct wl_softc *sc); 388 struct wl_softc *sc; local 474 struct wl_softc *sc; local 575 struct wl_softc *sc = device_get_softc(device); local 606 struct wl_softc *sc = device_get_softc(device); local 628 struct wl_softc *sc = device_get_softc(device); local 647 wldump(struct wl_softc *sc) argument 674 wlinitmmc(struct wl_softc *sc) argument 783 struct wl_softc *sc = xsc; local 791 wlinit_locked(struct wl_softc *sc) argument 830 wlhwrst(struct wl_softc *sc) argument 875 wlbldcu(struct wl_softc *sc) argument 952 struct wl_softc *sc = ifp->if_softc; local 963 struct wl_softc *sc = ifp->if_softc; local 1051 wlread(struct wl_softc *sc, u_short fd_p) argument 1228 struct wl_softc *sc = ifp->if_softc; local 1472 struct wl_softc *sc = vsc; local 1494 struct wl_softc *sc = (struct wl_softc *)arg; local 1639 wlrcv(struct wl_softc *sc) argument 1697 wlrequeue(struct wl_softc *sc, u_short fd_p) argument 1758 wlxmt(struct wl_softc *sc, struct mbuf *m) argument 1910 wlbldru(struct wl_softc *sc) argument 1966 wlrustrt(struct wl_softc *sc) argument 1998 wldiag(struct wl_softc *sc) argument 2035 wlconfig(struct wl_softc *sc) argument 2142 wlcmd(struct wl_softc *sc, char *str) argument 2190 wlack(struct wl_softc *sc) argument 2214 wltbd(struct wl_softc *sc) argument 2237 wlhdwsleaze(u_short *countp, u_char **mb_pp, struct mbuf **tm_pp, struct wl_softc *sc) argument 2284 wlsftwsleaze(u_short *countp, u_char **mb_pp, struct mbuf **tm_pp, struct wl_softc *sc) argument 2308 wlmmcstat(struct wl_softc *sc) argument 2332 wlmmcread(struct wl_softc *sc, u_short reg) argument 2343 getsnr(struct wl_softc *sc) argument 2364 wlgetpsa(struct wl_softc *sc, u_char *buf) argument 2389 wlsetpsa(struct wl_softc *sc) argument 2490 wl_cache_zero(struct wl_softc *sc) argument 2506 wl_cache_store(struct wl_softc *sc, struct ether_header *eh, struct mbuf *m) argument [all...] |
/freebsd-11-stable/sys/dev/ath/ |
H A D | if_ath_rx_edma.c | 149 static int ath_edma_rxfifo_alloc(struct ath_softc *sc, HAL_RX_QUEUE qtype, 151 static int ath_edma_rxfifo_flush(struct ath_softc *sc, HAL_RX_QUEUE qtype); 152 static void ath_edma_rxbuf_free(struct ath_softc *sc, struct ath_buf *bf); 153 static void ath_edma_recv_proc_queue(struct ath_softc *sc, 155 static int ath_edma_recv_proc_deferred_queue(struct ath_softc *sc, 159 ath_edma_stoprecv(struct ath_softc *sc, int dodelay) argument 161 struct ath_hal *ah = sc->sc_ah; 163 ATH_RX_LOCK(sc); 172 sc->sc_rx_stopped = 1; 182 if (sc 200 ath_edma_reinit_fifo(struct ath_softc *sc, HAL_RX_QUEUE qtype) argument 234 ath_edma_startrecv(struct ath_softc *sc) argument 296 ath_edma_recv_sched_queue(struct ath_softc *sc, HAL_RX_QUEUE qtype, int dosched) argument 314 ath_edma_recv_sched(struct ath_softc *sc, int dosched) argument 332 ath_edma_recv_flush(struct ath_softc *sc) argument 375 ath_edma_recv_proc_queue(struct ath_softc *sc, HAL_RX_QUEUE qtype, int dosched) argument 490 ath_edma_flush_deferred_queue(struct ath_softc *sc) argument 512 ath_edma_recv_proc_deferred_queue(struct ath_softc *sc, HAL_RX_QUEUE qtype, int dosched) argument 582 struct ath_softc *sc = (struct ath_softc *) arg; local 640 ath_edma_rxbuf_init(struct ath_softc *sc, struct ath_buf *bf) argument 719 ath_edma_rxbuf_alloc(struct ath_softc *sc) argument 754 ath_edma_rxbuf_free(struct ath_softc *sc, struct ath_buf *bf) argument 780 ath_edma_rxfifo_alloc(struct ath_softc *sc, HAL_RX_QUEUE qtype, int nbufs) argument 847 ath_edma_rxfifo_flush(struct ath_softc *sc, HAL_RX_QUEUE qtype) argument 881 ath_edma_setup_rxfifo(struct ath_softc *sc, HAL_RX_QUEUE qtype) argument 921 ath_edma_rxfifo_free(struct ath_softc *sc, HAL_RX_QUEUE qtype) argument 935 ath_edma_dma_rxsetup(struct ath_softc *sc) argument 956 ath_edma_dma_rxteardown(struct ath_softc *sc) argument 977 ath_recv_setup_edma(struct ath_softc *sc) argument [all...] |
/freebsd-11-stable/sys/arm/xscale/ixp425/ |
H A D | cambria_gpio.c | 71 #define GPIO_CONF_CLR(sc, reg, mask) \ 72 GPIO_CONF_WRITE_4(sc, reg, GPIO_CONF_READ_4(sc, reg) &~ (mask)) 73 #define GPIO_CONF_SET(sc, reg, mask) \ 74 GPIO_CONF_WRITE_4(sc, reg, GPIO_CONF_READ_4(sc, reg) | (mask)) 136 i2c_getsda(struct cambria_gpio_softc *sc) argument 141 GPIO_CONF_SET(sc, IXP425_GPIO_GPOER, GPIO_I2C_SDA_BIT); 143 reg = GPIO_CONF_READ_4(sc, IXP425_GPIO_GPINR); 149 i2c_setsda(struct cambria_gpio_softc *sc, in argument 163 i2c_setscl(struct cambria_gpio_softc *sc, int val) argument 177 i2c_sendstart(struct cambria_gpio_softc *sc) argument 186 i2c_sendstop(struct cambria_gpio_softc *sc) argument 195 i2c_sendbyte(struct cambria_gpio_softc *sc, u_char data) argument 210 i2c_readbyte(struct cambria_gpio_softc *sc) argument 226 cambria_gpio_read(struct cambria_gpio_softc *sc, uint32_t pin, unsigned int *val) argument 247 cambria_gpio_write(struct cambria_gpio_softc *sc) argument 270 struct cambria_gpio_softc *sc; local 288 struct cambria_gpio_softc *sc = device_get_softc(dev); local 300 struct cambria_gpio_softc *sc = device_get_softc(dev); local 312 struct cambria_gpio_softc *sc = device_get_softc(dev); local 324 struct cambria_gpio_softc *sc = device_get_softc(dev); local 355 struct cambria_gpio_softc *sc = device_get_softc(dev); local 388 struct cambria_gpio_softc *sc = device_get_softc(dev); local 407 struct cambria_gpio_softc *sc = device_get_softc(dev); local 435 struct cambria_gpio_softc *sc = device_get_softc(dev); local 466 struct cambria_gpio_softc *sc = device_get_softc(dev); local [all...] |
/freebsd-11-stable/sys/powerpc/powermac/ |
H A D | kiic.c | 117 static void kiic_writereg(struct kiic_softc *sc, u_int, u_int); 169 struct kiic_softc *sc = device_get_softc(self); local 174 bzero(sc, sizeof(*sc)); 175 sc->sc_dev = self; 183 sc->sc_reg = bus_alloc_resource_any(self, SYS_RES_MEMORY, 185 if (sc->sc_reg == NULL) { 193 if (OF_getencprop(node, "AAPL,address-step", &sc->sc_regstep, 4) != 4) { 211 sc->sc_node = node; 218 sc 250 kiic_writereg(struct kiic_softc *sc, u_int reg, u_int val) argument 257 kiic_readreg(struct kiic_softc *sc, u_int reg) argument 263 kiic_setmode(struct kiic_softc *sc, u_int mode) argument 275 kiic_setport(struct kiic_softc *sc, u_int port) argument 287 kiic_setspeed(struct kiic_softc *sc, u_int speed) argument 301 struct kiic_softc *sc = xsc; local 356 struct kiic_softc *sc; local 437 struct kiic_softc *sc; local [all...] |
/freebsd-11-stable/sys/arm/allwinner/ |
H A D | a10_mmc.c | 142 struct a10_mmc_softc *sc; local 150 sc = device_get_softc(dev); 151 sc->a10_dev = dev; 152 sc->a10_req = NULL; 153 if (bus_alloc_resources(dev, a10_mmc_res_spec, sc->a10_res) != 0) { 157 if (bus_setup_intr(dev, sc->a10_res[A10_MMC_IRQRES], 158 INTR_TYPE_MISC | INTR_MPSAFE, NULL, a10_mmc_intr, sc, 159 &sc->a10_intrhand)) { 160 bus_release_resources(dev, a10_mmc_res_spec, sc->a10_res); 164 mtx_init(&sc 273 struct a10_mmc_softc *sc; local 284 a10_mmc_setup_dma(struct a10_mmc_softc *sc) argument 330 struct a10_mmc_softc *sc; local 359 a10_mmc_prepare_dma(struct a10_mmc_softc *sc) argument 414 a10_mmc_reset(struct a10_mmc_softc *sc) argument 448 a10_mmc_req_done(struct a10_mmc_softc *sc) argument 486 a10_mmc_req_ok(struct a10_mmc_softc *sc) argument 523 struct a10_mmc_softc *sc; local 539 struct a10_mmc_softc *sc; local 605 struct a10_mmc_softc *sc; local 663 struct a10_mmc_softc *sc; local 717 struct a10_mmc_softc *sc; local 760 a10_mmc_update_clock(struct a10_mmc_softc *sc, uint32_t clkon) argument 795 struct a10_mmc_softc *sc; local 858 struct a10_mmc_softc *sc; local 879 struct a10_mmc_softc *sc; local [all...] |
/freebsd-11-stable/sys/powerpc/ps3/ |
H A D | ps3_syscons.c | 93 struct ps3fb_softc *sc; local 103 sc = &ps3fb_softc; 122 struct ps3fb_softc *sc; local 125 sc = &ps3fb_softc; 138 lv1_gpu_memory_allocate(roundup2(sc->fb_info.fb_size, 1024*1024), 139 0, 0, 0, 0, &sc->sc_fbhandle, &fb_paddr); 140 lv1_gpu_context_allocate(sc->sc_fbhandle, 0, &sc->sc_fbcontext, 141 &sc->sc_dma_control, &sc 159 struct ps3fb_softc *sc; local [all...] |
/freebsd-11-stable/sys/dev/si/ |
H A D | si_eisa.c | 66 struct si_softc *sc; local 72 sc = device_get_softc(dev); 74 sc->sc_type = SIEISA; 76 sc->sc_port_rid = 0; 77 sc->sc_port_res = bus_alloc_resource_any(dev, SYS_RES_IOPORT, 78 &sc->sc_port_rid, RF_ACTIVE); 79 if (!sc->sc_port_res) { 83 sc->sc_iobase = rman_get_start(sc->sc_port_res); 85 sc [all...] |
/freebsd-11-stable/sys/dev/aacraid/ |
H A D | aacraid_pci.c | 148 struct aac_softc *sc; local 158 sc = device_get_softc(dev); 159 bzero(sc, sizeof(*sc)); 160 sc->aac_dev = dev; 169 command = pci_read_config(sc->aac_dev, PCIR_COMMAND, 2); 171 device_printf(sc->aac_dev, "can't enable bus-master feature\n"); 180 sc->aac_hwif = id->hwif; 181 switch(sc->aac_hwif) { 183 fwprintf(sc, HBA_FLAGS_DBG_INIT_ [all...] |
/freebsd-11-stable/sys/dev/adb/ |
H A D | adb_kbd.c | 285 struct adb_kbd_softc *sc; local 295 sc = device_get_softc(dev); 296 sc->sc_dev = dev; 297 sc->sc_mode = K_RAW; 298 sc->sc_state = 0; 299 sc->have_led_control = 0; 300 sc->buffers = 0; 305 mtx_init(&sc->sc_mutex, KBD_DRIVER_NAME, NULL, MTX_DEF); 306 cv_init(&sc->sc_cv,KBD_DRIVER_NAME); 307 callout_init(&sc 380 struct adb_kbd_softc *sc; local 413 struct adb_kbd_softc *sc; local 476 struct adb_kbd_softc *sc = xsc; local 547 struct adb_kbd_softc *sc; local 564 struct adb_kbd_softc *sc; local 591 struct adb_kbd_softc *sc; local 706 struct adb_kbd_softc *sc; local 813 struct adb_kbd_softc *sc; local 866 struct adb_kbd_softc *sc = arg1; local [all...] |