/freebsd-9.3-release/sys/powerpc/powermac/ |
H A D | ata_macio.c | 155 struct ata_macio_softc *sc; local 163 sc = device_get_softc(dev); 164 bzero(sc, sizeof(struct ata_macio_softc)); 165 ch = &sc->sc_ch.sc_ch; 169 sc->rev = 4; 170 sc->max_mode = ATA_UDMA4; 173 sc->rev = 3; 174 sc->max_mode = ATA_WDMA2; 178 sc->sc_mem = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, 180 if (sc 206 struct ata_macio_softc *sc = device_get_softc(dev); local 254 struct ata_macio_softc *sc = device_get_softc(dev); local 328 struct ata_macio_softc *sc = device_get_softc(request->parent); local [all...] |
/freebsd-9.3-release/sys/arm/xscale/ixp425/ |
H A D | if_npe.c | 199 RD4(struct npe_softc *sc, bus_size_t off) argument 201 return bus_space_read_4(sc->sc_iot, sc->sc_ioh, off); 205 WR4(struct npe_softc *sc, bus_size_t off, uint32_t val) argument 207 bus_space_write_4(sc->sc_iot, sc->sc_ioh, off, val); 226 static void npe_setmac(struct npe_softc *sc, u_char *eaddr); 227 static void npe_getmac(struct npe_softc *sc, u_char *eaddr); 260 #define DPRINTF(sc, fmt, ...) do { \ 261 if (sc 324 struct npe_softc *sc = device_get_softc(dev); local 395 struct npe_softc *sc = device_get_softc(dev); local 416 npe_setmcast(struct npe_softc *sc) argument 468 struct npe_softc *sc; local 477 npe_dma_setup(struct npe_softc *sc, struct npedma *dma, const char *name, int nbuf, int maxseg) argument 559 npe_dma_destroy(struct npe_softc *sc, struct npedma *dma) argument 656 npe_mac_reset(struct npe_softc *sc) argument 670 struct npe_softc *sc = device_get_softc(dev); local 816 struct npe_softc *sc = device_get_softc(dev); local 845 struct npe_softc *sc = ifp->if_softc; local 862 struct npe_softc *sc = ifp->if_softc; local 874 npe_addstats(struct npe_softc *sc) argument 933 struct npe_softc *sc = xsc; local 964 npe_setmac(struct npe_softc *sc, u_char *eaddr) argument 975 npe_getmac(struct npe_softc *sc, u_char *eaddr) argument 993 npe_txdone_finish(struct npe_softc *sc, const struct txdone *td) argument 1025 struct npe_softc *sc; local 1059 npe_rxbuf_init(struct npe_softc *sc, struct npebuf *npe, struct mbuf *m) argument 1104 struct npe_softc *sc = arg; local 1161 struct npe_softc *sc = ifp->if_softc; local 1173 npe_startxmit(struct npe_softc *sc) argument 1195 npe_startrecv(struct npe_softc *sc) argument 1216 struct npe_softc *sc = xsc; local 1282 struct npe_softc *sc = xsc; local 1294 struct npe_softc *sc = ifp->if_softc; local 1376 struct npe_softc *sc = ifp->if_softc; local 1383 npe_stopxmit(struct npe_softc *sc) argument 1403 npe_stoprecv(struct npe_softc *sc) argument 1426 npestop(struct npe_softc *sc) argument 1458 npewatchdog(struct npe_softc *sc) argument 1474 struct npe_softc *sc = ifp->if_softc; local 1551 npe_setrxqosentry(struct npe_softc *sc, int classix, int trafclass, int qid) argument 1561 npe_setportaddress(struct npe_softc *sc, const uint8_t mac[ETHER_ADDR_LEN]) argument 1577 npe_setfirewallmode(struct npe_softc *sc, int onoff) argument 1591 npe_updatestats(struct npe_softc *sc) argument 1644 struct npe_softc *sc; local 1659 npe_mii_mdio_read(struct npe_softc *sc, int reg) argument 1672 npe_mii_mdio_write(struct npe_softc *sc, int reg, uint32_t cmd) argument 1682 npe_mii_mdio_wait(struct npe_softc *sc) argument 1702 struct npe_softc *sc = device_get_softc(dev); local 1717 struct npe_softc *sc = device_get_softc(dev); local 1732 struct npe_softc *sc = device_get_softc(dev); local [all...] |
/freebsd-9.3-release/sys/dev/pdq/ |
H A D | pdq_ifsubr.c | 75 pdq_ifstop(pdq_softc_t *sc) argument 78 PDQ_IFNET(sc)->if_drv_flags &= ~(IFF_DRV_RUNNING | IFF_DRV_OACTIVE); 79 sc->sc_pdq->pdq_flags &= ~PDQ_RUNNING; 80 pdq_stop(sc->sc_pdq); 81 callout_stop(&sc->watchdog); 85 pdq_ifinit_locked(pdq_softc_t *sc) argument 88 PDQ_LOCK_ASSERT(sc); 89 if (PDQ_IFNET(sc)->if_flags & IFF_UP) { 90 PDQ_IFNET(sc)->if_drv_flags |= IFF_DRV_RUNNING; 91 if (PDQ_IFNET(sc) 111 pdq_softc_t *sc; local 122 pdq_softc_t *sc; local 149 pdq_softc_t * const sc = PDQ_OS_IFP_TO_SOFTC(ifp); local 213 pdq_softc_t * const sc = PDQ_OS_IFP_TO_SOFTC(ifp); local 227 pdq_softc_t *sc = pdq->pdq_os_ctx; local 269 pdq_softc_t *sc = pdq->pdq_os_ctx; local 285 pdq_softc_t *sc = pdq->pdq_os_ctx; local 300 pdq_softc_t *sc = pdq->pdq_os_ctx; local 347 pdq_softc_t * const sc = PDQ_OS_IFP_TO_SOFTC(ifp); local 371 pdq_softc_t * const sc = PDQ_OS_IFP_TO_SOFTC(ifp); local 389 pdq_softc_t * const sc = pdq->pdq_os_ctx; local 414 pdq_softc_t *sc = PDQ_OS_IFP_TO_SOFTC(ifp); local 457 pdq_ifattach(pdq_softc_t *sc, const pdq_uint8_t *llc, pdq_type_t type) argument 502 pdq_ifdetach(pdq_softc_t *sc) argument 521 pdq_softc_t *sc; local 551 pdq_softc_t * const sc = pdq->pdq_os_ctx; local 686 pdq_os_descriptor_block_sync( pdq_os_ctx_t *sc, size_t offset, size_t length, int ops) argument 696 pdq_os_consumer_block_sync( pdq_os_ctx_t *sc, int ops) argument 704 pdq_os_unsolicited_event_sync( pdq_os_ctx_t *sc, size_t offset, size_t length, int ops) argument 714 pdq_os_databuf_sync( pdq_os_ctx_t *sc, struct mbuf *m, size_t offset, size_t length, int ops) argument 725 pdq_os_databuf_free( pdq_os_ctx_t *sc, struct mbuf *m) argument 739 pdq_os_databuf_alloc( pdq_os_ctx_t *sc) argument [all...] |
/freebsd-9.3-release/sys/dev/quicc/ |
H A D | quicc_core.c | 80 struct quicc_softc *sc = arg; local 83 sipnr = quicc_read4(sc->sc_rres, QUICC_REG_SIPNR_L); 85 qd = sc->sc_device; 90 device_printf(sc->sc_dev, "Stray interrupt %08x\n", sipnr); 101 struct quicc_softc *sc; local 107 sc = device_get_softc(dev); 113 sc->sc_rres = bus_alloc_resource(dev, sc->sc_rtype, &sc->sc_rrid, 115 if (sc 207 struct quicc_softc *sc; local 220 struct quicc_softc *sc; local 311 struct quicc_softc *sc; local 358 struct quicc_softc *sc; local [all...] |
/freebsd-9.3-release/sys/mips/atheros/ |
H A D | ar71xx_wdog.c | 56 struct ar71xx_wdog_softc *sc = private; local 60 if (sc->debug) 61 device_printf(sc->dev, "ar71xx_wdog_watchdog_fn: cmd: %x\n", cmd); 65 if (sc->debug) 66 device_printf(sc->dev, "ar71xx_wdog_watchdog_fn: programming timer: %jx\n", (uintmax_t) timer_val); 77 sc->armed = 1; 80 if (sc->debug) 81 device_printf(sc->dev, "ar71xx_wdog_watchdog_fn: disarming\n"); 82 if (sc->armed) { 85 sc 101 struct ar71xx_wdog_softc *sc = device_get_softc(dev); local 121 struct ar71xx_wdog_softc *sc = device_get_softc(dev); local [all...] |
/freebsd-9.3-release/sys/net/ |
H A D | if_lagg.c | 230 struct lagg_softc *sc = ifp->if_softc; local 236 LAGG_RLOCK(sc); 237 if (!SLIST_EMPTY(&sc->sc_ports)) { 238 SLIST_FOREACH(lp, &sc->sc_ports, lp_entries) 241 LAGG_RUNLOCK(sc); 251 struct lagg_softc *sc = ifp->if_softc; local 257 LAGG_RLOCK(sc); 258 if (!SLIST_EMPTY(&sc->sc_ports)) { 259 SLIST_FOREACH(lp, &sc->sc_ports, lp_entries) 262 LAGG_RUNLOCK(sc); 269 struct lagg_softc *sc; local 352 struct lagg_softc *sc = (struct lagg_softc *)ifp->if_softc; local 389 lagg_lladdr(struct lagg_softc *sc, uint8_t *lladdr) argument 404 lagg_capabilities(struct lagg_softc *sc) argument 450 struct lagg_softc *sc = lp->lp_softc; local 491 struct lagg_softc *sc = (struct lagg_softc *)arg; local 523 lagg_port_create(struct lagg_softc *sc, struct ifnet *ifp) argument 658 lagg_port_checkstacking(struct lagg_softc *sc) argument 680 struct lagg_softc *sc = lp->lp_softc; local 756 struct lagg_softc *sc; local 841 struct lagg_softc *sc; local 860 struct lagg_softc *sc = lp->lp_softc; local 901 struct lagg_softc *sc = (struct lagg_softc *)xsc; local 922 lagg_stop(struct lagg_softc *sc) argument 940 struct lagg_softc *sc = (struct lagg_softc *)ifp->if_softc; local 1156 lagg_ether_setmulti(struct lagg_softc *sc) argument 1174 struct lagg_softc *sc = lp->lp_softc; local 1222 struct lagg_softc *sc = lp->lp_softc; local 1273 struct lagg_softc *sc = (struct lagg_softc *)ifp->if_softc; local 1315 struct lagg_softc *sc = lp->lp_softc; local 1348 struct lagg_softc *sc = (struct lagg_softc *)ifp->if_softc; local 1360 struct lagg_softc *sc = (struct lagg_softc *)ifp->if_softc; local 1375 lagg_linkstate(struct lagg_softc *sc) argument 1414 struct lagg_softc *sc = NULL; local 1429 lagg_link_active(struct lagg_softc *sc, struct lagg_port *lp) argument 1492 lagg_hashmbuf(struct lagg_softc *sc, struct mbuf *m, uint32_t key) argument 1605 lagg_rr_attach(struct lagg_softc *sc) argument 1618 lagg_rr_detach(struct lagg_softc *sc) argument 1624 lagg_rr_start(struct lagg_softc *sc, struct mbuf *m) argument 1649 lagg_rr_input(struct lagg_softc *sc, struct lagg_port *lp, struct mbuf *m) argument 1664 lagg_fail_attach(struct lagg_softc *sc) argument 1676 lagg_fail_detach(struct lagg_softc *sc) argument 1682 lagg_fail_start(struct lagg_softc *sc, struct mbuf *m) argument 1697 lagg_fail_input(struct lagg_softc *sc, struct lagg_port *lp, struct mbuf *m) argument 1728 lagg_lb_attach(struct lagg_softc *sc) argument 1754 lagg_lb_detach(struct lagg_softc *sc) argument 1763 lagg_lb_porttable(struct lagg_softc *sc, struct lagg_port *lp) argument 1787 struct lagg_softc *sc = lp->lp_softc; local 1794 struct lagg_softc *sc = lp->lp_softc; local 1799 lagg_lb_start(struct lagg_softc *sc, struct mbuf *m) argument 1826 lagg_lb_input(struct lagg_softc *sc, struct lagg_port *lp, struct mbuf *m) argument 1841 lagg_lacp_attach(struct lagg_softc *sc) argument 1869 lagg_lacp_detach(struct lagg_softc *sc) argument 1886 lagg_lacp_lladdr(struct lagg_softc *sc) argument 1900 lagg_lacp_start(struct lagg_softc *sc, struct mbuf *m) argument 1915 lagg_lacp_input(struct lagg_softc *sc, struct lagg_port *lp, struct mbuf *m) argument [all...] |
/freebsd-9.3-release/sys/dev/lmc/ |
H A D | if_lmc.c | 326 shift_srom_bits(softc_t *sc, u_int32_t data, u_int32_t len) argument 345 read_srom(softc_t *sc, u_int8_t addr) argument 357 shift_srom_bits(sc, 6, 4); /* issue read cmd */ 358 shift_srom_bits(sc, addr, 6); /* issue address */ 378 write_srom(softc_t *sc, u_int8_t addr, u_int16_t data) argument 390 shift_srom_bits(sc, 4, 4); /* issue write enable cmd */ 391 shift_srom_bits(sc, 63, 6); /* issue address */ 398 shift_srom_bits(sc, 7, 4); /* issue erase cmd */ 399 shift_srom_bits(sc, addr, 6); /* issue address */ 408 shift_srom_bits(sc, 431 read_bios(softc_t *sc, u_int32_t addr) argument 455 write_bios_phys(softc_t *sc, u_int32_t addr, u_int8_t data) argument 478 write_bios(softc_t *sc, u_int32_t addr, u_int8_t data) argument 512 erase_bios(softc_t *sc) argument 548 shift_mii_bits(softc_t *sc, u_int32_t data, u_int32_t len) argument 568 read_mii(softc_t *sc, u_int8_t regad) argument 599 write_mii(softc_t *sc, u_int8_t regad, u_int16_t data) argument 615 set_mii16_bits(softc_t *sc, u_int16_t bits) argument 623 clr_mii16_bits(softc_t *sc, u_int16_t bits) argument 631 set_mii17_bits(softc_t *sc, u_int16_t bits) argument 639 clr_mii17_bits(softc_t *sc, u_int16_t bits) argument 654 led_off(softc_t *sc, u_int16_t led) argument 661 led_on(softc_t *sc, u_int16_t led) argument 668 led_inv(softc_t *sc, u_int16_t led) argument 681 write_framer(softc_t *sc, u_int16_t addr, u_int8_t data) argument 688 read_framer(softc_t *sc, u_int16_t addr) argument 708 make_gpio_input(softc_t *sc, u_int32_t bits) argument 715 make_gpio_output(softc_t *sc, u_int32_t bits) argument 722 read_gpio(softc_t *sc) argument 728 set_gpio_bits(softc_t *sc, u_int32_t bits) argument 734 clr_gpio_bits(softc_t *sc, u_int32_t bits) argument 743 reset_xilinx(softc_t *sc) argument 760 load_xilinx_from_rom(softc_t *sc) argument 790 load_xilinx_from_file(softc_t *sc, char *addr, u_int32_t len) argument 854 shift_synth_bits(softc_t *sc, u_int32_t data, u_int32_t len) argument 871 write_synth(softc_t *sc, struct synth *synth) argument 913 write_dac(softc_t *sc, u_int16_t data) argument 949 hssi_config(softc_t *sc) argument 1020 hssi_ident(softc_t *sc) argument 1026 hssi_watchdog(softc_t *sc) argument 1080 hssi_ioctl(softc_t *sc, struct ioctl *ioctl) argument 1108 t3_config(softc_t *sc) argument 1186 t3_ident(softc_t *sc) argument 1193 t3_watchdog(softc_t *sc) argument 1432 t3_send_dbl_feac(softc_t *sc, int feac1, int feac2) argument 1459 t3_ioctl(softc_t *sc, struct ioctl *ioctl) argument 1535 ssi_config(softc_t *sc) argument 1597 ssi_ident(softc_t *sc) argument 1604 ssi_watchdog(softc_t *sc) argument 1683 ssi_ioctl(softc_t *sc, struct ioctl *ioctl) argument 1711 t1_config(softc_t *sc) argument 2045 t1_ident(softc_t *sc) argument 2054 t1_watchdog(softc_t *sc) argument 2322 t1_send_bop(softc_t *sc, int bop_code) argument 2346 t1_ioctl(softc_t *sc, struct ioctl *ioctl) argument 2528 softc_t *sc = IFP2SC(ifp); local 2607 create_ring(softc_t *sc, struct desc_ring *ring, int num_descs) argument 2743 destroy_ring(softc_t *sc, struct desc_ring *ring) argument 2814 rxintr_cleanup(softc_t *sc) argument 3006 rxintr_setup(softc_t *sc) argument 3080 txintr_cleanup(softc_t *sc) argument 3127 txintr_setup_mbuf(softc_t *sc, struct mbuf *m) argument 3221 txintr_setup(softc_t *sc) argument 3332 create_ring(softc_t *sc, struct desc_ring *ring, int num_descs) argument 3361 destroy_ring(softc_t *sc, struct desc_ring *ring) argument 3393 rxintr_cleanup(softc_t *sc) argument 3555 rxintr_setup(softc_t *sc) argument 3609 txintr_cleanup(softc_t *sc) argument 3656 txintr_setup_frag(softc_t *sc, char *data, int length) argument 3723 txintr_setup_skb(softc_t *sc, struct sk_buff *skb) argument 3755 txintr_setup(softc_t *sc) argument 3816 check_intr_status(softc_t *sc) argument 3899 softc_t *sc = arg; local 3953 user_interrupt(softc_t *sc, int check_status) argument 3968 softc_t *sc = IFP2SC(ifp); local 3996 softc_t *sc = arg; local 4033 set_status(softc_t *sc, int status) argument 4050 softc_t *sc = IFP2SC(&p2p->p2p_if); local 4063 softc_t *sc = IFP2SC(&p2p->p2p_if); local 4112 config_proto(softc_t *sc, struct config *config) argument 4281 core_ioctl(softc_t *sc, u_long cmd, caddr_t data) argument 4430 core_watchdog(softc_t *sc) argument 4508 softc_t *sc = IFP2SC(ifp); local 4579 softc_t *sc = IFP2SC(ifp); local 4592 softc_t *sc = IFP2SC(ifp); local 4650 softc_t *sc = IFP2SC(ifp); local 4749 softc_t *sc = IFP2SC(ifp); local 4797 softc_t *sc = IFP2SC(ifp); local 4818 softc_t *sc = ifp->if_softc; local 4856 lmc_ifnet_attach(softc_t *sc) argument 4927 lmc_ifnet_detach(softc_t *sc) argument 5004 softc_t *sc = NG_NODE_PRIVATE(node); local 5106 softc_t *sc = NG_NODE_PRIVATE(node); local 5138 softc_t *sc = NG_NODE_PRIVATE(NG_HOOK_NODE(hook)); local 5150 softc_t *sc = NG_NODE_PRIVATE(NG_HOOK_NODE(hook)); local 5205 softc_t *sc = NG_NODE_PRIVATE(NG_HOOK_NODE(hook)); local 5240 softc_t *sc = arg; local 5259 ng_attach(softc_t *sc) argument 5316 ng_detach(softc_t *sc) argument 5339 startup_card(softc_t *sc) argument 5459 softc_t *sc = arg; local 5479 attach_card(softc_t *sc, const char *intrstr) argument 5545 detach_card(softc_t *sc) argument 5620 softc_t *sc = device_get_softc(dev); local 5659 softc_t *sc = device_get_softc(dev); local 5797 softc_t *sc = (softc_t *)self; /* device is first in softc */ local 5825 softc_t *sc = (softc_t *)self; /* device is first in softc */ local 6009 struct pci_softc *sc = pcicd->cd_devs[i]; local 6089 softc_t *sc = (softc_t *)self; /* device is first in softc */ local 6117 softc_t *sc = (softc_t *)self; /* device is first in softc */ local 6360 softc_t *sc = (softc_t *)self; /* device is first in softc */ local 6436 softc_t *sc = dev_to_hdlc(net_dev)->priv; local 6459 softc_t *sc = dev_to_hdlc(net_dev)->priv; local 6501 softc_t *sc = dev_to_hdlc(net_dev)->priv; local 6532 softc_t *sc = dev_to_hdlc(net_dev)->priv; local 6543 softc_t *sc = dev_to_hdlc(net_dev)->priv; local 6642 softc_t *sc = (softc_t *)softc; local 6725 softc_t *sc = dev_to_hdlc(net_dev)->priv; local 6741 softc_t *sc = dev_to_hdlc(net_dev)->priv; local 6784 softc_t *sc = dev_to_hdlc(net_dev)->priv; local 6845 softc_t *sc; local [all...] |
/freebsd-9.3-release/sys/geom/gate/ |
H A D | g_gate.c | 92 g_gate_destroy(struct g_gate_softc *sc, boolean_t force) argument 101 pp = sc->sc_provider; 107 mtx_lock(&sc->sc_queue_mtx); 108 if ((sc->sc_flags & G_GATE_FLAG_DESTROY) == 0) 109 sc->sc_flags |= G_GATE_FLAG_DESTROY; 110 wakeup(sc); 111 mtx_unlock(&sc->sc_queue_mtx); 115 callout_drain(&sc->sc_callout); 116 mtx_lock(&sc->sc_queue_mtx); 117 while ((bp = bioq_first(&sc 159 struct g_gate_softc *sc; local 179 struct g_gate_softc *sc; local 228 struct g_gate_softc *sc; local 275 struct g_gate_softc *sc = NULL; local 300 g_gate_release(struct g_gate_softc *sc) argument 337 struct g_gate_softc *sc; local 372 struct g_gate_softc *sc; local 394 struct g_gate_softc *sc; local 433 struct g_gate_softc *sc; local 596 g_gate_modify(struct g_gate_softc *sc, struct g_gate_ctl_modify *ggio) argument 697 struct g_gate_softc *sc; local [all...] |
/freebsd-9.3-release/sys/powerpc/mpc85xx/ |
H A D | i2c.c | 131 i2c_write_reg(struct i2c_softc *sc, bus_size_t off, uint8_t val) argument 134 bus_space_write_1(sc->bst, sc->bsh, off, val); 138 i2c_read_reg(struct i2c_softc *sc, bus_size_t off) argument 141 return (bus_space_read_1(sc->bst, sc->bsh, off)); 145 i2c_flag_set(struct i2c_softc *sc, bus_size_t off, uint8_t mask) argument 149 status = i2c_read_reg(sc, off); 151 i2c_write_reg(sc, off, status); 155 i2c_do_wait(device_t dev, struct i2c_softc *sc, in argument 191 struct i2c_softc *sc; local 220 struct i2c_softc *sc; local 252 struct i2c_softc *sc; local 276 struct i2c_softc *sc; local 311 struct i2c_softc *sc; local 325 struct i2c_softc *sc; local 358 struct i2c_softc *sc; local 408 struct i2c_softc *sc; local [all...] |
H A D | ds1553_core.c | 48 struct ds1553_softc *sc; local 51 sc = device_get_softc(dev); 53 if (mtx_initialized(&sc->sc_mtx) == 0) { 58 if (sc->sc_read == NULL) 59 sc->sc_read = ds1553_direct_read; 60 if (sc->sc_write == NULL) 61 sc->sc_write = ds1553_direct_write; 63 sc->year_offset = POSIX_BASE_YEAR; 65 mtx_lock_spin(&sc->sc_mtx); 68 sec = (*sc 92 struct ds1553_softc *sc; local 135 struct ds1553_softc *sc; local 181 struct ds1553_softc *sc; local 190 struct ds1553_softc *sc; local [all...] |
H A D | pci_fdt.c | 232 struct fsl_pcib_softc *sc; local 238 sc = device_get_softc(dev); 239 sc->sc_dev = dev; 241 sc->sc_rid = 0; 242 sc->sc_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &sc->sc_rid, 244 if (sc->sc_res == NULL) { 248 sc->sc_bst = rman_get_bustag(sc->sc_res); 249 sc 327 fsl_pcib_cfgread(struct fsl_pcib_softc *sc, u_int bus, u_int slot, u_int func, u_int reg, int bytes) argument 368 fsl_pcib_cfgwrite(struct fsl_pcib_softc *sc, u_int bus, u_int slot, u_int func, u_int reg, uint32_t data, int bytes) argument 437 struct fsl_pcib_softc *sc = device_get_softc(dev); local 446 struct fsl_pcib_softc *sc = device_get_softc(dev); local 463 struct fsl_pcib_softc *sc = device_get_softc(dev); local 471 fsl_pcib_init_via(struct fsl_pcib_softc *sc, uint16_t device, int bus, int slot, int fn) argument 487 fsl_pcib_init_bar(struct fsl_pcib_softc *sc, int bus, int slot, int func, int barno) argument 546 fsl_pcib_route_int(struct fsl_pcib_softc *sc, u_int bus, u_int slot, u_int func, u_int intpin) argument 577 fsl_pcib_init(struct fsl_pcib_softc *sc, int bus, int maxslot) argument 721 fsl_pcib_inbound(struct fsl_pcib_softc *sc, int wnd, int tgt, u_long start, u_long size, u_long pci_start) argument 747 fsl_pcib_outbound(struct fsl_pcib_softc *sc, int wnd, int res, u_long start, u_long size, u_long pci_start) argument 773 fsl_pcib_set_range(struct fsl_pcib_softc *sc, int type, int wnd, u_long start, u_long size) argument 827 struct fsl_pcib_softc *sc; local 882 struct fsl_pcib_softc *sc = device_get_softc(dev); local 928 struct fsl_pcib_softc *sc = device_get_softc(dev); local 944 struct fsl_pcib_softc *sc = device_get_softc(dev); local 955 fsl_pcib_intr_info(phandle_t node, struct fsl_pcib_softc *sc) argument 966 fsl_pcib_decode_win(phandle_t node, struct fsl_pcib_softc *sc) argument [all...] |
/freebsd-9.3-release/sys/dev/fatm/ |
H A D | if_fatm.c | 121 static int fatm_load_vc(struct fatm_softc *sc, struct card_vcc *vc); 147 fatm_utopia_writeregs_complete(struct fatm_softc *sc, struct cmdqueue *q) argument 150 H_SYNCSTAT_POSTREAD(sc, q->q.statp); 152 sc->istats.suni_reg_errors++; 170 struct fatm_softc *sc; local 172 sc = ifatm->ifp->if_softc; 173 FATM_CHECKLOCK(sc); 178 q = GET_QUEUE(sc->cmdqueue, struct cmdqueue, sc->cmdqueue.head); 180 H_SYNCSTAT_POSTREAD(sc, 227 fatm_utopia_readregs_complete(struct fatm_softc *sc, struct cmdqueue *q) argument 249 fatm_utopia_readregs_internal(struct fatm_softc *sc) argument 335 struct fatm_softc *sc; local 366 fatm_check_heartbeat(struct fatm_softc *sc) argument 396 struct fatm_softc *sc; local 412 fatm_reset(struct fatm_softc *sc) argument 460 fatm_stop(struct fatm_softc *sc) argument 551 firmware_load(struct fatm_softc *sc) argument 570 rx_getc(struct fatm_softc *sc) argument 592 rx_flush(struct fatm_softc *sc) argument 605 tx_putc(struct fatm_softc *sc, u_char c) argument 629 fatm_start_firmware(struct fatm_softc *sc, uint32_t start) argument 678 init_card_queue(struct fatm_softc *sc, struct fqueue *queue, int qlen, size_t qel_size, size_t desc_size, cardoff_t off, u_char **statpp, uint32_t *cardstat, u_char *descp, uint32_t carddesc) argument 712 fatm_init_cmd(struct fatm_softc *sc) argument 850 fatm_getprom(struct fatm_softc *sc) argument 949 alloc_dma_memory(struct fatm_softc *sc, const char *nm, struct fatm_mem *mem) argument 992 alloc_dma_memoryX(struct fatm_softc *sc, const char *nm, struct fatm_mem *mem) argument 1073 fatm_supply_small_buffers(struct fatm_softc *sc) argument 1162 fatm_supply_large_buffers(struct fatm_softc *sc) argument 1254 fatm_init_locked(struct fatm_softc *sc) argument 1371 struct fatm_softc *sc = p; local 1387 fatm_intr_drain_cmd(struct fatm_softc *sc) argument 1419 fatm_intr_drain_small_buffers(struct fatm_softc *sc) argument 1446 fatm_intr_drain_large_buffers(struct fatm_softc *sc) argument 1475 fatm_intr_drain_rx(struct fatm_softc *sc) argument 1588 fatm_intr_drain_tx(struct fatm_softc *sc) argument 1627 struct fatm_softc *sc = (struct fatm_softc *)p; local 1670 fatm_getstat_complete(struct fatm_softc *sc, struct cmdqueue *q) argument 1681 fatm_getstat(struct fatm_softc *sc) argument 1810 fatm_fix_chain(struct fatm_softc *sc, struct mbuf **mp) argument 1928 fatm_tx(struct fatm_softc *sc, struct mbuf *m, struct card_vcc *vc, u_int mlen) argument 2040 struct fatm_softc *sc; local 2121 fatm_start_vcc(struct fatm_softc *sc, u_int vpi, u_int vci, uint32_t cmd, u_int mtu, void (*func)(struct fatm_softc *, struct cmdqueue *)) argument 2155 fatm_cmd_complete(struct fatm_softc *sc, struct cmdqueue *q) argument 2170 fatm_open_finish(struct fatm_softc *sc, struct card_vcc *vc) argument 2191 fatm_open_complete(struct fatm_softc *sc, struct cmdqueue *q) argument 2213 fatm_waitvcc(struct fatm_softc *sc, struct cmdqueue *q) argument 2231 fatm_open_vcc(struct fatm_softc *sc, struct atmio_openvcc *op) argument 2311 fatm_load_vc(struct fatm_softc *sc, struct card_vcc *vc) argument 2343 fatm_close_finish(struct fatm_softc *sc, struct card_vcc *vc) argument 2361 fatm_close_complete(struct fatm_softc *sc, struct cmdqueue *q) argument 2383 fatm_close_vcc(struct fatm_softc *sc, struct atmio_closevcc *cl) argument 2437 struct fatm_softc *sc = ifp->if_softc; local 2532 struct fatm_softc *sc; local 2641 struct fatm_softc *sc = arg1; local 2664 struct fatm_softc *sc = arg1; local 2745 struct fatm_softc *sc; local 3059 dump_s1_queue(struct fatm_softc *sc) argument [all...] |
/freebsd-9.3-release/sys/dev/usb/wlan/ |
H A D | if_urtw.c | 82 #define DPRINTF(sc, m, fmt, ...) do { \ 83 if (sc->sc_debug & (m)) \ 87 #define DPRINTF(sc, m, fmt, ...) do { \ 88 (void) sc; \ 129 #define urtw_read8_m(sc, val, data) do { \ 130 error = urtw_read8_c(sc, val, data); \ 134 #define urtw_write8_m(sc, val, data) do { \ 135 error = urtw_write8_c(sc, val, data); \ 139 #define urtw_read16_m(sc, val, data) do { \ 140 error = urtw_read16_c(sc, va 786 struct urtw_softc *sc = device_get_softc(dev); local 935 struct urtw_softc *sc = device_get_softc(dev); local 987 urtw_free_tx_data_list(struct urtw_softc *sc) argument 993 urtw_free_rx_data_list(struct urtw_softc *sc) argument 999 urtw_free_data_list(struct urtw_softc *sc, struct urtw_data data[], int ndata, int fillmbuf) argument 1072 struct urtw_softc *sc = arg; local 1118 struct urtw_softc *sc = arg; local 1126 urtw_adapter_start_b(struct urtw_softc *sc) argument 1215 urtw_adapter_start(struct urtw_softc *sc) argument 1277 urtw_set_mode(struct urtw_softc *sc, uint32_t mode) argument 1291 urtw_8187b_cmd_reset(struct urtw_softc *sc) argument 1317 urtw_do_request(struct urtw_softc *sc, struct usb_device_request *req, void *data) argument 1342 struct urtw_softc *sc = ifp->if_softc; local 1381 struct urtw_softc *sc = ifp->if_softc; local 1389 urtw_abort_xfers(struct urtw_softc *sc) argument 1406 struct urtw_softc *sc = ifp->if_softc; local 1454 struct urtw_softc *sc = ifp->if_softc; local 1489 urtw_alloc_data_list(struct urtw_softc *sc, struct urtw_data data[], int ndata, int maxsz, void *dma_buf) argument 1521 urtw_alloc_rx_data_list(struct urtw_softc *sc) argument 1541 urtw_alloc_tx_data_list(struct urtw_softc *sc) argument 1569 struct urtw_softc *sc = ifp->if_softc; local 1617 struct urtw_softc *sc = ic->ic_ifp->if_softc; local 1672 urtw_tx_start(struct urtw_softc *sc, struct ieee80211_node *ni, struct mbuf *m0, struct urtw_data *data, int prior) argument 1864 struct urtw_softc *sc = ic->ic_ifp->if_softc; local 1916 struct urtw_softc *sc = arg; local 1932 struct urtw_softc *sc = arg; local 1946 urtw_set_rate(struct urtw_softc *sc) argument 2002 urtw_update_msr(struct urtw_softc *sc) argument 2042 urtw_read8_c(struct urtw_softc *sc, int val, uint8_t *data) argument 2060 urtw_read16_c(struct urtw_softc *sc, int val, uint16_t *data) argument 2078 urtw_read32_c(struct urtw_softc *sc, int val, uint32_t *data) argument 2096 urtw_write8_c(struct urtw_softc *sc, int val, uint8_t data) argument 2112 urtw_write16_c(struct urtw_softc *sc, int val, uint16_t data) argument 2128 urtw_write32_c(struct urtw_softc *sc, int val, uint32_t data) argument 2144 urtw_get_macaddr(struct urtw_softc *sc) argument 2169 urtw_eprom_read32(struct urtw_softc *sc, uint32_t addr, uint32_t *data) argument 2245 urtw_eprom_cs(struct urtw_softc *sc, int able) argument 2261 urtw_eprom_ck(struct urtw_softc *sc) argument 2279 urtw_eprom_readbit(struct urtw_softc *sc, int16_t *data) argument 2293 urtw_eprom_writebit(struct urtw_softc *sc, int16_t bit) argument 2309 urtw_eprom_sendbits(struct urtw_softc *sc, int16_t *buf, int buflen) argument 2328 urtw_get_txpwr(struct urtw_softc *sc) argument 2394 urtw_get_rfchip(struct urtw_softc *sc) argument 2481 urtw_led_init(struct urtw_softc *sc) argument 2516 urtw_8225_rf_init(struct urtw_softc *sc) argument 2621 urtw_8185_rf_pins_enable(struct urtw_softc *sc) argument 2631 urtw_8185_tx_antenna(struct urtw_softc *sc, uint8_t ant) argument 2642 urtw_8187_write_phy_ofdm_c(struct urtw_softc *sc, uint8_t addr, uint32_t data) argument 2650 urtw_8187_write_phy_cck_c(struct urtw_softc *sc, uint8_t addr, uint32_t data) argument 2658 urtw_8187_write_phy(struct urtw_softc *sc, uint8_t addr, uint32_t data) argument 2674 urtw_8225_setgain(struct urtw_softc *sc, int16_t gain) argument 2687 urtw_8225_usb_init(struct urtw_softc *sc) argument 2714 urtw_8225_write_c(struct urtw_softc *sc, uint8_t addr, uint16_t data) argument 2747 urtw_8225_write_s16(struct urtw_softc *sc, uint8_t addr, int index, uint16_t *data) argument 2771 urtw_8225_rf_set_chan(struct urtw_softc *sc, int chan) argument 2785 urtw_8225_rf_set_sens(struct urtw_softc *sc, int sens) argument 2811 urtw_8225_set_txpwrlvl(struct urtw_softc *sc, int chan) argument 2865 urtw_8225_rf_stop(struct urtw_softc *sc) argument 2899 urtw_8225v2_rf_init(struct urtw_softc *sc) argument 3025 urtw_8225v2_rf_set_chan(struct urtw_softc *sc, int chan) argument 3040 urtw_8225_read(struct urtw_softc *sc, uint8_t addr, uint32_t *data) argument 3131 urtw_8225v2_set_txpwrlvl(struct urtw_softc *sc, int chan) argument 3178 urtw_8225v2_setgain(struct urtw_softc *sc, int16_t gain) argument 3198 urtw_8225_isv2(struct urtw_softc *sc, int *ret) argument 3233 urtw_8225v2b_rf_init(struct urtw_softc *sc) argument 3393 urtw_8225v2b_rf_set_chan(struct urtw_softc *sc, int chan) argument 3408 urtw_8225v2b_set_txpwrlvl(struct urtw_softc *sc, int chan) argument 3476 urtw_read8e(struct urtw_softc *sc, int val, uint8_t *data) argument 3492 urtw_write8e(struct urtw_softc *sc, int val, uint8_t data) argument 3506 urtw_8180_set_anaparam(struct urtw_softc *sc, uint32_t val) argument 3529 urtw_8185_set_anaparam2(struct urtw_softc *sc, uint32_t val) argument 3552 urtw_intr_enable(struct urtw_softc *sc) argument 3562 urtw_intr_disable(struct urtw_softc *sc) argument 3572 urtw_reset(struct urtw_softc *sc) argument 3627 urtw_led_ctl(struct urtw_softc *sc, int mode) argument 3655 urtw_led_mode0(struct urtw_softc *sc, int mode) argument 3706 urtw_led_mode1(struct urtw_softc *sc, int mode) argument 3712 urtw_led_mode2(struct urtw_softc *sc, int mode) argument 3718 urtw_led_mode3(struct urtw_softc *sc, int mode) argument 3724 urtw_led_on(struct urtw_softc *sc, int type) argument 3754 urtw_led_off(struct urtw_softc *sc, int type) argument 3788 struct urtw_softc *sc = arg; local 3798 struct urtw_softc *sc = arg; local 3813 urtw_led_blink(struct urtw_softc *sc) argument 3861 urtw_rx_enable(struct urtw_softc *sc) argument 3882 urtw_tx_enable(struct urtw_softc *sc) argument 3935 urtw_rx_setconf(struct urtw_softc *sc) argument 3989 struct urtw_softc *sc = data->sc; local 4068 struct urtw_softc *sc = usbd_xfer_softc(xfer); local 4144 struct urtw_softc *sc = usbd_xfer_softc(xfer); local 4169 struct urtw_softc *sc = usbd_xfer_softc(xfer); local 4198 struct urtw_softc *sc = usbd_xfer_softc(xfer); local 4229 struct urtw_softc *sc = usbd_xfer_softc(xfer); local 4280 _urtw_getbuf(struct urtw_softc *sc) argument 4296 urtw_getbuf(struct urtw_softc *sc) argument 4371 struct urtw_softc *sc = ifp->if_softc; local 4380 struct urtw_softc *sc = arg; local 4419 urtw_sysctl_node(struct urtw_softc *sc) argument [all...] |
/freebsd-9.3-release/sys/dev/sound/pci/ |
H A D | emu10k1.c | 242 static void *emu_malloc(struct sc_info *sc, u_int32_t sz, bus_addr_t *addr); 243 static void *emu_memalloc(struct sc_info *sc, u_int32_t sz, bus_addr_t *addr); 244 static int emu_memfree(struct sc_info *sc, void *buf); 245 static int emu_memstart(struct sc_info *sc, void *buf); 247 static void emu_vdump(struct sc_info *sc, struct emu_voice *v); 297 emu_rd(struct sc_info *sc, int regno, int size) argument 301 return bus_space_read_1(sc->st, sc->sh, regno); 303 return bus_space_read_2(sc->st, sc 312 emu_wr(struct sc_info *sc, int regno, u_int32_t data, int size) argument 328 emu_rdptr(struct sc_info *sc, int chn, int reg) argument 346 emu_wrptr(struct sc_info *sc, int chn, int reg, u_int32_t data) argument 364 emu_wrefx(struct sc_info *sc, unsigned int pc, unsigned int data) argument 377 struct sc_info *sc = (struct sc_info *)devinfo; local 386 struct sc_info *sc = (struct sc_info *)devinfo; local 403 emu_settimer(struct sc_info *sc) argument 437 emu_enatimer(struct sc_info *sc, int go) argument 456 emu_enastop(struct sc_info *sc, char channel, int enable) argument 550 emu_valloc(struct sc_info *sc) argument 565 emu_vinit(struct sc_info *sc, struct emu_voice *m, struct emu_voice *s, u_int32_t sz, struct snd_dbuf *b) argument 636 emu_vwrite(struct sc_info *sc, struct emu_voice *v) argument 702 emu_vtrigger(struct sc_info *sc, struct emu_voice *v, int go) argument 746 emu_vpos(struct sc_info *sc, struct emu_voice *v) argument 757 emu_vdump(struct sc_info *sc, struct emu_voice *v) argument 808 struct sc_info *sc = devinfo; local 834 struct sc_info *sc = ch->parent; local 866 struct sc_info *sc = ch->parent; local 882 struct sc_info *sc = ch->parent; local 912 struct sc_info *sc = ch->parent; local 946 struct sc_info *sc = devinfo; local 1027 struct sc_info *sc = ch->parent; local 1044 struct sc_info *sc = ch->parent; local 1126 struct sc_info *sc = ch->parent; local 1157 emu_mread(struct mpu401 *arg, void *sc, int reg) argument 1166 emu_mwrite(struct mpu401 *arg, void *sc, int reg, unsigned char b) argument 1175 struct sc_info *sc = cookie; local 1196 struct sc_info *sc = (struct sc_info *)p; local 1203 emu_midiattach(struct sc_info *sc) argument 1219 struct sc_info *sc = data; local 1318 emu_malloc(struct sc_info *sc, u_int32_t sz, bus_addr_t *addr) argument 1333 emu_free(struct sc_info *sc, void *buf) argument 1339 emu_memalloc(struct sc_info *sc, u_int32_t sz, bus_addr_t *addr) argument 1394 emu_memfree(struct sc_info *sc, void *buf) argument 1419 emu_memstart(struct sc_info *sc, void *buf) argument 1435 emu_addefxop(struct sc_info *sc, int op, int z, int w, int x, int y, u_int32_t *pc) argument 1444 audigy_addefxop(struct sc_info *sc, int op, int z, int w, int x, int y, u_int32_t *pc) argument 1453 audigy_initefx(struct sc_info *sc) argument 1607 emu_initefx(struct sc_info *sc) argument 1744 emu_init(struct sc_info *sc) argument 1984 emu_uninit(struct sc_info *sc) argument 2069 struct sc_info *sc; local 2158 struct sc_info *sc; local [all...] |
/freebsd-9.3-release/sys/dev/acpi_support/ |
H A D | acpi_ibm.c | 281 static void ibm_led_task(struct acpi_ibm_softc *sc, int pending __unused); 284 static int acpi_ibm_sysctl_init(struct acpi_ibm_softc *sc, int method); 285 static int acpi_ibm_sysctl_get(struct acpi_ibm_softc *sc, int method); 286 static int acpi_ibm_sysctl_set(struct acpi_ibm_softc *sc, int method, int val); 288 static int acpi_ibm_eventmask_set(struct acpi_ibm_softc *sc, int val); 293 static int acpi_ibm_brightness_set(struct acpi_ibm_softc *sc, int arg); 294 static int acpi_ibm_bluetooth_set(struct acpi_ibm_softc *sc, int arg); 295 static int acpi_ibm_thinklight_set(struct acpi_ibm_softc *sc, int arg); 296 static int acpi_ibm_volume_set(struct acpi_ibm_softc *sc, int arg); 297 static int acpi_ibm_mute_set(struct acpi_ibm_softc *sc, in 325 struct acpi_ibm_softc* sc = (struct acpi_ibm_softc*) softc; local 339 ibm_led_task(struct acpi_ibm_softc *sc, int pending __unused) argument 366 struct acpi_ibm_softc *sc; local 459 struct acpi_ibm_softc *sc = device_get_softc(dev); local 478 struct acpi_ibm_softc *sc = device_get_softc(dev); local 504 acpi_ibm_eventmask_set(struct acpi_ibm_softc *sc, int val) argument 534 struct acpi_ibm_softc *sc; local 563 acpi_ibm_sysctl_get(struct acpi_ibm_softc *sc, int method) argument 693 acpi_ibm_sysctl_set(struct acpi_ibm_softc *sc, int method, int arg) argument 770 acpi_ibm_sysctl_init(struct acpi_ibm_softc *sc, int method) argument 867 struct acpi_ibm_softc *sc; local 902 struct acpi_ibm_softc *sc; local 984 acpi_ibm_brightness_set(struct acpi_ibm_softc *sc, int arg) argument 1031 acpi_ibm_bluetooth_set(struct acpi_ibm_softc *sc, int arg) argument 1047 acpi_ibm_thinklight_set(struct acpi_ibm_softc *sc, int arg) argument 1076 acpi_ibm_volume_set(struct acpi_ibm_softc *sc, int arg) argument 1126 acpi_ibm_mute_set(struct acpi_ibm_softc *sc, int arg) argument 1160 acpi_ibm_eventhandler(struct acpi_ibm_softc *sc, int arg) argument 1226 struct acpi_ibm_softc *sc = device_get_softc(dev); local [all...] |
/freebsd-9.3-release/sys/dev/acpica/ |
H A D | acpi_smbat.c | 125 struct acpi_smbat_softc *sc; local 128 sc = device_get_softc(dev); 133 sc->sb_base_addr = (base >> 8) & 0xff; 136 sc->ec_dev = devclass_get_device(devclass_find("acpi_ec"), 0); 137 if (sc->ec_dev == NULL) { 142 timespecclear(&sc->bif_lastupdated); 143 timespecclear(&sc->bst_lastupdated); 189 acpi_smbus_read_2(struct acpi_smbat_softc *sc, uint8_t addr, uint8_t cmd, argument 201 error = ACPI_EC_WRITE(sc->ec_dev, sc 257 acpi_smbus_read_multi_1(struct acpi_smbat_softc *sc, uint8_t addr, uint8_t cmd, uint8_t *ptr, uint16_t len) argument 346 struct acpi_smbat_softc *sc; local 421 struct acpi_smbat_softc *sc; local [all...] |
/freebsd-9.3-release/sys/dev/aac/ |
H A D | aac_debug.c | 60 aac_print_queues(struct aac_softc *sc) argument 62 device_printf(sc->aac_dev, "FIB queue header at %p queues at %p\n", 63 &sc->aac_queues->qt_qindex[AAC_HOST_NORM_CMD_QUEUE][0], 64 &sc->aac_queues->qt_HostNormCmdQueue[0]); 65 device_printf(sc->aac_dev, "HOST_NORM_CMD %d/%d (%d)\n", 66 sc->aac_queues->qt_qindex[AAC_HOST_NORM_CMD_QUEUE][ 68 sc->aac_queues->qt_qindex[AAC_HOST_NORM_CMD_QUEUE][ 71 device_printf(sc->aac_dev, "HOST_HIGH_CMD %d/%d (%d)\n", 72 sc->aac_queues->qt_qindex[AAC_HOST_HIGH_CMD_QUEUE][ 74 sc 130 struct aac_softc *sc; local 160 aac_panic(struct aac_softc *sc, char *reason) argument 170 aac_print_fib(struct aac_softc *sc, struct aac_fib *fib, const char *caller) argument 263 aac_print_aif(struct aac_softc *sc, struct aac_aif_command *aif) argument [all...] |
/freebsd-9.3-release/sys/dev/aacraid/ |
H A D | aacraid_debug.c | 70 aacraid_print_queues(struct aac_softc *sc) argument 72 device_printf(sc->aac_dev, "AACQ_FREE %d/%d\n", 73 sc->aac_qstat[AACQ_FREE].q_length, sc->aac_qstat[AACQ_FREE].q_max); 74 device_printf(sc->aac_dev, "AACQ_READY %d/%d\n", 75 sc->aac_qstat[AACQ_READY].q_length, 76 sc->aac_qstat[AACQ_READY].q_max); 77 device_printf(sc->aac_dev, "AACQ_BUSY %d/%d\n", 78 sc->aac_qstat[AACQ_BUSY].q_length, sc 85 aacraid_print_fib(struct aac_softc *sc, struct aac_fib *fib, const char *caller) argument 177 aacraid_print_aif(struct aac_softc *sc, struct aac_aif_command *aif) argument 475 aacraid_get_fw_debug_buffer(struct aac_softc *sc) argument 520 aacraid_fw_printf(struct aac_softc *sc, unsigned long PrintFlags, const char * fmt, ...) argument 618 aacraid_fw_print_mem(struct aac_softc *sc, unsigned long PrintFlags, u_int8_t *Addr, int Count) argument [all...] |
/freebsd-9.3-release/sys/netgraph/ |
H A D | ng_source.c | 121 static void ng_source_mod_counter(sc_p sc, 274 sc_p sc; local 276 sc = malloc(sizeof(*sc), M_NETGRAPH, M_WAITOK | M_ZERO); 278 NG_NODE_SET_PRIVATE(node, sc); 279 sc->node = node; 280 sc->snd_queue.ifq_maxlen = 2048; /* XXX not checked */ 281 ng_callout_init(&sc->intr_ch); 292 sc_p sc = NG_NODE_PRIVATE(node); local 295 sc 312 sc_p sc = NG_NODE_PRIVATE(NG_HOOK_NODE(hook)); local 343 sc_p sc = NG_NODE_PRIVATE(node); local 548 sc_p sc = NG_NODE_PRIVATE(NG_HOOK_NODE(hook)); local 578 sc_p sc = NG_NODE_PRIVATE(node); local 595 sc_p sc; local 609 ng_source_store_output_ifp(sc_p sc, char *ifname) argument 643 ng_source_set_autosrc(sc_p sc, uint32_t flag) argument 662 ng_source_clr_data(sc_p sc) argument 680 ng_source_start(sc_p sc, uint64_t packets) argument 707 ng_source_stop(sc_p sc) argument 724 sc_p sc = (sc_p)arg1; local 769 ng_source_send(sc_p sc, int tosend, int *sent_p) argument 821 ng_source_packet_mod(sc_p sc, struct mbuf *m, int offset, int len, caddr_t cp, int flags) argument 836 ng_source_mod_counter(sc_p sc, struct ng_source_embed_cnt_info *cnt, struct mbuf *m, int increment) argument 864 ng_source_dup_mod(sc_p sc, struct mbuf *m0, struct mbuf **m_ptr) argument [all...] |
/freebsd-9.3-release/sys/dev/age/ |
H A D | if_age.c | 131 static void age_rxeof(struct age_softc *sc, struct rx_rdesc *); 211 struct age_softc *sc; local 215 sc = device_get_softc(dev); 217 CSR_WRITE_4(sc, AGE_MDIO, MDIO_OP_EXECUTE | MDIO_OP_READ | 221 v = CSR_READ_4(sc, AGE_MDIO); 227 device_printf(sc->age_dev, "phy read timeout : %d\n", reg); 240 struct age_softc *sc; local 244 sc = device_get_softc(dev); 246 CSR_WRITE_4(sc, AGE_MDIO, MDIO_OP_EXECUTE | MDIO_OP_WRITE | 251 v = CSR_READ_4(sc, AGE_MDI 268 struct age_softc *sc; local 280 struct age_softc *sc; local 299 struct age_softc *sc; local 338 age_get_macaddr(struct age_softc *sc) argument 383 age_phy_reset(struct age_softc *sc) argument 463 struct age_softc *sc; local 682 struct age_softc *sc; local 742 age_sysctl_node(struct age_softc *sc) argument 748 "stats", CTLTYPE_INT | CTLFLAG_RW, sc, 0, sysctl_age_stats, local 817 age_check_boundary(struct age_softc *sc) argument 851 age_dma_alloc(struct age_softc *sc) argument 1192 age_dma_free(struct age_softc *sc) argument 1326 age_setwol(struct age_softc *sc) argument 1460 struct age_softc *sc; local 1475 struct age_softc *sc; local 1492 age_encap(struct age_softc *sc, struct mbuf **m_head) argument 1730 struct age_softc *sc; local 1741 struct age_softc *sc; local 1787 age_watchdog(struct age_softc *sc) argument 1822 struct age_softc *sc; local 1935 age_mac_config(struct age_softc *sc) argument 1973 struct age_softc *sc; local 2021 age_stats_update(struct age_softc *sc) argument 2122 struct age_softc *sc; local 2140 struct age_softc *sc; local 2215 age_txintr(struct age_softc *sc, int tpd_cons) argument 2314 age_rxeof(struct age_softc *sc, struct rx_rdesc *rxrd) argument 2463 age_rxintr(struct age_softc *sc, int rr_prod, int count) argument 2527 struct age_softc *sc; local 2541 age_reset(struct age_softc *sc) argument 2565 struct age_softc *sc; local 2574 age_init_locked(struct age_softc *sc) argument 2856 age_stop(struct age_softc *sc) argument 2933 age_stop_txmac(struct age_softc *sc) argument 2962 age_stop_rxmac(struct age_softc *sc) argument 2991 age_init_tx_ring(struct age_softc *sc) argument 3017 age_init_rx_ring(struct age_softc *sc) argument 3044 age_init_rr_ring(struct age_softc *sc) argument 3061 age_init_cmb_block(struct age_softc *sc) argument 3075 age_init_smb_block(struct age_softc *sc) argument 3089 age_newbuf(struct age_softc *sc, struct age_rxdesc *rxd) argument 3134 age_rxvlan(struct age_softc *sc) argument 3150 age_rxfilter(struct age_softc *sc) argument 3198 struct age_softc *sc; local [all...] |
/freebsd-9.3-release/sys/geom/ |
H A D | geom_fox.c | 77 struct g_fox_softc *sc; local 86 sc = gp->softc; 88 if (sc->opath != NULL) { 93 sc->opath->provider->name, gp->name); 95 cp1 = LIST_NEXT(sc->opath, consumer); 97 g_access(sc->opath, -sc->cr, -sc->cw, -(sc->ce + 1)); 102 error = g_access(sc 166 struct g_fox_softc *sc; local 205 struct g_fox_softc *sc; local 237 struct g_fox_softc *sc; local 289 struct g_fox_softc *sc; local 351 struct g_fox_softc *sc, *sc2; local 454 struct g_fox_softc *sc; local [all...] |
/freebsd-9.3-release/sys/dev/mlx/ |
H A D | mlx_disk.c | 79 struct mlxd_softc *sc = (struct mlxd_softc *)dp->d_drv1; local 83 if (sc == NULL) 87 if (sc->mlxd_controller->mlx_state & MLX_STATE_SHUTDOWN) 90 sc->mlxd_flags |= MLXD_OPEN; 97 struct mlxd_softc *sc = (struct mlxd_softc *)dp->d_drv1; local 101 if (sc == NULL) 103 sc->mlxd_flags &= ~MLXD_OPEN; 110 struct mlxd_softc *sc = (struct mlxd_softc *)dp->d_drv1; local 115 if (sc == NULL) 118 if ((error = mlx_submit_ioctl(sc 134 struct mlxd_softc *sc = (struct mlxd_softc *)MLX_BIO_SOFTC(bp); local 192 struct mlxd_softc *sc = (struct mlxd_softc *)device_get_softc(dev); local 257 struct mlxd_softc *sc = (struct mlxd_softc *)device_get_softc(dev); local [all...] |
/freebsd-9.3-release/sys/dev/pccard/ |
H A D | pccard_device.c | 62 pccard_device_create(struct pccard_softc *sc) argument 66 minor = device_get_unit(sc->dev) << 16; 67 sc->cisdev = make_dev(&pccard_cdevsw, minor, 0, 0, 0666, 68 "pccard%u.cis", device_get_unit(sc->dev)); 69 sc->cisdev->si_drv1 = sc; 74 pccard_device_destroy(struct pccard_softc *sc) argument 76 if (sc->cisdev) 77 destroy_dev(sc->cisdev); 115 struct pccard_softc *sc; local 146 struct pccard_softc *sc; local 165 struct pccard_softc *sc; local [all...] |
/freebsd-9.3-release/sys/dev/uart/ |
H A D | uart_bus.h | 156 uart_rx_empty(struct uart_softc *sc) argument 158 return ((sc->sc_rxget == sc->sc_rxput) ? 1 : 0); 162 uart_rx_full(struct uart_softc *sc) argument 164 return ((sc->sc_rxput + 1 < sc->sc_rxbufsz) 165 ? (sc->sc_rxput + 1 == sc->sc_rxget) : (sc->sc_rxget == 0)); 169 uart_rx_get(struct uart_softc *sc) argument 182 uart_rx_next(struct uart_softc *sc) argument 195 uart_rx_peek(struct uart_softc *sc) argument 204 uart_rx_put(struct uart_softc *sc, int xc) argument [all...] |
/freebsd-9.3-release/sys/dev/vx/ |
H A D | if_vx_pci.c | 82 struct vx_softc *sc; local 84 sc = device_get_softc(dev); 85 VX_LOCK(sc); 86 vx_stop(sc); 87 VX_UNLOCK(sc); 127 struct vx_softc *sc; local 130 sc = device_get_softc(dev); 133 sc->vx_res = 136 if (sc->vx_res == NULL) 139 sc [all...] |