Searched refs:sc (Results 51 - 75 of 2317) sorted by relevance

1234567891011>>

/freebsd-11-stable/sys/dev/terasic/de4led/
H A Dterasic_de4led.c49 terasic_de4led_update(struct terasic_de4led_softc *sc) argument
52 TERASIC_DE4LED_LOCK_ASSERT(sc);
54 bus_write_1(sc->tdl_res, TERASIC_DE4LED_OFF_LED, sc->tdl_bits);
58 led_update(struct terasic_de4led_softc *sc, int bit, int onoff) argument
61 TERASIC_DE4LED_LOCK(sc);
62 TERASIC_DE4LED_SETLED(sc, bit, onoff);
63 terasic_de4led_update(sc);
64 TERASIC_DE4LED_UNLOCK(sc);
124 terasic_de4led_attach(struct terasic_de4led_softc *sc) argument
177 terasic_de4led_detach(struct terasic_de4led_softc *sc) argument
[all...]
/freebsd-11-stable/sys/dev/cadence/
H A Dif_cgem.c194 #define RD4(sc, off) (bus_read_4((sc)->mem_res, (off)))
195 #define WR4(sc, off, val) (bus_write_4((sc)->mem_res, (off), (val)))
196 #define BARRIER(sc, off, len, flags) \
197 (bus_barrier((sc)->mem_res, (off), (len), (flags))
199 #define CGEM_LOCK(sc) mtx_lock(&(sc)->sc_mtx)
200 #define CGEM_UNLOCK(sc) mtx_unlock(&(sc)
221 cgem_get_mac(struct cgem_softc *sc, u_char eaddr[]) argument
298 cgem_rx_filter(struct cgem_softc *sc) argument
367 cgem_setup_descs(struct cgem_softc *sc) argument
470 cgem_fill_rqueue(struct cgem_softc *sc) argument
527 cgem_recv(struct cgem_softc *sc) argument
627 cgem_clean_tx(struct cgem_softc *sc) argument
700 struct cgem_softc *sc = (struct cgem_softc *) if_getsoftc(ifp); local
820 struct cgem_softc *sc = (struct cgem_softc *) if_getsoftc(ifp); local
828 cgem_poll_hw_stats(struct cgem_softc *sc) argument
895 struct cgem_softc *sc = (struct cgem_softc *)arg; local
931 struct cgem_softc *sc = (struct cgem_softc *)arg; local
984 cgem_reset(struct cgem_softc *sc) argument
1011 cgem_config(struct cgem_softc *sc) argument
1071 cgem_init_locked(struct cgem_softc *sc) argument
1094 struct cgem_softc *sc = (struct cgem_softc *)arg; local
1103 cgem_stop(struct cgem_softc *sc) argument
1165 struct cgem_softc *sc = if_getsoftc(ifp); local
1269 struct cgem_softc *sc = device_get_softc(dev); local
1278 struct cgem_softc *sc = (struct cgem_softc *) if_getsoftc(ifp); local
1298 struct cgem_softc *sc = (struct cgem_softc *) if_getsoftc(ifp); local
1312 struct cgem_softc *sc = device_get_softc(dev); local
1346 struct cgem_softc *sc = device_get_softc(dev); local
1372 struct cgem_softc *sc = device_get_softc(dev); local
1386 struct cgem_softc *sc = device_get_softc(dev); local
1411 cgem_mediachange(struct cgem_softc *sc, struct mii_data *mii) argument
1454 struct cgem_softc *sc = device_get_softc(dev); local
1646 struct cgem_softc *sc = device_get_softc(dev); local
1756 struct cgem_softc *sc = device_get_softc(dev); local
[all...]
/freebsd-11-stable/sys/dev/tpm/
H A Dtpm20.c72 struct tpm_sc *sc; local
76 sc = (struct tpm_sc *)dev->si_drv1;
78 callout_stop(&sc->discard_buffer_callout);
79 sx_xlock(&sc->dev_lock);
80 if (sc->owner_tid != uio->uio_td->td_tid) {
81 sx_xunlock(&sc->dev_lock);
85 bytes_to_transfer = MIN(sc->pending_data_length, uio->uio_resid);
87 result = uiomove((caddr_t) sc->buf, bytes_to_transfer, uio);
88 memset(sc->buf, 0, TPM_BUFSIZE);
89 sc
103 struct tpm_sc *sc; local
148 struct tpm_sc *sc; local
190 tpm20_init(struct tpm_sc *sc) argument
221 tpm20_release(struct tpm_sc *sc) argument
259 struct tpm_sc *sc; local
307 struct tpm_sc *sc; local
[all...]
/freebsd-11-stable/sys/dev/amr/
H A Damr_pci.c88 static void amr_pci_free(struct amr_softc *sc);
90 static int amr_sglist_map(struct amr_softc *sc);
91 static int amr_setup_mbox(struct amr_softc *sc);
92 static int amr_ccb_map(struct amr_softc *sc);
183 struct amr_softc *sc; local
192 sc = device_get_softc(dev);
193 bzero(sc, sizeof(*sc));
194 sc->amr_dev = dev;
206 sc
349 struct amr_softc *sc = device_get_softc(dev); local
378 struct amr_softc *sc = device_get_softc(dev); local
414 struct amr_softc *sc = device_get_softc(dev); local
435 struct amr_softc *sc = device_get_softc(dev); local
453 struct amr_softc *sc = (struct amr_softc *)arg; local
467 amr_pci_free(struct amr_softc *sc) argument
538 amr_sglist_map(struct amr_softc *sc) argument
613 amr_setup_mbox(struct amr_softc *sc) argument
666 amr_ccb_map(struct amr_softc *sc) argument
[all...]
/freebsd-11-stable/sys/i386/isa/
H A Dspic.c119 write_port1(struct spic_softc *sc, u_char val) argument
122 outb(sc->sc_port_addr, val);
126 write_port2(struct spic_softc *sc, u_char val) argument
129 outb(sc->sc_port_addr + 4, val);
133 read_port1(struct spic_softc *sc) argument
136 return inb(sc->sc_port_addr);
140 read_port2(struct spic_softc *sc) argument
143 return inb(sc->sc_port_addr + 4);
147 read_port_cst(struct spic_softc *sc) argument
154 busy_wait(struct spic_softc *sc) argument
168 busy_wait_cst(struct spic_softc *sc, int mask) argument
182 spic_call1(struct spic_softc *sc, u_char dev) argument
190 spic_call2(struct spic_softc *sc, u_char dev, u_char fn) argument
200 spic_ecrset(struct spic_softc *sc, u_int16_t addr, u_int16_t value) argument
212 spic_type2_srs(struct spic_softc *sc) argument
223 struct spic_softc *sc; local
336 struct spic_softc *sc; local
362 struct spic_softc *sc = arg; local
455 struct spic_softc *sc; local
477 struct spic_softc *sc; local
492 struct spic_softc *sc; local
523 struct spic_softc *sc; local
533 struct spic_softc *sc; local
[all...]
/freebsd-11-stable/sys/dev/ath/
H A Dif_ath_misc.h46 extern int ath_tx_findrix(const struct ath_softc *sc, uint8_t rate);
48 extern struct ath_buf * ath_getbuf(struct ath_softc *sc,
50 extern struct ath_buf * _ath_getbuf_locked(struct ath_softc *sc,
52 extern struct ath_buf * ath_buf_clone(struct ath_softc *sc,
55 extern void ath_freebuf(struct ath_softc *sc, struct ath_buf *bf);
56 extern void ath_returnbuf_head(struct ath_softc *sc, struct ath_buf *bf);
57 extern void ath_returnbuf_tail(struct ath_softc *sc, struct ath_buf *bf);
60 extern void ath_tx_default_comp(struct ath_softc *sc, struct ath_buf *bf,
62 extern void ath_tx_update_ratectrl(struct ath_softc *sc,
69 extern void ath_tx_freebuf(struct ath_softc *sc, struc
126 ath_tx_kick(struct ath_softc *sc) argument
136 ath_tx_swq_kick(struct ath_softc *sc) argument
[all...]
H A Dif_ath.c183 static void ath_txq_init(struct ath_softc *sc, struct ath_txq *, int);
188 static int ath_tx_processq(struct ath_softc *sc, struct ath_txq *txq,
260 ath_legacy_attach_comp_func(struct ath_softc *sc) argument
268 switch (sc->sc_txqsetup &~ (1<<sc->sc_cabq->axq_qnum)) {
270 TASK_INIT(&sc->sc_txtask, 0, ath_tx_proc_q0, sc);
273 TASK_INIT(&sc->sc_txtask, 0, ath_tx_proc_q0123, sc);
276 TASK_INIT(&sc
290 _ath_power_setpower(struct ath_softc *sc, int power_state, const char *file, int line) argument
333 _ath_power_set_selfgen(struct ath_softc *sc, int power_state, const char *file, int line) argument
369 _ath_power_set_power_state(struct ath_softc *sc, int power_state, const char *file, int line) argument
405 _ath_power_restore_power_state(struct ath_softc *sc, const char *file, int line) argument
451 ath_setup_hal_config(struct ath_softc *sc, HAL_OPS_CONFIG *ah_config) argument
524 ath_fetch_mac_kenv(struct ath_softc *sc, uint8_t *macaddr) argument
577 ath_attach(u_int16_t devid, struct ath_softc *sc) argument
1323 ath_detach(struct ath_softc *sc) argument
1386 assign_address(struct ath_softc *sc, uint8_t mac[IEEE80211_ADDR_LEN], int clone) argument
1406 reclaim_address(struct ath_softc *sc, const uint8_t mac[IEEE80211_ADDR_LEN]) argument
1429 assign_bslot(struct ath_softc *sc) argument
1451 struct ath_softc *sc = ic->ic_softc; local
1708 struct ath_softc *sc = ic->ic_softc; local
1825 ath_suspend(struct ath_softc *sc) argument
1868 ath_reset_keycache(struct ath_softc *sc) argument
1888 ath_update_chainmasks(struct ath_softc *sc, struct ieee80211_channel *chan) argument
1910 ath_resume(struct ath_softc *sc) argument
1979 ath_shutdown(struct ath_softc *sc) argument
1994 struct ath_softc *sc = arg; local
2277 struct ath_softc *sc = arg; local
2304 struct ath_softc *sc = vap->iv_ic->ic_softc; local
2381 struct ath_softc *sc = arg; local
2422 ath_settkipmic(struct ath_softc *sc) argument
2438 ath_init(struct ath_softc *sc) argument
2597 ath_stop(struct ath_softc *sc) argument
2664 ath_txrx_stop_locked(struct ath_softc *sc) argument
2707 ath_txrx_start(struct ath_softc *sc) argument
2731 ath_reset_grablock(struct ath_softc *sc, int dowait) argument
2785 ath_reset(struct ath_softc *sc, ATH_RESET_TYPE reset_type) argument
2971 struct ath_softc *sc = ic->ic_softc; local
2990 _ath_getbuf_locked(struct ath_softc *sc, ath_buf_type_t btype) argument
3080 ath_buf_clone(struct ath_softc *sc, struct ath_buf *bf) argument
3132 ath_getbuf(struct ath_softc *sc, ath_buf_type_t btype) argument
3161 struct ath_softc *sc = ic->ic_softc; local
3448 struct ath_softc *sc = vap->iv_ic->ic_softc; local
3457 struct ath_softc *sc = vap->iv_ic->ic_softc; local
3466 struct ath_softc *sc = ic->ic_softc; local
3486 ath_update_mcast_hw(struct ath_softc *sc) argument
3539 struct ath_softc *sc = ic->ic_softc; local
3553 ath_mode_init(struct ath_softc *sc) argument
3577 ath_setslottime(struct ath_softc *sc) argument
3618 struct ath_softc *sc = ic->ic_softc; local
3662 struct ath_softc *sc = arg; local
3676 struct ath_softc *sc = arg; local
3698 ath_desc_alloc(struct ath_softc *sc) argument
3734 ath_desc_free(struct ath_softc *sc) argument
3750 struct ath_softc *sc = ic->ic_softc; local
3777 struct ath_softc *sc = ic->ic_softc; local
3792 struct ath_softc *sc = ic->ic_softc; local
3804 struct ath_softc *sc = ic->ic_softc; local
3818 ath_setdefantenna(struct ath_softc *sc, u_int antenna) argument
3831 ath_txq_init(struct ath_softc *sc, struct ath_txq *txq, int qnum) argument
3850 ath_txq_setup(struct ath_softc *sc, int qtype, int subtype) argument
3912 ath_tx_setup(struct ath_softc *sc, int ac, int haltype) argument
3934 ath_txq_update(struct ath_softc *sc, int ac) argument
4009 struct ath_softc *sc = ic->ic_softc; local
4021 ath_tx_cleanupq(struct ath_softc *sc, struct ath_txq *txq) argument
4033 ath_tx_cleanup(struct ath_softc *sc) argument
4048 ath_tx_findrix(const struct ath_softc *sc, uint8_t rate) argument
4056 ath_tx_update_stats(struct ath_softc *sc, struct ath_tx_status *ts, struct ath_buf *bf) argument
4118 ath_tx_default_comp(struct ath_softc *sc, struct ath_buf *bf, int fail) argument
4178 ath_tx_update_ratectrl(struct ath_softc *sc, struct ieee80211_node *ni, struct ath_rc_series *rc, struct ath_tx_status *ts, int frmlen, int nframes, int nbad) argument
4206 ath_tx_process_buf_completion(struct ath_softc *sc, struct ath_txq *txq, struct ath_tx_status *ts, struct ath_buf *bf) argument
4253 ath_tx_processq(struct ath_softc *sc, struct ath_txq *txq, int dosched) argument
4414 struct ath_softc *sc = arg; local
4458 struct ath_softc *sc = arg; local
4514 struct ath_softc *sc = arg; local
4563 struct ath_softc *sc = arg; local
4601 ath_returnbuf_tail(struct ath_softc *sc, struct ath_buf *bf) argument
4622 ath_returnbuf_head(struct ath_softc *sc, struct ath_buf *bf) argument
4646 ath_txq_freeholdingbuf(struct ath_softc *sc, struct ath_txq *txq) argument
4668 ath_txq_addholdingbuf(struct ath_softc *sc, struct ath_buf *bf) argument
4711 ath_freebuf(struct ath_softc *sc, struct ath_buf *bf) argument
4745 ath_tx_freebuf(struct ath_softc *sc, struct ath_buf *bf, int status) argument
4772 ath_tx_draintxq_get_one(struct ath_softc *sc, struct ath_txq *txq) argument
4827 ath_tx_draintxq(struct ath_softc *sc, struct ath_txq *txq) argument
4901 ath_tx_stopdma(struct ath_softc *sc, struct ath_txq *txq) argument
4932 ath_stoptxdma(struct ath_softc *sc) argument
4966 ath_tx_dump(struct ath_softc *sc, struct ath_txq *txq) argument
4992 ath_legacy_tx_drain(struct ath_softc *sc, ATH_RESET_TYPE reset_type) argument
5061 ath_chan_change(struct ath_softc *sc, struct ieee80211_channel *chan) argument
5082 ath_chan_set(struct ath_softc *sc, struct ieee80211_channel *chan) argument
5233 struct ath_softc *sc = arg; local
5361 struct ath_softc *sc = ic->ic_softc; local
5386 struct ath_softc *sc = ic->ic_softc; local
5426 struct ath_softc *sc = ic->ic_softc; local
5436 struct ath_softc *sc = ic->ic_softc; local
5478 struct ath_softc *sc = ic->ic_softc; local
5814 struct ath_softc *sc = vap->iv_ic->ic_softc; local
5847 struct ath_softc *sc = vap->iv_ic->ic_softc; local
5899 struct ath_softc *sc = ic->ic_softc; local
5923 struct ath_softc *sc = ic->ic_softc; local
5936 ath_getchannels(struct ath_softc *sc) argument
5974 ath_rate_setup(struct ath_softc *sc, u_int mode) argument
6020 ath_setcurmode(struct ath_softc *sc, enum ieee80211_phymode mode) argument
6097 struct ath_softc *sc = arg; local
6137 struct ath_softc *sc = ic->ic_softc; local
6184 ath_announce(struct ath_softc *sc) argument
6217 struct ath_softc *sc = (struct ath_softc *) p; local
6250 struct ath_softc *sc = ic->ic_softc; local
6317 struct ath_softc *sc = ic->ic_softc; local
6446 ath_tx_update_tim(struct ath_softc *sc, struct ieee80211_node *ni, int enable) argument
6522 struct ath_softc *sc = ic->ic_softc; local
[all...]
/freebsd-11-stable/sys/dev/ips/
H A Dips_pci.c38 static int ips_pci_free(ips_softc_t *sc);
62 ips_softc_t *sc; local
65 sc = (ips_softc_t *)device_get_softc(dev);
66 sc->dev = dev;
67 mtx_init(&sc->queue_mtx, "IPS bioqueue lock", NULL, MTX_DEF);
68 sema_init(&sc->cmd_sema, 0, "IPS Command Semaphore");
69 callout_init_mtx(&sc->timer, &sc->queue_mtx, 0);
72 sc->ips_adapter_reinit = ips_morpheus_reinit;
73 sc
156 struct ips_softc *sc = (struct ips_softc *)arg; local
165 ips_pci_free(ips_softc_t *sc) argument
183 ips_softc_t *sc; local
199 ips_softc_t *sc = (ips_softc_t *) device_get_softc(dev); local
[all...]
/freebsd-11-stable/sys/dev/mfi/
H A Dmfi_syspd.c98 struct mfi_system_pd *sc; local
104 sc = device_get_softc(dev);
106 sc->pd_dev = dev;
107 sc->pd_id = pd_info->ref.v.device_id;
108 sc->pd_unit = device_get_unit(dev);
109 sc->pd_info = pd_info;
110 sc->pd_controller = device_get_softc(device_get_parent(dev));
111 sc->pd_flags = 0;
115 mtx_lock(&sc->pd_controller->mfi_io_lock);
116 TAILQ_INSERT_TAIL(&sc
157 struct mfi_system_pd *sc; local
183 struct mfi_system_pd *sc; local
201 struct mfi_system_pd *sc; local
212 mfi_syspd_disable(struct mfi_system_pd *sc) argument
229 mfi_syspd_enable(struct mfi_system_pd *sc) argument
240 struct mfi_system_pd *sc; local
268 struct mfi_system_pd *sc; local
[all...]
/freebsd-11-stable/sys/dev/digi/
H A Ddigi_isa.c74 digi_isa_setwin(struct digi_softc *sc, unsigned int addr) argument
76 outb(sc->wport, sc->window = FEPWIN | (addr >> sc->win_bits));
77 return (sc->vmem + (addr % sc->win_size));
81 digi_xi_setwin(struct digi_softc *sc, unsigned int addr) argument
83 outb(sc->wport, sc->window = FEPMEM);
84 return (sc
88 digi_isa_hidewin(struct digi_softc *sc) argument
95 digi_isa_towin(struct digi_softc *sc, int win) argument
101 digi_xi_towin(struct digi_softc *sc, int win) argument
110 digi_isa_check(struct digi_softc *sc) argument
227 struct digi_softc *sc = device_get_softc(dev); local
321 struct digi_softc *sc = device_get_softc(dev); local
[all...]
/freebsd-11-stable/sys/dev/mcd/
H A Dmcd_isa.c39 struct mcd_softc * sc; local
50 sc = device_get_softc(dev);
51 sc->dev = dev;
52 sc->port_rid = 0;
53 sc->port_type = SYS_RES_IOPORT;
58 error = mcd_probe(sc);
64 device_set_desc(dev, sc->data.name);
74 struct mcd_softc * sc; local
77 sc = device_get_softc(dev);
80 sc
108 struct mcd_softc * sc; local
124 struct mcd_softc * sc; local
168 struct mcd_softc * sc; local
[all...]
/freebsd-11-stable/sys/dev/ep/
H A Dif_ep.c112 #define EP_FTST(sc, f) (sc->stat & (f))
113 #define EP_FSET(sc, f) (sc->stat |= (f))
114 #define EP_FRST(sc, f) (sc->stat &= ~(f))
117 eeprom_rdy(struct ep_softc *sc) argument
121 for (i = 0; is_eeprom_busy(sc) && i < MAX_EEPROMBUSY; i++)
125 device_printf(sc->dev, "eeprom failed to come ready.\n");
137 ep_get_e(struct ep_softc *sc, uint16_ argument
155 ep_get_macaddr(struct ep_softc *sc, u_char *addr) argument
177 struct ep_softc *sc = device_get_softc(dev); local
225 ep_get_media(struct ep_softc *sc) argument
253 struct ep_softc *sc = device_get_softc(dev); local
267 ep_setup_station(struct ep_softc *sc, u_char *enaddr) argument
280 ep_attach(struct ep_softc *sc) argument
359 struct ep_softc *sc; local
384 struct ep_softc *sc = xsc; local
395 epinit_locked(struct ep_softc *sc) argument
475 struct ep_softc *sc; local
485 struct ep_softc *sc; local
595 struct ep_softc *sc; local
604 ep_intr_locked(struct ep_softc *sc) argument
722 epread(struct ep_softc *sc) argument
873 struct ep_softc *sc = ifp->if_softc; local
917 struct ep_softc *sc = ifp->if_softc; local
942 struct ep_softc *sc = ifp->if_softc; local
985 struct ep_softc *sc; local
994 epwatchdog(struct ep_softc *sc) argument
1007 epstop(struct ep_softc *sc) argument
[all...]
/freebsd-11-stable/sys/dev/nvram2env/
H A Dnvram2env.c53 #define nvram2env_read_1(sc, reg) \
54 bus_space_read_1((sc)->sc_bt, (sc)->sc_bh,(reg))
56 #define nvram2env_read_2(sc, reg) \
57 bus_space_read_2((sc)->sc_bt, (sc)->sc_bh,(reg))
59 #define nvram2env_read_4(sc, reg) \
60 bus_space_read_4((sc)->sc_bt, (sc)->sc_bh,(reg))
62 #define nvram2env_write_1(sc, re
107 struct nvram2env_softc * sc = device_get_softc(dev); local
184 read_4(struct nvram2env_softc * sc, int offset) argument
196 struct nvram2env_softc *sc; local
[all...]
/freebsd-11-stable/sys/dev/hyperv/netvsc/
H A Dhn_rndis.h36 int hn_rndis_attach(struct hn_softc *sc, int mtu, int *init_done);
37 void hn_rndis_detach(struct hn_softc *sc);
38 int hn_rndis_conf_rss(struct hn_softc *sc, uint16_t flags);
39 int hn_rndis_query_rsscaps(struct hn_softc *sc, int *rxr_cnt);
40 int hn_rndis_get_eaddr(struct hn_softc *sc, uint8_t *eaddr);
42 int hn_rndis_get_linkstatus(struct hn_softc *sc,
44 int hn_rndis_get_mtu(struct hn_softc *sc, uint32_t *mtu);
46 int hn_rndis_set_rxfilter(struct hn_softc *sc, uint32_t filter);
47 void hn_rndis_rx_ctrl(struct hn_softc *sc, const void *data,
/freebsd-11-stable/sys/dev/ichsmb/
H A Dichsmb.c87 static int ichsmb_wait(sc_p sc);
110 const sc_p sc = device_get_softc(dev); local
114 mtx_init(&sc->mutex, device_get_nameunit(dev), "ichsmb", MTX_DEF);
117 if ((sc->smb = device_add_child(dev, DRIVER_SMBUS, -1)) == NULL) {
124 bus_write_1(sc->io_res, ICH_HST_STA, 0xff);
127 error = bus_setup_intr(dev, sc->irq_res, INTR_TYPE_MISC | INTR_MPSAFE,
128 NULL, ichsmb_device_intr, sc, &sc->irq_handle);
143 mtx_destroy(&sc->mutex);
173 const sc_p sc local
202 const sc_p sc = device_get_softc(dev); local
224 const sc_p sc = device_get_softc(dev); local
246 const sc_p sc = device_get_softc(dev); local
270 const sc_p sc = device_get_softc(dev); local
295 const sc_p sc = device_get_softc(dev); local
318 const sc_p sc = device_get_softc(dev); local
345 const sc_p sc = device_get_softc(dev); local
375 const sc_p sc = device_get_softc(dev); local
421 const sc_p sc = device_get_softc(dev); local
500 const sc_p sc = cookie; local
632 ichsmb_wait(sc_p sc) argument
663 ichsmb_release_resources(sc_p sc) argument
686 const sc_p sc = device_get_softc(dev); local
[all...]
/freebsd-11-stable/sys/dev/gpio/
H A Dgpiospi.c81 gpio_delay(struct gpio_spi_softc *sc) argument
85 d = sc->sc_freq / 1000000;
96 struct gpio_spi_softc *sc; local
98 sc = device_get_softc(dev);
99 sc->sc_dev = dev;
100 sc->sc_busdev = device_get_parent(dev);
106 sc->sc_sclk = value & 0xff;
111 sc->sc_mosi = value & 0xff;
117 sc->sc_miso = value & 0xff;
122 sc
194 gpio_spi_chip_activate(struct gpio_spi_softc *sc, int cs) argument
223 gpio_spi_chip_deactivate(struct gpio_spi_softc *sc, int cs) argument
267 gpio_spi_txrx(struct gpio_spi_softc *sc, int cs, int mode, uint8_t data) argument
326 struct gpio_spi_softc *sc; local
[all...]
/freebsd-11-stable/sys/arm/ti/
H A Dti_sdma.c153 * @sc: DMA device context
161 ti_sdma_read_4(struct ti_sdma_softc *sc, bus_size_t off) argument
163 return bus_read_4(sc->sc_mem_res, off);
168 * @sc: DMA device context
176 ti_sdma_write_4(struct ti_sdma_softc *sc, bus_size_t off, uint32_t val) argument
178 bus_write_4(sc->sc_mem_res, off, val);
183 * @sc: DMA device context
187 ti_sdma_is_omap3_rev(struct ti_sdma_softc *sc) argument
189 return (sc->sc_hw_rev == DMA4_OMAP3_REV);
194 * @sc
198 ti_sdma_is_omap4_rev(struct ti_sdma_softc *sc) argument
218 struct ti_sdma_softc *sc = ti_sdma_sc; local
321 struct ti_sdma_softc *sc = ti_sdma_sc; local
405 struct ti_sdma_softc *sc = ti_sdma_sc; local
460 struct ti_sdma_softc *sc = ti_sdma_sc; local
519 struct ti_sdma_softc *sc = ti_sdma_sc; local
585 struct ti_sdma_softc *sc = ti_sdma_sc; local
630 struct ti_sdma_softc *sc = ti_sdma_sc; local
724 struct ti_sdma_softc *sc = ti_sdma_sc; local
803 struct ti_sdma_softc *sc = ti_sdma_sc; local
853 struct ti_sdma_softc *sc = ti_sdma_sc; local
898 struct ti_sdma_softc *sc = ti_sdma_sc; local
940 struct ti_sdma_softc *sc = ti_sdma_sc; local
980 struct ti_sdma_softc *sc = ti_sdma_sc; local
1023 struct ti_sdma_softc *sc = ti_sdma_sc; local
1087 struct ti_sdma_softc *sc = ti_sdma_sc; local
1154 struct ti_sdma_softc *sc = device_get_softc(dev); local
[all...]
/freebsd-11-stable/usr.sbin/bhyve/
H A Dps2mouse.h36 struct ps2mouse_softc *ps2mouse_init(struct atkbdc_softc *sc);
38 int ps2mouse_read(struct ps2mouse_softc *sc, uint8_t *val);
39 void ps2mouse_write(struct ps2mouse_softc *sc, uint8_t val, int insert);
40 void ps2mouse_toggle(struct ps2mouse_softc *sc, int enable);
41 int ps2mouse_fifocnt(struct ps2mouse_softc *sc);
/freebsd-11-stable/sys/arm/at91/
H A Dif_macb.c99 read_4(struct macb_softc *sc, bus_size_t off) argument
102 return (bus_read_4(sc->mem_res, off));
106 write_4(struct macb_softc *sc, bus_size_t off, uint32_t val) argument
109 bus_write_4(sc->mem_res, off, val);
133 macb_new_rxbuf(struct macb_softc *sc, int index);
136 macb_free_desc_dma_tx(struct macb_softc *sc);
139 macb_free_desc_dma_rx(struct macb_softc *sc);
142 macb_init_desc_dma_tx(struct macb_softc *sc);
145 macb_watchdog(struct macb_softc *sc);
147 static int macb_intr_rx_locked(struct macb_softc *sc, in
162 struct macb_softc *sc; local
182 macb_alloc_desc_dma_tx(struct macb_softc *sc) argument
249 macb_free_desc_dma_tx(struct macb_softc *sc) argument
284 macb_init_desc_dma_tx(struct macb_softc *sc) argument
311 macb_alloc_desc_dma_rx(struct macb_softc *sc) argument
381 macb_free_desc_dma_rx(struct macb_softc *sc) argument
415 macb_init_desc_dma_rx(struct macb_softc *sc) argument
438 macb_new_rxbuf(struct macb_softc *sc, int index) argument
475 macb_allocate_dma(struct macb_softc *sc) argument
507 struct macb_softc *sc; local
522 macb_watchdog(struct macb_softc *sc) argument
551 struct macb_softc *sc; local
620 macb_tx_cleanup(struct macb_softc *sc) argument
711 macb_rx(struct macb_softc *sc) argument
816 macb_intr_rx_locked(struct macb_softc *sc, int count) argument
825 struct macb_softc *sc; local
836 struct macb_softc *sc; local
869 macb_encap(struct macb_softc *sc, struct mbuf **m_head) argument
962 struct macb_softc *sc; local
1016 struct macb_softc *sc = xsc; local
1026 struct macb_softc *sc = ifp->if_softc; local
1036 macbstop(struct macb_softc *sc) argument
1105 set_filter(struct macb_softc *sc) argument
1158 struct macb_softc *sc = ifp->if_softc; local
1223 struct macb_softc *sc = ifp->if_softc; local
1239 struct macb_softc *sc = ifp->if_softc; local
1257 macb_reset(struct macb_softc *sc) argument
1278 macb_get_mac(struct macb_softc *sc, u_char *eaddr) argument
1305 macb_set_rmii(struct macb_softc *sc) argument
1333 macb_set_rmii(struct macb_softc *sc) argument
1346 struct macb_softc *sc; local
1482 struct macb_softc *sc; local
1503 phy_read(struct macb_softc *sc, int phy, int reg) argument
1516 phy_write(struct macb_softc *sc, int phy, int reg, int data) argument
1532 struct macb_softc *sc; local
1540 struct macb_softc *sc; local
1548 struct macb_softc *sc; local
1556 struct macb_softc *sc; local
[all...]
/freebsd-11-stable/sys/dev/cmx/
H A Dcmxvar.h73 #define CMX_READ_1(sc, off) \
74 (bus_space_read_1((sc)->bst, (sc)->bsh, off))
75 #define CMX_WRITE_1(sc, off, val) \
76 (bus_space_write_1((sc)->bst, (sc)->bsh, off, val))
78 #define cmx_read_BSR(sc) \
79 CMX_READ_1(sc, REG_OFFSET_BSR)
80 #define cmx_write_BSR(sc, val) \
81 CMX_WRITE_1(sc, REG_OFFSET_BS
[all...]
/freebsd-11-stable/sys/dev/ex/
H A Dif_ex.c121 ex_get_address(struct ex_softc *sc, u_char *enaddr) argument
125 eaddr_tmp = ex_eeprom_read(sc, EE_Eth_Addr_Lo);
128 eaddr_tmp = ex_eeprom_read(sc, EE_Eth_Addr_Mid);
131 eaddr_tmp = ex_eeprom_read(sc, EE_Eth_Addr_Hi);
154 struct ex_softc * sc = device_get_softc(dev); local
157 sc->ioport = bus_alloc_resource_any(dev, SYS_RES_IOPORT,
158 &sc->ioport_rid, RF_ACTIVE);
159 if (!sc->ioport) {
165 sc->irq = bus_alloc_resource_any(dev, SYS_RES_IRQ, &sc
181 struct ex_softc * sc = device_get_softc(dev); local
209 struct ex_softc * sc = device_get_softc(dev); local
285 struct ex_softc *sc; local
307 struct ex_softc * sc = (struct ex_softc *) xsc; local
315 ex_init_locked(struct ex_softc *sc) argument
410 struct ex_softc * sc = ifp->if_softc; local
420 struct ex_softc * sc = ifp->if_softc; local
588 ex_stop(struct ex_softc *sc) argument
623 struct ex_softc *sc = (struct ex_softc *)arg; local
663 ex_tx_intr(struct ex_softc *sc) argument
710 ex_rx_intr(struct ex_softc *sc) argument
819 struct ex_softc * sc = ifp->if_softc; local
863 ex_setmulti(struct ex_softc *sc) argument
960 ex_reset(struct ex_softc *sc) argument
977 struct ex_softc * sc = arg; local
998 ex_get_media(struct ex_softc *sc) argument
1024 struct ex_softc * sc = ifp->if_softc; local
1037 struct ex_softc * sc = ifp->if_softc; local
1048 ex_eeprom_read(struct ex_softc *sc, int location) argument
[all...]
/freebsd-11-stable/sys/dev/patm/
H A Dif_patm_intr.c77 static void patm_feed_sbufs(struct patm_softc *sc);
78 static void patm_feed_lbufs(struct patm_softc *sc);
79 static void patm_feed_vbufs(struct patm_softc *sc);
80 static void patm_intr_tsif(struct patm_softc *sc);
81 static void patm_intr_raw(struct patm_softc *sc);
91 patm_fbq_write(struct patm_softc *sc, u_int queue, uint32_t h0, argument
94 patm_debug(sc, FREEQ, "supplying(%u,%#x,%#x,%#x,%#x)",
96 patm_nor_write(sc, IDT_NOR_D0, h0);
97 patm_nor_write(sc, IDT_NOR_D1, p0);
98 patm_nor_write(sc, IDT_NOR_D
109 struct patm_softc *sc = p; local
234 patm_feed_cnt(struct patm_softc *sc, u_int q) argument
266 patm_feed_sbufs(struct patm_softc *sc) argument
294 patm_feed_vbufs(struct patm_softc *sc) argument
322 patm_lmbuf_alloc(struct patm_softc *sc) argument
357 patm_feed_lbufs(struct patm_softc *sc) argument
383 patm_intr_tsif(struct patm_softc *sc) argument
425 patm_intr_rsq(struct patm_softc *sc) argument
472 patm_intr_raw(struct patm_softc *sc) argument
516 patm_lbuf_free(struct patm_softc *sc, struct lmbuf *b) argument
532 struct patm_softc *sc; local
[all...]
/freebsd-11-stable/sys/dev/cfi/
H A Dcfi_dev.c86 cfi_block_start(struct cfi_softc *sc, u_int ofs) argument
98 for (r = 0; r < sc->sc_regions; r++) {
99 rsz = sc->sc_region[r].r_blocks * sc->sc_region[r].r_blksz;
104 if (r == sc->sc_regions)
107 sc->sc_wrbufsz = sc->sc_region[r].r_blksz;
108 sc->sc_wrbuf = malloc(sc->sc_wrbufsz, M_TEMP, M_WAITOK);
109 sc
138 cfi_block_finish(struct cfi_softc *sc) argument
155 struct cfi_softc *sc; local
168 struct cfi_softc *sc; local
189 struct cfi_softc *sc; local
225 struct cfi_softc *sc; local
264 struct cfi_softc *sc; local
[all...]
/freebsd-11-stable/sys/dev/dpaa/
H A Dif_dtsec.c161 struct dtsec_softc *sc; local
163 sc = h_App;
164 device_printf(sc->sc_dev, "MDIO event %i: %s.\n", exception,
171 struct dtsec_softc *sc; local
173 sc = app;
174 device_printf(sc->sc_dev, "MAC exception %i: %s.\n", exception,
179 dtsec_fm_mac_free(struct dtsec_softc *sc) argument
181 if (sc->sc_mach == NULL)
184 FM_MAC_Disable(sc->sc_mach, e_COMM_MODE_RX_AND_TX);
185 FM_MAC_Free(sc
190 dtsec_fm_mac_init(struct dtsec_softc *sc, uint8_t *mac) argument
267 struct dtsec_softc *sc; local
278 struct dtsec_softc *sc; local
313 dtsec_fm_port_free_both(struct dtsec_softc *sc) argument
333 dtsec_if_enable_locked(struct dtsec_softc *sc) argument
360 dtsec_if_disable_locked(struct dtsec_softc *sc) argument
386 struct dtsec_softc *sc; local
423 struct dtsec_softc *sc; local
437 dtsec_if_deinit_locked(struct dtsec_softc *sc) argument
448 dtsec_if_init_locked(struct dtsec_softc *sc) argument
487 struct dtsec_softc *sc; local
499 struct dtsec_softc *sc; local
522 struct dtsec_softc *sc = ifp->if_softc; local
534 struct dtsec_softc *sc = ifp->if_softc; local
553 dtsec_configure_mode(struct dtsec_softc *sc) argument
580 struct dtsec_softc *sc; local
729 struct dtsec_softc *sc; local
799 struct dtsec_softc *sc; local
823 struct dtsec_softc *sc; local
846 struct dtsec_softc *sc; local
[all...]
/freebsd-11-stable/sys/dev/terasic/mtl/
H A Dterasic_mtl.h91 #define TERASIC_MTL_LOCK(sc) mtx_lock(&(sc)->mtl_lock)
92 #define TERASIC_MTL_LOCK_ASSERT(sc) mtx_assert(&(sc)->mtl_lock, MA_OWNED)
93 #define TERASIC_MTL_LOCK_DESTROY(sc) mtx_destroy(&(sc)->mtl_lock)
94 #define TERASIC_MTL_LOCK_INIT(sc) mtx_init(&(sc)->mtl_lock, \
96 #define TERASIC_MTL_UNLOCK(sc) mtx_unlock(&(sc)
[all...]

Completed in 220 milliseconds

1234567891011>>