/freebsd-11-stable/sys/dev/ed/ |
H A D | if_ed_pccard.c | 302 static void ed_pccard_dl100xx_mii_reset(struct ed_softc *sc); 377 struct ed_softc *sc = device_get_softc(dev); local 414 ed_pio_readmem(sc, 0, romdata, 32); 436 ed_pccard_kick_phy(struct ed_softc *sc) argument 441 mii = device_get_softc(sc->miibus); 448 ed_pccard_media_ioctl(struct ed_softc *sc, struct ifreq *ifr, u_long command) argument 452 if (sc->miibus == NULL) 454 mii = device_get_softc(sc->miibus); 455 return (ifmedia_ioctl(sc->ifp, ifr, &mii->mii_media, command)); 460 ed_pccard_mediachg(struct ed_softc *sc) argument 477 struct ed_softc *sc = device_get_softc(dev); local 657 struct ed_softc *sc = device_get_softc(dev); local 724 ed_pccard_dl100xx_mii_reset(struct ed_softc *sc) argument 745 struct ed_softc *sc; local 757 struct ed_softc *sc; local 769 ed_pccard_ax88x90_reset(struct ed_softc *sc) argument 796 struct ed_softc *sc = device_get_softc(dev); local 874 ed_pccard_ax88x90_check_mii(device_t dev, struct ed_softc *sc) argument 921 struct ed_softc *sc = device_get_softc(dev); local 963 struct ed_softc *sc; local 975 struct ed_softc *sc; local 994 struct ed_softc *sc = device_get_softc(dev); local 1034 struct ed_softc *sc; local 1047 struct ed_softc *sc; local 1065 struct ed_softc *sc; local 1114 struct ed_softc *sc; local 1151 struct ed_softc *sc; local 1169 struct ed_softc *sc; local 1189 struct ed_softc *sc; local 1197 ed_pccard_tick(struct ed_softc *sc) argument [all...] |
/freebsd-11-stable/sys/mips/atheros/ |
H A D | if_arge.c | 141 static void arge_update_link_locked(struct arge_softc *sc); 150 static void arge_rx_ring_free(struct arge_softc *sc); 255 arge_flush_ddr(struct arge_softc *sc) argument 257 switch (sc->arge_mac_unit) { 265 device_printf(sc->arge_dev, "%s: unknown unit (%d)\n", 267 sc->arge_mac_unit); 284 struct arge_softc *sc = device_get_softc(dev); local 297 &sc->intr_stats.count[i], 0, ""); 305 struct arge_softc *sc = device_get_softc(dev); local 311 "debug", CTLFLAG_RW, &sc 358 arge_reset_mac(struct arge_softc *sc) argument 454 arge_mdio_get_divider(struct arge_softc *sc, unsigned long mdio_clock) argument 534 arge_fetch_mdiobus_clock_rate(struct arge_softc *sc) argument 588 arge_reset_miibus(struct arge_softc *sc) argument 607 arge_fetch_pll_config(struct arge_softc *sc) argument 638 struct arge_softc *sc; local 1008 struct arge_softc *sc = device_get_softc(dev); local 1074 struct arge_softc *sc; local 1093 arge_mdio_busy(struct arge_softc *sc) argument 1111 struct arge_softc * sc = device_get_softc(dev); local 1147 struct arge_softc * sc = device_get_softc(dev); local 1175 struct arge_softc *sc; local 1184 struct arge_softc *sc; local 1193 arge_update_link_locked(struct arge_softc *sc) argument 1243 arge_set_pll(struct arge_softc *sc, int media, int duplex) argument 1359 arge_reset_dma(struct arge_softc *sc) argument 1398 struct arge_softc *sc = xsc; local 1406 arge_init_locked(struct arge_softc *sc) argument 1470 arge_mbuf_chain_is_tx_aligned(struct arge_softc *sc, struct mbuf *m0) argument 1500 arge_encap(struct arge_softc *sc, struct mbuf **m_head) argument 1621 struct arge_softc *sc; local 1633 struct arge_softc *sc; local 1695 arge_stop(struct arge_softc *sc) argument 1721 struct arge_softc *sc = ifp->if_softc; local 1805 struct arge_softc *sc; local 1827 struct arge_softc *sc = ifp->if_softc; local 1854 arge_dma_alloc(struct arge_softc *sc) argument 2045 arge_dma_free(struct arge_softc *sc) argument 2121 arge_tx_ring_init(struct arge_softc *sc) argument 2156 arge_tx_ring_free(struct arge_softc *sc) argument 2182 arge_rx_ring_init(struct arge_softc *sc) argument 2227 arge_rx_ring_free(struct arge_softc *sc) argument 2250 arge_newbuf(struct arge_softc *sc, int idx) argument 2338 struct arge_softc *sc = ifp->if_softc; local 2354 arge_tx_locked(struct arge_softc *sc) argument 2419 arge_rx_locked(struct arge_softc *sc) argument 2498 struct arge_softc *sc = arg; local 2526 struct arge_softc *sc = arg; local 2637 struct arge_softc *sc = xsc; local 2652 struct arge_softc *sc = ifp->if_softc; local 2674 struct arge_softc *sc = ifp->if_softc; local 2692 struct arge_softc *sc; local [all...] |
/freebsd-11-stable/sys/arm/allwinner/ |
H A D | if_awg.c | 71 #define RD4(sc, reg) bus_read_4((sc)->res[0], (reg)) 72 #define WR4(sc, reg, val) bus_write_4((sc)->res[0], (reg), (val)) 74 #define AWG_LOCK(sc) mtx_lock(&(sc)->mtx) 75 #define AWG_UNLOCK(sc) mtx_unlock(&(sc)->mtx); 76 #define AWG_ASSERT_LOCKED(sc) mtx_assert(&(sc) 173 struct awg_softc *sc; local 202 struct awg_softc *sc; local 227 awg_update_link_locked(struct awg_softc *sc) argument 291 struct awg_softc *sc; local 303 struct awg_softc *sc; local 313 struct awg_softc *sc; local 329 struct awg_softc *sc; local 344 awg_setup_txdesc(struct awg_softc *sc, int index, int flags, bus_addr_t paddr, u_int len) argument 367 awg_setup_txbuf(struct awg_softc *sc, int index, struct mbuf **mp) argument 418 awg_setup_rxdesc(struct awg_softc *sc, int index, bus_addr_t paddr) argument 433 awg_setup_rxbuf(struct awg_softc *sc, int index, struct mbuf *m) argument 455 awg_alloc_mbufcl(struct awg_softc *sc) argument 467 awg_start_locked(struct awg_softc *sc) argument 517 struct awg_softc *sc; local 529 struct awg_softc *sc; local 564 awg_setup_rxfilter(struct awg_softc *sc) argument 625 awg_init_locked(struct awg_softc *sc) argument 675 struct awg_softc *sc; local 685 awg_stop(struct awg_softc *sc) argument 727 awg_rxintr(struct awg_softc *sc) argument 791 awg_txintr(struct awg_softc *sc) argument 832 struct awg_softc *sc; local 856 struct awg_softc *sc; local 919 struct awg_softc *sc; local 1060 struct awg_softc *sc; local 1116 struct awg_softc *sc; local 1130 struct awg_softc *sc; local 1166 struct awg_softc *sc; local 1327 struct awg_softc *sc; local [all...] |
/freebsd-11-stable/sys/dev/fb/ |
H A D | machfb.c | 356 regr(struct machfb_softc *sc, uint32_t index) argument 359 return bus_space_read_4(sc->sc_regt, sc->sc_regh, index); 363 regrb(struct machfb_softc *sc, uint32_t index) argument 366 return bus_space_read_1(sc->sc_regt, sc->sc_regh, index); 370 regw(struct machfb_softc *sc, uint32_t index, uint32_t data) argument 373 bus_space_write_4(sc->sc_regt, sc->sc_regh, index, data); 374 bus_space_barrier(sc 379 regwb(struct machfb_softc *sc, uint32_t index, uint8_t data) argument 388 regwb_pll(struct machfb_softc *sc, uint32_t index, uint8_t data) argument 397 wait_for_fifo(struct machfb_softc *sc, uint8_t v) argument 405 wait_for_idle(struct machfb_softc *sc) argument 420 machfb_setbg(struct machfb_softc *sc, int bg) argument 431 machfb_setfg(struct machfb_softc *sc, int fg) argument 447 struct machfb_softc *sc; local 521 struct machfb_softc *sc; local 668 struct machfb_softc *sc; local 705 struct machfb_softc *sc; local 728 struct machfb_softc *sc; local 751 struct machfb_softc *sc; local 814 struct machfb_softc *sc; local 844 struct machfb_softc *sc; local 876 struct machfb_softc *sc; local 913 struct machfb_softc *sc; local 926 struct machfb_softc *sc; local 1002 struct machfb_softc *sc; local 1043 struct machfb_softc *sc; local 1102 struct machfb_softc *sc; local 1155 struct machfb_softc *sc; local 1372 machfb_cursor_enable(struct machfb_softc *sc, int onoff) argument 1384 machfb_cursor_install(struct machfb_softc *sc) argument 1417 machfb_get_memsize(struct machfb_softc *sc) argument 1443 machfb_reset_engine(struct machfb_softc *sc) argument 1461 machfb_init_engine(struct machfb_softc *sc) argument 1559 struct machfb_softc *sc = v; local 1576 struct machfb_softc *sc = v; local [all...] |
/freebsd-11-stable/sys/arm/nvidia/ |
H A D | tegra_xhci.c | 221 mtx_sleep(sc, &sc->mtx, 0, "tegra_xhci", timeout); 312 CSB_RD4(struct tegra_xhci_softc *sc, uint32_t addr) argument 315 FPCI_WR4(sc, XUSB_CFG_ARU_C11_CSBRANGE, ARU_C11_CSBRANGE_PAGE(addr)); 316 return (FPCI_RD4(sc, ARU_C11_CSBRANGE_ADDR(addr))); 320 CSB_WR4(struct tegra_xhci_softc *sc, uint32_t addr, uint32_t val) argument 323 FPCI_WR4(sc, XUSB_CFG_ARU_C11_CSBRANGE, ARU_C11_CSBRANGE_PAGE(addr)); 324 FPCI_WR4(sc, ARU_C11_CSBRANGE_ADDR(addr), val); 328 get_fdt_resources(struct tegra_xhci_softc *sc, phandle_t node) argument 332 rv = regulator_get_by_ofw_property(sc 463 enable_fdt_resources(struct tegra_xhci_softc *sc) argument 612 mbox_send_ack(struct tegra_xhci_softc *sc, uint32_t cmd, uint32_t data) argument 626 mbox_send_cmd(struct tegra_xhci_softc *sc, uint32_t cmd, uint32_t data) argument 668 process_msg(struct tegra_xhci_softc *sc, uint32_t req_cmd, uint32_t req_data, uint32_t *resp_cmd, uint32_t *resp_data) argument 746 struct tegra_xhci_softc *sc; local 777 load_fw(struct tegra_xhci_softc *sc) argument 895 init_hw(struct tegra_xhci_softc *sc) argument 955 struct tegra_xhci_softc *sc; local 995 struct tegra_xhci_softc *sc; local [all...] |
/freebsd-11-stable/sys/arm/amlogic/aml8726/ |
H A D | aml8726_fb.c | 110 #define AML_FB_LOCK(sc) mtx_lock(&(sc)->mtx) 111 #define AML_FB_UNLOCK(sc) mtx_unlock(&(sc)->mtx) 112 #define AML_FB_LOCK_INIT(sc) \ 113 mtx_init(&(sc)->mtx, device_get_nameunit((sc)->dev), \ 115 #define AML_FB_LOCK_DESTROY(sc) mtx_destroy(&(sc)->mtx); 117 #define CAV_WRITE_4(sc, re 135 aml8726_fb_cfg_output(struct aml8726_fb_softc *sc) argument 141 aml8726_fb_cfg_video(struct aml8726_fb_softc *sc) argument 233 aml8726_fb_cfg_canvas(struct aml8726_fb_softc *sc) argument 277 struct aml8726_fb_softc *sc = (struct aml8726_fb_softc *)arg; local 302 struct aml8726_fb_softc *sc = device_get_softc(dev); local 428 struct aml8726_fb_softc *sc = device_get_softc(dev); local 446 struct aml8726_fb_softc *sc = device_get_softc(dev); local [all...] |
H A D | aml8726_mmc.c | 92 #define AML_MMC_LOCK(sc) mtx_lock(&(sc)->mtx) 93 #define AML_MMC_UNLOCK(sc) mtx_unlock(&(sc)->mtx) 94 #define AML_MMC_LOCK_ASSERT(sc) mtx_assert(&(sc)->mtx, MA_OWNED) 95 #define AML_MMC_LOCK_INIT(sc) \ 96 mtx_init(&(sc)->mtx, device_get_nameunit((sc)->dev), \ 98 #define AML_MMC_LOCK_DESTROY(sc) mtx_destro 134 aml8726_mmc_freq(struct aml8726_mmc_softc *sc, uint32_t divisor) argument 141 aml8726_mmc_div(struct aml8726_mmc_softc *sc, uint32_t desired_freq) argument 179 aml8726_mmc_power_off(struct aml8726_mmc_softc *sc) argument 190 aml8726_mmc_power_on(struct aml8726_mmc_softc *sc) argument 201 aml8726_mmc_soft_reset(struct aml8726_mmc_softc *sc, boolean_t enable_irq) argument 215 aml8726_mmc_start_command(struct aml8726_mmc_softc *sc, struct mmc_command *cmd) argument 354 aml8726_mmc_finish_command(struct aml8726_mmc_softc *sc, int mmc_error) argument 415 struct aml8726_mmc_softc *sc = (struct aml8726_mmc_softc *)arg; local 437 struct aml8726_mmc_softc *sc = (struct aml8726_mmc_softc *)arg; local 554 struct aml8726_mmc_softc *sc = device_get_softc(dev); local 792 struct aml8726_mmc_softc *sc = device_get_softc(dev); local 832 struct aml8726_mmc_softc *sc = device_get_softc(dev); local 848 struct aml8726_mmc_softc *sc = device_get_softc(bus); local 909 struct aml8726_mmc_softc *sc = device_get_softc(bus); local 936 struct aml8726_mmc_softc *sc = device_get_softc(bus); local 989 struct aml8726_mmc_softc *sc = device_get_softc(bus); local 1039 struct aml8726_mmc_softc *sc = device_get_softc(bus); local 1055 struct aml8726_mmc_softc *sc = device_get_softc(bus); local [all...] |
/freebsd-11-stable/sys/arm/lpc/ |
H A D | if_lpe.c | 206 struct lpe_softc *sc = device_get_softc(dev); local 211 sc->lpe_dev = dev; 212 sc->lpe_ofw = ofw_bus_get_node(dev); 214 i = OF_getprop(sc->lpe_ofw, "local-mac-address", (void *)&sc->lpe_enaddr, 6); 216 sc->lpe_enaddr[0] = 0x00; 217 sc->lpe_enaddr[1] = 0x11; 218 sc->lpe_enaddr[2] = 0x22; 219 sc->lpe_enaddr[3] = 0x33; 220 sc 315 struct lpe_softc *sc = device_get_softc(dev); local 330 struct lpe_softc *sc = device_get_softc(dev); local 360 struct lpe_softc *sc = device_get_softc(dev); local 386 struct lpe_softc *sc = device_get_softc(dev); local 401 lpe_reset(struct lpe_softc *sc) argument 428 struct lpe_softc *sc = (struct lpe_softc *)arg; local 436 lpe_init_locked(struct lpe_softc *sc) argument 495 struct lpe_softc *sc = (struct lpe_softc *)ifp->if_softc; local 505 struct lpe_softc *sc = (struct lpe_softc *)ifp->if_softc; local 535 lpe_encap(struct lpe_softc *sc, struct mbuf **m_head) argument 595 lpe_stop(struct lpe_softc *sc) argument 603 lpe_stop_locked(struct lpe_softc *sc) argument 624 struct lpe_softc *sc = ifp->if_softc; local 662 lpe_set_rxmode(struct lpe_softc *sc) argument 681 lpe_set_rxfilter(struct lpe_softc *sc) argument 714 struct lpe_softc *sc = (struct lpe_softc *)arg; local 735 lpe_rxintr(struct lpe_softc *sc) argument 781 lpe_txintr(struct lpe_softc *sc) argument 830 struct lpe_softc *sc = (struct lpe_softc *)arg; local 842 lpe_watchdog(struct lpe_softc *sc) argument 862 lpe_dma_alloc(struct lpe_softc *sc) argument 895 lpe_dma_alloc_rx(struct lpe_softc *sc) argument 997 lpe_dma_alloc_tx(struct lpe_softc *sc) argument 1100 lpe_init_rx(struct lpe_softc *sc) argument 1114 lpe_init_rxbuf(struct lpe_softc *sc, int n) argument 1154 lpe_discard_rxbuf(struct lpe_softc *sc, int n) argument 1194 struct lpe_softc *sc = ifp->if_softc; local [all...] |
/freebsd-11-stable/sys/dev/ath/ |
H A D | if_ath_sysctl.c | 110 struct ath_softc *sc = arg1; local 114 ATH_LOCK(sc); 115 ath_power_set_power_state(sc, HAL_PM_AWAKE); 116 slottime = ath_hal_getslottime(sc->sc_ah); 117 ATH_UNLOCK(sc); 123 error = !ath_hal_setslottime(sc->sc_ah, slottime) ? EINVAL : 0; 126 ATH_LOCK(sc); 127 ath_power_restore_power_state(sc); 128 ATH_UNLOCK(sc); 136 struct ath_softc *sc local 162 struct ath_softc *sc = arg1; local 188 struct ath_softc *sc = arg1; local 209 struct ath_softc *sc = arg1; local 228 struct ath_softc *sc = arg1; local 249 struct ath_softc *sc = arg1; local 286 struct ath_softc *sc = arg1; local 309 struct ath_softc *sc = arg1; local 340 struct ath_softc *sc = arg1; local 369 struct ath_softc *sc = arg1; local 396 struct ath_softc *sc = arg1; local 422 struct ath_softc *sc = arg1; local 457 struct ath_softc *sc = arg1; local 556 struct ath_softc *sc = arg1; local 595 struct ath_softc *sc = arg1; local 620 struct ath_softc *sc = arg1; local 646 struct ath_softc *sc = arg1; local 687 struct ath_softc *sc = arg1; local 702 struct ath_softc *sc = arg1; local 720 struct ath_softc *sc = arg1; local 762 struct ath_softc *sc = arg1; local 781 ath_sysctl_alq_attach(struct ath_softc *sc) argument 809 ath_sysctlattach(struct ath_softc *sc) argument 1003 struct ath_softc *sc = arg1; local 1021 ath_sysctl_stats_attach_rxphyerr(struct ath_softc *sc, struct sysctl_oid_list *parent) argument 1038 ath_sysctl_stats_attach_intr(struct ath_softc *sc, struct sysctl_oid_list *parent) argument 1058 ath_sysctl_stats_attach(struct ath_softc *sc) argument 1310 ath_sysctl_hal_attach(struct ath_softc *sc) argument [all...] |
/freebsd-11-stable/usr.sbin/bhyve/ |
H A D | pci_virtio_net.c | 165 void (*pci_vtnet_rx)(struct pci_vtnet_softc *sc); 166 void (*pci_vtnet_tx)(struct pci_vtnet_softc *sc, struct iovec *iov, 191 struct pci_vtnet_softc *sc = vsc; local 196 pthread_mutex_lock(&sc->rx_mtx); 198 /* Set sc->resetting and give a chance to the TX thread to stop. */ 199 pthread_mutex_lock(&sc->tx_mtx); 200 sc->resetting = 1; 201 while (sc->tx_in_progress) { 202 pthread_mutex_unlock(&sc->tx_mtx); 204 pthread_mutex_lock(&sc 227 pci_vtnet_tap_tx(struct pci_vtnet_softc *sc, struct iovec *iov, int iovcnt, int len) argument 279 pci_vtnet_tap_rx(struct pci_vtnet_softc *sc) argument 454 pci_vtnet_netmap_tx(struct pci_vtnet_softc *sc, struct iovec *iov, int iovcnt, int len) argument 476 pci_vtnet_netmap_rx(struct pci_vtnet_softc *sc) argument 567 struct pci_vtnet_softc *sc = param; local 578 struct pci_vtnet_softc *sc = vsc; local 592 pci_vtnet_proctx(struct pci_vtnet_softc *sc, struct vqueue_info *vq) argument 623 struct pci_vtnet_softc *sc = vsc; local 645 struct pci_vtnet_softc *sc = param; local 702 pci_vtnet_tap_setup(struct pci_vtnet_softc *sc, char *devname) argument 750 pci_vtnet_netmap_setup(struct pci_vtnet_softc *sc, char *ifname) argument 776 struct pci_vtnet_softc *sc; local 875 struct pci_vtnet_softc *sc = vsc; local 896 struct pci_vtnet_softc *sc = vsc; local 907 struct pci_vtnet_softc *sc = vsc; local [all...] |
/freebsd-11-stable/sys/dev/ow/ |
H A D | ow_temp.c | 137 struct ow_temp_softc *sc; local 142 sc = arg; 143 pause("owtstart", device_get_unit(sc->dev) * hz / 100); // 10ms stagger 144 mtx_lock(&sc->temp_lock); 145 sc->flags |= OW_TEMP_RUNNING; 146 ow_temp_read_power_supply(sc->dev, &sc->parasite); 147 if (sc->parasite) 148 device_printf(sc->dev, "Running in parasitic mode unsupported\n"); 149 while ((sc 193 struct ow_temp_softc *sc; local 244 struct ow_temp_softc *sc; local [all...] |
/freebsd-11-stable/sys/riscv/htif/ |
H A D | htif_block.c | 108 struct htif_blk_softc *sc; local 112 sc = arg; 117 if (sc->curtag == data) { 119 sc->cmd_done = 1; 120 wakeup(&sc->intr_chan); 122 device_printf(sc->dev, "Unexpected tag %d (should be %d)\n", 123 data, sc->curtag); 137 struct htif_blk_softc *sc; local 142 sc = device_get_softc(dev); 143 sc 201 struct htif_blk_softc *sc; local 269 struct htif_blk_softc *sc; local [all...] |
/freebsd-11-stable/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-11-stable/sys/dev/iwm/ |
H A D | if_iwm_fw.c | 129 iwm_free_fw_paging(struct iwm_softc *sc) argument 133 if (sc->fw_paging_db[0].fw_paging_block.vaddr == NULL) 137 iwm_dma_contig_free(&sc->fw_paging_db[i].fw_paging_block); 140 memset(sc->fw_paging_db, 0, sizeof(sc->fw_paging_db)); 144 iwm_fill_paging_mem(struct iwm_softc *sc, const struct iwm_fw_sects *image) argument 172 device_printf(sc->sc_dev, 174 iwm_free_fw_paging(sc); 179 IWM_DPRINTF(sc, IWM_DEBUG_FW, 183 memcpy(sc 227 iwm_alloc_fw_paging_mem(struct iwm_softc *sc, const struct iwm_fw_sects *image) argument 301 iwm_save_fw_paging(struct iwm_softc *sc, const struct iwm_fw_sects *fw) argument 314 iwm_send_paging_cmd(struct iwm_softc *sc, const struct iwm_fw_sects *fw) argument [all...] |
H A D | if_iwm.c | 306 static int iwm_pcie_load_cpu_sections_8000(struct iwm_softc *sc, 387 static int iwm_detach_local(struct iwm_softc *sc, int); 414 iwm_store_cscheme(struct iwm_softc *sc, const uint8_t *data, size_t dlen) argument 428 iwm_firmware_store_section(struct iwm_softc *sc, argument 439 fws = &sc->sc_fw.fw_sects[type]; 466 iwm_set_default_calib(struct iwm_softc *sc, const void *data) argument 472 device_printf(sc->sc_dev, 478 sc->sc_default_calib[ucode_type].flow_trigger = 480 sc->sc_default_calib[ucode_type].event_trigger = 487 iwm_set_ucode_api_flags(struct iwm_softc *sc, cons argument 512 iwm_set_ucode_capabilities(struct iwm_softc *sc, const uint8_t *data, struct iwm_ucode_capabilities *capa) argument 546 iwm_read_firmware(struct iwm_softc *sc, enum iwm_ucode_type ucode_type) argument 923 iwm_alloc_fwmem(struct iwm_softc *sc) argument 932 iwm_alloc_sched(struct iwm_softc *sc) argument 941 iwm_alloc_kw(struct iwm_softc *sc) argument 948 iwm_alloc_ict(struct iwm_softc *sc) argument 955 iwm_alloc_rx_ring(struct iwm_softc *sc, struct iwm_rx_ring *ring) argument 1026 iwm_reset_rx_ring(struct iwm_softc *sc, struct iwm_rx_ring *ring) argument 1040 iwm_free_rx_ring(struct iwm_softc *sc, struct iwm_rx_ring *ring) argument 1073 iwm_alloc_tx_ring(struct iwm_softc *sc, struct iwm_tx_ring *ring, int qid) argument 1153 iwm_reset_tx_ring(struct iwm_softc *sc, struct iwm_tx_ring *ring) argument 1181 iwm_free_tx_ring(struct iwm_softc *sc, struct iwm_tx_ring *ring) argument 1214 iwm_enable_interrupts(struct iwm_softc *sc) argument 1221 iwm_restore_interrupts(struct iwm_softc *sc) argument 1227 iwm_disable_interrupts(struct iwm_softc *sc) argument 1238 iwm_ict_reset(struct iwm_softc *sc) argument 1271 iwm_stop_device(struct iwm_softc *sc) argument 1359 iwm_mvm_nic_config(struct iwm_softc *sc) argument 1402 iwm_nic_rx_init(struct iwm_softc *sc) argument 1466 iwm_nic_tx_init(struct iwm_softc *sc) argument 1501 iwm_nic_init(struct iwm_softc *sc) argument 1528 iwm_enable_txq(struct iwm_softc *sc, int sta_id, int qid, int fifo) argument 1616 iwm_trans_pcie_fw_alive(struct iwm_softc *sc, uint32_t scd_base_addr) argument 1705 iwm_nvm_read_chunk(struct iwm_softc *sc, uint16_t section, uint16_t offset, uint16_t length, uint8_t *data, uint16_t *len) argument 1802 iwm_nvm_read_section(struct iwm_softc *sc, uint16_t section, uint8_t *data, uint16_t *len, uint32_t size_read) argument 1962 iwm_add_channel_band(struct iwm_softc *sc, struct ieee80211_channel chans[], int maxchans, int *nchans, int ch_idx, size_t ch_num, const uint8_t bands[]) argument 2006 struct iwm_softc *sc = ic->ic_softc; local 2036 iwm_set_hw_address_family_8000(struct iwm_softc *sc, struct iwm_nvm_data *data, const uint16_t *mac_override, const uint16_t *nvm_hw) argument 2095 iwm_get_sku(const struct iwm_softc *sc, const uint16_t *nvm_sw, const uint16_t *phy_sku) argument 2105 iwm_get_nvm_version(const struct iwm_softc *sc, const uint16_t *nvm_sw) argument 2115 iwm_get_radio_cfg(const struct iwm_softc *sc, const uint16_t *nvm_sw, const uint16_t *phy_sku) argument 2125 iwm_get_n_hw_addrs(const struct iwm_softc *sc, const uint16_t *nvm_sw) argument 2138 iwm_set_radio_cfg(const struct iwm_softc *sc, struct iwm_nvm_data *data, uint32_t radio_cfg) argument 2159 iwm_set_hw_address(struct iwm_softc *sc, struct iwm_nvm_data *data, const uint16_t *nvm_hw, const uint16_t *mac_override) argument 2190 iwm_parse_nvm_data(struct iwm_softc *sc, const uint16_t *nvm_hw, const uint16_t *nvm_sw, const uint16_t *nvm_calib, const uint16_t *mac_override, const uint16_t *phy_sku, const uint16_t *regulatory) argument 2258 iwm_parse_nvm_sections(struct iwm_softc *sc, struct iwm_nvm_section *sections) argument 2311 iwm_nvm_init(struct iwm_softc *sc) argument 2367 iwm_pcie_load_section(struct iwm_softc *sc, uint8_t section_num, const struct iwm_fw_desc *section) argument 2423 iwm_pcie_load_firmware_chunk(struct iwm_softc *sc, uint32_t dst_addr, bus_addr_t phy_addr, uint32_t byte_cnt) argument 2477 iwm_pcie_load_cpu_sections_8000(struct iwm_softc *sc, const struct iwm_fw_sects *image, int cpu, int *first_ucode_section) argument 2539 iwm_pcie_load_cpu_sections(struct iwm_softc *sc, const struct iwm_fw_sects *image, int cpu, int *first_ucode_section) argument 2584 iwm_pcie_load_given_ucode(struct iwm_softc *sc, const struct iwm_fw_sects *image) argument 2623 iwm_pcie_load_given_ucode_8000(struct iwm_softc *sc, const struct iwm_fw_sects *image) argument 2653 iwm_enable_fw_load_int(struct iwm_softc *sc) argument 2662 iwm_start_fw(struct iwm_softc *sc, const struct iwm_fw_sects *fw) argument 2720 iwm_send_tx_ant_cfg(struct iwm_softc *sc, uint8_t valid_tx_ant) argument 2732 iwm_send_phy_cfg_cmd(struct iwm_softc *sc) argument 2751 iwm_alive_fn(struct iwm_softc *sc, struct iwm_rx_packet *pkt, void *data) argument 2828 iwm_wait_phy_db_entry(struct iwm_softc *sc, struct iwm_rx_packet *pkt, void *data) argument 2850 iwm_mvm_load_ucode_wait_alive(struct iwm_softc *sc, enum iwm_ucode_type ucode_type) argument 2951 iwm_run_init_mvm_ucode(struct iwm_softc *sc, int justnvm) argument 3049 iwm_rx_addbuf(struct iwm_softc *sc, int size, int idx) argument 3100 iwm_mvm_get_signal_strength(struct iwm_softc *sc, struct iwm_rx_phy_info *phy_info) argument 3126 iwm_mvm_rx_rx_phy_cmd(struct iwm_softc *sc, struct iwm_rx_packet *pkt) argument 3139 iwm_get_noise(struct iwm_softc *sc, const struct iwm_mvm_statistics_rx_non_phy *stats) argument 3170 iwm_mvm_handle_rx_statistics(struct iwm_softc *sc, struct iwm_rx_packet *pkt) argument 3184 iwm_mvm_rx_rx_mpdu(struct iwm_softc *sc, struct mbuf *m, uint32_t offset, boolean_t stolen) argument 3312 iwm_mvm_rx_tx_cmd_single(struct iwm_softc *sc, struct iwm_rx_packet *pkt, struct iwm_node *in) argument 3348 iwm_mvm_rx_tx_cmd(struct iwm_softc *sc, struct iwm_rx_packet *pkt) argument 3397 iwm_cmd_done(struct iwm_softc *sc, struct iwm_rx_packet *pkt) argument 3477 iwm_tx_rateidx_lookup(struct iwm_softc *sc, struct iwm_node *in, uint8_t rate) argument 3500 iwm_tx_rateidx_global_lookup(struct iwm_softc *sc, uint8_t rate) argument 3520 iwm_tx_fill_cmd(struct iwm_softc *sc, struct iwm_node *in, struct mbuf *m, struct iwm_tx_cmd *tx) argument 3598 iwm_tx(struct iwm_softc *sc, struct mbuf *m, struct ieee80211_node *ni, int ac) argument 3819 struct iwm_softc *sc = ic->ic_softc; local 3858 iwm_mvm_flush_tx_path(struct iwm_softc *sc, uint32_t tfd_msk, uint32_t flags) argument 3879 iwm_mvm_update_quotas(struct iwm_softc *sc, struct iwm_vap *ivp) argument 3958 iwm_auth(struct ieee80211vap *vap, struct iwm_softc *sc) argument 4094 iwm_assoc(struct ieee80211vap *vap, struct iwm_softc *sc) argument 4116 iwm_release(struct iwm_softc *sc, struct iwm_node *in) argument 4209 iwm_setrates(struct iwm_softc *sc, struct iwm_node *in) argument 4332 struct iwm_softc *sc = ic->ic_softc; local 4354 struct iwm_softc *sc = ic->ic_softc; local 4513 struct iwm_softc *sc = arg; local 4580 iwm_mvm_fill_sf_command(struct iwm_softc *sc, struct iwm_sf_cfg_cmd *sf_cmd, struct ieee80211_node *ni) argument 4627 iwm_mvm_sf_config(struct iwm_softc *sc, enum iwm_sf_state new_state) argument 4660 iwm_send_bt_init_conf(struct iwm_softc *sc) argument 4672 iwm_mvm_is_lar_supported(struct iwm_softc *sc) argument 4692 iwm_mvm_is_wifi_mcc_supported(struct iwm_softc *sc) argument 4701 iwm_send_update_mcc_cmd(struct iwm_softc *sc, const char *alpha2) argument 4774 iwm_mvm_tt_tx_backoff(struct iwm_softc *sc, uint32_t backoff) argument 4789 iwm_init_hw(struct iwm_softc *sc) argument 4897 iwm_allow_mcast(struct ieee80211vap *vap, struct iwm_softc *sc) argument 4926 iwm_init(struct iwm_softc *sc) argument 4952 struct iwm_softc *sc; local 4976 iwm_start(struct iwm_softc *sc) argument 4998 iwm_stop(struct iwm_softc *sc) argument 5013 struct iwm_softc *sc = arg; local 5033 struct iwm_softc *sc = ic->ic_softc; local 5176 iwm_nic_umac_error(struct iwm_softc *sc) argument 5230 iwm_nic_error(struct iwm_softc *sc) argument 5304 iwm_handle_rxb(struct iwm_softc *sc, struct mbuf *m) argument 5644 iwm_notif_intr(struct iwm_softc *sc) argument 5683 struct iwm_softc *sc = arg; local 5886 struct iwm_softc *sc; local 5909 struct iwm_softc *sc; local 5963 struct iwm_softc *sc = device_get_softc(dev); local 5981 struct iwm_softc *sc = device_get_softc(dev); local 6193 struct iwm_softc *sc = ic->ic_softc; local 6236 struct iwm_softc *sc = arg; local 6308 iwm_radiotap_attach(struct iwm_softc *sc) argument 6367 iwm_xmit_queue_drain(struct iwm_softc *sc) argument 6383 struct iwm_softc *sc = ic->ic_softc; local 6411 struct iwm_softc *sc = ic->ic_softc; local 6460 struct iwm_softc *sc = arg1; local 6477 struct iwm_softc *sc = device_get_softc(dev); local 6504 struct iwm_softc *sc = device_get_softc(dev); local 6521 iwm_detach_local(struct iwm_softc *sc, int do_net80211) argument 6582 struct iwm_softc *sc = device_get_softc(dev); local [all...] |
/freebsd-11-stable/sys/dev/acpica/ |
H A D | acpi_button.c | 108 struct acpi_button_softc *sc; local 115 sc = device_get_softc(dev); 118 sc->button_type = ACPI_POWER_BUTTON; 121 sc->button_type = ACPI_POWER_BUTTON; 122 sc->fixed = 1; 125 sc->button_type = ACPI_SLEEP_BUTTON; 128 sc->button_type = ACPI_SLEEP_BUTTON; 129 sc->fixed = 1; 139 struct acpi_button_softc *sc; local 145 sc 212 struct acpi_button_softc *sc; local 241 struct acpi_button_softc *sc; local 270 struct acpi_button_softc *sc; local 302 struct acpi_button_softc *sc = (struct acpi_button_softc *)context; local [all...] |
/freebsd-11-stable/sys/dev/usb/wlan/ |
H A D | if_run.c | 702 struct run_softc *sc = device_get_softc(self); local 704 struct ieee80211com *ic = &sc->sc_ic; 710 sc->sc_udev = uaa->device; 711 sc->sc_dev = self; 713 sc->sc_flags |= RUN_FLAG_FWLOAD_NEEDED; 715 mtx_init(&sc->sc_mtx, device_get_nameunit(sc->sc_dev), 717 mbufq_init(&sc->sc_snd, ifqmaxlen); 722 sc->sc_xfer, run_config, RUN_N_XFER, sc, 829 run_drain_mbufq(struct run_softc *sc) argument 846 struct run_softc *sc = device_get_softc(self); local 888 struct run_softc *sc = ic->ic_softc; local 991 struct run_softc *sc; local 1033 struct run_softc *sc = arg; local 1060 run_setup_tx_list(struct run_softc *sc, struct run_endpoint_queue *pq) argument 1078 run_unsetup_tx_list(struct run_softc *sc, struct run_endpoint_queue *pq) argument 1102 run_load_microcode(struct run_softc *sc) argument 1200 run_reset(struct run_softc *sc) argument 1213 run_do_request(struct run_softc *sc, struct usb_device_request *req, void *data) argument 1234 run_read(struct run_softc *sc, uint16_t reg, uint32_t *val) argument 1248 run_read_region_1(struct run_softc *sc, uint16_t reg, uint8_t *buf, int len) argument 1262 run_write_2(struct run_softc *sc, uint16_t reg, uint16_t val) argument 1276 run_write(struct run_softc *sc, uint16_t reg, uint32_t val) argument 1286 run_write_region_1(struct run_softc *sc, uint16_t reg, const uint8_t *buf, int len) argument 1331 run_set_region_4(struct run_softc *sc, uint16_t reg, uint32_t val, int len) argument 1342 run_efuse_read(struct run_softc *sc, uint16_t addr, uint16_t *val, int count) argument 1390 run_efuse_read_2(struct run_softc *sc, uint16_t addr, uint16_t *val) argument 1396 run_eeprom_read_2(struct run_softc *sc, uint16_t addr, uint16_t *val) argument 1418 run_srom_read(struct run_softc *sc, uint16_t addr, uint16_t *val) argument 1425 run_rt2870_rf_write(struct run_softc *sc, uint32_t val) argument 1443 run_rt3070_rf_read(struct run_softc *sc, uint8_t reg, uint8_t *val) argument 1475 run_rt3070_rf_write(struct run_softc *sc, uint8_t reg, uint8_t val) argument 1494 run_bbp_read(struct run_softc *sc, uint8_t reg, uint8_t *val) argument 1526 run_bbp_write(struct run_softc *sc, uint8_t reg, uint8_t val) argument 1548 run_mcu_cmd(struct run_softc *sc, uint8_t cmd, uint16_t arg) argument 1611 run_rt3593_get_txpower(struct run_softc *sc) argument 1668 run_get_txpower(struct run_softc *sc) argument 1730 run_read_eeprom(struct run_softc *sc) argument 1996 struct run_softc *sc = ic->ic_softc; local 2042 struct run_softc *sc = ic->ic_softc; local 2169 struct run_softc *sc = ic->ic_softc; local 2227 struct run_softc *sc = ic->ic_softc; local 2349 struct run_softc *sc = ic->ic_softc; local 2383 struct run_softc *sc = cmdq->arg1; local 2417 struct run_softc *sc = ic->ic_softc; local 2445 struct run_softc *sc = arg; local 2456 struct run_softc *sc = arg; local 2489 struct run_softc *sc = arg; local 2547 struct run_softc *sc = arg; local 2609 struct run_softc *sc = ni->ni_vap->iv_ic->ic_softc; local 2627 struct run_softc *sc = ic->ic_softc; local 2700 run_maxrssi_chain(struct run_softc *sc, const struct rt2860_rxwi *rxwi) argument 2719 struct run_softc *sc = vap->iv_ic->ic_softc; local 2743 run_rx_frame(struct run_softc *sc, struct mbuf *m, uint32_t dmalen) argument 2878 struct run_softc *sc = usbd_xfer_softc(xfer); local 3030 struct run_softc *sc = usbd_xfer_softc(xfer); local 3192 run_set_tx_desc(struct run_softc *sc, struct run_tx_data *data) argument 3256 run_tx(struct run_softc *sc, struct mbuf *m, struct ieee80211_node *ni) argument 3420 run_tx_mgt(struct run_softc *sc, struct mbuf *m, struct ieee80211_node *ni) argument 3486 run_sendprot(struct run_softc *sc, const struct mbuf *m, struct ieee80211_node *ni, int prot, int rate) argument 3574 run_tx_param(struct run_softc *sc, struct mbuf *m, struct ieee80211_node *ni, const struct ieee80211_bpf_params *params) argument 3656 struct run_softc *sc = ni->ni_ic->ic_softc; local 3695 struct run_softc *sc = ic->ic_softc; local 3715 run_start(struct run_softc *sc) argument 3737 struct run_softc *sc = ic->ic_softc; local 3760 run_iq_calib(struct run_softc *sc, u_int chan) argument 3861 run_set_agc(struct run_softc *sc, uint8_t agc) argument 3877 run_select_chan_group(struct run_softc *sc, int group) argument 4021 run_rt2870_set_chan(struct run_softc *sc, u_int chan) argument 4092 run_rt3070_set_chan(struct run_softc *sc, u_int chan) argument 4157 run_rt3572_set_chan(struct run_softc *sc, u_int chan) argument 4307 run_rt3593_set_chan(struct run_softc *sc, u_int chan) argument 4467 run_rt5390_set_chan(struct run_softc *sc, u_int chan) argument 4577 run_rt5592_set_chan(struct run_softc *sc, u_int chan) argument 4714 run_set_rx_antenna(struct run_softc *sc, int aux) argument 4741 run_set_chan(struct run_softc *sc, struct ieee80211_channel *c) argument 4788 struct run_softc *sc = ic->ic_softc; local 4801 struct run_softc *sc = ic->ic_softc; local 4821 struct run_softc *sc = ic->ic_softc; local 4837 struct run_softc *sc = ic->ic_softc; local 4859 struct run_softc *sc = ic->ic_softc; local 4902 struct run_softc *sc = ic->ic_softc; local 4949 struct run_softc *sc = ic->ic_softc; local 4963 struct run_softc *sc = ic->ic_softc; local 4987 struct run_softc *sc = vap->iv_ic->ic_softc; local 5003 run_reset_livelock(struct run_softc *sc) argument 5026 run_update_promisc_locked(struct run_softc *sc) argument 5045 struct run_softc *sc = ic->ic_softc; local 5056 run_enable_tsf_sync(struct run_softc *sc) argument 5097 run_enable_tsf(struct run_softc *sc) argument 5109 run_disable_tsf(struct run_softc *sc) argument 5121 run_get_tsf(struct run_softc *sc, uint64_t *buf) argument 5128 run_enable_mrr(struct run_softc *sc) argument 5152 run_set_txpreamble(struct run_softc *sc) argument 5166 run_set_basicrates(struct run_softc *sc) argument 5180 run_set_leds(struct run_softc *sc, uint16_t which) argument 5187 run_set_bssid(struct run_softc *sc, const uint8_t *bssid) argument 5196 run_set_macaddr(struct run_softc *sc, const uint8_t *addr) argument 5207 struct run_softc *sc = ic->ic_softc; local 5224 struct run_softc *sc = ic->ic_softc; local 5239 run_rssi2dbm(struct run_softc *sc, uint8_t rssi, uint8_t rxchain) argument 5263 run_rt5390_bbp_init(struct run_softc *sc) argument 5321 run_bbp_init(struct run_softc *sc) argument 5371 run_rt3070_rf_init(struct run_softc *sc) argument 5515 run_rt3593_rf_init(struct run_softc *sc) argument 5564 run_rt5390_rf_init(struct run_softc *sc) argument 5628 run_rt3070_filter_calib(struct run_softc *sc, uint8_t init, uint8_t target, uint8_t *val) argument 5693 run_rt3070_rf_setup(struct run_softc *sc) argument 5772 run_rt3593_rf_setup(struct run_softc *sc) argument 5842 run_rt5390_rf_setup(struct run_softc *sc) argument 5889 run_txrx_enable(struct run_softc *sc) argument 5935 run_adjust_freq_offset(struct run_softc *sc) argument 5949 run_init_locked(struct run_softc *sc) argument 6172 struct run_softc *sc = (struct run_softc *)arg; local 6249 run_delay(struct run_softc *sc, u_int ms) argument [all...] |
/freebsd-11-stable/sys/dev/hyperv/input/ |
H A D | hv_kbdc.c | 137 hv_kbd_prod_is_ready(hv_kbd_sc *sc) argument 140 mtx_lock(&sc->ks_mtx); 141 ret = !STAILQ_EMPTY(&sc->ks_queue); 142 mtx_unlock(&sc->ks_mtx); 147 hv_kbd_produce_ks(hv_kbd_sc *sc, const keystroke *ks) argument 151 mtx_lock(&sc->ks_mtx); 152 if (LIST_EMPTY(&sc->ks_free_list)) { 153 DEBUG_HVSC(sc, "NO buffer!\n"); 156 ksi = LIST_FIRST(&sc->ks_free_list); 159 STAILQ_INSERT_TAIL(&sc 169 hv_kbd_fetch_top(hv_kbd_sc *sc, keystroke *result) argument 189 hv_kbd_remove_top(hv_kbd_sc *sc) argument 210 hv_kbd_modify_top(hv_kbd_sc *sc, keystroke *top) argument 245 hv_kbd_on_response(hv_kbd_sc *sc, struct vmbus_chanpkt_hdr *pkt) argument 256 hv_kbd_on_received(hv_kbd_sc *sc, struct vmbus_chanpkt_hdr *pkt) argument 299 hv_kbd_sc *sc = (hv_kbd_sc*)context; local 343 hv_kbd_connect_vsp(hv_kbd_sc *sc) argument 392 hv_kbd_sc *sc; local 414 hv_kbd_sc *sc = device_get_softc(dev); local 421 hv_kbd_init(hv_kbd_sc *sc) argument 438 hv_kbd_fini(hv_kbd_sc *sc) argument 459 hv_kbd_sc *sc; local 472 hv_kbd_sc *sc; local 506 hv_kbd_sc *sc = device_get_softc(dev); local [all...] |
/freebsd-11-stable/sys/dev/amdgpio/ |
H A D | amdgpio.c | 65 amdgpio_read_4(struct amdgpio_softc *sc, bus_size_t off) argument 67 return (bus_read_4(sc->sc_res[0], off)); 71 amdgpio_write_4(struct amdgpio_softc *sc, bus_size_t off, argument 74 bus_write_4(sc->sc_res[0], off, val); 78 amdgpio_is_pin_output(struct amdgpio_softc *sc, uint32_t pin) argument 84 AMDGPIO_LOCK(sc); 87 val = amdgpio_read_4(sc, reg); 94 AMDGPIO_UNLOCK(sc); 102 struct amdgpio_softc *sc; local 104 sc 113 struct amdgpio_softc *sc; local 124 amdgpio_valid_pin(struct amdgpio_softc *sc, int pin) argument 140 struct amdgpio_softc *sc; local 160 struct amdgpio_softc *sc; local 178 struct amdgpio_softc *sc; local 201 struct amdgpio_softc *sc; local 251 struct amdgpio_softc *sc; local 289 struct amdgpio_softc *sc; local 323 struct amdgpio_softc *sc; local 366 struct amdgpio_softc *sc; local 433 struct amdgpio_softc *sc; local [all...] |
/freebsd-11-stable/sys/dev/sound/isa/ |
H A D | ess.c | 111 static int ess_rd(struct ess_info *sc, int reg); 112 static void ess_wr(struct ess_info *sc, int reg, u_int8_t val); 113 static int ess_dspready(struct ess_info *sc); 114 static int ess_cmd(struct ess_info *sc, u_char val); 115 static int ess_cmd1(struct ess_info *sc, u_char cmd, int val); 116 static int ess_get_byte(struct ess_info *sc); 117 static void ess_setmixer(struct ess_info *sc, u_int port, u_int value); 118 static int ess_getmixer(struct ess_info *sc, u_int port); 119 static int ess_reset_dsp(struct ess_info *sc); 121 static int ess_write(struct ess_info *sc, u_cha 143 ess_lock(struct ess_info *sc) argument 149 ess_unlock(struct ess_info *sc) argument 171 ess_rd(struct ess_info *sc, int reg) argument 177 ess_wr(struct ess_info *sc, int reg, u_int8_t val) argument 183 ess_dspready(struct ess_info *sc) argument 189 ess_dspwr(struct ess_info *sc, u_char val) argument 205 ess_cmd(struct ess_info *sc, u_char val) argument 214 ess_cmd1(struct ess_info *sc, u_char cmd, int val) argument 225 ess_setmixer(struct ess_info *sc, u_int port, u_int value) argument 235 ess_getmixer(struct ess_info *sc, u_int port) argument 247 ess_get_byte(struct ess_info *sc) argument 261 ess_write(struct ess_info *sc, u_char reg, int val) argument 267 ess_read(struct ess_info *sc, u_char reg) argument 273 ess_reset_dsp(struct ess_info *sc) argument 288 ess_release_resources(struct ess_info *sc, device_t dev) argument 318 ess_alloc_resources(struct ess_info *sc, device_t dev) argument 355 struct ess_info *sc = (struct ess_info *)arg; local 461 ess_setupch(struct ess_info *sc, int ch, int dir, int spd, u_int32_t fmt, int len) argument 526 struct ess_info *sc = ch->parent; local 545 struct ess_info *sc = ch->parent; local 565 struct ess_info *sc = devinfo; local 594 struct ess_info *sc = ch->parent; local 670 struct ess_info *sc = mix_getdevinfo(m); local 687 struct ess_info *sc = mix_getdevinfo(m); local 751 struct ess_info *sc = mix_getdevinfo(m); local 812 struct ess_info *sc; local 896 struct ess_info *sc; local 910 struct ess_info *sc; local [all...] |
/freebsd-11-stable/sys/powerpc/mpc85xx/ |
H A D | atpic.c | 121 atpic_read(struct atpic_softc *sc, int icu, int ofs) argument 125 val = bus_read_1(sc->sc_res[icu], ofs); 130 atpic_write(struct atpic_softc *sc, int icu, int ofs, uint8_t val) argument 133 bus_write_1(sc->sc_res[icu], ofs, val); 134 bus_barrier(sc->sc_res[icu], ofs, 2 - ofs, 176 atpic_init(struct atpic_softc *sc, int icu) argument 179 sc->sc_mask[icu] = 0xff - ((icu == ATPIC_MASTER) ? 4 : 0); 181 atpic_write(sc, icu, 0, ICW1_RESET | ICW1_IC4); 182 atpic_write(sc, icu, 1, (icu == ATPIC_SLAVE) ? 8 : 0); 183 atpic_write(sc, ic 192 struct atpic_softc *sc; local 256 struct atpic_softc *sc; local 280 struct atpic_softc *sc; local 290 struct atpic_softc *sc; local 307 struct atpic_softc *sc; local 322 struct atpic_softc *sc; local [all...] |
/freebsd-11-stable/sys/dev/sdhci/ |
H A D | fsl_sdhci.c | 181 static uint16_t fsl_sdhc_get_clock(struct fsl_sdhci_softc *sc); 182 static void fsl_sdhc_set_clock(struct fsl_sdhci_softc *sc, uint16_t val); 186 RD4(struct fsl_sdhci_softc *sc, bus_size_t off) argument 189 return (bus_read_4(sc->mem_res, off)); 193 WR4(struct fsl_sdhci_softc *sc, bus_size_t off, uint32_t val) argument 196 bus_write_4(sc->mem_res, off, val); 202 struct fsl_sdhci_softc *sc = device_get_softc(dev); local 211 wrk32 = RD4(sc, SDHC_PROT_CTRL); 251 return ((RD4(sc, off & ~3) >> (off & 3) * 8) & 0xff); 257 struct fsl_sdhci_softc *sc local 315 struct fsl_sdhci_softc *sc = device_get_softc(dev); local 369 struct fsl_sdhci_softc *sc = device_get_softc(dev); local 377 struct fsl_sdhci_softc *sc = device_get_softc(dev); local 420 struct fsl_sdhci_softc *sc = device_get_softc(dev); local 499 struct fsl_sdhci_softc *sc = device_get_softc(dev); local 513 struct fsl_sdhci_softc *sc = device_get_softc(dev); local 519 fsl_sdhc_get_clock(struct fsl_sdhci_softc *sc) argument 566 fsl_sdhc_set_clock(struct fsl_sdhci_softc *sc, uint16_t val) argument 648 fsl_sdhci_r1bfix_is_wait_done(struct fsl_sdhci_softc *sc) argument 691 struct fsl_sdhci_softc *sc = arg; local 704 struct fsl_sdhci_softc *sc = arg; local 754 struct fsl_sdhci_softc *sc = device_get_softc(bus); local 762 struct fsl_sdhci_softc *sc = device_get_softc(dev); local 811 struct fsl_sdhci_softc *sc = device_get_softc(dev); local 838 struct fsl_sdhci_softc *sc = device_get_softc(dev); local [all...] |
/freebsd-11-stable/sys/net/ |
H A D | if_lagg.c | 310 lagg_proto_attach(struct lagg_softc *sc, lagg_proto pr) argument 313 LAGG_XLOCK_ASSERT(sc); 314 KASSERT(sc->sc_proto == LAGG_PROTO_NONE, ("%s: sc %p has proto", 315 __func__, sc)); 317 if (sc->sc_ifflags & IFF_DEBUG) 318 if_printf(sc->sc_ifp, "using proto %u\n", pr); 321 lagg_protos[pr].pr_attach(sc); 322 sc->sc_proto = pr; 326 lagg_proto_detach(struct lagg_softc *sc) argument 342 lagg_proto_start(struct lagg_softc *sc, struct mbuf *m) argument 349 lagg_proto_input(struct lagg_softc *sc, struct lagg_port *lp, struct mbuf *m) argument 356 lagg_proto_addport(struct lagg_softc *sc, struct lagg_port *lp) argument 366 lagg_proto_delport(struct lagg_softc *sc, struct lagg_port *lp) argument 374 lagg_proto_linkstate(struct lagg_softc *sc, struct lagg_port *lp) argument 382 lagg_proto_init(struct lagg_softc *sc) argument 390 lagg_proto_stop(struct lagg_softc *sc) argument 398 lagg_proto_lladdr(struct lagg_softc *sc) argument 406 lagg_proto_request(struct lagg_softc *sc, void *v) argument 414 lagg_proto_portreq(struct lagg_softc *sc, struct lagg_port *lp, void *v) argument 428 struct lagg_softc *sc = ifp->if_softc; local 447 struct lagg_softc *sc = ifp->if_softc; local 462 struct lagg_softc *sc; local 526 struct lagg_softc *sc = (struct lagg_softc *)ifp->if_softc; local 561 lagg_capabilities(struct lagg_softc *sc) argument 616 lagg_port_create(struct lagg_softc *sc, struct ifnet *ifp) argument 776 lagg_port_checkstacking(struct lagg_softc *sc) argument 797 struct lagg_softc *sc = lp->lp_softc; local 880 struct lagg_softc *sc; local 958 struct lagg_softc *sc; local 1021 struct lagg_softc *sc; local 1041 struct lagg_softc *sc = lp->lp_softc; local 1081 struct lagg_softc *sc = (struct lagg_softc *)xsc; local 1110 lagg_stop(struct lagg_softc *sc) argument 1127 struct lagg_softc *sc = (struct lagg_softc *)ifp->if_softc; local 1512 struct lagg_softc *sc = lp->lp_softc; local 1578 struct lagg_softc *sc = lp->lp_softc; local 1629 struct lagg_softc *sc = (struct lagg_softc *)ifp->if_softc; local 1668 struct lagg_softc *sc = lp->lp_softc; local 1703 struct lagg_softc *sc = (struct lagg_softc *)ifp->if_softc; local 1715 struct lagg_softc *sc = (struct lagg_softc *)ifp->if_softc; local 1730 lagg_linkstate(struct lagg_softc *sc) argument 1771 struct lagg_softc *sc = NULL; local 1785 lagg_link_active(struct lagg_softc *sc, struct lagg_port *lp) argument 1828 lagg_rr_attach(struct lagg_softc *sc) argument 1835 lagg_rr_start(struct lagg_softc *sc, struct mbuf *m) argument 1872 lagg_rr_input(struct lagg_softc *sc, struct lagg_port *lp, struct mbuf *m) argument 1886 lagg_bcast_start(struct lagg_softc *sc, struct mbuf *m) argument 1934 lagg_bcast_input(struct lagg_softc *sc, struct lagg_port *lp, struct mbuf *m) argument 1947 lagg_fail_start(struct lagg_softc *sc, struct mbuf *m) argument 1962 lagg_fail_input(struct lagg_softc *sc, struct lagg_port *lp, struct mbuf *m) argument 1992 lagg_lb_attach(struct lagg_softc *sc) argument 2006 lagg_lb_detach(struct lagg_softc *sc) argument 2017 lagg_lb_porttable(struct lagg_softc *sc, struct lagg_port *lp) argument 2041 struct lagg_softc *sc = lp->lp_softc; local 2048 struct lagg_softc *sc = lp->lp_softc; local 2053 lagg_lb_start(struct lagg_softc *sc, struct mbuf *m) argument 2081 lagg_lb_input(struct lagg_softc *sc, struct lagg_port *lp, struct mbuf *m) argument 2095 lagg_lacp_attach(struct lagg_softc *sc) argument 2105 lagg_lacp_detach(struct lagg_softc *sc) argument 2121 lagg_lacp_lladdr(struct lagg_softc *sc) argument 2137 lagg_lacp_start(struct lagg_softc *sc, struct mbuf *m) argument 2152 lagg_lacp_input(struct lagg_softc *sc, struct lagg_port *lp, struct mbuf *m) argument [all...] |
/freebsd-11-stable/sys/dev/mfi/ |
H A D | mfi.c | 97 static void mfi_ldprobe(struct mfi_softc *sc); 98 static void mfi_syspdprobe(struct mfi_softc *sc); 100 static int mfi_aen_register(struct mfi_softc *sc, int seq, int locale); 102 static int mfi_add_ld(struct mfi_softc *sc, int); 104 static int mfi_add_sys_pd(struct mfi_softc *sc, int); 117 static void mfi_enable_intr_xscale(struct mfi_softc *sc); 118 static void mfi_enable_intr_ppc(struct mfi_softc *sc); 119 static int32_t mfi_read_fw_status_xscale(struct mfi_softc *sc); 120 static int32_t mfi_read_fw_status_ppc(struct mfi_softc *sc); 121 static int mfi_check_clear_intr_xscale(struct mfi_softc *sc); 181 mfi_enable_intr_xscale(struct mfi_softc *sc) argument 187 mfi_enable_intr_ppc(struct mfi_softc *sc) argument 203 mfi_read_fw_status_xscale(struct mfi_softc *sc) argument 209 mfi_read_fw_status_ppc(struct mfi_softc *sc) argument 215 mfi_check_clear_intr_xscale(struct mfi_softc *sc) argument 228 mfi_check_clear_intr_ppc(struct mfi_softc *sc) argument 256 mfi_issue_cmd_xscale(struct mfi_softc *sc, bus_addr_t bus_add, uint32_t frame_cnt) argument 262 mfi_issue_cmd_ppc(struct mfi_softc *sc, bus_addr_t bus_add, uint32_t frame_cnt) argument 273 mfi_transition_firmware(struct mfi_softc *sc) argument 366 mfi_attach(struct mfi_softc *sc) argument 799 mfi_alloc_commands(struct mfi_softc *sc) argument 907 mfi_dcmd_command(struct mfi_softc *sc, struct mfi_command **cmp, uint32_t opcode, void **bufp, size_t bufsize) argument 961 mfi_comms_init(struct mfi_softc *sc) argument 1011 mfi_get_controller_info(struct mfi_softc *sc) argument 1053 mfi_get_log_state(struct mfi_softc *sc, struct mfi_evt_log_state **log_state) argument 1082 mfi_aen_setup(struct mfi_softc *sc, uint32_t seq_start) argument 1118 mfi_wait_command(struct mfi_softc *sc, struct mfi_command *cm) argument 1141 mfi_free(struct mfi_softc *sc) argument 1263 struct mfi_softc *sc; local 1282 struct mfi_softc *sc; local 1326 mfi_shutdown(struct mfi_softc *sc) argument 1364 mfi_syspdprobe(struct mfi_softc *sc) argument 1446 mfi_ldprobe(struct mfi_softc *sc) argument 1542 mfi_decode_evt(struct mfi_softc *sc, struct mfi_evt_detail *detail) argument 1637 mfi_queue_evt(struct mfi_softc *sc, struct mfi_evt_detail *detail) argument 1654 struct mfi_softc *sc; local 1670 mfi_aen_register(struct mfi_softc *sc, int seq, int locale) argument 1723 struct mfi_softc *sc; local 1773 mfi_parse_entries(struct mfi_softc *sc, int start_seq, int stop_seq) argument 1862 mfi_add_ld(struct mfi_softc *sc, int id) argument 1911 struct mfi_softc *sc; local 1944 mfi_add_sys_pd(struct mfi_softc *sc, int id) argument 1994 struct mfi_softc *sc; local 2033 mfi_bio_command(struct mfi_softc *sc) argument 2124 mfi_build_syspdio(struct mfi_softc *sc, struct bio *bio) argument 2185 mfi_build_ldio(struct mfi_softc *sc, struct bio *bio) argument 2245 struct mfi_softc *sc; local 2269 mfi_startio(struct mfi_softc *sc) argument 2305 mfi_mapcmd(struct mfi_softc *sc, struct mfi_command *cm) argument 2342 struct mfi_softc *sc; local 2453 mfi_send_frame(struct mfi_softc *sc, struct mfi_command *cm) argument 2471 mfi_std_send_frame(struct mfi_softc *sc, struct mfi_command *cm) argument 2525 mfi_complete(struct mfi_softc *sc, struct mfi_command *cm) argument 2552 mfi_abort(struct mfi_softc *sc, struct mfi_command **cm_abort) argument 2602 mfi_dump_blocks(struct mfi_softc *sc, int id, uint64_t lba, void *virt, int len) argument 2647 mfi_dump_syspd_blocks(struct mfi_softc *sc, int id, uint64_t lba, void *virt, int len) argument 2693 struct mfi_softc *sc; local 2713 struct mfi_softc *sc; local 2733 mfi_config_lock(struct mfi_softc *sc, uint32_t opcode) argument 2749 mfi_config_unlock(struct mfi_softc *sc, int locked) argument 2761 mfi_check_command_pre(struct mfi_softc *sc, struct mfi_command *cm) argument 2818 mfi_check_command_post(struct mfi_softc *sc, struct mfi_command *cm) argument 2880 mfi_check_for_sscd(struct mfi_softc *sc, struct mfi_command *cm) argument 2936 mfi_stp_cmd(struct mfi_softc *sc, struct mfi_command *cm,caddr_t arg) argument 3022 mfi_user_command(struct mfi_softc *sc, struct mfi_ioc_passthru *ioc) argument 3093 struct mfi_softc *sc; local 3470 struct mfi_softc *sc; local 3669 struct mfi_softc *sc; local 3697 struct mfi_softc *sc; local 3742 struct mfi_softc *sc = (struct mfi_softc *)data; local [all...] |
/freebsd-11-stable/sys/arm/freescale/imx/ |
H A D | imx6_pl310.c | 45 platform_pl310_init(struct pl310_softc *sc) argument 54 reg = pl310_read4(sc, PL310_POWER_CTRL); 56 pl310_write4(sc, PL310_POWER_CTRL, reg); 58 pl310_set_ram_latency(sc, PL310_TAG_RAM_CTRL, 4, 2, 3); 59 pl310_set_ram_latency(sc, PL310_DATA_RAM_CTRL, 4, 2, 3); 63 platform_pl310_write_ctrl(struct pl310_softc *sc, uint32_t val) argument 66 pl310_write4(sc, PL310_CTRL, val); 70 platform_pl310_write_debug(struct pl310_softc *sc, uint32_t val) argument 73 pl310_write4(sc, PL310_DEBUG_CTRL, val);
|