/freebsd-11-stable/sys/arm/lpc/ |
H A D | ssd1289.c | 91 struct ssd1289_softc *sc = device_get_softc(dev); local 93 sc->ss_dev = dev; 94 ssd1289_sc = sc; 102 struct ssd1289_softc *sc = ssd1289_sc; local 105 ssd1289_write_reg(sc,0x00,0x0001); 108 ssd1289_write_reg(sc,0x03,0xA2A4); 109 ssd1289_write_reg(sc,0x0C,0x0004); 110 ssd1289_write_reg(sc,0x0D,0x0308); 111 ssd1289_write_reg(sc,0x0E,0x3000); 114 ssd1289_write_reg(sc, 158 ssd1289_spi_send(struct ssd1289_softc *sc, uint8_t *data, int len) argument 172 ssd1289_set_dc(struct ssd1289_softc *sc, int value) argument 178 ssd1289_write_reg(struct ssd1289_softc *sc, uint16_t addr, uint16_t value) argument [all...] |
/freebsd-11-stable/sys/arm/xscale/ixp425/ |
H A D | cambria_exp_space.c | 59 struct ixp425_softc *sc; /* bus space tag */ member in struct:expbus_softc 74 enable_16(struct ixp425_softc *sc, bus_size_t cs) argument 76 EXP_BUS_WRITE_4(sc, cs, EXP_BUS_READ_4(sc, cs) &~ EXP_BYTE_EN); 80 disable_16(struct ixp425_softc *sc, bus_size_t cs) argument 82 EXP_BUS_WRITE_4(sc, cs, EXP_BUS_READ_4(sc, cs) | EXP_BYTE_EN); 89 struct ixp425_softc *sc = exp->sc; local 93 v = bus_space_read_1(sc 102 struct ixp425_softc *sc = exp->sc; local 113 struct ixp425_softc *sc = exp->sc; local 128 struct ixp425_softc *sc = exp->sc; local 142 struct ixp425_softc *sc = exp->sc; local 156 struct ixp425_softc *sc = exp->sc; local 172 struct ixp425_softc *sc = exp->sc; local 195 struct ixp425_softc *sc = exp->sc; local 237 cambria_exp_bus_init(struct ixp425_softc *sc) argument [all...] |
H A D | if_npe.c | 200 RD4(struct npe_softc *sc, bus_size_t off) argument 202 return bus_space_read_4(sc->sc_iot, sc->sc_ioh, off); 206 WR4(struct npe_softc *sc, bus_size_t off, uint32_t val) argument 208 bus_space_write_4(sc->sc_iot, sc->sc_ioh, off, val); 227 static void npe_setmac(struct npe_softc *sc, u_char *eaddr); 228 static void npe_getmac(struct npe_softc *sc, u_char *eaddr); 260 #define DPRINTF(sc, fmt, ...) do { \ 261 if (sc 321 struct npe_softc *sc = device_get_softc(dev); local 392 struct npe_softc *sc = device_get_softc(dev); local 413 npe_setmcast(struct npe_softc *sc) argument 465 struct npe_softc *sc; local 474 npe_dma_setup(struct npe_softc *sc, struct npedma *dma, const char *name, int nbuf, int maxseg) argument 555 npe_dma_destroy(struct npe_softc *sc, struct npedma *dma) argument 652 npe_mac_reset(struct npe_softc *sc) argument 666 struct npe_softc *sc = device_get_softc(dev); local 814 struct npe_softc *sc = device_get_softc(dev); local 843 struct npe_softc *sc = ifp->if_softc; local 860 struct npe_softc *sc = ifp->if_softc; local 872 npe_addstats(struct npe_softc *sc) argument 929 struct npe_softc *sc = xsc; local 960 npe_setmac(struct npe_softc *sc, u_char *eaddr) argument 971 npe_getmac(struct npe_softc *sc, u_char *eaddr) argument 989 npe_txdone_finish(struct npe_softc *sc, const struct txdone *td) argument 1021 struct npe_softc *sc; local 1055 npe_rxbuf_init(struct npe_softc *sc, struct npebuf *npe, struct mbuf *m) argument 1103 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 1378 struct npe_softc *sc = ifp->if_softc; local 1385 npe_stopxmit(struct npe_softc *sc) argument 1405 npe_stoprecv(struct npe_softc *sc) argument 1428 npestop(struct npe_softc *sc) argument 1460 npewatchdog(struct npe_softc *sc) argument 1476 struct npe_softc *sc = ifp->if_softc; local 1553 npe_setrxqosentry(struct npe_softc *sc, int classix, int trafclass, int qid) argument 1563 npe_setportaddress(struct npe_softc *sc, const uint8_t mac[ETHER_ADDR_LEN]) argument 1579 npe_setfirewallmode(struct npe_softc *sc, int onoff) argument 1593 npe_updatestats(struct npe_softc *sc) argument 1646 struct npe_softc *sc; local 1661 npe_mii_mdio_read(struct npe_softc *sc, int reg) argument 1674 npe_mii_mdio_write(struct npe_softc *sc, int reg, uint32_t cmd) argument 1684 npe_mii_mdio_wait(struct npe_softc *sc) argument 1704 struct npe_softc *sc = device_get_softc(dev); local 1719 struct npe_softc *sc = device_get_softc(dev); local 1734 struct npe_softc *sc = device_get_softc(dev); local [all...] |
/freebsd-11-stable/sys/dev/gpio/ |
H A D | gpiopps.c | 71 struct pps_softc *sc = dev->si_drv1; local 74 mtx_lock(&sc->pps_mtx); 75 if (device_get_state(sc->dev) < DS_BUSY) { 76 device_busy(sc->dev); 78 mtx_unlock(&sc->pps_mtx); 86 struct pps_softc *sc = dev->si_drv1; local 92 mtx_lock(&sc->pps_mtx); 93 device_unbusy(sc->dev); 94 mtx_unlock(&sc->pps_mtx); 102 struct pps_softc *sc local 124 struct pps_softc *sc = arg; local 145 struct pps_softc *sc = arg; local 163 struct pps_softc *sc = device_get_softc(dev); local 180 struct pps_softc *sc; local [all...] |
H A D | gpiobacklight.c | 62 gpiobacklight_update_brightness(struct gpiobacklight_softc *sc) argument 65 if (sc->sc_pin) 66 gpio_pin_set_active(sc->sc_pin, sc->sc_brightness); 72 struct gpiobacklight_softc *sc; local 76 sc = (struct gpiobacklight_softc*)arg1; 78 brightness = sc->sc_brightness; 84 sc->sc_brightness = (brightness > 0); 85 gpiobacklight_update_brightness(sc); 105 struct gpiobacklight_softc *sc; local 143 struct gpiobacklight_softc *sc; local [all...] |
/freebsd-11-stable/sys/dev/usb/controller/ |
H A D | saf1761_otg_fdt.c | 123 struct saf1761_otg_softc *sc = device_get_softc(dev); local 135 sc->sc_hw_mode |= SOTG_HW_MODE_CTRL_DATA_BUS_WIDTH; 138 sc->sc_hw_mode |= SOTG_HW_MODE_CTRL_DATA_BUS_WIDTH; 144 sc->sc_hw_mode |= SOTG_HW_MODE_CTRL_ANA_DIGI_OC; 150 sc->sc_hw_mode |= SOTG_HW_MODE_CTRL_DACK_POL; 156 sc->sc_hw_mode |= SOTG_HW_MODE_CTRL_DREQ_POL; 162 sc->sc_interrupt_cfg |= SOTG_INTERRUPT_CFG_INTPOL; 163 sc->sc_hw_mode |= SOTG_HW_MODE_CTRL_INTR_POL; 169 sc->sc_interrupt_cfg |= SOTG_INTERRUPT_CFG_INTLVL; 170 sc 240 struct saf1761_otg_softc *sc = device_get_softc(dev); local [all...] |
/freebsd-11-stable/sys/arm/versatile/ |
H A D | versatile_sic.c | 85 #define SIC_READ_4(sc, reg) \ 86 bus_read_4(sc->mem_res, (reg)) 87 #define SIC_WRITE_4(sc, reg, val) \ 88 bus_write_4(sc->mem_res, (reg), (val)) 100 struct versatile_sic_softc *sc; local 103 sc = device_get_softc(dev); 106 SIC_LOCK(sc); 107 SIC_WRITE_4(sc, SIC_ENCLR, (1 << src->irq)); 108 SIC_UNLOCK(sc); 114 struct versatile_sic_softc *sc; local 130 struct versatile_sic_softc *sc; local 180 struct versatile_sic_softc *sc; local 218 struct versatile_sic_softc *sc = device_get_softc(dev); local 277 struct versatile_sic_softc *sc; local [all...] |
/freebsd-11-stable/sys/dev/bhnd/cores/pcie2/ |
H A D | bhnd_pcie2_hostb.c | 77 static int bhnd_pcie2_wars_early_once(struct bhnd_pcie2hb_softc *sc); 78 static int bhnd_pcie2_wars_hwup(struct bhnd_pcie2hb_softc *sc); 79 static int bhnd_pcie2_wars_hwdown(struct bhnd_pcie2hb_softc *sc); 107 struct bhnd_pcie2hb_softc *sc; local 110 sc = device_get_softc(dev); 111 sc->dev = dev; 112 sc->quirks = bhnd_device_quirks(dev, bhnd_pcie2_devs, 116 sc->pci_dev = bhnd_find_bridge_root(dev, devclass_find("pci")); 117 if (sc->pci_dev == NULL) { 128 if ((error = bhnd_pcie2_wars_early_once(sc))) 147 struct bhnd_pcie2hb_softc *sc; local 162 struct bhnd_pcie2hb_softc *sc; local 177 struct bhnd_pcie2hb_softc *sc; local 203 bhnd_pcie2_wars_early_once(struct bhnd_pcie2hb_softc *sc) argument 214 bhnd_pcie2_wars_hwup(struct bhnd_pcie2hb_softc *sc) argument 225 bhnd_pcie2_wars_hwdown(struct bhnd_pcie2hb_softc *sc) argument [all...] |
/freebsd-11-stable/sys/dev/pdq/ |
H A D | pdq_ifsubr.c | 76 pdq_ifstop(pdq_softc_t *sc) argument 79 PDQ_IFNET(sc)->if_drv_flags &= ~(IFF_DRV_RUNNING | IFF_DRV_OACTIVE); 80 sc->sc_pdq->pdq_flags &= ~PDQ_RUNNING; 81 pdq_stop(sc->sc_pdq); 82 callout_stop(&sc->watchdog); 86 pdq_ifinit_locked(pdq_softc_t *sc) argument 89 PDQ_LOCK_ASSERT(sc); 90 if (PDQ_IFNET(sc)->if_flags & IFF_UP) { 91 PDQ_IFNET(sc)->if_drv_flags |= IFF_DRV_RUNNING; 92 if (PDQ_IFNET(sc) 112 pdq_softc_t *sc; local 123 pdq_softc_t *sc; local 150 pdq_softc_t * const sc = PDQ_OS_IFP_TO_SOFTC(ifp); local 214 pdq_softc_t * const sc = PDQ_OS_IFP_TO_SOFTC(ifp); local 228 pdq_softc_t *sc = pdq->pdq_os_ctx; local 270 pdq_softc_t *sc = pdq->pdq_os_ctx; local 286 pdq_softc_t *sc = pdq->pdq_os_ctx; local 301 pdq_softc_t *sc = pdq->pdq_os_ctx; local 348 pdq_softc_t * const sc = PDQ_OS_IFP_TO_SOFTC(ifp); local 372 pdq_softc_t * const sc = PDQ_OS_IFP_TO_SOFTC(ifp); local 390 pdq_softc_t * const sc = pdq->pdq_os_ctx; local 415 pdq_softc_t *sc = PDQ_OS_IFP_TO_SOFTC(ifp); local 458 pdq_ifattach(pdq_softc_t *sc, const pdq_uint8_t *llc, pdq_type_t type) argument 503 pdq_ifdetach(pdq_softc_t *sc) argument 522 pdq_softc_t *sc; local 552 pdq_softc_t * const sc = pdq->pdq_os_ctx; local 687 pdq_os_descriptor_block_sync( pdq_os_ctx_t *sc, size_t offset, size_t length, int ops) argument 697 pdq_os_consumer_block_sync( pdq_os_ctx_t *sc, int ops) argument 705 pdq_os_unsolicited_event_sync( pdq_os_ctx_t *sc, size_t offset, size_t length, int ops) argument 715 pdq_os_databuf_sync( pdq_os_ctx_t *sc, struct mbuf *m, size_t offset, size_t length, int ops) argument 726 pdq_os_databuf_free( pdq_os_ctx_t *sc, struct mbuf *m) argument 740 pdq_os_databuf_alloc( pdq_os_ctx_t *sc) argument [all...] |
/freebsd-11-stable/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-11-stable/sys/dev/etherswitch/e6000sw/ |
H A D | e6000sw.c | 121 static void e6000sw_setup(device_t dev, e6000sw_softc_t *sc); 122 static void e6000sw_port_vlan_conf(e6000sw_softc_t *sc); 124 static void e6000sw_set_atustat(device_t dev, e6000sw_softc_t *sc, int bin, 126 static int e6000sw_atu_flush(device_t dev, e6000sw_softc_t *sc, int flag); 127 static __inline void e6000sw_writereg(e6000sw_softc_t *sc, int addr, int reg, 129 static __inline uint32_t e6000sw_readreg(e6000sw_softc_t *sc, int addr, 133 static int e6000sw_atu_mac_table(device_t dev, e6000sw_softc_t *sc, struct 135 static int e6000sw_get_pvid(e6000sw_softc_t *sc, int port, int *pvid); 136 static int e6000sw_set_pvid(e6000sw_softc_t *sc, int port, int pvid); 137 static __inline int e6000sw_cpuport(e6000sw_softc_t *sc, in 195 e6000sw_softc_t *sc; local 235 e6000sw_softc_t *sc; local 289 e6000sw_poll_done(e6000sw_softc_t *sc) argument 305 e6000sw_softc_t *sc; local 335 e6000sw_softc_t *sc; local 366 e6000sw_softc_t *sc; local 393 struct e6000sw_softc *sc; local 404 struct e6000sw_softc *sc; local 420 e6000sw_softc_t *sc = device_get_softc(dev); local 455 e6000sw_softc_t *sc; local 526 e6000sw_softc_t *sc; local 542 e6000sw_softc_t *sc; local 562 e6000sw_softc_t *sc; local 578 e6000sw_softc_t *sc; local 592 e6000sw_flush_port(e6000sw_softc_t *sc, int port) argument 613 e6000sw_port_assign_vgroup(e6000sw_softc_t *sc, int port, int fid, int vgroup, int members) argument 632 e6000sw_softc_t *sc; local 664 e6000sw_softc_t *sc; local 679 e6000sw_miiforphy(e6000sw_softc_t *sc, unsigned int phy) argument 691 e6000sw_softc_t *sc; local 706 e6000sw_softc_t *sc; local 721 e6000sw_readreg(e6000sw_softc_t *sc, int addr, int reg) argument 730 e6000sw_writereg(e6000sw_softc_t *sc, int addr, int reg, int val) argument 739 e6000sw_cpuport(e6000sw_softc_t *sc, int port) argument 746 e6000sw_set_pvid(e6000sw_softc_t *sc, int port, int pvid) argument 756 e6000sw_get_pvid(e6000sw_softc_t *sc, int port, int *pvid) argument 771 e6000sw_softc_t *sc; local 795 e6000sw_setup(device_t dev, e6000sw_softc_t *sc) argument 837 e6000sw_port_vlan_conf(e6000sw_softc_t *sc) argument 885 e6000sw_set_atustat(device_t dev, e6000sw_softc_t *sc, int bin, int flag) argument 895 e6000sw_atu_mac_table(device_t dev, e6000sw_softc_t *sc, struct atu_opt *atu, int flag) argument 951 e6000sw_atu_flush(device_t dev, e6000sw_softc_t *sc, int flag) argument [all...] |
/freebsd-11-stable/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_any(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-11-stable/sys/dev/altera/sdcard/ |
H A D | altera_sdcard_disk.c | 75 struct altera_sdcard_softc *sc; local 81 sc = bp->bio_disk->d_drv1; 82 ALTERA_SDCARD_LOCK(sc); 83 switch (sc->as_state) { 85 device_printf(sc->as_dev, "%s: unexpected I/O on NOCARD", 91 device_printf(sc->as_dev, "%s: unexpected I/O on BADCARD", 97 device_printf(sc->as_dev, "%s: unexpected I/O on DETACHED", 102 bioq_disksort(&sc->as_bioq, bp); 103 altera_sdcard_start(sc); 107 bioq_disksort(&sc 117 altera_sdcard_disk_insert(struct altera_sdcard_softc *sc) argument 156 altera_sdcard_disk_remove(struct altera_sdcard_softc *sc) argument [all...] |
/freebsd-11-stable/sys/dev/mlx/ |
H A D | mlx_pci.c | 127 struct mlx_softc *sc; local 135 sc = device_get_softc(dev); 136 sc->mlx_dev = dev; 145 sc->mlx_iftype = m->iftype; 147 mtx_init(&sc->mlx_io_lock, "mlx I/O", NULL, MTX_DEF); 148 sx_init(&sc->mlx_config_lock, "mlx config"); 149 callout_init_mtx(&sc->mlx_timeout, &sc->mlx_io_lock, 0); 156 switch(sc->mlx_iftype) { 159 sc [all...] |
/freebsd-11-stable/sys/dev/acpica/ |
H A D | acpi_hpet.c | 97 struct hpet_softc *sc; member in struct:hpet_softc::hpet_timer 134 static void hpet_test(struct hpet_softc *sc); 144 struct hpet_softc *sc; local 146 sc = tc->tc_priv; 147 return (bus_read_4(sc->mem_res, HPET_MAIN_COUNTER)); 153 struct hpet_softc *sc; local 155 sc = tc->tc_priv; 158 vdso_th->th_x86_hpet_idx = device_get_unit(sc->dev); 160 return (sc->mmap_allow != 0); 168 struct hpet_softc *sc; local 180 hpet_enable(struct hpet_softc *sc) argument 194 hpet_disable(struct hpet_softc *sc) argument 208 struct hpet_softc *sc = mt->sc; local 257 struct hpet_softc *sc = mt->sc; local 271 struct hpet_softc *sc = t->sc; local 317 struct hpet_softc *sc = (struct hpet_softc *)arg; local 338 struct hpet_softc *sc; local 384 struct hpet_softc *sc; local 397 struct hpet_softc *sc; local 469 struct hpet_softc *sc; local 861 struct hpet_softc *sc; local 913 hpet_test(struct hpet_softc *sc) argument 944 struct hpet_softc *sc = device_get_softc(dev); local [all...] |
/freebsd-11-stable/sys/dev/sound/pci/ |
H A D | emu10k1.c | 245 static void *emu_malloc(struct sc_info *sc, u_int32_t sz, bus_addr_t *addr, bus_dmamap_t *map); 246 static void *emu_memalloc(struct sc_info *sc, u_int32_t sz, bus_addr_t *addr); 247 static int emu_memfree(struct sc_info *sc, void *buf); 248 static int emu_memstart(struct sc_info *sc, void *buf); 250 static void emu_vdump(struct sc_info *sc, struct emu_voice *v); 300 emu_rd(struct sc_info *sc, int regno, int size) argument 304 return bus_space_read_1(sc->st, sc->sh, regno); 306 return bus_space_read_2(sc->st, sc 315 emu_wr(struct sc_info *sc, int regno, u_int32_t data, int size) argument 331 emu_rdptr(struct sc_info *sc, int chn, int reg) argument 349 emu_wrptr(struct sc_info *sc, int chn, int reg, u_int32_t data) argument 367 emu_wrefx(struct sc_info *sc, unsigned int pc, unsigned int data) argument 380 struct sc_info *sc = (struct sc_info *)devinfo; local 389 struct sc_info *sc = (struct sc_info *)devinfo; local 406 emu_settimer(struct sc_info *sc) argument 440 emu_enatimer(struct sc_info *sc, int go) argument 459 emu_enastop(struct sc_info *sc, char channel, int enable) argument 553 emu_valloc(struct sc_info *sc) argument 568 emu_vinit(struct sc_info *sc, struct emu_voice *m, struct emu_voice *s, u_int32_t sz, struct snd_dbuf *b) argument 639 emu_vwrite(struct sc_info *sc, struct emu_voice *v) argument 705 emu_vtrigger(struct sc_info *sc, struct emu_voice *v, int go) argument 749 emu_vpos(struct sc_info *sc, struct emu_voice *v) argument 760 emu_vdump(struct sc_info *sc, struct emu_voice *v) argument 811 struct sc_info *sc = devinfo; local 837 struct sc_info *sc = ch->parent; local 869 struct sc_info *sc = ch->parent; local 885 struct sc_info *sc = ch->parent; local 915 struct sc_info *sc = ch->parent; local 949 struct sc_info *sc = devinfo; local 1030 struct sc_info *sc = ch->parent; local 1047 struct sc_info *sc = ch->parent; local 1129 struct sc_info *sc = ch->parent; local 1160 emu_mread(struct mpu401 *arg, void *sc, int reg) argument 1169 emu_mwrite(struct mpu401 *arg, void *sc, int reg, unsigned char b) argument 1178 struct sc_info *sc = cookie; local 1199 struct sc_info *sc = (struct sc_info *)p; local 1206 emu_midiattach(struct sc_info *sc) argument 1222 struct sc_info *sc = data; local 1322 emu_malloc(struct sc_info *sc, u_int32_t sz, bus_addr_t *addr, bus_dmamap_t *map) argument 1339 emu_free(struct sc_info *sc, void *buf, bus_dmamap_t map) argument 1346 emu_memalloc(struct sc_info *sc, u_int32_t sz, bus_addr_t *addr) argument 1401 emu_memfree(struct sc_info *sc, void *buf) argument 1426 emu_memstart(struct sc_info *sc, void *buf) argument 1442 emu_addefxop(struct sc_info *sc, int op, int z, int w, int x, int y, u_int32_t *pc) argument 1451 audigy_addefxop(struct sc_info *sc, int op, int z, int w, int x, int y, u_int32_t *pc) argument 1460 audigy_initefx(struct sc_info *sc) argument 1614 emu_initefx(struct sc_info *sc) argument 1751 emu_init(struct sc_info *sc) argument 1991 emu_uninit(struct sc_info *sc) argument 2076 struct sc_info *sc; local 2165 struct sc_info *sc; local [all...] |
/freebsd-11-stable/sys/dev/iwi/ |
H A D | if_iwi.c | 188 static void iwi_release_fw_dma(struct iwi_softc *sc); 250 MEM_READ_1(struct iwi_softc *sc, uint32_t addr) argument 252 CSR_WRITE_4(sc, IWI_CSR_INDIRECT_ADDR, addr); 253 return CSR_READ_1(sc, IWI_CSR_INDIRECT_DATA); 257 MEM_READ_4(struct iwi_softc *sc, uint32_t addr) argument 259 CSR_WRITE_4(sc, IWI_CSR_INDIRECT_ADDR, addr); 260 return CSR_READ_4(sc, IWI_CSR_INDIRECT_DATA); 281 struct iwi_softc *sc = device_get_softc(dev); local 282 struct ieee80211com *ic = &sc->sc_ic; 286 sc 442 struct iwi_softc *sc = device_get_softc(dev); local 487 struct iwi_softc *sc = ic->ic_softc; local 546 iwi_alloc_cmd_ring(struct iwi_softc *sc, struct iwi_cmd_ring *ring, int count) argument 584 iwi_reset_cmd_ring(struct iwi_softc *sc, struct iwi_cmd_ring *ring) argument 591 iwi_free_cmd_ring(struct iwi_softc *sc, struct iwi_cmd_ring *ring) argument 605 iwi_alloc_tx_ring(struct iwi_softc *sc, struct iwi_tx_ring *ring, int count, bus_addr_t csr_ridx, bus_addr_t csr_widx) argument 671 iwi_reset_tx_ring(struct iwi_softc *sc, struct iwi_tx_ring *ring) argument 698 iwi_free_tx_ring(struct iwi_softc *sc, struct iwi_tx_ring *ring) argument 739 iwi_alloc_rx_ring(struct iwi_softc *sc, struct iwi_rx_ring *ring, int count) argument 799 iwi_reset_rx_ring(struct iwi_softc *sc, struct iwi_rx_ring *ring) argument 805 iwi_free_rx_ring(struct iwi_softc *sc, struct iwi_rx_ring *ring) argument 835 struct iwi_softc *sc = device_get_softc(dev); local 846 struct iwi_softc *sc = device_get_softc(dev); local 856 struct iwi_softc *sc = device_get_softc(dev); local 883 struct iwi_softc *sc = ic->ic_softc; local 927 struct iwi_softc *sc = ic->ic_softc; local 943 struct iwi_softc *sc = ic->ic_softc; local 1020 iwi_wme_init(struct iwi_softc *sc) argument 1046 iwi_wme_setparams(struct iwi_softc *sc) argument 1071 struct iwi_softc *sc = ic->ic_softc; local 1092 iwi_wme_setie(struct iwi_softc *sc) argument 1115 iwi_read_prom_word(struct iwi_softc *sc, uint8_t addr) argument 1167 iwi_setcurchan(struct iwi_softc *sc, int chan) argument 1176 iwi_frame_intr(struct iwi_softc *sc, struct iwi_rx_data *data, int i, struct iwi_frame *frame) argument 1354 iwi_notif_link_quality(struct iwi_softc *sc, struct iwi_notif *notif) argument 1385 iwi_notification_intr(struct iwi_softc *sc, struct iwi_notif *notif) argument 1563 iwi_rx_intr(struct iwi_softc *sc) argument 1606 iwi_tx_intr(struct iwi_softc *sc, struct iwi_tx_ring *txq) argument 1632 iwi_fatal_error_intr(struct iwi_softc *sc) argument 1648 iwi_radio_off_intr(struct iwi_softc *sc) argument 1657 struct iwi_softc *sc = arg; local 1714 iwi_cmd(struct iwi_softc *sc, uint8_t type, void *data, uint8_t len) argument 1749 iwi_write_ibssnode(struct iwi_softc *sc, const u_int8_t addr[IEEE80211_ADDR_LEN], int entry) argument 1766 iwi_tx_start(struct iwi_softc *sc, struct mbuf *m0, struct ieee80211_node *ni, int ac) argument 1943 struct iwi_softc *sc = ic->ic_softc; local 1963 iwi_start(struct iwi_softc *sc) argument 1993 struct iwi_softc *sc = arg; local 2029 struct iwi_softc *sc = ic->ic_softc; local 2050 struct iwi_softc *sc = ic->ic_softc; local 2076 iwi_stop_master(struct iwi_softc *sc) argument 2100 iwi_reset(struct iwi_softc *sc) argument 2141 iwi_setup_ofw(struct iwi_softc *sc, struct iwi_fw *fw) argument 2166 iwi_setup_oucode(struct iwi_softc *sc, struct iwi_fw *fw) argument 2205 iwi_get_firmware(struct iwi_softc *sc, enum ieee80211_opmode opmode) argument 2328 iwi_put_firmware(struct iwi_softc *sc) argument 2336 iwi_load_ucode(struct iwi_softc *sc, const struct iwi_fw *fw) argument 2411 iwi_load_firmware(struct iwi_softc *sc, const struct iwi_fw *fw) argument 2509 iwi_setpowermode(struct iwi_softc *sc, struct ieee80211vap *vap) argument 2524 iwi_setwepkeys(struct iwi_softc *sc, struct ieee80211vap *vap) argument 2549 iwi_config(struct iwi_softc *sc) argument 2670 struct iwi_softc *sc = arg; local 2682 iwi_scanchan(struct iwi_softc *sc, unsigned long maxdwell, int allchan) argument 2798 iwi_set_sensitivity(struct iwi_softc *sc, int8_t rssi_dbm) argument 2810 iwi_auth_and_assoc(struct iwi_softc *sc, struct ieee80211vap *vap) argument 2994 struct iwi_softc *sc = arg; local 3003 iwi_disassociate(struct iwi_softc *sc, int quiet) argument 3028 iwi_release_fw_dma(struct iwi_softc *sc) argument 3051 iwi_init_fw_dma(struct iwi_softc *sc, int size) argument 3085 iwi_init_locked(struct iwi_softc *sc) argument 3171 struct iwi_softc *sc = priv; local 3186 struct iwi_softc *sc = priv; local 3220 iwi_stop(struct iwi_softc *sc) argument 3232 struct iwi_softc *sc = arg; local 3242 iwi_getrfkill(struct iwi_softc *sc) argument 3250 struct iwi_softc *sc = arg; local 3262 struct iwi_softc *sc = arg; local 3281 struct iwi_softc *sc = arg; local 3298 struct iwi_softc *sc = arg1; local 3315 struct iwi_softc *sc = arg1; local 3325 iwi_sysctlattach(struct iwi_softc *sc) argument 3365 iwi_read_event(struct iwi_softc *sc) argument 3371 iwi_write_event(struct iwi_softc *sc, uint32_t v) argument 3379 struct iwi_softc *sc = arg; local 3391 struct iwi_softc *sc = arg; local 3404 iwi_led_blink(struct iwi_softc *sc, int on, int off) argument 3417 iwi_led_event(struct iwi_softc *sc, int event) argument 3479 struct iwi_softc *sc = arg1; local 3499 iwi_ledattach(struct iwi_softc *sc) argument 3544 struct iwi_softc *sc = ic->ic_softc; local 3554 struct iwi_softc *sc = vap->iv_ic->ic_softc; local 3572 struct iwi_softc *sc = ic->ic_softc; local 3586 struct iwi_softc *sc = ic->ic_softc; local [all...] |
/freebsd-11-stable/sys/dev/bwi/ |
H A D | if_bwi.c | 195 static int bwi_get_pwron_delay(struct bwi_softc *sc); 320 bwi_read_sprom(struct bwi_softc *sc, uint16_t ofs) argument 322 return CSR_READ_2(sc, ofs + BWI_SPROM_START); 326 bwi_setup_desc32(struct bwi_softc *sc, struct bwi_desc32 *desc_array, argument 355 bwi_attach(struct bwi_softc *sc) argument 357 struct ieee80211com *ic = &sc->sc_ic; 358 device_t dev = sc->sc_dev; 363 BWI_LOCK_INIT(sc); 368 sc->sc_tq = taskqueue_create("bwi_taskq", M_NOWAIT | M_ZERO, 369 taskqueue_thread_enqueue, &sc 560 bwi_detach(struct bwi_softc *sc) argument 625 bwi_suspend(struct bwi_softc *sc) argument 631 bwi_resume(struct bwi_softc *sc) argument 639 bwi_shutdown(struct bwi_softc *sc) argument 646 bwi_power_on(struct bwi_softc *sc, int with_pll) argument 685 bwi_power_off(struct bwi_softc *sc, int with_pll) argument 706 bwi_regwin_switch(struct bwi_softc *sc, struct bwi_regwin *rw, struct bwi_regwin **old_rw) argument 733 bwi_regwin_select(struct bwi_softc *sc, int id) argument 751 bwi_regwin_info(struct bwi_softc *sc, uint16_t *type, uint8_t *rev) argument 765 bwi_bbp_attach(struct bwi_softc *sc) argument 905 bwi_bus_init(struct bwi_softc *sc, struct bwi_mac *mac) argument 1003 bwi_get_card_flags(struct bwi_softc *sc) argument 1027 bwi_get_eaddr(struct bwi_softc *sc, uint16_t eaddr_ofs, uint8_t *eaddr) argument 1038 bwi_get_clock_freq(struct bwi_softc *sc, struct bwi_clock_freq *freq) argument 1101 bwi_set_clock_mode(struct bwi_softc *sc, enum bwi_clock_mode clk_mode) argument 1158 bwi_set_clock_delay(struct bwi_softc *sc) argument 1196 bwi_init(struct bwi_softc *sc) argument 1209 bwi_init_statechg(struct bwi_softc *sc, int statechg) argument 1288 struct bwi_softc *sc = ic->ic_softc; local 1328 struct bwi_softc *sc = ic->ic_softc; local 1347 bwi_start_locked(struct bwi_softc *sc) argument 1398 struct bwi_softc *sc = ic->ic_softc; local 1436 struct bwi_softc *sc; local 1449 bwi_stop(struct bwi_softc *sc, int statechg) argument 1457 bwi_stop_locked(struct bwi_softc *sc, int statechg) argument 1507 struct bwi_softc *sc = xsc; local 1672 struct bwi_softc *sc = ic->ic_softc; local 1684 struct bwi_softc *sc = ic->ic_softc; local 1719 struct bwi_softc *sc = ic->ic_softc; local 1736 struct bwi_softc *sc = ic->ic_softc; local 1748 struct bwi_softc *sc = ic->ic_softc; local 1816 bwi_dma_alloc(struct bwi_softc *sc) argument 1976 bwi_dma_free(struct bwi_softc *sc) argument 2014 bwi_dma_ring_alloc(struct bwi_softc *sc, bus_dma_tag_t dtag, struct bwi_ring_data *rd, bus_size_t size, uint32_t txrx_ctrl) argument 2043 bwi_dma_txstats_alloc(struct bwi_softc *sc, uint32_t ctrl_base, bus_size_t desc_sz) argument 2153 bwi_dma_txstats_free(struct bwi_softc *sc) argument 2185 bwi_dma_mbuf_create(struct bwi_softc *sc) argument 2271 bwi_dma_mbuf_destroy(struct bwi_softc *sc, int ntx, int nrx) argument 2316 bwi_enable_intrs(struct bwi_softc *sc, uint32_t enable_intrs) argument 2322 bwi_disable_intrs(struct bwi_softc *sc, uint32_t disable_intrs) argument 2328 bwi_init_tx_ring32(struct bwi_softc *sc, int ring_idx) argument 2361 bwi_init_rxdesc_ring32(struct bwi_softc *sc, uint32_t ctrl_base, bus_addr_t paddr, int hdr_size, int ndesc) argument 2384 bwi_init_rx_ring32(struct bwi_softc *sc) argument 2408 bwi_init_txstats32(struct bwi_softc *sc) argument 2434 bwi_setup_rx_desc32(struct bwi_softc *sc, int buf_idx, bus_addr_t paddr, int buf_len) argument 2445 bwi_setup_tx_desc32(struct bwi_softc *sc, struct bwi_ring_data *rd, int buf_idx, bus_addr_t paddr, int buf_len) argument 2454 bwi_init_tx_ring64(struct bwi_softc *sc, int ring_idx) argument 2461 bwi_init_rx_ring64(struct bwi_softc *sc) argument 2468 bwi_init_txstats64(struct bwi_softc *sc) argument 2475 bwi_setup_rx_desc64(struct bwi_softc *sc, int buf_idx, bus_addr_t paddr, int buf_len) argument 2482 bwi_setup_tx_desc64(struct bwi_softc *sc, struct bwi_ring_data *rd, int buf_idx, bus_addr_t paddr, int buf_len) argument 2499 bwi_newbuf(struct bwi_softc *sc, int buf_idx, int init) argument 2573 bwi_set_addr_filter(struct bwi_softc *sc, uint16_t addr_ofs, const uint8_t *addr) argument 2591 bwi_rxeof(struct bwi_softc *sc, int end_idx) argument 2689 bwi_rxeof32(struct bwi_softc *sc) argument 2709 bwi_rxeof64(struct bwi_softc *sc) argument 2716 bwi_reset_rx_ring32(struct bwi_softc *sc, uint32_t rx_ctrl) argument 2743 bwi_free_txstats32(struct bwi_softc *sc) argument 2749 bwi_free_rx_ring32(struct bwi_softc *sc) argument 2769 bwi_free_tx_ring32(struct bwi_softc *sc, int ring_idx) argument 2833 bwi_free_txstats64(struct bwi_softc *sc) argument 2839 bwi_free_rx_ring64(struct bwi_softc *sc) argument 2845 bwi_free_tx_ring64(struct bwi_softc *sc, int ring_idx) argument 2912 bwi_encap(struct bwi_softc *sc, int idx, struct mbuf *m, struct ieee80211_node *ni) argument 3104 bwi_encap_raw(struct bwi_softc *sc, int idx, struct mbuf *m, struct ieee80211_node *ni, const struct ieee80211_bpf_params *params) argument 3268 bwi_start_tx32(struct bwi_softc *sc, uint32_t tx_ctrl, int idx) argument 3276 bwi_start_tx64(struct bwi_softc *sc, uint32_t tx_ctrl, int idx) argument 3282 bwi_txeof_status32(struct bwi_softc *sc) argument 3302 bwi_txeof_status64(struct bwi_softc *sc) argument 3308 _bwi_txeof(struct bwi_softc *sc, uint16_t tx_id, int acked, int data_txcnt) argument 3367 bwi_txeof_status(struct bwi_softc *sc, int end_idx) argument 3393 bwi_txeof(struct bwi_softc *sc) argument 3421 bwi_bbp_power_on(struct bwi_softc *sc, enum bwi_clock_mode clk_mode) argument 3428 bwi_bbp_power_off(struct bwi_softc *sc) argument 3435 bwi_get_pwron_delay(struct bwi_softc *sc) argument 3462 bwi_bus_attach(struct bwi_softc *sc) argument 3500 bwi_regwin_disable_bits(struct bwi_softc *sc) argument 3518 bwi_regwin_is_enabled(struct bwi_softc *sc, struct bwi_regwin *rw) argument 3539 bwi_regwin_disable(struct bwi_softc *sc, struct bwi_regwin *rw, uint32_t flags) argument 3615 bwi_regwin_enable(struct bwi_softc *sc, struct bwi_regwin *rw, uint32_t flags) argument 3663 bwi_set_bssid(struct bwi_softc *sc, const uint8_t *bssid) argument 3696 struct bwi_softc *sc = ic->ic_softc; local 3715 struct bwi_softc *sc = xsc; local 3735 bwi_calc_rssi(struct bwi_softc *sc, const struct bwi_rxbuf_hdr *hdr) argument 3747 bwi_calc_noise(struct bwi_softc *sc) argument 3766 bwi_rx_radiotap(struct bwi_softc *sc, struct mbuf *m, struct bwi_rxbuf_hdr *hdr, const void *plcp, int rate, int rssi, int noise) argument 3786 bwi_led_attach(struct bwi_softc *sc) argument 3857 bwi_led_newstate(struct bwi_softc *sc, enum ieee80211_state nstate) argument 3916 bwi_led_event(struct bwi_softc *sc, int event) argument 3951 bwi_led_blink_start(struct bwi_softc *sc, int on_dur, int off_dur) argument 3974 struct bwi_softc *sc = xsc; local 3988 struct bwi_softc *sc = xsc; local 3995 struct bwi_softc *sc = xsc; local [all...] |
/freebsd-11-stable/sys/dev/usb/wlan/ |
H A D | if_urtw.c | 78 #define DPRINTF(sc, m, fmt, ...) do { \ 79 if (sc->sc_debug & (m)) \ 83 #define DPRINTF(sc, m, fmt, ...) do { \ 84 (void) sc; \ 124 #define urtw_read8_m(sc, val, data) do { \ 125 error = urtw_read8_c(sc, val, data); \ 129 #define urtw_write8_m(sc, val, data) do { \ 130 error = urtw_write8_c(sc, val, data); \ 134 #define urtw_read16_m(sc, val, data) do { \ 135 error = urtw_read16_c(sc, va 785 struct urtw_softc *sc = device_get_softc(dev); local 921 struct urtw_softc *sc = device_get_softc(dev); local 971 urtw_free_tx_data_list(struct urtw_softc *sc) argument 977 urtw_free_rx_data_list(struct urtw_softc *sc) argument 983 urtw_free_data_list(struct urtw_softc *sc, struct urtw_data data[], int ndata, int fillmbuf) argument 1050 urtw_init(struct urtw_softc *sc) argument 1096 urtw_adapter_start_b(struct urtw_softc *sc) argument 1183 urtw_set_macaddr(struct urtw_softc *sc, const uint8_t *macaddr) argument 1195 urtw_adapter_start(struct urtw_softc *sc) argument 1263 urtw_set_mode(struct urtw_softc *sc, uint32_t mode) argument 1277 urtw_8187b_cmd_reset(struct urtw_softc *sc) argument 1303 urtw_do_request(struct urtw_softc *sc, struct usb_device_request *req, void *data) argument 1326 urtw_stop(struct urtw_softc *sc) argument 1366 urtw_abort_xfers(struct urtw_softc *sc) argument 1383 struct urtw_softc *sc = ic->ic_softc; local 1410 struct urtw_softc *sc = ic->ic_softc; local 1430 urtw_start(struct urtw_softc *sc) argument 1465 urtw_alloc_data_list(struct urtw_softc *sc, struct urtw_data data[], int ndata, int maxsz, void *dma_buf) argument 1497 urtw_alloc_rx_data_list(struct urtw_softc *sc) argument 1517 urtw_alloc_tx_data_list(struct urtw_softc *sc) argument 1543 struct urtw_softc *sc = ic->ic_softc; local 1599 struct urtw_softc *sc = ic->ic_softc; local 1648 struct urtw_softc *sc = ic->ic_softc; local 1664 urtw_tx_start(struct urtw_softc *sc, struct ieee80211_node *ni, struct mbuf *m0, struct urtw_data *data, int prior) argument 1851 struct urtw_softc *sc = ic->ic_softc; local 1903 struct urtw_softc *sc = arg; local 1924 urtw_set_rate(struct urtw_softc *sc) argument 1976 urtw_update_msr(struct urtw_softc *sc) argument 2015 urtw_read8_c(struct urtw_softc *sc, int val, uint8_t *data) argument 2033 urtw_read16_c(struct urtw_softc *sc, int val, uint16_t *data) argument 2051 urtw_read32_c(struct urtw_softc *sc, int val, uint32_t *data) argument 2069 urtw_write8_c(struct urtw_softc *sc, int val, uint8_t data) argument 2085 urtw_write16_c(struct urtw_softc *sc, int val, uint16_t data) argument 2101 urtw_write32_c(struct urtw_softc *sc, int val, uint32_t data) argument 2117 urtw_get_macaddr(struct urtw_softc *sc) argument 2143 urtw_eprom_read32(struct urtw_softc *sc, uint32_t addr, uint32_t *data) argument 2219 urtw_eprom_cs(struct urtw_softc *sc, int able) argument 2235 urtw_eprom_ck(struct urtw_softc *sc) argument 2253 urtw_eprom_readbit(struct urtw_softc *sc, int16_t *data) argument 2267 urtw_eprom_writebit(struct urtw_softc *sc, int16_t bit) argument 2283 urtw_eprom_sendbits(struct urtw_softc *sc, int16_t *buf, int buflen) argument 2302 urtw_get_txpwr(struct urtw_softc *sc) argument 2368 urtw_get_rfchip(struct urtw_softc *sc) argument 2455 urtw_led_init(struct urtw_softc *sc) argument 2490 urtw_8225_rf_init(struct urtw_softc *sc) argument 2593 urtw_8185_rf_pins_enable(struct urtw_softc *sc) argument 2603 urtw_8185_tx_antenna(struct urtw_softc *sc, uint8_t ant) argument 2614 urtw_8187_write_phy_ofdm_c(struct urtw_softc *sc, uint8_t addr, uint32_t data) argument 2622 urtw_8187_write_phy_cck_c(struct urtw_softc *sc, uint8_t addr, uint32_t data) argument 2630 urtw_8187_write_phy(struct urtw_softc *sc, uint8_t addr, uint32_t data) argument 2646 urtw_8225_setgain(struct urtw_softc *sc, int16_t gain) argument 2659 urtw_8225_usb_init(struct urtw_softc *sc) argument 2686 urtw_8225_write_c(struct urtw_softc *sc, uint8_t addr, uint16_t data) argument 2719 urtw_8225_write_s16(struct urtw_softc *sc, uint8_t addr, int index, uint16_t *data) argument 2743 urtw_8225_rf_set_chan(struct urtw_softc *sc, int chan) argument 2757 urtw_8225_rf_set_sens(struct urtw_softc *sc, int sens) argument 2783 urtw_8225_set_txpwrlvl(struct urtw_softc *sc, int chan) argument 2837 urtw_8225_rf_stop(struct urtw_softc *sc) argument 2871 urtw_8225v2_rf_init(struct urtw_softc *sc) argument 2995 urtw_8225v2_rf_set_chan(struct urtw_softc *sc, int chan) argument 3010 urtw_8225_read(struct urtw_softc *sc, uint8_t addr, uint32_t *data) argument 3101 urtw_8225v2_set_txpwrlvl(struct urtw_softc *sc, int chan) argument 3148 urtw_8225v2_setgain(struct urtw_softc *sc, int16_t gain) argument 3168 urtw_8225_isv2(struct urtw_softc *sc, int *ret) argument 3203 urtw_8225v2b_rf_init(struct urtw_softc *sc) argument 3366 urtw_8225v2b_rf_set_chan(struct urtw_softc *sc, int chan) argument 3381 urtw_8225v2b_set_txpwrlvl(struct urtw_softc *sc, int chan) argument 3449 urtw_read8e(struct urtw_softc *sc, int val, uint8_t *data) argument 3465 urtw_write8e(struct urtw_softc *sc, int val, uint8_t data) argument 3479 urtw_8180_set_anaparam(struct urtw_softc *sc, uint32_t val) argument 3502 urtw_8185_set_anaparam2(struct urtw_softc *sc, uint32_t val) argument 3525 urtw_intr_enable(struct urtw_softc *sc) argument 3535 urtw_intr_disable(struct urtw_softc *sc) argument 3545 urtw_reset(struct urtw_softc *sc) argument 3600 urtw_led_ctl(struct urtw_softc *sc, int mode) argument 3628 urtw_led_mode0(struct urtw_softc *sc, int mode) argument 3679 urtw_led_mode1(struct urtw_softc *sc, int mode) argument 3685 urtw_led_mode2(struct urtw_softc *sc, int mode) argument 3691 urtw_led_mode3(struct urtw_softc *sc, int mode) argument 3697 urtw_led_on(struct urtw_softc *sc, int type) argument 3727 urtw_led_off(struct urtw_softc *sc, int type) argument 3761 struct urtw_softc *sc = arg; local 3770 struct urtw_softc *sc = arg; local 3785 urtw_led_blink(struct urtw_softc *sc) argument 3833 urtw_rx_enable(struct urtw_softc *sc) argument 3854 urtw_tx_enable(struct urtw_softc *sc) argument 3907 urtw_rx_setconf(struct urtw_softc *sc) argument 3961 struct urtw_softc *sc = data->sc; local 4047 struct urtw_softc *sc = usbd_xfer_softc(xfer); local 4125 struct urtw_softc *sc = usbd_xfer_softc(xfer); local 4150 struct urtw_softc *sc = usbd_xfer_softc(xfer); local 4179 struct urtw_softc *sc = usbd_xfer_softc(xfer); local 4195 struct urtw_softc *sc = usbd_xfer_softc(xfer); local 4244 _urtw_getbuf(struct urtw_softc *sc) argument 4260 urtw_getbuf(struct urtw_softc *sc) argument 4331 struct urtw_softc *sc = ic->ic_softc; local 4339 struct urtw_softc *sc = arg; local 4378 urtw_sysctl_node(struct urtw_softc *sc) argument [all...] |
/freebsd-11-stable/sys/powerpc/mpc85xx/ |
H A D | i2c.c | 130 i2c_write_reg(struct i2c_softc *sc, bus_size_t off, uint8_t val) argument 133 bus_space_write_1(sc->bst, sc->bsh, off, val); 137 i2c_read_reg(struct i2c_softc *sc, bus_size_t off) argument 140 return (bus_space_read_1(sc->bst, sc->bsh, off)); 144 i2c_flag_set(struct i2c_softc *sc, bus_size_t off, uint8_t mask) argument 148 status = i2c_read_reg(sc, off); 150 i2c_write_reg(sc, off, status); 154 i2c_do_wait(device_t dev, struct i2c_softc *sc, in argument 190 struct i2c_softc *sc; local 219 struct i2c_softc *sc; local 251 struct i2c_softc *sc; local 275 struct i2c_softc *sc; local 310 struct i2c_softc *sc; local 324 struct i2c_softc *sc; local 357 struct i2c_softc *sc; local 407 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...] |
/freebsd-11-stable/sys/dev/mpr/ |
H A D | mpr_pci.c | 70 static int mpr_alloc_msix(struct mpr_softc *sc, int msgs); 71 static int mpr_alloc_msi(struct mpr_softc *sc, int msgs); 72 static int mpr_pci_alloc_interrupts(struct mpr_softc *sc); 194 struct mpr_softc *sc; local 198 sc = device_get_softc(dev); 199 bzero(sc, sizeof(*sc)); 200 sc->mpr_dev = dev; 202 sc->mpr_flags = m->flags; 204 mpr_get_tunables(sc); 256 mpr_pci_alloc_interrupts(struct mpr_softc *sc) argument 283 mpr_pci_setup_interrupts(struct mpr_softc *sc) argument 333 struct mpr_softc *sc; local 346 mpr_pci_free(struct mpr_softc *sc) argument 394 mpr_alloc_msix(struct mpr_softc *sc, int msgs) argument 403 mpr_alloc_msi(struct mpr_softc *sc, int msgs) argument 412 mpr_pci_restore(struct mpr_softc *sc) argument [all...] |
/freebsd-11-stable/sys/dev/fatm/ |
H A D | if_fatm.c | 122 static int fatm_load_vc(struct fatm_softc *sc, struct card_vcc *vc); 148 fatm_utopia_writeregs_complete(struct fatm_softc *sc, struct cmdqueue *q) argument 151 H_SYNCSTAT_POSTREAD(sc, q->q.statp); 153 sc->istats.suni_reg_errors++; 171 struct fatm_softc *sc; local 173 sc = ifatm->ifp->if_softc; 174 FATM_CHECKLOCK(sc); 179 q = GET_QUEUE(sc->cmdqueue, struct cmdqueue, sc->cmdqueue.head); 181 H_SYNCSTAT_POSTREAD(sc, 228 fatm_utopia_readregs_complete(struct fatm_softc *sc, struct cmdqueue *q) argument 250 fatm_utopia_readregs_internal(struct fatm_softc *sc) argument 336 struct fatm_softc *sc; local 367 fatm_check_heartbeat(struct fatm_softc *sc) argument 397 struct fatm_softc *sc; local 413 fatm_reset(struct fatm_softc *sc) argument 461 fatm_stop(struct fatm_softc *sc) argument 552 firmware_load(struct fatm_softc *sc) argument 571 rx_getc(struct fatm_softc *sc) argument 593 rx_flush(struct fatm_softc *sc) argument 606 tx_putc(struct fatm_softc *sc, u_char c) argument 630 fatm_start_firmware(struct fatm_softc *sc, uint32_t start) argument 679 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 713 fatm_init_cmd(struct fatm_softc *sc) argument 851 fatm_getprom(struct fatm_softc *sc) argument 950 alloc_dma_memory(struct fatm_softc *sc, const char *nm, struct fatm_mem *mem) argument 993 alloc_dma_memoryX(struct fatm_softc *sc, const char *nm, struct fatm_mem *mem) argument 1074 fatm_supply_small_buffers(struct fatm_softc *sc) argument 1163 fatm_supply_large_buffers(struct fatm_softc *sc) argument 1255 fatm_init_locked(struct fatm_softc *sc) argument 1372 struct fatm_softc *sc = p; local 1388 fatm_intr_drain_cmd(struct fatm_softc *sc) argument 1420 fatm_intr_drain_small_buffers(struct fatm_softc *sc) argument 1447 fatm_intr_drain_large_buffers(struct fatm_softc *sc) argument 1476 fatm_intr_drain_rx(struct fatm_softc *sc) argument 1589 fatm_intr_drain_tx(struct fatm_softc *sc) argument 1628 struct fatm_softc *sc = (struct fatm_softc *)p; local 1671 fatm_getstat_complete(struct fatm_softc *sc, struct cmdqueue *q) argument 1682 fatm_getstat(struct fatm_softc *sc) argument 1811 fatm_fix_chain(struct fatm_softc *sc, struct mbuf **mp) argument 1929 fatm_tx(struct fatm_softc *sc, struct mbuf *m, struct card_vcc *vc, u_int mlen) argument 2041 struct fatm_softc *sc; local 2122 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 2156 fatm_cmd_complete(struct fatm_softc *sc, struct cmdqueue *q) argument 2171 fatm_open_finish(struct fatm_softc *sc, struct card_vcc *vc) argument 2192 fatm_open_complete(struct fatm_softc *sc, struct cmdqueue *q) argument 2214 fatm_waitvcc(struct fatm_softc *sc, struct cmdqueue *q) argument 2232 fatm_open_vcc(struct fatm_softc *sc, struct atmio_openvcc *op) argument 2312 fatm_load_vc(struct fatm_softc *sc, struct card_vcc *vc) argument 2344 fatm_close_finish(struct fatm_softc *sc, struct card_vcc *vc) argument 2362 fatm_close_complete(struct fatm_softc *sc, struct cmdqueue *q) argument 2384 fatm_close_vcc(struct fatm_softc *sc, struct atmio_closevcc *cl) argument 2438 struct fatm_softc *sc = ifp->if_softc; local 2533 struct fatm_softc *sc; local 2642 struct fatm_softc *sc = arg1; local 2665 struct fatm_softc *sc = arg1; local 2746 struct fatm_softc *sc; local 3060 dump_s1_queue(struct fatm_softc *sc) argument [all...] |
/freebsd-11-stable/sys/dev/dpaa/ |
H A D | bman.c | 55 struct bman_softc *sc; local 58 sc = h_App; 78 device_printf(sc->sc_dev, "BMAN Exception: %s.\n", message); 84 struct bman_softc *sc; local 89 sc = device_get_softc(dev); 90 sc->sc_dev = dev; 91 bman_sc = sc; 98 sc->sc_rrid = 0; 99 sc->sc_rres = bus_alloc_resource(dev, SYS_RES_MEMORY, 100 &sc 152 struct bman_softc *sc; local 204 struct bman_softc *sc; local 280 struct bman_softc *sc; local 299 struct bman_softc *sc; local 322 struct bman_softc *sc; local 345 struct bman_softc *sc; local [all...] |
/freebsd-11-stable/sys/dev/nand/ |
H A D | nfc_rb.c | 163 struct rb_nand_softc *sc; local 169 sc = device_get_softc(dev); 189 sc->sc_ale_pin = ale[1]; 190 sc->sc_cle_pin = cle[1]; 191 sc->sc_nce_pin = nce[1]; 192 sc->sc_rdy_pin = rdy[1]; 194 sc->sc_gpio = OF_device_from_xref(ale[0]); 195 if (sc->sc_gpio == NULL) { 200 sc->sc_mem = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &sc 227 struct rb_nand_softc *sc; local 243 struct rb_nand_softc *sc; local 259 struct rb_nand_softc *sc; local 273 struct rb_nand_softc *sc; local 283 struct rb_nand_softc *sc; local 314 struct rb_nand_softc *sc; local [all...] |