Searched refs:sc (Results 101 - 125 of 1494) sorted by relevance

1234567891011>>

/freebsd-9.3-release/sys/dev/ral/
H A Drt2860.c71 #define DPRINTF(x) do { if (sc->sc_debug > 0) printf x; } while (0)
72 #define DPRINTFN(n, x) do { if (sc->sc_debug >= (n)) printf x; } while (0)
221 struct rt2860_softc *sc = device_get_softc(dev); local
229 sc->sc_dev = dev;
230 sc->sc_debug = 0;
232 ifp = sc->sc_ifp = if_alloc(IFT_IEEE80211);
234 device_printf(sc->sc_dev, "can not if_alloc()\n");
239 mtx_init(&sc->sc_mtx, device_get_nameunit(dev), MTX_NETWORK_LOCK,
242 callout_init_mtx(&sc->watchdog_ch, &sc
380 struct rt2860_softc *sc = xsc; local
406 struct rt2860_softc *sc = xsc; local
414 struct rt2860_softc *sc = xsc; local
422 struct rt2860_softc *sc = xsc; local
518 rt2860_alloc_tx_ring(struct rt2860_softc *sc, struct rt2860_tx_ring *ring) argument
555 rt2860_reset_tx_ring(struct rt2860_softc *sc, struct rt2860_tx_ring *ring) argument
585 rt2860_free_tx_ring(struct rt2860_softc *sc, struct rt2860_tx_ring *ring) argument
620 rt2860_alloc_tx_pool(struct rt2860_softc *sc) argument
679 rt2860_free_tx_pool(struct rt2860_softc *sc) argument
699 rt2860_alloc_rx_ring(struct rt2860_softc *sc, struct rt2860_rx_ring *ring) argument
776 rt2860_reset_rx_ring(struct rt2860_softc *sc, struct rt2860_rx_ring *ring) argument
789 rt2860_free_rx_ring(struct rt2860_softc *sc, struct rt2860_rx_ring *ring) argument
819 rt2860_updatestats(struct rt2860_softc *sc) argument
848 struct rt2860_softc *sc = ic->ic_ifp->if_softc; local
867 struct rt2860_softc *sc = ic->ic_ifp->if_softc; local
884 struct rt2860_softc *sc = ic->ic_softc; local
899 struct rt2860_softc *sc = ic->ic_softc; local
915 struct rt2860_softc *sc = ic->ic_ifp->if_softc; local
971 rt3090_efuse_read_2(struct rt2860_softc *sc, uint16_t addr) argument
1013 rt2860_eeprom_read_2(struct rt2860_softc *sc, uint16_t addr) argument
1067 rt2860_srom_read(struct rt2860_softc *sc, uint8_t addr) argument
1074 rt2860_intr_coherent(struct rt2860_softc *sc) argument
1091 rt2860_drain_stats_fifo(struct rt2860_softc *sc) argument
1135 rt2860_tx_intr(struct rt2860_softc *sc, int qid) argument
1180 rt2860_maxrssi_chain(struct rt2860_softc *sc, const struct rt2860_rxwi *rxwi) argument
1195 rt2860_rx_intr(struct rt2860_softc *sc) argument
1368 rt2860_tbtt_intr(struct rt2860_softc *sc) argument
1398 rt2860_gp_intr(struct rt2860_softc *sc) argument
1412 struct rt2860_softc *sc = arg; local
1470 rt2860_tx(struct rt2860_softc *sc, struct mbuf *m, struct ieee80211_node *ni) argument
1718 struct rt2860_softc *sc = ifp->if_softc; local
1754 rt2860_tx_raw(struct rt2860_softc *sc, struct mbuf *m, struct ieee80211_node *ni, const struct ieee80211_bpf_params *params) argument
1967 struct rt2860_softc *sc = ifp->if_softc; local
1977 struct rt2860_softc *sc = ifp->if_softc; local
2008 struct rt2860_softc *sc = arg; local
2031 struct rt2860_softc *sc = ifp->if_softc; local
2072 rt2860_mcu_bbp_write(struct rt2860_softc *sc, uint8_t reg, uint8_t val) argument
2096 rt2860_mcu_bbp_read(struct rt2860_softc *sc, uint8_t reg) argument
2134 rt2860_rf_write(struct rt2860_softc *sc, uint8_t reg, uint32_t val) argument
2156 rt3090_rf_read(struct rt2860_softc *sc, uint8_t reg) argument
2187 rt3090_rf_write(struct rt2860_softc *sc, uint8_t reg, uint8_t val) argument
2210 rt2860_mcu_cmd(struct rt2860_softc *sc, uint8_t cmd, uint16_t arg, int wait) argument
2260 rt2860_enable_mrr(struct rt2860_softc *sc) argument
2284 rt2860_set_txpreamble(struct rt2860_softc *sc) argument
2298 rt2860_set_basicrates(struct rt2860_softc *sc, const struct ieee80211_rateset *rs) argument
2325 struct rt2860_softc *sc = ifp->if_softc; local
2339 struct rt2860_softc *sc = ifp->if_softc; local
2352 struct rt2860_softc *sc = ifp->if_softc; local
2360 rt2860_select_chan_group(struct rt2860_softc *sc, int group) argument
2444 rt2860_set_chan(struct rt2860_softc *sc, u_int chan) argument
2499 rt3090_set_chan(struct rt2860_softc *sc, u_int chan) argument
2564 rt3090_rf_init(struct rt2860_softc *sc) argument
2674 rt3090_rf_wakeup(struct rt2860_softc *sc) argument
2740 rt3090_filter_calib(struct rt2860_softc *sc, uint8_t init, uint8_t target, uint8_t *val) argument
2805 rt3090_rf_setup(struct rt2860_softc *sc) argument
2835 rt2860_set_leds(struct rt2860_softc *sc, uint16_t which) argument
2846 rt2860_set_gp_timer(struct rt2860_softc *sc, int ms) argument
2868 rt2860_set_bssid(struct rt2860_softc *sc, const uint8_t *bssid) argument
2877 rt2860_set_macaddr(struct rt2860_softc *sc, const uint8_t *addr) argument
2888 struct rt2860_softc *sc = ifp->if_softc; local
2901 struct rt2860_softc *sc = ifp->if_softc; local
2926 struct rt2860_softc *sc = ifp->if_softc; local
2939 struct rt2860_softc *sc = ic->ic_ifp->if_softc; local
2985 struct rt2860_softc *sc = ic->ic_softc; local
3088 struct rt2860_softc *sc = ic->ic_softc; local
3109 rt2860_rssi2dbm(struct rt2860_softc *sc, uint8_t rssi, uint8_t rxchain) argument
3174 rt2860_read_eeprom(struct rt2860_softc *sc, uint8_t macaddr[IEEE80211_ADDR_LEN]) argument
3487 rt2860_bbp_init(struct rt2860_softc *sc) argument
3528 rt2860_txrx_enable(struct rt2860_softc *sc) argument
3576 struct rt2860_softc *sc = arg; local
3589 rt2860_init_locked(struct rt2860_softc *sc) argument
3844 struct rt2860_softc *sc = arg; local
3852 rt2860_stop_locked(struct rt2860_softc *sc) argument
3889 rt2860_load_microcode(struct rt2860_softc *sc) argument
3941 rt2860_calib(struct rt2860_softc *sc) argument
3984 rt3090_set_rx_antenna(struct rt2860_softc *sc, int aux) argument
4002 rt2860_switch_chan(struct rt2860_softc *sc, struct ieee80211_channel *c) argument
4034 rt2860_setup_beacon(struct rt2860_softc *sc, struct ieee80211vap *vap) argument
4069 rt2860_enable_tsf_sync(struct rt2860_softc *sc) argument
[all...]
/freebsd-9.3-release/sys/dev/acpi_support/
H A Dacpi_fujitsu.c145 static uint8_t acpi_fujitsu_update(struct acpi_fujitsu_softc *sc);
146 static uint8_t acpi_fujitsu_init(struct acpi_fujitsu_softc *sc);
147 static uint8_t acpi_fujitsu_check_hardware(struct acpi_fujitsu_softc *sc);
167 static int acpi_fujitsu_method_get(struct acpi_fujitsu_softc *sc, int method);
168 static int acpi_fujitsu_method_set(struct acpi_fujitsu_softc *sc, int method, int value);
245 struct acpi_fujitsu_softc *sc; local
249 sc = device_get_softc(dev);
250 sc->dev = dev;
251 sc->handle = acpi_get_handle(dev);
254 AcpiInstallNotifyHandler(sc
280 struct acpi_fujitsu_softc *sc; local
304 struct acpi_fujitsu_softc *sc; local
324 struct acpi_fujitsu_softc *sc; local
344 struct acpi_fujitsu_softc *sc; local
360 acpi_fujitsu_init(struct acpi_fujitsu_softc *sc) argument
439 struct acpi_fujitsu_softc *sc; local
466 acpi_fujitsu_method_get(struct acpi_fujitsu_softc *sc, int method) argument
522 acpi_fujitsu_method_set(struct acpi_fujitsu_softc *sc, int method, int value) argument
584 acpi_fujitsu_check_hardware(struct acpi_fujitsu_softc *sc) argument
658 acpi_fujitsu_update(struct acpi_fujitsu_softc *sc) argument
[all...]
/freebsd-9.3-release/sys/dev/tws/
H A Dtws_services.c42 void tws_q_insert_tail(struct tws_softc *sc, struct tws_request *req,
44 struct tws_request * tws_q_remove_request(struct tws_softc *sc,
46 struct tws_request *tws_q_remove_head(struct tws_softc *sc, u_int8_t q_type );
47 void tws_q_insert_head(struct tws_softc *sc, struct tws_request *req,
49 struct tws_request * tws_q_remove_tail(struct tws_softc *sc, u_int8_t q_type );
52 struct tws_sense *tws_find_sense_from_mfa(struct tws_softc *sc, u_int64_t mfa);
87 struct tws_softc *sc, char *desc, u_int64_t val1, u_int64_t val2)
91 struct tws_trace_rec *rec = (struct tws_trace_rec *)sc->trace_q.q;
95 head = sc->trace_q.head;
96 tail = sc
86 tws_trace(const char *file, const char *fun, int linenum, struct tws_softc *sc, char *desc, u_int64_t val1, u_int64_t val2) argument
132 tws_log(struct tws_softc *sc, int index) argument
170 tws_write_reg(struct tws_softc *sc, int offset, u_int32_t value, int size) argument
187 tws_read_reg(struct tws_softc *sc, int offset, int size) argument
206 tws_init_qs(struct tws_softc *sc) argument
220 tws_insert2_empty_q(struct tws_softc *sc, struct tws_request *req, u_int8_t q_type ) argument
232 tws_q_insert_head(struct tws_softc *sc, struct tws_request *req, u_int8_t q_type ) argument
250 tws_q_insert_tail(struct tws_softc *sc, struct tws_request *req, u_int8_t q_type ) argument
268 tws_q_remove_head(struct tws_softc *sc, u_int8_t q_type ) argument
291 tws_q_remove_tail(struct tws_softc *sc, u_int8_t q_type ) argument
315 tws_q_remove_request(struct tws_softc *sc, struct tws_request *req, u_int8_t q_type ) argument
365 tws_find_sense_from_mfa(struct tws_softc *sc, u_int64_t mfa) argument
391 struct tws_softc *sc = (struct tws_softc *)arg; local
[all...]
/freebsd-9.3-release/sys/dev/ed/
H A Dif_ed_hpp.c67 static void ed_hpp_set_physical_link(struct ed_softc *sc);
120 struct ed_softc *sc = device_get_softc(dev); local
135 sc->asic_offset = ED_HPP_ASIC_OFFSET;
136 sc->nic_offset = ED_HPP_NIC_OFFSET;
138 sc->chip_type = ED_CHIP_TYPE_DP8390;
139 sc->isa16bit = 0; /* the 8390 core needs to be in byte mode */
145 if ((ed_asic_inb(sc, ED_HPP_ID) != 0x50) ||
146 (ed_asic_inb(sc, ED_HPP_ID + 1) != 0x48) ||
147 ((ed_asic_inb(sc, ED_HPP_ID + 2) & 0xF0) != 0) ||
148 (ed_asic_inb(sc, ED_HPP_I
374 ed_hpp_set_physical_link(struct ed_softc *sc) argument
421 ed_hpp_readmem(struct ed_softc *sc, bus_size_t src, uint8_t *dst, uint16_t amount) argument
512 ed_hpp_writemem(struct ed_softc *sc, uint8_t *src, uint16_t dst, uint16_t len) argument
557 ed_hpp_write_mbufs(struct ed_softc *sc, struct mbuf *m, bus_size_t dst) argument
[all...]
/freebsd-9.3-release/sys/dev/sound/pci/
H A Dmaestro3.c270 #define m3_rd_1(sc, regno) bus_space_read_1(sc->st, sc->sh, regno)
271 #define m3_rd_2(sc, regno) bus_space_read_2(sc->st, sc->sh, regno)
272 #define m3_rd_4(sc, regno) bus_space_read_4(sc->st, sc->sh, regno)
273 #define m3_wr_1(sc, regn
286 m3_rd_assp(struct sc_info *sc, u_int16_t region, u_int16_t index) argument
294 m3_wr_assp(struct sc_info *sc, u_int16_t region, u_int16_t index, u_int16_t data) argument
303 m3_wait(struct sc_info *sc) argument
322 struct sc_info *sc = (struct sc_info *)devinfo; local
336 struct sc_info *sc = (struct sc_info *)devinfo; local
356 struct sc_info *sc = (struct sc_info *)devinfo; local
376 struct sc_info *sc = devinfo; local
519 struct sc_info *sc = ch->parent; local
543 struct sc_info *sc = ch->parent; local
571 struct sc_info *sc = ch->parent; local
605 struct sc_info *sc = ch->parent; local
619 m3_chan_active(struct sc_info *sc) argument
638 struct sc_info *sc = ch->parent; local
709 struct sc_info *sc = ch->parent; local
727 struct sc_info *sc = ch->parent; local
753 struct sc_info *sc = devinfo; local
893 struct sc_info *sc = ch->parent; local
917 struct sc_info *sc = ch->parent; local
944 struct sc_info *sc = ch->parent; local
978 struct sc_info *sc = ch->parent; local
995 struct sc_info *sc = ch->parent; local
1061 struct sc_info *sc = ch->parent; local
1079 struct sc_info *sc = ch->parent; local
1105 struct sc_info *sc = (struct sc_info *)p; local
1197 m3_power(struct sc_info *sc, int state) argument
1213 m3_init(struct sc_info *sc) argument
1290 m3_uninit(struct sc_info *sc) argument
1318 struct sc_info *sc; local
1481 struct sc_info *sc = pcm_getdevinfo(dev); local
1509 struct sc_info *sc = pcm_getdevinfo(dev); local
1551 struct sc_info *sc = pcm_getdevinfo(dev); local
1611 struct sc_info *sc = pcm_getdevinfo(dev); local
1623 m3_assp_halt(struct sc_info *sc) argument
1639 m3_config(struct sc_info *sc) argument
1693 m3_enable_ints(struct sc_info *sc) argument
1703 m3_amp_enable(struct sc_info *sc) argument
1734 m3_codec_reset(struct sc_info *sc) argument
[all...]
H A Dsolo.c119 static int ess_rd(struct ess_info *sc, int reg);
120 static void ess_wr(struct ess_info *sc, int reg, u_int8_t val);
121 static int ess_dspready(struct ess_info *sc);
122 static int ess_cmd(struct ess_info *sc, u_char val);
123 static int ess_cmd1(struct ess_info *sc, u_char cmd, int val);
124 static int ess_get_byte(struct ess_info *sc);
125 static void ess_setmixer(struct ess_info *sc, u_int port, u_int value);
126 static int ess_getmixer(struct ess_info *sc, u_int port);
127 static int ess_reset_dsp(struct ess_info *sc);
129 static int ess_write(struct ess_info *sc, u_cha
191 ess_rd(struct ess_info *sc, int reg) argument
197 ess_wr(struct ess_info *sc, int reg, u_int8_t val) argument
203 ess_dspready(struct ess_info *sc) argument
209 ess_dspwr(struct ess_info *sc, u_char val) argument
225 ess_cmd(struct ess_info *sc, u_char val) argument
232 ess_cmd1(struct ess_info *sc, u_char cmd, int val) argument
241 ess_setmixer(struct ess_info *sc, u_int port, u_int value) argument
251 ess_getmixer(struct ess_info *sc, u_int port) argument
264 ess_get_byte(struct ess_info *sc) argument
278 ess_write(struct ess_info *sc, u_char reg, int val) argument
284 ess_read(struct ess_info *sc, u_char reg) argument
290 ess_reset_dsp(struct ess_info *sc) argument
310 struct ess_info *sc = (struct ess_info *)arg; local
427 ess_setupch(struct ess_info *sc, int ch, int dir, int spd, u_int32_t fmt, int len) argument
500 struct ess_info *sc = ch->parent; local
521 struct ess_info *sc = ch->parent; local
538 struct ess_info *sc = devinfo; local
567 struct ess_info *sc = ch->parent; local
590 struct ess_info *sc = ch->parent; local
619 struct ess_info *sc = ch->parent; local
653 struct ess_info *sc = mix_getdevinfo(m); local
670 struct ess_info *sc = mix_getdevinfo(m); local
730 struct ess_info *sc = mix_getdevinfo(m); local
769 ess_dmasetup(struct ess_info *sc, int ch, u_int32_t base, u_int16_t cnt, int dir) argument
790 ess_dmapos(struct ess_info *sc, int ch) argument
822 ess_dmatrigger(struct ess_info *sc, int ch, int go) argument
833 ess_release_resources(struct ess_info *sc, device_t dev) argument
882 ess_alloc_resources(struct ess_info *sc, device_t dev) argument
952 struct ess_info *sc = pcm_getdevinfo(dev); local
982 struct ess_info *sc; local
1075 struct ess_info *sc; local
[all...]
H A Denvy24.c403 envy24_rdcs(struct sc_info *sc, int regno, int size) argument
407 return bus_space_read_1(sc->cst, sc->csh, regno);
409 return bus_space_read_2(sc->cst, sc->csh, regno);
411 return bus_space_read_4(sc->cst, sc->csh, regno);
418 envy24_wrcs(struct sc_info *sc, int regno, u_int32_t data, int size) argument
422 bus_space_write_1(sc->cst, sc
434 envy24_rdmt(struct sc_info *sc, int regno, int size) argument
449 envy24_wrmt(struct sc_info *sc, int regno, u_int32_t data, int size) argument
465 envy24_rdci(struct sc_info *sc, int regno) argument
472 envy24_wrci(struct sc_info *sc, int regno, u_int32_t data) argument
483 envy24_rdi2c(struct sc_info *sc, u_int32_t dev, u_int32_t addr) argument
558 envy24_rdrom(struct sc_info *sc, u_int32_t addr) argument
577 envy24_rom2cfg(struct sc_info *sc) argument
663 envy24_slavecd(struct sc_info *sc) argument
747 envy24_gpiord(struct sc_info *sc) argument
753 envy24_gpiowr(struct sc_info *sc, u_int32_t data) argument
772 envy24_gpiosetmask(struct sc_info *sc, u_int32_t mask) argument
787 envy24_gpiosetdir(struct sc_info *sc, u_int32_t dir) argument
930 struct sc_info *sc = info; local
1095 envy24_setspeed(struct sc_info *sc, u_int32_t speed) argument
1136 envy24_setvolume(struct sc_info *sc, unsigned ch) argument
1155 envy24_mutevolume(struct sc_info *sc, unsigned ch) argument
1170 envy24_gethwptr(struct sc_info *sc, int dir) argument
1200 envy24_updintr(struct sc_info *sc, int dir) argument
1270 envy24_checkintr(struct sc_info *sc, int dir) argument
1297 envy24_start(struct sc_info *sc, int dir) argument
1321 envy24_stop(struct sc_info *sc, int dir) argument
1340 envy24_route(struct sc_info *sc, int dac, int class, int adc, int rev) argument
1572 struct sc_info *sc = (struct sc_info *)devinfo; local
1617 struct sc_info *sc = ch->parent; local
1636 struct sc_info *sc = ch->parent; local
1770 struct sc_info *sc = ch->parent; local
1882 struct sc_info *sc = ch->parent; local
1904 struct sc_info *sc = ch->parent; local
1948 struct sc_info *sc = mix_getdevinfo(m); local
1970 struct sc_info *sc = mix_getdevinfo(m); local
1984 struct sc_info *sc = mix_getdevinfo(m); local
1998 struct sc_info *sc = mix_getdevinfo(m); local
2040 struct sc_info *sc = mix_getdevinfo(m); local
2067 struct sc_info *sc = (struct sc_info *)p; local
2199 envy24_dmafree(struct sc_info *sc) argument
2236 envy24_dmainit(struct sc_info *sc) argument
2300 envy24_putcfg(struct sc_info *sc) argument
2385 envy24_init(struct sc_info *sc) argument
2483 envy24_alloc_resource(struct sc_info *sc) argument
2550 struct sc_info *sc; local
2650 struct sc_info *sc; local
[all...]
/freebsd-9.3-release/sys/dev/bge/
H A Dif_bge.c371 #define BGE_IS_JUMBO_CAPABLE(sc) ((sc)->bge_flags & BGE_FLAG_JUMBO)
372 #define BGE_IS_5700_FAMILY(sc) ((sc)->bge_flags & BGE_FLAG_5700_FAMILY)
373 #define BGE_IS_5705_PLUS(sc) ((sc)->bge_flags & BGE_FLAG_5705_PLUS)
374 #define BGE_IS_5714_FAMILY(sc) ((sc)->bge_flags & BGE_FLAG_5714_FAMILY)
375 #define BGE_IS_575X_PLUS(sc) ((sc)
557 bge_has_eaddr(struct bge_softc *sc) argument
595 bge_readmem_ind(struct bge_softc *sc, int off) argument
613 bge_writemem_ind(struct bge_softc *sc, int off, int val) argument
630 bge_readreg_ind(struct bge_softc *sc, int off) argument
642 bge_writereg_ind(struct bge_softc *sc, int off, int val) argument
653 bge_writemem_direct(struct bge_softc *sc, int off, int val) argument
659 bge_writembx(struct bge_softc *sc, int off, int val) argument
673 bge_ape_lock_init(struct bge_softc *sc) argument
725 bge_ape_read_fw_ver(struct bge_softc *sc) argument
769 bge_ape_lock(struct bge_softc *sc, int locknum) argument
849 bge_ape_unlock(struct bge_softc *sc, int locknum) argument
902 bge_ape_send_event(struct bge_softc *sc, uint32_t event) argument
932 bge_ape_driver_state_change(struct bge_softc *sc, int kind) argument
1000 bge_nvram_getbyte(struct bge_softc *sc, int addr, uint8_t *dest) argument
1053 bge_read_nvram(struct bge_softc *sc, caddr_t dest, int off, int cnt) argument
1078 bge_eeprom_getbyte(struct bge_softc *sc, int addr, uint8_t *dest) argument
1121 bge_read_eeprom(struct bge_softc *sc, caddr_t dest, int off, int cnt) argument
1139 struct bge_softc *sc; local
1193 struct bge_softc *sc; local
1243 struct bge_softc *sc; local
1315 bge_newbuf_std(struct bge_softc *sc, int i) argument
1374 bge_newbuf_jumbo(struct bge_softc *sc, int i) argument
1458 bge_init_rx_ring_std(struct bge_softc *sc) argument
1480 bge_free_rx_ring_std(struct bge_softc *sc) argument
1500 bge_init_rx_ring_jumbo(struct bge_softc *sc) argument
1530 bge_free_rx_ring_jumbo(struct bge_softc *sc) argument
1550 bge_free_tx_ring(struct bge_softc *sc) argument
1573 bge_init_tx_ring(struct bge_softc *sc) argument
1600 bge_setpromisc(struct bge_softc *sc) argument
1616 bge_setmulti(struct bge_softc *sc) argument
1653 bge_setvlan(struct bge_softc *sc) argument
1669 bge_sig_pre_reset(struct bge_softc *sc, int type) argument
1700 bge_sig_post_reset(struct bge_softc *sc, int type) argument
1721 bge_sig_legacy(struct bge_softc *sc, int type) argument
1739 bge_stop_fw(struct bge_softc *sc) argument
1758 bge_dma_swap_options(struct bge_softc *sc) argument
1774 bge_chipinit(struct bge_softc *sc) argument
1963 bge_blockinit(struct bge_softc *sc) argument
2744 struct bge_softc *sc; local
2780 bge_dma_free(struct bge_softc *sc) argument
2906 bge_dma_ring_alloc(struct bge_softc *sc, bus_size_t alignment, bus_size_t maxsize, bus_dma_tag_t *tag, uint8_t **ring, bus_dmamap_t *map, bus_addr_t *paddr, const char *msg) argument
2966 bge_dma_alloc(struct bge_softc *sc) argument
3176 bge_has_multiple_ports(struct bge_softc *sc) argument
3195 bge_can_use_msi(struct bge_softc *sc) argument
3229 bge_mbox_reorder(struct bge_softc *sc) argument
3270 bge_devinfo(struct bge_softc *sc) argument
3326 struct bge_softc *sc; local
3966 struct bge_softc *sc; local
4001 bge_release_resources(struct bge_softc *sc) argument
4037 bge_reset(struct bge_softc *sc) argument
4291 bge_rxreuse_std(struct bge_softc *sc, int i) argument
4303 bge_rxreuse_jumbo(struct bge_softc *sc, int i) argument
4327 bge_rxeof(struct bge_softc *sc, uint16_t rx_prod, int holdlck) argument
4474 bge_rxcsum(struct bge_softc *sc, struct bge_rx_bd *cur_rx, struct mbuf *m) argument
4509 bge_txeof(struct bge_softc *sc, uint16_t tx_cons) argument
4557 struct bge_softc *sc = ifp->if_softc; local
4611 struct bge_softc *sc; local
4625 struct bge_softc *sc; local
4682 struct bge_softc *sc; local
4761 bge_asf_driver_up(struct bge_softc *sc) argument
4784 struct bge_softc *sc = xsc; local
4837 bge_stats_update_regs(struct bge_softc *sc) argument
4963 bge_stats_clear_regs(struct bge_softc *sc) argument
5005 bge_stats_update(struct bge_softc *sc) argument
5118 bge_setup_tso(struct bge_softc *sc, struct mbuf *m, uint16_t *mss, uint16_t *flags) argument
5194 bge_encap(struct bge_softc *sc, struct mbuf **m_head, uint32_t *txidx) argument
5362 struct bge_softc *sc; local
5436 struct bge_softc *sc; local
5445 bge_init_locked(struct bge_softc *sc) argument
5622 struct bge_softc *sc = xsc; local
5635 struct bge_softc *sc = ifp->if_softc; local
5648 struct bge_softc *sc = ifp->if_softc; local
5733 struct bge_softc *sc = ifp->if_softc; local
5773 struct bge_softc *sc = ifp->if_softc; local
5928 bge_watchdog(struct bge_softc *sc) argument
5976 bge_stop_block(struct bge_softc *sc, bus_size_t reg, uint32_t bit) argument
5994 bge_stop(struct bge_softc *sc) argument
6096 struct bge_softc *sc; local
6109 struct bge_softc *sc; local
6122 struct bge_softc *sc; local
6139 bge_link_upd(struct bge_softc *sc) argument
6260 bge_add_sysctls(struct bge_softc *sc) argument
6346 bge_add_sysctl_stats(struct bge_softc *sc, struct sysctl_ctx_list *ctx, struct sysctl_oid_list *parent) argument
6475 bge_add_sysctl_stats_regs(struct bge_softc *sc, struct sysctl_ctx_list *ctx, struct sysctl_oid_list *parent) argument
6572 struct bge_softc *sc; local
6587 struct bge_softc *sc; local
6660 struct bge_softc *sc; local
6682 struct bge_softc *sc; local
6704 struct bge_softc *sc; local
6725 bge_get_eaddr_fw(struct bge_softc *sc, uint8_t ether_addr[]) argument
6739 bge_get_eaddr_mem(struct bge_softc *sc, uint8_t ether_addr[]) argument
6758 bge_get_eaddr_nvram(struct bge_softc *sc, uint8_t ether_addr[]) argument
6770 bge_get_eaddr_eeprom(struct bge_softc *sc, uint8_t ether_addr[]) argument
6781 bge_get_eaddr(struct bge_softc *sc, uint8_t eaddr[]) argument
[all...]
/freebsd-9.3-release/sys/dev/digi/
H A Ddigi.c143 struct digi_softc *sc; local
145 sc = (struct digi_softc *)ptr;
146 callout_handle_init(&sc->callout);
147 digi_intr(sc);
148 sc->callout = timeout(digi_poll, sc, (hz >= 200) ? hz / 100 : 1);
154 struct digi_softc *sc = v; local
156 callout_handle_init(&sc->inttest);
158 if (sc->intr_timestamp.tv_sec || sc
168 digi_freemoduledata(struct digi_softc *sc) argument
203 digi_delay(struct digi_softc *sc, const char *txt, u_long timo) argument
212 digi_init(struct digi_softc *sc) argument
605 struct digi_softc *sc; local
649 struct digi_softc *sc; local
664 struct digi_softc *sc; local
708 struct digi_softc *sc; local
770 digi_loadmoduledata(struct digi_softc *sc) argument
837 struct digi_softc *sc; local
877 struct digi_softc *sc; local
914 struct digi_softc *sc; local
983 struct digi_softc *sc; local
1088 struct digi_softc *sc; local
1312 struct digi_softc *sc; local
1392 struct digi_softc *sc; local
1451 digi_attach(struct digi_softc *sc) argument
1466 digi_inuse(struct digi_softc *sc) argument
1485 digi_free_state(struct digi_softc *sc) argument
1524 struct digi_softc *sc = device_get_softc(dev); local
[all...]
/freebsd-9.3-release/sys/dev/mps/
H A Dmps.c80 static int mps_diag_reset(struct mps_softc *sc, int sleep_flag);
81 static int mps_init_queues(struct mps_softc *sc);
82 static int mps_message_unit_reset(struct mps_softc *sc, int sleep_flag);
83 static int mps_transition_operational(struct mps_softc *sc);
84 static int mps_iocfacts_allocate(struct mps_softc *sc, uint8_t attaching);
85 static void mps_iocfacts_free(struct mps_softc *sc);
87 static int mps_send_iocinit(struct mps_softc *sc);
88 static int mps_alloc_queues(struct mps_softc *sc);
89 static int mps_alloc_replies(struct mps_softc *sc);
90 static int mps_alloc_requests(struct mps_softc *sc);
137 mps_diag_reset(struct mps_softc *sc,int sleep_flag) argument
207 mps_message_unit_reset(struct mps_softc *sc, int sleep_flag) argument
226 mps_transition_ready(struct mps_softc *sc) argument
293 mps_transition_operational(struct mps_softc *sc) argument
326 mps_iocfacts_allocate(struct mps_softc *sc, uint8_t attaching) argument
608 mps_iocfacts_free(struct mps_softc *sc) argument
676 mps_reinit(struct mps_softc *sc) argument
768 mps_wait_db_ack(struct mps_softc *sc, int timeout, int sleep_flag) argument
816 mps_wait_db_int(struct mps_softc *sc) argument
831 mps_request_sync(struct mps_softc *sc, void *req, MPI2_DEFAULT_REPLY *reply, int req_sz, int reply_sz, int timeout) argument
958 mps_enqueue_request(struct mps_softc *sc, struct mps_command *cm) argument
984 mps_get_iocfacts(struct mps_softc *sc, MPI2_IOC_FACTS_REPLY *facts) argument
1004 mps_send_iocinit(struct mps_softc *sc) argument
1062 mps_alloc_queues(struct mps_softc *sc) argument
1117 mps_alloc_replies(struct mps_softc *sc) argument
1156 mps_alloc_requests(struct mps_softc *sc) argument
1311 mps_init_queues(struct mps_softc *sc) argument
1340 mps_get_tunables(struct mps_softc *sc) argument
1377 mps_setup_sysctl(struct mps_softc *sc) argument
1454 mps_attach(struct mps_softc *sc) argument
1528 struct mps_softc *sc; local
1546 struct mps_softc *sc; local
1563 mps_log_evt_handler(struct mps_softc *sc, uintptr_t data, MPI2_EVENT_NOTIFICATION_REPLY *event) argument
1589 mps_attach_log(struct mps_softc *sc) argument
1604 mps_detach_log(struct mps_softc *sc) argument
1617 mps_free(struct mps_softc *sc) argument
1664 mps_complete_command(struct mps_softc *sc, struct mps_command *cm) argument
1745 mps_display_reply_info(struct mps_softc *sc, uint8_t *reply) argument
1758 struct mps_softc *sc; local
1785 struct mps_softc *sc; local
1802 struct mps_softc *sc; local
1945 mps_dispatch_event(struct mps_softc *sc, uintptr_t data, MPI2_EVENT_NOTIFICATION_REPLY *reply) argument
1971 mps_reregister_events_complete(struct mps_softc *sc, struct mps_command *cm) argument
1991 mps_register_events(struct mps_softc *sc, u32 *mask, mps_evt_callback_t *cb, void *data, struct mps_event_handle **handle) argument
2014 mps_update_events(struct mps_softc *sc, struct mps_event_handle *handle, u32 *mask) argument
2069 mps_reregister_events(struct mps_softc *sc) argument
2118 mps_deregister_events(struct mps_softc *sc, struct mps_event_handle *handle) argument
2369 struct mps_softc *sc; local
2457 mps_map_command(struct mps_softc *sc, struct mps_command *cm) argument
2494 mps_wait_command(struct mps_softc *sc, struct mps_command *cm, int timeout, int sleep_flag) argument
2548 mps_request_polled(struct mps_softc *sc, struct mps_command *cm) argument
2584 mps_read_config_page(struct mps_softc *sc, struct mps_config_params *params) argument
2651 mps_write_config_page(struct mps_softc *sc, struct mps_config_params *params) argument
2657 mps_config_complete(struct mps_softc *sc, struct mps_command *cm) argument
[all...]
H A Dmps_pci.c69 static int mps_alloc_msix(struct mps_softc *sc, int msgs);
70 static int mps_alloc_msi(struct mps_softc *sc, int msgs);
184 struct mps_softc *sc; local
188 sc = device_get_softc(dev);
189 bzero(sc, sizeof(*sc));
190 sc->mps_dev = dev;
192 sc->mps_flags = m->flags;
198 sc->mps_regs_rid = PCIR_BAR(1);
199 if ((sc
231 mps_pci_setup_interrupts(struct mps_softc *sc) argument
287 struct mps_softc *sc; local
300 mps_pci_free(struct mps_softc *sc) argument
348 mps_alloc_msix(struct mps_softc *sc, int msgs) argument
357 mps_alloc_msi(struct mps_softc *sc, int msgs) argument
366 mps_pci_restore(struct mps_softc *sc) argument
[all...]
/freebsd-9.3-release/sys/dev/ipw/
H A Dif_ipw.c225 struct ipw_softc *sc = device_get_softc(dev); local
233 sc->sc_dev = dev;
235 mtx_init(&sc->sc_mtx, device_get_nameunit(dev), MTX_NETWORK_LOCK,
238 TASK_INIT(&sc->sc_init_task, 0, ipw_init_task, sc);
239 callout_init_mtx(&sc->sc_wdtimer, &sc->sc_mtx, 0);
252 sc->mem_rid = IPW_PCI_BAR0;
253 sc->mem = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &sc
400 struct ipw_softc *sc = device_get_softc(dev); local
437 struct ipw_softc *sc = ifp->if_softc; local
522 ipw_dma_alloc(struct ipw_softc *sc) argument
751 ipw_release(struct ipw_softc *sc) argument
827 struct ipw_softc *sc = device_get_softc(dev); local
837 struct ipw_softc *sc = device_get_softc(dev); local
847 struct ipw_softc *sc = device_get_softc(dev); local
877 struct ipw_softc *sc = ic->ic_ifp->if_softc; local
891 struct ipw_softc *sc = ifp->if_softc; local
953 ipw_read_prom_word(struct ipw_softc *sc, uint8_t addr) argument
1005 ipw_rx_cmd_intr(struct ipw_softc *sc, struct ipw_soft_buf *sbuf) argument
1023 ipw_rx_newstate_intr(struct ipw_softc *sc, struct ipw_soft_buf *sbuf) argument
1127 ipw_setcurchan(struct ipw_softc *sc, struct ieee80211_channel *chan) argument
1141 ipw_fix_channel(struct ipw_softc *sc, struct mbuf *m) argument
1186 ipw_rx_data_intr(struct ipw_softc *sc, struct ipw_status *status, struct ipw_soft_bd *sbd, struct ipw_soft_buf *sbuf) argument
1275 ipw_rx_intr(struct ipw_softc *sc) argument
1334 ipw_release_sbd(struct ipw_softc *sc, struct ipw_soft_bd *sbd) argument
1373 ipw_tx_intr(struct ipw_softc *sc) argument
1402 ipw_fatal_error_intr(struct ipw_softc *sc) argument
1420 struct ipw_softc *sc = arg; local
1518 ipw_cmd(struct ipw_softc *sc, uint32_t type, void *data, uint32_t len) argument
1592 struct ipw_softc *sc = ifp->if_softc; local
1750 struct ipw_softc *sc = ifp->if_softc; local
1760 struct ipw_softc *sc = ifp->if_softc; local
1789 struct ipw_softc *sc = arg; local
1821 struct ipw_softc *sc = ifp->if_softc; local
1856 ipw_stop_master(struct ipw_softc *sc) argument
1881 ipw_reset(struct ipw_softc *sc) argument
1913 ipw_waitfordisable(struct ipw_softc *sc, int waitfor) argument
1931 ipw_enable(struct ipw_softc *sc) argument
1949 ipw_disable(struct ipw_softc *sc) argument
1970 ipw_load_ucode(struct ipw_softc *sc, const char *uc, int size) argument
2022 ipw_load_firmware(struct ipw_softc *sc, const char *fw, int size) argument
2066 ipw_setwepkeys(struct ipw_softc *sc) argument
2097 ipw_setwpaie(struct ipw_softc *sc, const void *ie, int ielen) argument
2110 ipw_setbssid(struct ipw_softc *sc, uint8_t *bssid) argument
2125 ipw_setssid(struct ipw_softc *sc, void *ssid, size_t ssidlen) argument
2153 ipw_setscanopts(struct ipw_softc *sc, uint32_t chanmask, uint32_t flags) argument
2164 ipw_scan(struct ipw_softc *sc) argument
2210 ipw_setchannel(struct ipw_softc *sc, struct ieee80211_channel *chan) argument
2229 struct ipw_softc *sc = ifp->if_softc; local
2322 struct ipw_softc *sc = ifp->if_softc; local
2355 struct ipw_softc *sc = priv; local
2368 ipw_init_locked(struct ipw_softc *sc) argument
2467 ipw_config(struct ipw_softc *sc) argument
2563 struct ipw_softc *sc = priv; local
2571 ipw_stop_locked(struct ipw_softc *sc) argument
2596 struct ipw_softc *sc = arg1; local
2616 struct ipw_softc *sc = arg1; local
2626 ipw_read_table1(struct ipw_softc *sc, uint32_t off) argument
2632 ipw_write_table1(struct ipw_softc *sc, uint32_t off, uint32_t info) argument
2676 ipw_write_mem_1(struct ipw_softc *sc, bus_size_t offset, const uint8_t *datap, bus_size_t count) argument
2689 struct ipw_softc *sc = ifp->if_softc; local
2700 struct ipw_softc *sc = ifp->if_softc; local
2727 struct ipw_softc *sc = ifp->if_softc; local
[all...]
/freebsd-9.3-release/sys/dev/ti/
H A Dif_ti.c283 ti_eeprom_putbyte(struct ti_softc *sc, int byte) argument
290 TI_SETBIT(sc, TI_MISC_LOCAL_CTL, TI_MLC_EE_TXEN);
297 TI_SETBIT(sc, TI_MISC_LOCAL_CTL, TI_MLC_EE_DOUT);
299 TI_CLRBIT(sc, TI_MISC_LOCAL_CTL, TI_MLC_EE_DOUT);
302 TI_SETBIT(sc, TI_MISC_LOCAL_CTL, TI_MLC_EE_CLK);
304 TI_CLRBIT(sc, TI_MISC_LOCAL_CTL, TI_MLC_EE_CLK);
310 TI_CLRBIT(sc, TI_MISC_LOCAL_CTL, TI_MLC_EE_TXEN);
315 TI_SETBIT(sc, TI_MISC_LOCAL_CTL, TI_MLC_EE_CLK);
316 ack = CSR_READ_4(sc, TI_MISC_LOCAL_CTL) & TI_MLC_EE_DIN;
317 TI_CLRBIT(sc, TI_MISC_LOCAL_CT
328 ti_eeprom_getbyte(struct ti_softc *sc, int addr, uint8_t *dest) argument
402 ti_read_eeprom(struct ti_softc *sc, caddr_t dest, int off, int cnt) argument
422 ti_mem_read(struct ti_softc *sc, uint32_t addr, uint32_t len, void *buf) argument
452 ti_mem_write(struct ti_softc *sc, uint32_t addr, uint32_t len, void *buf) argument
481 ti_mem_zero(struct ti_softc *sc, uint32_t addr, uint32_t len) argument
502 ti_copy_mem(struct ti_softc *sc, uint32_t tigon_addr, uint32_t len, caddr_t buf, int useraddr, int readdata) argument
692 ti_copy_scratch(struct ti_softc *sc, uint32_t tigon_addr, uint32_t len, caddr_t buf, int useraddr, int readdata, int cpu) argument
820 ti_loadfw(struct ti_softc *sc) argument
877 ti_cmd(struct ti_softc *sc, struct ti_cmd_desc *cmd) argument
893 ti_cmd_ext(struct ti_softc *sc, struct ti_cmd_desc *cmd, caddr_t arg, int len) argument
914 ti_handle_events(struct ti_softc *sc) argument
999 ti_dma_ring_alloc(struct ti_softc *sc, bus_size_t alignment, bus_size_t maxsize, bus_dma_tag_t *tag, uint8_t **ring, bus_dmamap_t *map, bus_addr_t *paddr, const char *msg) argument
1036 ti_dma_ring_free(struct ti_softc *sc, bus_dma_tag_t *tag, uint8_t **ring, bus_dmamap_t *map) argument
1054 ti_dma_alloc(struct ti_softc *sc) argument
1264 ti_dma_free(struct ti_softc *sc) argument
1376 ti_newbuf_std(struct ti_softc *sc, int i) argument
1431 ti_newbuf_mini(struct ti_softc *sc, int i) argument
1488 ti_newbuf_jumbo(struct ti_softc *sc, int i, struct mbuf *dummy) argument
1558 ti_newbuf_jumbo(struct ti_softc *sc, int idx, struct mbuf *m_old) argument
1710 ti_init_rx_ring_std(struct ti_softc *sc) argument
1727 ti_free_rx_ring_std(struct ti_softc *sc) argument
1748 ti_init_rx_ring_jumbo(struct ti_softc *sc) argument
1765 ti_free_rx_ring_jumbo(struct ti_softc *sc) argument
1786 ti_init_rx_ring_mini(struct ti_softc *sc) argument
1802 ti_free_rx_ring_mini(struct ti_softc *sc) argument
1826 ti_free_tx_ring(struct ti_softc *sc) argument
1851 ti_init_tx_ring(struct ti_softc *sc) argument
1875 ti_add_mcast(struct ti_softc *sc, struct ether_addr *addr) argument
1901 ti_del_mcast(struct ti_softc *sc, struct ether_addr *addr) argument
1941 ti_setmulti(struct ti_softc *sc) argument
2001 ti_64bitslot_war(struct ti_softc *sc) argument
2027 ti_chipinit(struct ti_softc *sc) argument
2175 ti_gibinit(struct ti_softc *sc) argument
2383 struct ti_softc *sc; local
2586 struct ti_softc *sc; local
2685 ti_discard_std(struct ti_softc *sc, int i) argument
2702 ti_discard_mini(struct ti_softc *sc, int i) argument
2720 ti_discard_jumbo(struct ti_softc *sc, int i) argument
2749 ti_rxeof(struct ti_softc *sc) argument
2919 ti_txeof(struct ti_softc *sc) argument
2971 struct ti_softc *sc; local
3012 ti_stats_update(struct ti_softc *sc) argument
3039 ti_encap(struct ti_softc *sc, struct mbuf **m_head) argument
3135 struct ti_softc *sc; local
3150 struct ti_softc *sc; local
3218 struct ti_softc *sc; local
3229 struct ti_softc *sc = xsc; local
3244 ti_init2(struct ti_softc *sc) argument
3352 struct ti_softc *sc; local
3364 ti_ifmedia_upd_locked(struct ti_softc *sc) argument
3465 struct ti_softc *sc; local
3516 struct ti_softc *sc = ifp->if_softc; local
3618 struct ti_softc *sc; local
3634 struct ti_softc *sc; local
3654 struct ti_softc *sc; local
3908 struct ti_softc *sc; local
3938 ti_stop(struct ti_softc *sc) argument
3989 struct ti_softc *sc; local
4000 ti_sysctl_node(struct ti_softc *sc) argument
[all...]
/freebsd-9.3-release/sys/dev/sound/sbus/
H A Dcs4231.c194 #define CS4231_LOCK(sc) snd_mtxlock(sc->sc_lock)
195 #define CS4231_UNLOCK(sc) snd_mtxunlock(sc->sc_lock)
196 #define CS4231_LOCK_ASSERT(sc) snd_mtxassert(sc->sc_lock)
198 #define CS_WRITE(sc,r,v) \
199 bus_space_write_1((sc)->sc_regt[0], (sc)->sc_regh[0], (r) << 2, (v))
200 #define CS_READ(sc,
328 struct cs4231_softc *sc; local
355 struct cs4231_softc *sc; local
371 cs4231_attach_common(struct cs4231_softc *sc) argument
491 struct cs4231_softc *sc; local
532 cs4231_getversion(struct cs4231_softc *sc) argument
562 cs4231_ebdma_reset(struct cs4231_softc *sc) argument
591 cs4231_power_reset(struct cs4231_softc *sc, int how) argument
652 cs4231_enable(struct cs4231_softc *sc, int how) argument
660 cs4231_disable(struct cs4231_softc *sc) argument
686 cs4231_free_resource(struct cs4231_softc *sc) argument
719 cs4231_write(struct cs4231_softc *sc, u_int8_t r, u_int8_t v) argument
726 cs4231_read(struct cs4231_softc *sc, u_int8_t r) argument
735 struct cs4231_softc *sc; local
797 struct cs4231_softc *sc; local
845 struct cs4231_softc *sc; local
939 cs4231_mixer_set_value(struct cs4231_softc *sc, const struct mix_table *mt, u_int8_t v) argument
974 struct cs4231_softc *sc; local
988 struct cs4231_softc *sc; local
1021 struct cs4231_softc *sc; local
1050 struct cs4231_softc *sc; local
1132 struct cs4231_softc *sc; local
1165 cs4231_chan_fs(struct cs4231_softc *sc, int dir, u_int8_t fs) argument
1259 struct cs4231_softc *sc; local
1305 struct cs4231_softc *sc; local
1337 struct cs4231_softc *sc; local
1347 cs4231_apcdma_trigger(struct cs4231_softc *sc, struct cs4231_channel *ch) argument
1420 cs4231_ebdma_trigger(struct cs4231_softc *sc, struct cs4231_channel *ch) argument
1506 struct cs4231_softc *sc; local
[all...]
/freebsd-9.3-release/sys/arm/xscale/i8134x/
H A Duart_bus_i81342.c68 struct uart_softc *sc; local
71 sc = device_get_softc(dev);
72 sc->sc_class = &uart_ns8250_class;
74 sc->sc_sysdev = SLIST_FIRST(&uart_sysdevs);
75 bcopy(&sc->sc_sysdev->bas, &sc->sc_bas, sizeof(sc->sc_bas));
77 sc->sc_rres = bus_alloc_resource(dev, SYS_RES_IOPORT, &sc->sc_rrid,
78 0, ~0, uart_getrange(sc
[all...]
/freebsd-9.3-release/sys/dev/tl/
H A Dif_tl.c370 static u_int8_t tl_dio_read8(sc, reg)
371 struct tl_softc *sc;
375 CSR_BARRIER(sc, TL_DIO_ADDR, 2,
377 CSR_WRITE_2(sc, TL_DIO_ADDR, reg);
378 CSR_BARRIER(sc, TL_DIO_ADDR, 2,
380 return(CSR_READ_1(sc, TL_DIO_DATA + (reg & 3)));
383 static u_int16_t tl_dio_read16(sc, reg)
384 struct tl_softc *sc;
388 CSR_BARRIER(sc, TL_DIO_ADDR, 2,
390 CSR_WRITE_2(sc, TL_DIO_ADD
673 struct tl_softc *sc; local
691 struct tl_softc *sc; local
708 struct tl_softc *sc; local
736 struct tl_softc *sc; local
763 struct tl_softc *sc; local
1026 struct tl_softc *sc; local
1260 struct tl_softc *sc; local
1411 struct tl_softc *sc; local
1482 struct tl_softc *sc; local
1506 struct tl_softc *sc; local
1559 struct tl_softc *sc; local
1596 struct tl_softc *sc; local
1617 struct tl_softc *sc; local
1634 struct tl_softc *sc; local
1708 struct tl_softc *sc; local
1868 struct tl_softc *sc; local
1880 struct tl_softc *sc; local
1967 struct tl_softc *sc = xsc; local
2065 struct tl_softc *sc; local
2090 struct tl_softc *sc; local
2123 struct tl_softc *sc = ifp->if_softc; local
2268 struct tl_softc *sc; local
[all...]
/freebsd-9.3-release/sys/dev/gem/
H A Dif_gem.c98 static int gem_add_rxbuf(struct gem_softc *sc, int idx);
99 static int gem_bitwait(struct gem_softc *sc, u_int bank, bus_addr_t r,
103 static int gem_disable_rx(struct gem_softc *sc);
104 static int gem_disable_tx(struct gem_softc *sc);
105 static void gem_eint(struct gem_softc *sc, u_int status);
107 static void gem_init_locked(struct gem_softc *sc);
108 static void gem_init_regs(struct gem_softc *sc);
110 static int gem_load_txmbuf(struct gem_softc *sc, struct mbuf **m_head);
111 static int gem_meminit(struct gem_softc *sc);
112 static void gem_mifinit(struct gem_softc *sc);
148 gem_attach(struct gem_softc *sc) argument
423 gem_detach(struct gem_softc *sc) argument
458 gem_suspend(struct gem_softc *sc) argument
468 gem_resume(struct gem_softc *sc) argument
549 struct gem_softc *sc = xsc; local
561 struct gem_softc *sc = arg; local
604 gem_bitwait(struct gem_softc *sc, u_int bank, bus_addr_t r, uint32_t clr, uint32_t set) argument
619 gem_reset(struct gem_softc *sc) argument
639 gem_rxdrain(struct gem_softc *sc) argument
659 struct gem_softc *sc = ifp->if_softc; local
703 gem_reset_rx(struct gem_softc *sc) argument
751 gem_reset_rxdma(struct gem_softc *sc) argument
794 gem_reset_tx(struct gem_softc *sc) argument
825 gem_disable_rx(struct gem_softc *sc) argument
839 gem_disable_tx(struct gem_softc *sc) argument
853 gem_meminit(struct gem_softc *sc) argument
931 struct gem_softc *sc = xsc; local
943 gem_init_locked(struct gem_softc *sc) argument
1103 gem_load_txmbuf(struct gem_softc *sc, struct mbuf **m_head) argument
1247 gem_init_regs(struct gem_softc *sc) argument
1324 struct gem_softc *sc = ifp->if_softc; local
1332 gem_txkick(struct gem_softc *sc) argument
1352 struct gem_softc *sc = ifp->if_softc; local
1408 gem_tint(struct gem_softc *sc) argument
1524 struct gem_softc *sc = arg; local
1533 gem_rint(struct gem_softc *sc) argument
1657 gem_add_rxbuf(struct gem_softc *sc, int idx) argument
1705 gem_eint(struct gem_softc *sc, u_int status) argument
1728 struct gem_softc *sc = v; local
1811 gem_watchdog(struct gem_softc *sc) argument
1847 gem_mifinit(struct gem_softc *sc) argument
1874 struct gem_softc *sc; local
1932 struct gem_softc *sc; local
2011 struct gem_softc *sc; local
2117 struct gem_softc *sc = ifp->if_softc; local
2131 struct gem_softc *sc = ifp->if_softc; local
2148 struct gem_softc *sc = ifp->if_softc; local
2203 gem_setladrf(struct gem_softc *sc) argument
[all...]
/freebsd-9.3-release/sys/dev/virtio/balloon/
H A Dvirtio_balloon.c174 struct vtballoon_softc *sc; local
177 sc = device_get_softc(dev);
178 sc->vtballoon_dev = dev;
180 VTBALLOON_LOCK_INIT(sc, device_get_nameunit(dev));
181 TAILQ_INIT(&sc->vtballoon_pages);
183 vtballoon_add_sysctl(sc);
186 vtballoon_negotiate_features(sc);
188 sc->vtballoon_page_frames = malloc(VTBALLOON_PAGES_PER_REQUEST *
190 if (sc->vtballoon_page_frames == NULL) {
197 error = vtballoon_alloc_virtqueues(sc);
229 struct vtballoon_softc *sc; local
261 struct vtballoon_softc *sc; local
273 vtballoon_negotiate_features(struct vtballoon_softc *sc) argument
284 vtballoon_alloc_virtqueues(struct vtballoon_softc *sc) argument
305 struct vtballoon_softc *sc; local
315 vtballoon_inflate(struct vtballoon_softc *sc, int npages) argument
345 vtballoon_deflate(struct vtballoon_softc *sc, int npages) argument
388 vtballoon_send_page_frames(struct vtballoon_softc *sc, struct virtqueue *vq, int npages) argument
419 vtballoon_pop(struct vtballoon_softc *sc) argument
427 vtballoon_stop(struct vtballoon_softc *sc) argument
437 vtballoon_alloc_page(struct vtballoon_softc *sc) argument
450 vtballoon_free_page(struct vtballoon_softc *sc, vm_page_t m) argument
459 vtballoon_desired_size(struct vtballoon_softc *sc) argument
470 vtballoon_update_size(struct vtballoon_softc *sc) argument
479 vtballoon_sleep(struct vtballoon_softc *sc) argument
521 struct vtballoon_softc *sc; local
547 vtballoon_add_sysctl(struct vtballoon_softc *sc) argument
[all...]
/freebsd-9.3-release/sys/dev/hme/
H A Dif_hme.c142 #define HME_SPC_READ_4(spc, sc, offs) \
143 bus_space_read_4((sc)->sc_ ## spc ## t, (sc)->sc_ ## spc ## h, \
145 #define HME_SPC_WRITE_4(spc, sc, offs, v) \
146 bus_space_write_4((sc)->sc_ ## spc ## t, (sc)->sc_ ## spc ## h, \
148 #define HME_SPC_BARRIER(spc, sc, offs, l, f) \
149 bus_space_barrier((sc)->sc_ ## spc ## t, (sc)->sc_ ## spc ## h, \
152 #define HME_SEB_READ_4(sc, off
187 hme_config(struct hme_softc *sc) argument
403 hme_detach(struct hme_softc *sc) argument
436 hme_suspend(struct hme_softc *sc) argument
445 hme_resume(struct hme_softc *sc) argument
458 struct hme_softc *sc = (struct hme_softc *)xsc; local
470 struct hme_softc *sc = arg; local
502 hme_stop(struct hme_softc *sc) argument
535 hme_discard_rxbuf(struct hme_softc *sc, int ix) argument
548 hme_add_rxbuf(struct hme_softc *sc, unsigned int ri, int keepold) argument
611 hme_meminit(struct hme_softc *sc) argument
697 hme_mac_bitflip(struct hme_softc *sc, u_int32_t reg, u_int32_t val, u_int32_t clr, u_int32_t set) argument
730 struct hme_softc *sc = (struct hme_softc *)xsc; local
738 hme_init_locked(struct hme_softc *sc) argument
942 hme_load_txmbuf(struct hme_softc *sc, struct mbuf **m0) argument
1063 hme_read(struct hme_softc *sc, int ix, int len, u_int32_t flags) argument
1110 struct hme_softc *sc = ifp->if_softc; local
1120 struct hme_softc *sc = (struct hme_softc *)ifp->if_softc; local
1157 hme_tint(struct hme_softc *sc) argument
1279 hme_rint(struct hme_softc *sc) argument
1316 hme_eint(struct hme_softc *sc, u_int status) argument
1339 struct hme_softc *sc = (struct hme_softc *)v; local
1358 hme_watchdog(struct hme_softc *sc) argument
1388 hme_mifinit(struct hme_softc *sc) argument
1420 struct hme_softc *sc; local
1457 struct hme_softc *sc; local
1495 struct hme_softc *sc; local
1541 struct hme_softc *sc = ifp->if_softc; local
1551 hme_mediachange_locked(struct hme_softc *sc) argument
1582 struct hme_softc *sc = ifp->if_softc; local
1602 struct hme_softc *sc = ifp->if_softc; local
1660 hme_setladrf(struct hme_softc *sc, int reenable) argument
[all...]
/freebsd-9.3-release/sys/dev/wb/
H A Dif_wb.c234 #define WB_SETBIT(sc, reg, x) \
235 CSR_WRITE_4(sc, reg, \
236 CSR_READ_4(sc, reg) | (x))
238 #define WB_CLRBIT(sc, reg, x) \
239 CSR_WRITE_4(sc, reg, \
240 CSR_READ_4(sc, reg) & ~(x))
243 CSR_WRITE_4(sc, WB_SIO, \
244 CSR_READ_4(sc, WB_SIO) | (x))
247 CSR_WRITE_4(sc, WB_SIO, \
248 CSR_READ_4(sc, WB_SI
349 struct wb_softc *sc; local
367 struct wb_softc *sc; local
400 struct wb_softc *sc; local
597 struct wb_softc *sc; local
713 struct wb_softc *sc; local
1044 struct wb_softc *sc; local
1130 struct wb_softc *sc; local
1247 struct wb_softc *sc; local
1259 struct wb_softc *sc; local
1346 struct wb_softc *sc = xsc; local
1474 struct wb_softc *sc; local
1494 struct wb_softc *sc; local
1514 struct wb_softc *sc = ifp->if_softc; local
1631 struct wb_softc *sc; local
[all...]
/freebsd-9.3-release/sys/dev/usb/storage/
H A Dustorage_fs.c226 static void ustorage_fs_transfer_start(struct ustorage_fs_softc *sc, uint8_t xfer_index);
227 static void ustorage_fs_transfer_stop(struct ustorage_fs_softc *sc);
229 static uint8_t ustorage_fs_verify(struct ustorage_fs_softc *sc);
230 static uint8_t ustorage_fs_inquiry(struct ustorage_fs_softc *sc);
231 static uint8_t ustorage_fs_request_sense(struct ustorage_fs_softc *sc);
232 static uint8_t ustorage_fs_read_capacity(struct ustorage_fs_softc *sc);
233 static uint8_t ustorage_fs_mode_sense(struct ustorage_fs_softc *sc);
234 static uint8_t ustorage_fs_start_stop(struct ustorage_fs_softc *sc);
235 static uint8_t ustorage_fs_prevent_allow(struct ustorage_fs_softc *sc);
236 static uint8_t ustorage_fs_read_format_capacities(struct ustorage_fs_softc *sc);
349 struct ustorage_fs_softc *sc = device_get_softc(dev); local
434 struct ustorage_fs_softc *sc = device_get_softc(dev); local
464 ustorage_fs_transfer_start(struct ustorage_fs_softc *sc, uint8_t xfer_index) argument
473 ustorage_fs_transfer_stop(struct ustorage_fs_softc *sc) argument
486 struct ustorage_fs_softc *sc = device_get_softc(dev); local
518 struct ustorage_fs_softc *sc = usbd_xfer_softc(xfer); local
645 struct ustorage_fs_softc *sc = usbd_xfer_softc(xfer); local
697 struct ustorage_fs_softc *sc = usbd_xfer_softc(xfer); local
752 struct ustorage_fs_softc *sc = usbd_xfer_softc(xfer); local
814 struct ustorage_fs_softc *sc = usbd_xfer_softc(xfer); local
934 ustorage_fs_verify(struct ustorage_fs_softc *sc) argument
989 ustorage_fs_inquiry(struct ustorage_fs_softc *sc) argument
1030 ustorage_fs_request_sense(struct ustorage_fs_softc *sc) argument
1099 ustorage_fs_read_capacity(struct ustorage_fs_softc *sc) argument
1130 ustorage_fs_mode_sense(struct ustorage_fs_softc *sc) argument
1237 ustorage_fs_start_stop(struct ustorage_fs_softc *sc) argument
1266 ustorage_fs_prevent_allow(struct ustorage_fs_softc *sc) argument
1296 ustorage_fs_read_format_capacities(struct ustorage_fs_softc *sc) argument
1327 ustorage_fs_mode_select(struct ustorage_fs_softc *sc) argument
1344 ustorage_fs_synchronize_cache(struct ustorage_fs_softc *sc) argument
1369 ustorage_fs_read(struct ustorage_fs_softc *sc) argument
1421 ustorage_fs_write(struct ustorage_fs_softc *sc) argument
1485 ustorage_fs_min_len(struct ustorage_fs_softc *sc, uint32_t len, uint32_t mask) argument
1526 ustorage_fs_check_cmd(struct ustorage_fs_softc *sc, uint8_t min_cmd_size, uint16_t mask, uint8_t needs_medium) argument
1613 ustorage_fs_do_cmd(struct ustorage_fs_softc *sc) argument
[all...]
/freebsd-9.3-release/sys/dev/mpr/
H A Dmpr_pci.c69 static int mpr_alloc_msix(struct mpr_softc *sc, int msgs);
70 static int mpr_alloc_msi(struct mpr_softc *sc, int msgs);
153 struct mpr_softc *sc; local
157 sc = device_get_softc(dev);
158 bzero(sc, sizeof(*sc));
159 sc->mpr_dev = dev;
161 sc->mpr_flags = m->flags;
167 sc->mpr_regs_rid = PCIR_BAR(1);
168 if ((sc
200 mpr_pci_setup_interrupts(struct mpr_softc *sc) argument
256 struct mpr_softc *sc; local
269 mpr_pci_free(struct mpr_softc *sc) argument
317 mpr_alloc_msix(struct mpr_softc *sc, int msgs) argument
326 mpr_alloc_msi(struct mpr_softc *sc, int msgs) argument
335 mpr_pci_restore(struct mpr_softc *sc) argument
[all...]
/freebsd-9.3-release/sys/dev/twe/
H A Dtwe_freebsd.c84 struct twe_softc *sc = (struct twe_softc *)dev->si_drv1; local
86 TWE_IO_LOCK(sc);
87 if (sc->twe_state & TWE_STATE_DETACHING) {
88 TWE_IO_UNLOCK(sc);
91 sc->twe_state |= TWE_STATE_OPEN;
92 TWE_IO_UNLOCK(sc);
102 struct twe_softc *sc = (struct twe_softc *)dev->si_drv1; local
104 TWE_IO_LOCK(sc);
105 sc->twe_state &= ~TWE_STATE_OPEN;
106 TWE_IO_UNLOCK(sc);
116 struct twe_softc *sc = (struct twe_softc *)dev->si_drv1; local
181 struct twe_softc *sc; local
384 twe_free(struct twe_softc *sc) argument
440 struct twe_softc *sc = device_get_softc(dev); local
476 struct twe_softc *sc = device_get_softc(dev); local
511 struct twe_softc *sc = device_get_softc(dev); local
530 struct twe_softc *sc = device_get_softc(dev); local
549 struct twe_softc *sc = arg; local
562 struct twe_softc *sc = (struct twe_softc *)arg; local
577 twe_attach_drive(struct twe_softc *sc, struct twe_drive *dr) argument
616 twe_detach_drive(struct twe_softc *sc, int unit) argument
636 twe_clear_pci_parity_error(struct twe_softc *sc) argument
646 twe_clear_pci_abort(struct twe_softc *sc) argument
705 struct twed_softc *sc = (struct twed_softc *)dp->d_drv1; local
725 struct twed_softc *sc = bp->bio_disk->d_drv1; local
807 struct twed_softc *sc; local
861 struct twed_softc *sc = (struct twed_softc *)device_get_softc(dev); local
885 twe_allocate_request(struct twe_softc *sc, int tag) argument
906 struct twe_softc *sc = tr->tr_sc; local
941 struct twe_softc *sc = tr->tr_sc; local
1035 struct twe_softc *sc = (struct twe_softc *)arg; local
1046 struct twe_softc *sc = tr->tr_sc; local
1106 struct twe_softc *sc = tr->tr_sc; local
1163 struct twe_softc *sc; local
[all...]
/freebsd-9.3-release/sys/dev/mcd/
H A Dmcd.c70 if (sc->debug) { \
71 device_printf(sc->dev, "status=0x%02x: ", \
72 sc->data.status); \
121 static void mcd_configure(struct mcd_softc *sc);
137 static int mcd_subchan(struct mcd_softc *, struct ioc_read_subchannel *sc,
190 mcd_attach(struct mcd_softc *sc) argument
194 unit = device_get_unit(sc->dev);
196 sc->data.flags |= MCDINIT;
197 mcd_soft_reset(sc);
198 bioq_init(&sc
216 struct mcd_softc *sc; local
274 struct mcd_softc *sc; local
291 struct mcd_softc *sc; local
338 mcd_start(struct mcd_softc *sc) argument
370 struct mcd_softc *sc; local
470 struct mcd_softc *sc; local
503 mcd_configure(struct mcd_softc *sc) argument
511 twiddle_thumbs(struct mcd_softc *sc, int count, char *whine) argument
527 mcd_probe(struct mcd_softc *sc) argument
606 mcd_waitrdy(struct mcd_softc *sc, int dly) argument
620 mcd_getreply(struct mcd_softc *sc, int dly) argument
634 mcd_getstat(struct mcd_softc *sc, int sflg) argument
655 mcd_setflags(struct mcd_softc *sc) argument
674 mcd_get(struct mcd_softc *sc, char *buf, int nmax) argument
690 mcd_send(struct mcd_softc *sc, int cmd,int nretrys) argument
731 mcd_volinfo(struct mcd_softc *sc) argument
768 struct mcd_softc *sc; local
776 mcd_doread(struct mcd_softc *sc, int state, struct mcd_mbx *mbxin) argument
999 mcd_lock_door(struct mcd_softc *sc, int lock) argument
1010 mcd_close_tray(struct mcd_softc *sc) argument
1033 mcd_eject(struct mcd_softc *sc) argument
1050 mcd_inject(struct mcd_softc *sc) argument
1061 mcd_hard_reset(struct mcd_softc *sc) argument
1071 mcd_soft_reset(struct mcd_softc *sc) argument
1081 mcd_setmode(struct mcd_softc *sc, int mode) argument
1108 mcd_toc_header(struct mcd_softc *sc, struct ioc_toc_header *th) argument
1125 mcd_read_toc(struct mcd_softc *sc) argument
1251 mcd_toc_entrys(struct mcd_softc *sc, struct ioc_read_toc_entry *te) argument
1317 mcd_stop(struct mcd_softc *sc) argument
1338 mcd_getqchan(struct mcd_softc *sc, struct mcd_qchninfo *q) argument
1362 mcd_subchan(struct mcd_softc *sc, struct ioc_read_subchannel *sch, int nocopyout) argument
1435 mcd_playmsf(struct mcd_softc *sc, struct ioc_play_msf *p) argument
1466 mcd_playtracks(struct mcd_softc *sc, struct ioc_play_track *pt) argument
1499 mcd_playblocks(struct mcd_softc *sc, struct ioc_play_blocks *p) argument
1522 mcd_play(struct mcd_softc *sc, struct mcd_read2 *pb) argument
1561 mcd_pause(struct mcd_softc *sc) argument
1595 mcd_resume(struct mcd_softc *sc) argument
[all...]
/freebsd-9.3-release/sys/boot/i386/libfirewire/
H A Dfwohci.c76 fwphy_wrdata( struct fwohci_softc *sc, uint32_t addr, uint32_t data) argument
84 OWRITE(sc, OHCI_PHYACCESS, fun);
87 return(fwphy_rddata( sc, addr));
91 fwphy_rddata(struct fwohci_softc *sc, u_int addr) argument
99 OWRITE(sc, FWOHCI_INTSTATCLR, OHCI_INT_REG_FAIL);
101 OWRITE(sc, OHCI_PHYACCESS, fun);
103 fun = OREAD(sc, OHCI_PHYACCESS);
110 device_printf(sc->fc.dev, "phy read failed(1).\n");
117 stat = OREAD(sc, FWOHCI_INTSTAT);
121 device_printf(sc
136 fwohci_probe_phy(struct fwohci_softc *sc, device_t dev) argument
212 fwohci_reset(struct fwohci_softc *sc, device_t dev) argument
270 fwohci_init(struct fwohci_softc *sc, device_t dev) argument
322 fwohci_ibr(struct fwohci_softc *sc) argument
352 fwohci_sid(struct fwohci_softc *sc) argument
400 fwohci_intr_body(struct fwohci_softc *sc, uint32_t stat, int count) argument
456 fwochi_check_stat(struct fwohci_softc *sc) argument
472 fwohci_poll(struct fwohci_softc *sc) argument
[all...]

Completed in 391 milliseconds

1234567891011>>