/freebsd-current/usr.sbin/bhyve/ |
H A D | pci_e82545.c | 358 static void e82545_reset(struct e82545_softc *sc, int dev); 359 static void e82545_rx_enable(struct e82545_softc *sc); 360 static void e82545_rx_disable(struct e82545_softc *sc); 362 static void e82545_tx_start(struct e82545_softc *sc); 363 static void e82545_tx_enable(struct e82545_softc *sc); 364 static void e82545_tx_disable(struct e82545_softc *sc); 380 e82545_init_eeprom(struct e82545_softc *sc) argument 385 sc->eeprom_data[NVM_MAC_ADDR] = ((uint16_t)sc->esc_mac.octet[0]) | 386 (((uint16_t)sc 443 e82545_eecd_strobe(struct e82545_softc *sc) argument 559 struct e82545_softc *sc = param; local 575 e82545_icr_assert(struct e82545_softc *sc, uint32_t bits) argument 606 e82545_ims_change(struct e82545_softc *sc, uint32_t bits) argument 634 e82545_icr_deassert(struct e82545_softc *sc, uint32_t bits) argument 652 e82545_intr_write(struct e82545_softc *sc, uint32_t offset, uint32_t value) argument 683 e82545_intr_read(struct e82545_softc *sc, uint32_t offset) argument 717 e82545_devctl(struct e82545_softc *sc, uint32_t val) argument 730 e82545_rx_update_rdba(struct e82545_softc *sc) argument 743 e82545_rx_ctl(struct e82545_softc *sc, uint32_t val) argument 779 e82545_tx_update_tdba(struct e82545_softc *sc) argument 791 e82545_tx_ctl(struct e82545_softc *sc, uint32_t val) argument 834 struct e82545_softc *sc = param; local 1053 e82545_transmit_backend(struct e82545_softc *sc, struct iovec *iov, int iovcnt) argument 1063 e82545_transmit_done(struct e82545_softc *sc, uint16_t head, uint16_t tail, uint16_t dsize, int *tdwb) argument 1078 e82545_transmit(struct e82545_softc *sc, uint16_t head, uint16_t tail, uint16_t dsize, uint16_t *rhead, int *tdwb) argument 1464 e82545_tx_run(struct e82545_softc *sc) argument 1507 struct e82545_softc *sc = param; local 1527 e82545_tx_start(struct e82545_softc *sc) argument 1535 e82545_tx_enable(struct e82545_softc *sc) argument 1542 e82545_tx_disable(struct e82545_softc *sc) argument 1551 e82545_rx_enable(struct e82545_softc *sc) argument 1558 e82545_rx_disable(struct e82545_softc *sc) argument 1567 e82545_write_ra(struct e82545_softc *sc, int reg, uint32_t wval) argument 1593 e82545_read_ra(struct e82545_softc *sc, int reg) argument 1622 e82545_write_register(struct e82545_softc *sc, uint32_t offset, uint32_t value) argument 1840 e82545_read_register(struct e82545_softc *sc, uint32_t offset) argument 2117 struct e82545_softc *sc; local 2166 struct e82545_softc *sc; local 2219 e82545_reset(struct e82545_softc *sc, int drvr) argument 2310 struct e82545_softc *sc; local 2380 struct e82545_softc *sc; local [all...] |
/freebsd-current/sys/dev/nge/ |
H A D | if_nge.c | 244 #define NGE_SETBIT(sc, reg, x) \ 245 CSR_WRITE_4(sc, reg, \ 246 CSR_READ_4(sc, reg) | (x)) 248 #define NGE_CLRBIT(sc, reg, x) \ 249 CSR_WRITE_4(sc, reg, \ 250 CSR_READ_4(sc, reg) & ~(x)) 253 CSR_WRITE_4(sc, NGE_MEAR, CSR_READ_4(sc, NGE_MEAR) | (x)) 256 CSR_WRITE_4(sc, NGE_MEAR, CSR_READ_4(sc, NGE_MEA 259 nge_delay(struct nge_softc *sc) argument 268 nge_eeprom_idle(struct nge_softc *sc) argument 295 nge_eeprom_putbyte(struct nge_softc *sc, int addr) argument 322 nge_eeprom_getword(struct nge_softc *sc, int addr, uint16_t *dest) argument 365 nge_read_eeprom(struct nge_softc *sc, caddr_t dest, int off, int cnt) argument 383 struct nge_softc *sc; local 401 struct nge_softc *sc; local 413 struct nge_softc *sc; local 463 struct nge_softc *sc; local 511 struct nge_softc *sc; local 663 struct nge_softc *sc = arg; local 683 nge_rxfilter(struct nge_softc *sc) argument 749 nge_reset(struct nge_softc *sc) argument 820 struct nge_softc *sc; local 986 struct nge_softc *sc; local 1045 nge_dma_alloc(struct nge_softc *sc) argument 1218 nge_dma_free(struct nge_softc *sc) argument 1294 nge_list_tx_init(struct nge_softc *sc) argument 1330 nge_list_rx_init(struct nge_softc *sc) argument 1359 nge_discard_rxbuf(struct nge_softc *sc, int idx) argument 1372 nge_newbuf(struct nge_softc *sc, int idx) argument 1436 nge_rxeof(struct nge_softc *sc) argument 1612 nge_txeof(struct nge_softc *sc) argument 1674 struct nge_softc *sc; local 1696 nge_stats_update(struct nge_softc *sc) argument 1755 struct nge_softc *sc; local 1804 struct nge_softc *sc; local 1876 nge_encap(struct nge_softc *sc, struct mbuf **m_head) argument 1983 struct nge_softc *sc; local 1994 struct nge_softc *sc; local 2047 struct nge_softc *sc = xsc; local 2055 nge_init_locked(struct nge_softc *sc) argument 2228 struct nge_softc *sc; local 2250 struct nge_softc *sc; local 2265 struct nge_softc *sc = if_getsoftc(ifp); local 2406 nge_watchdog(struct nge_softc *sc) argument 2427 nge_stop_mac(struct nge_softc *sc) argument 2457 nge_stop(struct nge_softc *sc) argument 2518 nge_wol(struct nge_softc *sc) argument 2589 struct nge_softc *sc; local 2605 struct nge_softc *sc; local 2639 nge_sysctl_node(struct nge_softc *sc) argument [all...] |
/freebsd-current/sys/dev/my/ |
H A D | if_my.c | 140 #define MY_SETBIT(sc, reg, x) CSR_WRITE_4(sc, reg, CSR_READ_4(sc, reg) | (x)) 141 #define MY_CLRBIT(sc, reg, x) CSR_WRITE_4(sc, reg, CSR_READ_4(sc, reg) & ~(x)) 166 my_send_cmd_to_phy(struct my_softc * sc, int opcode, int regad) argument 172 MY_LOCK_ASSERT(sc); 175 miir = CSR_READ_4(sc, MY_MANAGEMENT); 184 CSR_WRITE_4(sc, MY_MANAGEMEN 218 my_phy_readreg(struct my_softc * sc, int reg) argument 261 my_phy_writereg(struct my_softc * sc, int reg, int data) argument 317 my_setmulti(struct my_softc * sc) argument 355 my_autoneg_xmit(struct my_softc * sc) argument 375 struct my_softc *sc; local 386 my_autoneg_mii(struct my_softc * sc, int flag, int verbose) argument 552 my_getmode_mii(struct my_softc * sc) argument 649 my_setmode_mii(struct my_softc * sc, int media) argument 709 my_setcfg(struct my_softc * sc, int bmcr) argument 743 my_reset(struct my_softc * sc) argument 794 struct my_softc *sc; local 978 struct my_softc *sc; local 1004 my_list_tx_init(struct my_softc * sc) argument 1032 my_list_rx_init(struct my_softc * sc) argument 1066 my_newbuf(struct my_softc * sc, struct my_chain_onefrag * c) argument 1095 my_rxeof(struct my_softc * sc) argument 1177 my_txeof(struct my_softc * sc) argument 1231 my_txeoc(struct my_softc * sc) argument 1256 struct my_softc *sc; local 1318 my_encap(struct my_softc * sc, struct my_chain * c, struct mbuf * m_head) argument 1376 struct my_softc *sc; local 1387 struct my_softc *sc; local 1457 struct my_softc *sc = xsc; local 1465 my_init_locked(struct my_softc *sc) argument 1562 struct my_softc *sc; local 1587 struct my_softc *sc; local 1644 struct my_softc *sc = if_getsoftc(ifp); local 1679 struct my_softc *sc; local 1704 my_stop(struct my_softc * sc) argument 1753 struct my_softc *sc; local [all...] |
/freebsd-current/sys/dev/qcom_mdio/ |
H A D | qcom_mdio_ipq4018.c | 80 struct qcom_mdio_ipq4018_softc *sc = device_get_softc(dev); local 82 if (sc->sc_mem_res != NULL) 83 bus_release_resource(dev, SYS_RES_MEMORY, sc->sc_mem_rid, 84 sc->sc_mem_res); 85 mtx_destroy(&sc->sc_mtx); 91 qcom_mdio_sysctl_attach(struct qcom_mdio_ipq4018_softc *sc) argument 93 struct sysctl_ctx_list *ctx = device_get_sysctl_ctx(sc->sc_dev); 94 struct sysctl_oid *tree = device_get_sysctl_tree(sc->sc_dev); 97 "debug", CTLFLAG_RW, &sc->sc_debug, 0, 105 struct qcom_mdio_ipq4018_softc *sc local 158 qcom_mdio_ipq4018_wait(struct qcom_mdio_ipq4018_softc *sc) argument 179 qcom_mdio_ipq4018_set_phy_reg_addr(struct qcom_mdio_ipq4018_softc *sc, int phy, int reg) argument 193 struct qcom_mdio_ipq4018_softc *sc = device_get_softc(dev); local 235 struct qcom_mdio_ipq4018_softc *sc = device_get_softc(dev); local [all...] |
/freebsd-current/sys/arm/mv/armada38x/ |
H A D | armada38x_rtc.c | 69 #define MV_RTC_LOCK(sc) mtx_lock_spin(&(sc)->mutex) 70 #define MV_RTC_UNLOCK(sc) mtx_unlock_spin(&(sc)->mutex) 115 static inline uint32_t mv_rtc_reg_read(struct mv_rtc_softc *sc, 117 static inline int mv_rtc_reg_write(struct mv_rtc_softc *sc, bus_size_t off, 119 static inline void mv_rtc_configure_bus_a38x(struct mv_rtc_softc *sc); 120 static inline void mv_rtc_configure_bus_a8k(struct mv_rtc_softc *sc); 153 struct mv_rtc_softc *sc; local 155 sc 205 struct mv_rtc_softc *sc; local 239 struct mv_rtc_softc *sc; local 253 struct mv_rtc_softc *sc; local 282 struct mv_rtc_softc *sc; local 313 mv_rtc_reg_read(struct mv_rtc_softc *sc, bus_size_t off) argument 325 mv_rtc_reg_write(struct mv_rtc_softc *sc, bus_size_t off, uint32_t val) argument 335 mv_rtc_configure_bus_a38x(struct mv_rtc_softc *sc) argument 347 mv_rtc_configure_bus_a8k(struct mv_rtc_softc *sc) argument [all...] |
/freebsd-current/sys/dev/bxe/ |
H A D | bxe.h | 181 #define BRB_SIZE(sc) (CHIP_IS_E3(sc) ? 1024 : 512) 182 #define MAX_AGG_QS(sc) (CHIP_IS_E1(sc) ? \ 185 #define FW_DROP_LEVEL(sc) (3 + MAX_SPQ_PENDING + MAX_AGG_QS(sc)) 234 #define NUM_SGE_REQ(sc) \ 235 (MAX_AGG_QS(sc) + (BRB_SIZE(sc) - MAX_AGG_QS(sc)) / 461 struct bxe_softc *sc; member in struct:bxe_dma 531 struct bxe_softc *sc; member in struct:bxe_fastpath 2268 reg_poll(struct bxe_softc *sc, uint32_t reg, uint32_t expected, int ms, int wait) argument 2296 bxe_igu_ack_sb_gen(struct bxe_softc *sc, uint8_t igu_sb_id, uint8_t segment, uint16_t index, uint8_t op, uint8_t update, uint32_t igu_addr) argument 2323 bxe_hc_ack_sb(struct bxe_softc *sc, uint8_t sb_id, uint8_t storm, uint16_t index, uint8_t op, uint8_t update) argument 2350 bxe_ack_sb(struct bxe_softc *sc, uint8_t igu_sb_id, uint8_t storm, uint16_t index, uint8_t op, uint8_t update) argument 2375 bxe_hc_ack_int(struct bxe_softc *sc) argument 2386 bxe_igu_ack_int(struct bxe_softc *sc) argument 2399 bxe_ack_int(struct bxe_softc *sc) argument 2410 func_by_vn(struct bxe_softc *sc, int vn) argument 2423 struct bxe_softc *sc = fp->sc; local [all...] |
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-current/sys/dev/ntb/ntb_hw/ |
H A D | ntb_hw_plx.c | 110 #define PLX_NTX_BASE(sc) ((sc)->ntx ? PLX_NT1_BASE : PLX_NT0_BASE) 114 #define PLX_NTX_OUR_BASE(sc) \ 115 (PLX_NTX_BASE(sc) + ((sc)->link ? PLX_NTX_LINK_OFFSET : 0)) 116 #define PLX_NTX_PEER_BASE(sc) \ 117 (PLX_NTX_BASE(sc) + ((sc)->link ? 0 : PLX_NTX_LINK_OFFSET)) 120 #define NTX_READ(sc, reg) \ 121 bus_read_4((sc) 172 struct ntb_plx_softc *sc = device_get_softc(dev); local 243 struct ntb_plx_softc *sc = device_get_softc(dev); local 271 struct ntb_plx_softc *sc = device_get_softc(dev); local 306 struct ntb_plx_softc *sc = device_get_softc(dev); local 321 struct ntb_plx_softc *sc = device_get_softc(dev); local 481 struct ntb_plx_softc *sc = device_get_softc(dev); local 504 struct ntb_plx_softc *sc = device_get_softc(dev); local 519 struct ntb_plx_softc *sc = device_get_softc(dev); local 556 struct ntb_plx_softc *sc = device_get_softc(dev); local 580 struct ntb_plx_softc *sc = device_get_softc(dev); local 597 struct ntb_plx_softc *sc = device_get_softc(dev); local 612 struct ntb_plx_softc *sc = device_get_softc(dev); local 623 ntb_plx_user_mw_to_idx(struct ntb_plx_softc *sc, unsigned uidx, unsigned *sp) argument 641 struct ntb_plx_softc *sc = device_get_softc(dev); local 708 struct ntb_plx_softc *sc = device_get_softc(dev); local 799 struct ntb_plx_softc *sc = device_get_softc(dev); local 826 struct ntb_plx_softc *sc = device_get_softc(dev); local 841 struct ntb_plx_softc *sc = device_get_softc(dev); local 873 struct ntb_plx_softc *sc = device_get_softc(dev); local 881 struct ntb_plx_softc *sc = device_get_softc(dev); local 914 struct ntb_plx_softc *sc = device_get_softc(dev); local 924 struct ntb_plx_softc *sc = device_get_softc(dev); local 941 struct ntb_plx_softc *sc = device_get_softc(dev); local 961 struct ntb_plx_softc *sc = device_get_softc(dev); local 1004 struct ntb_plx_softc *sc = device_get_softc(dev); local 1012 struct ntb_plx_softc *sc = device_get_softc(dev); local 1020 struct ntb_plx_softc *sc = device_get_softc(dev); local 1028 struct ntb_plx_softc *sc = device_get_softc(dev); local 1036 struct ntb_plx_softc *sc = device_get_softc(dev); local 1055 struct ntb_plx_softc *sc = device_get_softc(dev); local [all...] |
/freebsd-current/sys/dev/altera/sdcard/ |
H A D | altera_sdcard.h | 69 #define ALTERA_SDCARD_LOCK(sc) mtx_lock(&(sc)->as_lock) 70 #define ALTERA_SDCARD_LOCK_ASSERT(sc) mtx_assert(&(sc)->as_lock, MA_OWNED) 71 #define ALTERA_SDCARD_LOCK_DESTROY(sc) mtx_destroy(&(sc)->as_lock) 72 #define ALTERA_SDCARD_LOCK_INIT(sc) mtx_init(&(sc)->as_lock, \ 74 #define ALTERA_SDCARD_UNLOCK(sc) mtx_unlock(&(sc) [all...] |
/freebsd-current/sys/dev/altera/jtag_uart/ |
H A D | altera_jtag_uart_nexus.c | 70 struct altera_jtag_uart_softc *sc; local 74 sc = device_get_softc(dev); 75 sc->ajus_dev = dev; 76 sc->ajus_unit = device_get_unit(dev); 77 sc->ajus_mem_rid = 0; 78 sc->ajus_mem_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, 79 &sc->ajus_mem_rid, RF_ACTIVE); 80 if (sc->ajus_mem_res == NULL) { 90 sc->ajus_irq_rid = 0; 91 sc 112 struct altera_jtag_uart_softc *sc; local [all...] |
H A D | altera_jtag_uart_fdt.c | 79 struct altera_jtag_uart_softc *sc; local 83 sc = device_get_softc(dev); 84 sc->ajus_dev = dev; 85 sc->ajus_unit = device_get_unit(dev); 86 sc->ajus_mem_rid = 0; 87 sc->ajus_mem_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, 88 &sc->ajus_mem_rid, RF_ACTIVE); 89 if (sc->ajus_mem_res == NULL) { 99 sc->ajus_irq_rid = 0; 100 sc 121 struct altera_jtag_uart_softc *sc; local [all...] |
/freebsd-current/sys/dev/smbus/ |
H A D | smbconf.c | 48 struct smbus_softc *sc = device_get_softc(bus); local 51 mtx_lock(&sc->lock); 52 if (sc->owner) 53 SMBUS_INTR(sc->owner, devaddr, low, high, error); 54 mtx_unlock(&sc->lock); 87 smbus_poll(struct smbus_softc *sc, int how) argument 93 error = msleep(sc, &sc->lock, SMBPRI|PCATCH, "smbreq", 0); 97 error = msleep(sc, &sc 118 struct smbus_softc *sc = device_get_softc(bus); local 162 struct smbus_softc *sc = device_get_softc(bus); local [all...] |
/freebsd-current/sys/arm/ti/ |
H A D | ti_spi.c | 79 struct ti_spi_softc *sc; local 82 sc = device_get_softc(dev); 83 reg = TI_SPI_READ(sc, MCSPI_SYSCONFIG); 85 reg = TI_SPI_READ(sc, MCSPI_SYSSTATUS); 87 reg = TI_SPI_READ(sc, MCSPI_IRQSTATUS); 89 reg = TI_SPI_READ(sc, MCSPI_IRQENABLE); 91 reg = TI_SPI_READ(sc, MCSPI_MODULCTRL); 93 for (i = 0; i < sc->sc_numcs; i++) { 94 ctrl = TI_SPI_READ(sc, MCSPI_CTRL_CH(i)); 95 conf = TI_SPI_READ(sc, MCSPI_CONF_C 119 ti_spi_set_clock(struct ti_spi_softc *sc, int ch, int freq) argument 167 struct ti_spi_softc *sc; local 274 struct ti_spi_softc *sc; local 299 ti_spi_fill_fifo(struct ti_spi_softc *sc) argument 332 ti_spi_drain_fifo(struct ti_spi_softc *sc) argument 367 struct ti_spi_softc *sc; local 398 ti_spi_pio_transfer(struct ti_spi_softc *sc) argument 428 struct ti_spi_softc *sc; local [all...] |
/freebsd-current/sys/dev/aac/ |
H A D | aac_disk.c | 94 struct aac_disk *sc; local 98 sc = (struct aac_disk *)dp->d_drv1; 100 if (sc == NULL) { 106 if (sc->ad_controller->aac_state & AAC_STATE_SUSPEND) { 107 device_printf(sc->ad_controller->aac_dev, 109 sc->ad_controller->aac_state); 113 sc->ad_flags |= AAC_DISK_OPEN; 123 struct aac_disk *sc; local 127 sc = (struct aac_disk *)dp->d_drv1; 129 if (sc 142 struct aac_disk *sc; local 236 struct aac_softc *sc; local 364 struct aac_disk *sc; local 426 struct aac_disk *sc; local [all...] |
/freebsd-current/sys/dev/stge/ |
H A D | if_stge.c | 250 struct stge_softc *sc; local 253 sc = device_get_softc(dev); 255 val = CSR_READ_1(sc, STGE_PhyCtrl); 256 CSR_BARRIER(sc, STGE_PhyCtrl, 1, 269 struct stge_softc *sc; local 271 sc = device_get_softc(dev); 273 CSR_WRITE_1(sc, STGE_PhyCtrl, val); 274 CSR_BARRIER(sc, STGE_PhyCtrl, 1, 286 struct stge_softc *sc; local 289 sc 313 struct stge_softc *sc; local 331 struct stge_softc *sc; local 345 struct stge_softc *sc; local 364 struct stge_softc *sc; local 375 stge_eeprom_wait(struct stge_softc *sc) argument 393 stge_read_eeprom(struct stge_softc *sc, int offset, uint16_t *data) argument 430 struct stge_softc *sc; local 660 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 1832 struct stge_softc *sc; local 1865 stge_stats_update(struct stge_softc *sc) argument 1899 stge_reset(struct stge_softc *sc, uint32_t how) argument 1971 struct stge_softc *sc; local 1980 stge_init_locked(struct stge_softc *sc) argument 2176 stge_vlan_setup(struct stge_softc *sc) argument 2202 stge_stop(struct stge_softc *sc) argument 2275 stge_start_tx(struct stge_softc *sc) argument 2297 stge_start_rx(struct stge_softc *sc) argument 2319 stge_stop_tx(struct stge_softc *sc) argument 2340 stge_stop_rx(struct stge_softc *sc) argument 2361 stge_init_tx_ring(struct stge_softc *sc) argument 2395 stge_init_rx_ring(struct stge_softc *sc) argument 2430 stge_newbuf(struct stge_softc *sc, int idx) argument 2484 stge_set_filter(struct stge_softc *sc) argument 2522 stge_set_multi(struct stge_softc *sc) argument [all...] |
/freebsd-current/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 1215 envy24ht_checkintr(struct sc_info *sc, int dir) argument 1248 envy24ht_start(struct sc_info *sc, int dir) argument 1272 envy24ht_stop(struct sc_info *sc, int dir) argument 1472 struct sc_info *sc = (struct sc_info *)devinfo; local 1519 struct sc_info *sc = ch->parent; local 1538 struct sc_info *sc = ch->parent; local 1672 struct sc_info *sc = ch->parent; local 1782 struct sc_info *sc = ch->parent; local 1804 struct sc_info *sc = ch->parent; local 1848 struct sc_info *sc = mix_getdevinfo(m); local 1875 struct sc_info *sc = mix_getdevinfo(m); local 1889 struct sc_info *sc = mix_getdevinfo(m); local 1903 struct sc_info *sc = mix_getdevinfo(m); local 1945 struct sc_info *sc = mix_getdevinfo(m); local 1972 struct sc_info *sc = (struct sc_info *)p; local 2074 struct sc_info *sc = arg; local 2092 struct sc_info *sc = arg; local 2108 envy24ht_dmafree(struct sc_info *sc) argument 2143 envy24ht_dmainit(struct sc_info *sc) argument 2188 envy24ht_putcfg(struct sc_info *sc) argument 2280 envy24ht_init(struct sc_info *sc) argument 2388 envy24ht_alloc_resource(struct sc_info *sc) argument 2443 struct sc_info *sc; local 2538 struct sc_info *sc; local [all...] |
/freebsd-current/sys/dev/mii/ |
H A D | e1000phy.c | 133 struct mii_softc *sc; local 135 sc = device_get_softc(dev); 140 (sc->mii_flags & MIIF_MACPRIV0) != 0) 141 sc->mii_flags |= MIIF_PHYPRIV0; 143 switch (sc->mii_mpd_model) { 146 if (PHY_READ(sc, E1000_ESSR) & E1000_ESSR_FIBER_LINK) 147 sc->mii_flags |= MIIF_HAVEFIBER; 162 PHY_WRITE(sc, E1000_EADR, 0); 166 PHY_RESET(sc); 168 sc 184 e1000phy_reset(struct mii_softc *sc) argument 304 e1000phy_service(struct mii_softc *sc, struct mii_data *mii, int cmd) argument 409 e1000phy_status(struct mii_softc *sc) argument 472 e1000phy_mii_phy_auto(struct mii_softc *sc, int media) argument [all...] |
/freebsd-current/sys/arm/nvidia/tegra124/ |
H A D | tegra124_cpufreq.c | 222 freq_to_voltage(struct tegra124_cpufreq_softc *sc, uint64_t freq) argument 230 for (i = 0; i < sc->cpu_def->speedo_nitems; i++) { 231 if (sc->cpu_def->speedo_tbl[i].freq >= freq) { 232 ent = &sc->cpu_def->speedo_tbl[i]; 237 ent = &sc->cpu_def->speedo_tbl[sc->cpu_def->speedo_nitems - 1]; 238 scale = sc->cpu_def->speedo_scale; 241 uv = DIV_ROUND_CLOSEST(ent->c2 * sc->speedo_value, scale); 242 uv = DIV_ROUND_CLOSEST((uv + ent->c1) * sc->speedo_value, scale) + 244 step_uvolt = sc 260 build_speed_points(struct tegra124_cpufreq_softc *sc) argument 274 get_speed_point(struct tegra124_cpufreq_softc *sc, uint64_t freq) argument 292 struct tegra124_cpufreq_softc *sc; local 316 set_cpu_freq(struct tegra124_cpufreq_softc *sc, uint64_t freq) argument 368 struct tegra124_cpufreq_softc *sc; local 391 struct tegra124_cpufreq_softc *sc; local 421 get_fdt_resources(struct tegra124_cpufreq_softc *sc, phandle_t node) argument 496 struct tegra124_cpufreq_softc *sc; local 549 struct tegra124_cpufreq_softc *sc; local [all...] |
/freebsd-current/sys/dev/virtio/pci/ |
H A D | virtio_pci_legacy.c | 99 static bool vtpci_legacy_setup_msix(struct vtpci_legacy_softc *sc); 100 static void vtpci_legacy_teardown_msix(struct vtpci_legacy_softc *sc); 114 #define vtpci_legacy_read_config_1(sc, o) \ 115 bus_read_1((sc)->vtpci_res, (o)) 116 #define vtpci_legacy_write_config_1(sc, o, v) \ 117 bus_write_1((sc)->vtpci_res, (o), (v)) 124 #define vtpci_legacy_read_config_2(sc, o) \ 125 le16toh(bus_read_2((sc)->vtpci_res, (o))) 126 #define vtpci_legacy_read_config_4(sc, o) \ 127 le32toh(bus_read_4((sc) 218 struct vtpci_legacy_softc *sc; local 261 struct vtpci_legacy_softc *sc; local 308 struct vtpci_legacy_softc *sc; local 323 struct vtpci_legacy_softc *sc; local 346 struct vtpci_legacy_softc *sc; local 366 struct vtpci_legacy_softc *sc; local 382 struct vtpci_legacy_softc *sc; local 393 struct vtpci_legacy_softc *sc; local 405 struct vtpci_legacy_softc *sc; local 421 struct vtpci_legacy_softc *sc; local 461 struct vtpci_legacy_softc *sc; local 471 struct vtpci_legacy_softc *sc; local 480 vtpci_legacy_get_status(struct vtpci_legacy_softc *sc) argument 486 vtpci_legacy_set_status(struct vtpci_legacy_softc *sc, uint8_t status) argument 498 struct vtpci_legacy_softc *sc; local 516 struct vtpci_legacy_softc *sc; local 531 vtpci_legacy_setup_msix(struct vtpci_legacy_softc *sc) argument 558 vtpci_legacy_teardown_msix(struct vtpci_legacy_softc *sc) argument 579 vtpci_legacy_alloc_resources(struct vtpci_legacy_softc *sc) argument 606 vtpci_legacy_free_resources(struct vtpci_legacy_softc *sc) argument 620 vtpci_legacy_probe_and_attach_child(struct vtpci_legacy_softc *sc) argument 646 vtpci_legacy_register_msix(struct vtpci_legacy_softc *sc, int offset, struct vtpci_interrupt *intr) argument 664 struct vtpci_legacy_softc *sc; local 683 struct vtpci_legacy_softc *sc; local 700 vtpci_legacy_reset(struct vtpci_legacy_softc *sc) argument 711 vtpci_legacy_select_virtqueue(struct vtpci_legacy_softc *sc, int idx) argument 719 struct vtpci_legacy_softc *sc; local 729 struct vtpci_legacy_softc *sc; local 746 struct vtpci_legacy_softc *sc; local 758 struct vtpci_legacy_softc *sc; local [all...] |
/freebsd-current/sys/dev/usb/wlan/ |
H A D | if_run.c | 783 struct run_softc *sc = device_get_softc(self); local 785 struct ieee80211com *ic = &sc->sc_ic; 791 sc->sc_udev = uaa->device; 792 sc->sc_dev = self; 794 sc->sc_flags |= RUN_FLAG_FWLOAD_NEEDED; 796 mtx_init(&sc->sc_mtx, device_get_nameunit(sc->sc_dev), 798 mbufq_init(&sc->sc_snd, ifqmaxlen); 803 sc->sc_xfer, run_config, RUN_N_XFER, sc, 930 run_drain_mbufq(struct run_softc *sc) argument 947 struct run_softc *sc = device_get_softc(self); local 989 struct run_softc *sc = ic->ic_softc; local 1103 struct run_softc *sc; local 1146 struct run_softc *sc = arg; local 1174 run_setup_tx_list(struct run_softc *sc, struct run_endpoint_queue *pq) argument 1192 run_unsetup_tx_list(struct run_softc *sc, struct run_endpoint_queue *pq) argument 1216 run_load_microcode(struct run_softc *sc) argument 1314 run_reset(struct run_softc *sc) argument 1327 run_do_request(struct run_softc *sc, struct usb_device_request *req, void *data) argument 1349 run_read(struct run_softc *sc, uint16_t reg, uint32_t *val) argument 1363 run_read_region_1(struct run_softc *sc, uint16_t reg, uint8_t *buf, int len) argument 1377 run_write_2(struct run_softc *sc, uint16_t reg, uint16_t val) argument 1391 run_write(struct run_softc *sc, uint16_t reg, uint32_t val) argument 1401 run_write_region_1(struct run_softc *sc, uint16_t reg, const uint8_t *buf, int len) argument 1446 run_set_region_4(struct run_softc *sc, uint16_t reg, uint32_t val, int len) argument 1457 run_efuse_read(struct run_softc *sc, uint16_t addr, uint16_t *val, int count) argument 1505 run_efuse_read_2(struct run_softc *sc, uint16_t addr, uint16_t *val) argument 1511 run_eeprom_read_2(struct run_softc *sc, uint16_t addr, uint16_t *val) argument 1533 run_srom_read(struct run_softc *sc, uint16_t addr, uint16_t *val) argument 1540 run_rt2870_rf_write(struct run_softc *sc, uint32_t val) argument 1558 run_rt3070_rf_read(struct run_softc *sc, uint8_t reg, uint8_t *val) argument 1590 run_rt3070_rf_write(struct run_softc *sc, uint8_t reg, uint8_t val) argument 1609 run_bbp_read(struct run_softc *sc, uint8_t reg, uint8_t *val) argument 1641 run_bbp_write(struct run_softc *sc, uint8_t reg, uint8_t val) argument 1663 run_mcu_cmd(struct run_softc *sc, uint8_t cmd, uint16_t arg) argument 1726 run_rt3593_get_txpower(struct run_softc *sc) argument 1783 run_get_txpower(struct run_softc *sc) argument 1847 run_read_eeprom(struct run_softc *sc) argument 2122 struct run_softc *sc = ic->ic_softc; local 2171 struct run_softc *sc = ic->ic_softc; local 2299 struct run_softc *sc = ic->ic_softc; local 2359 struct run_softc *sc = ic->ic_softc; local 2482 struct run_softc *sc = ic->ic_softc; local 2516 struct run_softc *sc = cmdq->arg1; local 2551 struct run_softc *sc = ic->ic_softc; local 2579 struct run_softc *sc = arg; local 2590 struct run_softc *sc = arg; local 2623 struct run_softc *sc = arg; local 2681 struct run_softc *sc = arg; local 2756 struct run_softc *sc = ni->ni_vap->iv_ic->ic_softc; local 2773 struct run_softc *sc = ic->ic_softc; local 2824 run_maxrssi_chain(struct run_softc *sc, const struct rt2860_rxwi *rxwi) argument 2843 struct run_softc *sc = vap->iv_ic->ic_softc; local 2868 run_rx_frame(struct run_softc *sc, struct mbuf *m, uint32_t dmalen) argument 3012 struct run_softc *sc = usbd_xfer_softc(xfer); local 3175 struct run_softc *sc = usbd_xfer_softc(xfer); local 3348 run_set_tx_desc(struct run_softc *sc, struct run_tx_data *data) argument 3418 run_tx(struct run_softc *sc, struct mbuf *m, struct ieee80211_node *ni) argument 3580 run_tx_mgt(struct run_softc *sc, struct mbuf *m, struct ieee80211_node *ni) argument 3643 run_sendprot(struct run_softc *sc, const struct mbuf *m, struct ieee80211_node *ni, int prot, int rate) argument 3710 run_tx_param(struct run_softc *sc, struct mbuf *m, struct ieee80211_node *ni, const struct ieee80211_bpf_params *params) argument 3789 struct run_softc *sc = ni->ni_ic->ic_softc; local 3828 struct run_softc *sc = ic->ic_softc; local 3848 run_start(struct run_softc *sc) argument 3870 struct run_softc *sc = ic->ic_softc; local 3893 run_iq_calib(struct run_softc *sc, u_int chan) argument 3994 run_set_agc(struct run_softc *sc, uint8_t agc) argument 4010 run_select_chan_group(struct run_softc *sc, int group) argument 4154 run_rt2870_set_chan(struct run_softc *sc, u_int chan) argument 4225 run_rt3070_set_chan(struct run_softc *sc, u_int chan) argument 4290 run_rt3572_set_chan(struct run_softc *sc, u_int chan) argument 4440 run_rt3593_set_chan(struct run_softc *sc, u_int chan) argument 4600 run_rt5390_set_chan(struct run_softc *sc, u_int chan) argument 4710 run_rt5592_set_chan(struct run_softc *sc, u_int chan) argument 4847 run_set_rx_antenna(struct run_softc *sc, int aux) argument 4874 run_set_chan(struct run_softc *sc, struct ieee80211_channel *c) argument 4921 struct run_softc *sc = ic->ic_softc; local 4934 struct run_softc *sc = ic->ic_softc; local 4961 struct run_softc *sc = ic->ic_softc; local 4977 struct run_softc *sc = ic->ic_softc; local 4999 struct run_softc *sc = ic->ic_softc; local 5042 struct run_softc *sc = ic->ic_softc; local 5089 struct run_softc *sc = ic->ic_softc; local 5103 struct run_softc *sc = ic->ic_softc; local 5127 struct run_softc *sc = vap->iv_ic->ic_softc; local 5145 run_reset_livelock(struct run_softc *sc) argument 5169 run_update_promisc_locked(struct run_softc *sc) argument 5188 struct run_softc *sc = ic->ic_softc; local 5199 run_enable_tsf_sync(struct run_softc *sc) argument 5241 run_enable_tsf(struct run_softc *sc) argument 5253 run_disable_tsf(struct run_softc *sc) argument 5265 run_get_tsf(struct run_softc *sc, uint64_t *buf) argument 5272 run_enable_mrr(struct run_softc *sc) argument 5296 run_set_txpreamble(struct run_softc *sc) argument 5310 run_set_basicrates(struct run_softc *sc) argument 5324 run_set_leds(struct run_softc *sc, uint16_t which) argument 5331 run_set_bssid(struct run_softc *sc, const uint8_t *bssid) argument 5340 run_set_macaddr(struct run_softc *sc, const uint8_t *addr) argument 5351 struct run_softc *sc = ic->ic_softc; local 5368 struct run_softc *sc = ic->ic_softc; local 5383 run_rssi2dbm(struct run_softc *sc, uint8_t rssi, uint8_t rxchain) argument 5407 run_rt5390_bbp_init(struct run_softc *sc) argument 5465 run_bbp_init(struct run_softc *sc) argument 5515 run_rt3070_rf_init(struct run_softc *sc) argument 5659 run_rt3593_rf_init(struct run_softc *sc) argument 5708 run_rt5390_rf_init(struct run_softc *sc) argument 5772 run_rt3070_filter_calib(struct run_softc *sc, uint8_t init, uint8_t target, uint8_t *val) argument 5837 run_rt3070_rf_setup(struct run_softc *sc) argument 5916 run_rt3593_rf_setup(struct run_softc *sc) argument 5986 run_rt5390_rf_setup(struct run_softc *sc) argument 6033 run_txrx_enable(struct run_softc *sc) argument 6079 run_adjust_freq_offset(struct run_softc *sc) argument 6093 run_init_locked(struct run_softc *sc) argument 6320 struct run_softc *sc = (struct run_softc *)arg; local 6400 run_delay(struct run_softc *sc, u_int ms) argument [all...] |
/freebsd-current/sys/dev/rtwn/rtl8821a/usb/ |
H A D | r21au_dfs.c | 64 r21au_dfs_radar_disable(struct rtwn_softc *sc) argument 66 rtwn_bb_setbits(sc, 0x924, 0x00008000, 0); 70 r21au_dfs_radar_is_enabled(struct rtwn_softc *sc) argument 72 return !!(rtwn_bb_read(sc, 0x924) & 0x00008000); 76 r21au_dfs_radar_reset(struct rtwn_softc *sc) argument 80 error = rtwn_bb_setbits(sc, 0x924, 0x00008000, 0); 84 return (rtwn_bb_setbits(sc, 0x924, 0, 0x00008000)); 88 r21au_dfs_radar_enable(struct rtwn_softc *sc) argument 95 RTWN_ASSERT_LOCKED(sc); 97 RTWN_CHK(rtwn_bb_setbits(sc, 110 r21au_dfs_radar_is_detected(struct rtwn_softc *sc) argument 118 struct rtwn_softc *sc = arg; local 168 struct rtwn_softc *sc = ic->ic_softc; local 225 struct rtwn_softc *sc = ic->ic_softc; local 251 struct rtwn_softc *sc = ic->ic_softc; local [all...] |
/freebsd-current/sys/dev/etherswitch/ip17x/ |
H A D | ip175c.c | 58 ip175c_reset(struct ip17x_softc *sc) argument 63 if (ip17x_writephy(sc->sc_dev, IP175C_RESET_PHY, IP175C_RESET_REG, 69 data = ip17x_readphy(sc->sc_dev, IP175C_MODE_PHY, IP175C_MODE_REG); 71 if (ip17x_writephy(sc->sc_dev, IP175C_MODE_PHY, IP175C_MODE_REG, 80 ip175c_port_vlan_setup(struct ip17x_softc *sc) argument 86 KASSERT(sc->cpuport == 5, ("cpuport != 5 not supported for IP175C")); 87 KASSERT(sc->numports == 6, ("numports != 6 not supported for IP175C")); 91 for (i = 0; i < sc->info.es_nports; i++) { 92 phy = sc->portphy[i]; 93 v = &sc 122 ip175c_dot1q_vlan_setup(struct ip17x_softc *sc) argument 180 ip175c_hw_setup(struct ip17x_softc *sc) argument 198 ip175c_set_vlan_mode(struct ip17x_softc *sc, uint32_t mode) argument 228 ip175c_get_vlan_mode(struct ip17x_softc *sc) argument 235 ip175c_attach(struct ip17x_softc *sc) argument [all...] |
/freebsd-current/sys/arm/nvidia/ |
H A D | tegra_rtc.c | 81 mtx_sleep(sc, &sc->mtx, 0, "rtcwait", timeout); 106 tegra_rtc_wait(struct tegra_rtc_softc *sc) argument 111 if ((RD4(sc, RTC_BUSY) & RTC_BUSY_STATUS) == 0) 116 device_printf(sc->dev, "Device busy timeouted\n"); 127 struct tegra_rtc_softc *sc; local 131 sc = device_get_softc(dev); 133 LOCK(sc); 134 msec = RD4(sc, RTC_MILLI_SECONDS); 135 sec = RD4(sc, RTC_SHADOW_SECOND 146 struct tegra_rtc_softc *sc; local 163 struct tegra_rtc_softc *sc; local 189 struct tegra_rtc_softc *sc; local 268 struct tegra_rtc_softc *sc; local [all...] |
/freebsd-current/sys/dev/et/ |
H A D | if_et.c | 221 struct et_softc *sc; local 227 sc = device_get_softc(dev); 228 sc->dev = dev; 229 mtx_init(&sc->sc_mtx, device_get_nameunit(dev), MTX_NETWORK_LOCK, 231 callout_init_mtx(&sc->sc_tick, &sc->sc_mtx, 0); 233 ifp = sc->ifp = if_alloc(IFT_ETHER); 243 sc->sc_rx_intr_npkts = et_rx_intr_npkts; 244 sc->sc_rx_intr_delay = et_rx_intr_delay; 245 sc 367 struct et_softc *sc; local 406 struct et_softc *sc; local 418 struct et_softc *sc; local 462 struct et_softc *sc; local 502 struct et_softc *sc; local 601 struct et_softc *sc; local 615 struct et_softc *sc; local 629 struct et_softc *sc; local 647 et_stop(struct et_softc *sc) argument 678 et_bus_config(struct et_softc *sc) argument 767 et_reset(struct et_softc *sc) argument 807 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 843 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 862 et_dma_alloc(struct et_softc *sc) argument 1041 et_dma_free(struct et_softc *sc) argument 1133 et_chip_attach(struct et_softc *sc) argument 1175 struct et_softc *sc; local 1216 et_init_locked(struct et_softc *sc) argument 1271 struct et_softc *sc = xsc; local 1281 struct et_softc *sc; local 1374 struct et_softc *sc; local 1442 struct et_softc *sc; local 1451 et_watchdog(struct et_softc *sc) argument 1473 et_stop_rxdma(struct et_softc *sc) argument 1488 et_stop_txdma(struct et_softc *sc) argument 1497 et_free_tx_ring(struct et_softc *sc) argument 1517 et_free_rx_ring(struct et_softc *sc) argument 1578 et_setmulti(struct et_softc *sc) argument 1611 et_chip_init(struct et_softc *sc) argument 1674 et_init_tx_ring(struct et_softc *sc) argument 1697 et_init_rx_ring(struct et_softc *sc) argument 1730 et_init_rxdma(struct et_softc *sc) argument 1802 et_init_txdma(struct et_softc *sc) argument 1839 et_init_mac(struct et_softc *sc) argument 1893 et_init_rxmac(struct et_softc *sc) argument 1980 et_init_txmac(struct et_softc *sc) argument 1999 et_start_rxdma(struct et_softc *sc) argument 2020 et_start_txdma(struct et_softc *sc) argument 2028 et_rxeof(struct et_softc *sc) argument 2146 et_encap(struct et_softc *sc, struct mbuf **m0) argument 2243 et_txeof(struct et_softc *sc) argument 2300 struct et_softc *sc; local 2317 struct et_softc *sc; local 2376 struct et_softc *sc; local 2430 et_add_sysctls(struct et_softc * sc) argument 2565 struct et_softc *sc; local 2592 struct et_softc *sc; local 2617 et_stats_update(struct et_softc *sc) argument 2673 struct et_softc *sc; local 2702 struct et_softc *sc; local 2722 struct et_softc *sc; local [all...] |
/freebsd-current/sys/dev/mgb/ |
H A D | if_mgb.c | 334 struct mgb_softc *sc; local 340 sc = iflib_get_softc(ctx); 341 sc->ctx = ctx; 342 sc->dev = iflib_get_dev(ctx); 380 error = mgb_alloc_regs(sc); 382 device_printf(sc->dev, 387 error = mgb_test_bar(sc); 391 error = mgb_hw_init(sc); 393 device_printf(sc->dev, 398 switch (pci_get_device(sc 460 struct mgb_softc *sc; local 473 struct mgb_softc *sc; local 503 struct mgb_softc *sc; local 522 struct mgb_softc *sc; local 539 struct mgb_softc *sc; local 563 struct mgb_softc *sc; local 586 struct mgb_softc *sc; local 597 struct mgb_softc *sc; local 712 struct mgb_softc *sc ; local 733 struct mgb_softc *sc; local 743 struct mgb_softc *sc; local 768 struct mgb_softc *sc; local 817 struct mgb_softc *sc; local 869 struct mgb_softc *sc; local 895 struct mgb_softc *sc; local 910 struct mgb_softc *sc; local 925 struct mgb_softc *sc; local 937 mgb_intr_test(struct mgb_softc *sc) argument 962 struct mgb_softc *sc; local 1006 struct mgb_softc *sc; local 1022 struct mgb_softc *sc; local 1055 struct mgb_softc *sc; local 1076 struct mgb_softc *sc; local 1132 struct mgb_softc *sc; local 1168 struct mgb_softc *sc; local 1184 mgb_test_bar(struct mgb_softc *sc) argument 1200 mgb_alloc_regs(struct mgb_softc *sc) argument 1215 mgb_release_regs(struct mgb_softc *sc) argument 1228 mgb_dma_init(struct mgb_softc *sc) argument 1248 mgb_dma_rx_ring_init(struct mgb_softc *sc, int channel) argument 1312 mgb_dma_tx_ring_init(struct mgb_softc *sc, int channel) argument 1378 mgb_dmac_control(struct mgb_softc *sc, int start, int channel, enum mgb_dmac_cmd cmd) argument 1415 mgb_fct_control(struct mgb_softc *sc, int reg, int channel, enum mgb_fct_cmd cmd) argument 1433 mgb_hw_teardown(struct mgb_softc *sc) argument 1448 mgb_hw_init(struct mgb_softc *sc) argument 1471 mgb_hw_reset(struct mgb_softc *sc) argument 1479 mgb_mac_init(struct mgb_softc *sc) argument 1494 mgb_phy_reset(struct mgb_softc *sc) argument 1505 mgb_dmac_reset(struct mgb_softc *sc) argument 1513 mgb_wait_for_bits(struct mgb_softc *sc, int reg, int set_bits, int clear_bits) argument 1533 mgb_get_ethaddr(struct mgb_softc *sc, struct ether_addr *dest) argument 1543 struct mgb_softc *sc; local 1564 struct mgb_softc *sc; local 1587 struct mgb_softc *sc; local 1600 struct mgb_softc *sc; local [all...] |