Searched refs:sc (Results 301 - 325 of 2317) sorted by relevance

<<11121314151617181920>>

/freebsd-11-stable/sys/dev/acpica/
H A Dacpi_lid.c97 acpi_lid_status_update(struct acpi_lid_softc *sc) argument
109 status = acpi_GetInteger(sc->lid_handle, "_LID", &lid_status);
114 sc->lid_status = lid_status ? 1 : 0;
118 evdev_push_sw(sc->lid_evdev, SW_LID, lid_status ? 0 : 1);
119 evdev_sync(sc->lid_evdev);
140 struct acpi_lid_softc *sc; local
144 sc = device_get_softc(dev);
145 sc->lid_dev = dev;
146 acpi_lid_handle = sc->lid_handle = acpi_get_handle(dev);
150 sc
198 struct acpi_lid_softc *sc; local
211 struct acpi_lid_softc *sc; local
247 struct acpi_lid_softc *sc; local
[all...]
/freebsd-11-stable/sys/arm/xilinx/
H A Dzy7_devcfg.c92 #define DEVCFG_SC_LOCK(sc) mtx_lock(&(sc)->sc_mtx)
93 #define DEVCFG_SC_UNLOCK(sc) mtx_unlock(&(sc)->sc_mtx)
94 #define DEVCFG_SC_LOCK_INIT(sc) \
95 mtx_init(&(sc)->sc_mtx, device_get_nameunit((sc)->dev), \
97 #define DEVCFG_SC_LOCK_DESTROY(sc) mtx_destroy(&(sc)->sc_mtx);
98 #define DEVCFG_SC_ASSERT_LOCKED(sc) mtx_asser
353 zy7_devcfg_init_fclk_sysctl(struct zy7_devcfg_softc *sc) argument
398 zy7_devcfg_init_hw(struct zy7_devcfg_softc *sc) argument
423 zy7_devcfg_reset_pl(struct zy7_devcfg_softc *sc) argument
502 struct zy7_devcfg_softc *sc = dev->si_drv1; local
536 struct zy7_devcfg_softc *sc = dev->si_drv1; local
631 struct zy7_devcfg_softc *sc = dev->si_drv1; local
646 struct zy7_devcfg_softc *sc = (struct zy7_devcfg_softc *)arg; local
678 struct zy7_devcfg_softc *sc = zy7_devcfg_softc_p; local
713 struct zy7_devcfg_softc *sc = device_get_softc(dev); local
795 struct zy7_devcfg_softc *sc = device_get_softc(dev); local
[all...]
/freebsd-11-stable/sys/dev/hyperv/netvsc/
H A Dhn_nvs.c90 hn_nvs_xact_execute(struct hn_softc *sc, struct vmbus_xact *xact, argument
107 error = hn_nvs_send(sc->hn_prichan, VMBUS_CHANPKT_FLAG_RC,
113 hdr = vmbus_chan_xact_wait(sc->hn_prichan, xact, &resplen,
114 HN_CAN_SLEEP(sc));
120 if_printf(sc->hn_ifp, "invalid NVS resp len %zu\n", resplen);
124 if_printf(sc->hn_ifp, "unexpected NVS resp 0x%08x, "
134 hn_nvs_req_send(struct hn_softc *sc, void *req, int reqlen) argument
137 return (hn_nvs_send(sc->hn_prichan, VMBUS_CHANPKT_FLAG_NONE,
142 hn_nvs_conn_rxbuf(struct hn_softc *sc) argument
154 if (sc
219 hn_nvs_conn_chim(struct hn_softc *sc) argument
324 hn_nvs_disconn_rxbuf(struct hn_softc *sc) argument
384 hn_nvs_disconn_chim(struct hn_softc *sc) argument
451 hn_nvs_doinit(struct hn_softc *sc, uint32_t nvs_ver) argument
500 hn_nvs_conf_ndis(struct hn_softc *sc, int mtu) argument
526 hn_nvs_init_ndis(struct hn_softc *sc) argument
544 hn_nvs_init(struct hn_softc *sc) argument
600 hn_nvs_attach(struct hn_softc *sc, int mtu) argument
651 hn_nvs_detach(struct hn_softc *sc) argument
677 hn_nvs_alloc_subchans(struct hn_softc *sc, int *nsubch0) argument
737 hn_nvs_set_datapath(struct hn_softc *sc, uint32_t path) argument
[all...]
/freebsd-11-stable/sys/arm/samsung/exynos/
H A Dexynos5_i2c.c139 clear_ipend(struct i2c_softc *sc) argument
143 reg = READ1(sc, I2CCON);
145 WRITE1(sc, I2CCON, reg);
153 struct i2c_softc *sc; local
156 sc = device_get_softc(dev);
157 sc->dev = dev;
159 mtx_init(&sc->mutex, device_get_nameunit(dev), "I2C", MTX_DEF);
161 if (bus_alloc_resources(dev, i2c_spec, sc->res)) {
167 sc->bst = rman_get_bustag(sc
191 wait_for_iif(struct i2c_softc *sc) argument
209 wait_for_nibb(struct i2c_softc *sc) argument
224 is_ack(struct i2c_softc *sc) argument
240 struct i2c_softc *sc; local
304 struct i2c_softc *sc; local
336 struct i2c_softc *sc; local
355 struct i2c_softc *sc; local
415 struct i2c_softc *sc; local
[all...]
/freebsd-11-stable/sys/dev/usb/input/
H A Dwsp.c606 static int wsp_enable(struct wsp_softc *sc);
607 static void wsp_disable(struct wsp_softc *sc);
610 static void wsp_reset_buf(struct wsp_softc *sc);
634 wsp_set_device_mode(struct wsp_softc *sc, uint8_t on) argument
636 const struct wsp_dev_params *params = sc->sc_params;
644 err = usbd_req_get_report(sc->sc_usb_device, NULL,
664 return (usbd_req_set_report(sc->sc_usb_device, NULL,
670 wsp_enable(struct wsp_softc *sc) argument
673 memset(&sc->sc_status, 0, sizeof(sc
681 wsp_disable(struct wsp_softc *sc) argument
720 struct wsp_softc *sc = device_get_softc(dev); local
819 struct wsp_softc *sc = device_get_softc(dev); local
840 struct wsp_softc *sc = usbd_xfer_softc(xfer); local
1184 wsp_add_to_queue(struct wsp_softc *sc, int dx, int dy, int dz, uint32_t buttons_in) argument
1223 wsp_reset_buf(struct wsp_softc *sc) argument
1232 struct wsp_softc *sc = usb_fifo_softc(fifo); local
1255 struct wsp_softc *sc = usb_fifo_softc(fifo); local
1267 struct wsp_softc *sc = usb_fifo_softc(fifo); local
1290 struct wsp_softc *sc = usb_fifo_softc(fifo); local
1300 struct wsp_softc *sc = usb_fifo_softc(fifo); local
[all...]
/freebsd-11-stable/sys/arm/allwinner/
H A Dtimer.c92 #define timer_read_4(sc, reg) \
93 bus_space_read_4(sc->sc_bst, sc->sc_bsh, reg)
94 #define timer_write_4(sc, reg, val) \
95 bus_space_write_4(sc->sc_bst, sc->sc_bsh, reg, val)
145 struct a10_timer_softc *sc; local
148 sc = device_get_softc(dev);
165 struct a10_timer_softc *sc; local
169 sc
238 struct a10_timer_softc *sc; local
275 struct a10_timer_softc *sc; local
291 a10_timer_get_timerfreq(struct a10_timer_softc *sc) argument
299 struct a10_timer_softc *sc; local
360 struct a10_timer_softc *sc = arg; local
[all...]
/freebsd-11-stable/sys/sparc64/pci/
H A Dfire.c88 static int fire_get_intrmap(struct fire_softc *sc, u_int ino,
94 static int fire_intr_register(struct fire_softc *sc, u_int ino);
99 static void fire_set_intr(struct fire_softc *sc, u_int index, u_int ino,
201 #define FIRE_SPC_BARRIER(spc, sc, offs, len, flags) \
202 bus_barrier((sc)->sc_mem_res[(spc)], (offs), (len), (flags))
203 #define FIRE_SPC_READ_8(spc, sc, offs) \
204 bus_read_8((sc)->sc_mem_res[(spc)], (offs))
205 #define FIRE_SPC_WRITE_8(spc, sc, offs, v) \
206 bus_write_8((sc)->sc_mem_res[(spc)], (offs), (v))
209 #define FIRE_SPC_SET(spc, sc, off
284 struct fire_softc *sc; local
758 fire_set_intr(struct fire_softc *sc, u_int index, u_int ino, driver_filter_t handler, void *arg) argument
778 fire_intr_register(struct fire_softc *sc, u_int ino) argument
802 fire_get_intrmap(struct fire_softc *sc, u_int ino, bus_addr_t *intrmapptr, bus_addr_t *intrclrptr) argument
826 struct fire_softc *sc; local
1096 struct fire_softc *sc; local
1257 struct fire_softc *sc; local
1372 struct fire_softc *sc; local
1410 struct fire_softc *sc; local
1424 struct fire_softc *sc; local
1469 struct fire_softc *sc; local
1514 struct fire_softc *sc; local
1531 struct fire_softc *sc; local
1566 struct fire_softc *sc; local
1583 struct fire_softc *sc; local
1667 struct fire_softc *sc; local
1724 struct fire_softc *sc; local
1814 struct fire_softc *sc; local
1856 struct fire_softc *sc; local
1869 struct fire_softc *sc; local
[all...]
/freebsd-11-stable/sys/dev/malo/
H A Dif_malo.c104 #define IFF_DUMPPKTS_RECV(sc, wh) \
105 (((sc->malo_debug & MALO_DEBUG_RECV) && \
106 ((sc->malo_debug & MALO_DEBUG_RECV_ALL) || !IS_BEACON(wh))))
107 #define IFF_DUMPPKTS_XMIT(sc) \
108 (sc->malo_debug & MALO_DEBUG_XMIT)
109 #define DPRINTF(sc, m, fmt, ...) do { \
110 if (sc->malo_debug & (m)) \
114 #define DPRINTF(sc, m, fmt, ...) do { \
115 (void) sc; \
157 malo_bar0_read4(struct malo_softc *sc, bus_size_ argument
163 malo_bar0_write4(struct malo_softc *sc, bus_size_t off, uint32_t val) argument
172 malo_attach(uint16_t devid, struct malo_softc *sc) argument
329 struct malo_softc *sc = ic->ic_softc; local
376 struct malo_softc *sc = arg; local
433 malo_desc_setup(struct malo_softc *sc, const char *name, struct malo_descdma *dd, int nbuf, size_t bufsize, int ndesc, size_t descsize) argument
509 malo_rxdma_setup(struct malo_softc *sc) argument
553 malo_txdma_setup(struct malo_softc *sc, struct malo_txq *txq) argument
597 malo_desc_cleanup(struct malo_softc *sc, struct malo_descdma *dd) argument
607 malo_rxdma_cleanup(struct malo_softc *sc) argument
631 malo_txdma_cleanup(struct malo_softc *sc, struct malo_txq *txq) argument
665 malo_dma_cleanup(struct malo_softc *sc) argument
676 malo_dma_setup(struct malo_softc *sc) argument
701 malo_hal_set_rxtxdma(struct malo_softc *sc) argument
722 malo_setup_hwdma(struct malo_softc *sc) argument
742 malo_txq_init(struct malo_softc *sc, struct malo_txq *txq, int qnum) argument
767 malo_tx_cleanupq(struct malo_softc *sc, struct malo_txq *txq) argument
777 malo_getbuf(struct malo_softc *sc, struct malo_txq *txq) argument
797 malo_tx_dmasetup(struct malo_softc *sc, struct malo_txbuf *bf, struct mbuf *m0) argument
927 malo_tx_processq(struct malo_softc *sc, struct malo_txq *txq) argument
1010 struct malo_softc *sc = arg; local
1031 malo_tx_start(struct malo_softc *sc, struct ieee80211_node *ni, struct malo_txbuf *bf, struct mbuf *m0) argument
1209 struct malo_softc *sc = ic->ic_softc; local
1228 malo_start(struct malo_softc *sc) argument
1298 struct malo_softc *sc = arg; local
1315 malo_hal_reset(struct malo_softc *sc) argument
1342 malo_getrxmbuf(struct malo_softc *sc, struct malo_rxbuf *bf) argument
1370 malo_rxbuf_init(struct malo_softc *sc, struct malo_rxbuf *bf) argument
1408 malo_startrecv(struct malo_softc *sc) argument
1447 malo_init_locked(struct malo_softc *sc) argument
1500 struct malo_softc *sc = (struct malo_softc *) arg; local
1515 malo_setmcastfilter(struct malo_softc *sc) argument
1564 malo_mode_init(struct malo_softc *sc) argument
1576 malo_tx_draintxq(struct malo_softc *sc, struct malo_txq *txq) argument
1625 malo_stop(struct malo_softc *sc) argument
1663 struct malo_softc *sc = ic->ic_softc; local
1703 struct malo_softc *sc = ic->ic_softc; local
1730 struct malo_softc *sc = ic->ic_softc; local
1774 struct malo_softc *sc = ic->ic_softc; local
1827 malo_sysctlattach(struct malo_softc *sc) argument
1841 malo_announce(struct malo_softc *sc) argument
1881 malo_chan_set(struct malo_softc *sc, struct ieee80211_channel *chan) argument
1919 struct malo_softc *sc = ic->ic_softc; local
1927 struct malo_softc *sc = ic->ic_softc; local
1935 struct malo_softc *sc = ic->ic_softc; local
1943 struct malo_softc *sc = arg; local
2097 malo_tx_cleanup(struct malo_softc *sc) argument
2106 malo_detach(struct malo_softc *sc) argument
2143 malo_shutdown(struct malo_softc *sc) argument
2150 malo_suspend(struct malo_softc *sc) argument
2157 malo_resume(struct malo_softc *sc) argument
[all...]
/freebsd-11-stable/sys/dev/aacraid/
H A Daacraid.c77 static void aac_add_container(struct aac_softc *sc,
80 static void aac_get_bus_info(struct aac_softc *sc);
81 static void aac_container_bus(struct aac_softc *sc);
83 static int aac_convert_sgraw2(struct aac_softc *sc, struct aac_raw_io2 *raw,
87 static void aac_timeout(struct aac_softc *sc);
88 static void aac_command_thread(struct aac_softc *sc);
89 static int aac_sync_fib(struct aac_softc *sc, u_int32_t command,
95 static int aac_alloc_commands(struct aac_softc *sc);
96 static void aac_free_commands(struct aac_softc *sc);
100 static int aac_alloc(struct aac_softc *sc);
244 aacraid_attach(struct aac_softc *sc) argument
373 struct aac_softc *sc; local
426 aacraid_add_event(struct aac_softc *sc, struct aac_event *event) argument
446 aac_get_container_info(struct aac_softc *sc, struct aac_fib *sync_fib, int cid, struct aac_mntinforesp *mir, u_int32_t *uid) argument
557 aac_add_container(struct aac_softc *sc, struct aac_mntinforesp *mir, int f, u_int32_t uid) argument
587 aac_alloc(struct aac_softc *sc) argument
694 aacraid_free(struct aac_softc *sc) argument
757 struct aac_softc *sc; local
817 struct aac_softc *sc; local
859 struct aac_softc *sc; local
876 struct aac_softc *sc; local
893 struct aac_softc *sc; local
1030 aac_command_thread(struct aac_softc *sc) argument
1089 struct aac_softc *sc; local
1111 aacraid_alloc_command(struct aac_softc *sc, struct aac_command **cmp) argument
1136 struct aac_softc *sc; local
1190 aac_alloc_commands(struct aac_softc *sc) argument
1277 aac_free_commands(struct aac_softc *sc) argument
1308 struct aac_softc *sc; local
1462 aac_convert_sgraw2(struct aac_softc *sc, struct aac_raw_io2 *raw, int pages, int nseg, int nseg_new) argument
1504 struct aac_softc *sc; local
1535 struct aac_softc *sc; local
1544 aac_check_firmware(struct aac_softc *sc) argument
1748 aac_init(struct aac_softc *sc) argument
1853 aac_define_int_mode(struct aac_softc *sc) argument
1943 aac_find_pci_capability(struct aac_softc *sc, int cap) argument
1983 aac_setup_intr(struct aac_softc *sc) argument
2015 aac_check_config(struct aac_softc *sc) argument
2071 aacraid_sync_command(struct aac_softc *sc, u_int32_t command, u_int32_t arg0, u_int32_t arg1, u_int32_t arg2, u_int32_t arg3, u_int32_t *sp, u_int32_t *r1) argument
2119 aac_sync_fib(struct aac_softc *sc, u_int32_t command, u_int32_t xferstate, struct aac_fib *fib, u_int16_t datasize) argument
2160 aac_timeout(struct aac_softc *sc) argument
2196 aac_src_get_fwstatus(struct aac_softc *sc) argument
2207 aac_src_qnotify(struct aac_softc *sc, int qbit) argument
2218 aac_src_get_istatus(struct aac_softc *sc) argument
2240 aac_src_clear_istatus(struct aac_softc *sc, int mask) argument
2256 aac_src_set_mailbox(struct aac_softc *sc, u_int32_t command, u_int32_t arg0, u_int32_t arg1, u_int32_t arg2, u_int32_t arg3) argument
2269 aac_srcv_set_mailbox(struct aac_softc *sc, u_int32_t command, u_int32_t arg0, u_int32_t arg1, u_int32_t arg2, u_int32_t arg3) argument
2285 aac_src_get_mailbox(struct aac_softc *sc, int mb) argument
2293 aac_srcv_get_mailbox(struct aac_softc *sc, int mb) argument
2304 aac_src_access_devreg(struct aac_softc *sc, int mode) argument
2382 aac_src_send_command(struct aac_softc *sc, struct aac_command *cm) argument
2462 aac_src_get_outb_queue(struct aac_softc *sc) argument
2470 aac_src_set_outb_queue(struct aac_softc *sc, int index) argument
2483 aac_describe_controller(struct aac_softc *sc) argument
2592 struct aac_softc *sc; local
2607 struct aac_softc *sc; local
2710 struct aac_softc *sc; local
2737 aac_ioctl_event(struct aac_softc *sc, struct aac_event *event, void *arg) argument
2759 aac_ioctl_sendfib(struct aac_softc *sc, caddr_t ufib) argument
2844 aac_ioctl_send_raw_srb(struct aac_softc *sc, caddr_t arg) argument
3049 aac_request_aif(struct aac_softc *sc) argument
3089 struct aac_softc *sc; local
3101 struct aac_softc *sc; local
3114 aac_handle_aif(struct aac_softc *sc, struct aac_fib *fib) argument
3286 aac_rev_check(struct aac_softc *sc, caddr_t udata) argument
3328 aac_open_aif(struct aac_softc *sc, caddr_t arg) argument
3373 aac_close_aif(struct aac_softc *sc, caddr_t arg) argument
3403 aac_getnext_aif(struct aac_softc *sc, caddr_t arg) argument
3457 aac_return_aif(struct aac_softc *sc, struct aac_fib_context *ctx, caddr_t uptr) argument
3481 aac_get_pci_info(struct aac_softc *sc, caddr_t uptr) argument
3501 aac_supported_features(struct aac_softc *sc, caddr_t uptr) argument
3544 aac_query_disk(struct aac_softc *sc, caddr_t uptr) argument
3593 aac_container_bus(struct aac_softc *sc) argument
3632 aac_get_bus_info(struct aac_softc *sc) argument
3746 aac_check_adapter_health(struct aac_softc *sc, u_int8_t *bled) argument
3768 aac_reset_adapter(struct aac_softc *sc) argument
[all...]
/freebsd-11-stable/sys/dev/aac/
H A Daac.c73 static void aac_add_container(struct aac_softc *sc,
75 static void aac_get_bus_info(struct aac_softc *sc);
79 static void aac_timeout(struct aac_softc *sc);
81 static int aac_bio_command(struct aac_softc *sc, struct aac_command **cmp);
84 static void aac_command_thread(struct aac_softc *sc);
91 static int aac_alloc_commands(struct aac_softc *sc);
92 static void aac_free_commands(struct aac_softc *sc);
96 static int aac_alloc(struct aac_softc *sc);
99 static int aac_check_firmware(struct aac_softc *sc);
100 static int aac_init(struct aac_softc *sc);
238 aac_attach(struct aac_softc *sc) argument
355 struct aac_softc *sc; local
373 aac_add_event(struct aac_softc *sc, struct aac_event *event) argument
391 aac_get_container_info(struct aac_softc *sc, struct aac_fib *fib, int cid) argument
417 struct aac_softc *sc; local
459 aac_add_container(struct aac_softc *sc, struct aac_mntinforesp *mir, int f) argument
498 aac_alloc(struct aac_softc *sc) argument
609 aac_free(struct aac_softc *sc) argument
666 struct aac_softc *sc; local
729 struct aac_softc *sc; local
788 struct aac_softc *sc; local
805 struct aac_softc *sc; local
821 struct aac_softc *sc; local
904 struct aac_softc *sc; local
953 aac_startio(struct aac_softc *sc) argument
1019 aac_command_thread(struct aac_softc *sc) argument
1122 struct aac_softc *sc; local
1178 struct aac_softc *sc; local
1193 aac_bio_command(struct aac_softc *sc, struct aac_command **cmp) argument
1360 struct aac_softc *sc; local
1381 aac_alloc_command(struct aac_softc *sc, struct aac_command **cmp) argument
1408 struct aac_softc *sc; local
1458 aac_alloc_commands(struct aac_softc *sc) argument
1526 aac_free_commands(struct aac_softc *sc) argument
1557 struct aac_softc *sc; local
1650 struct aac_softc *sc; local
1681 struct aac_softc *sc; local
1690 aac_check_firmware(struct aac_softc *sc) argument
1847 aac_init(struct aac_softc *sc) argument
2004 aac_setup_intr(struct aac_softc *sc) argument
2031 aac_sync_command(struct aac_softc *sc, u_int32_t command, u_int32_t arg0, u_int32_t arg1, u_int32_t arg2, u_int32_t arg3, u_int32_t *sp) argument
2072 aac_sync_fib(struct aac_softc *sc, u_int32_t command, u_int32_t xferstate, struct aac_fib *fib, u_int16_t datasize) argument
2139 aac_enqueue_fib(struct aac_softc *sc, int queue, struct aac_command *cm) argument
2193 aac_dequeue_fib(struct aac_softc *sc, int queue, u_int32_t *fib_size, struct aac_fib **fib_addr) argument
2289 aac_enqueue_response(struct aac_softc *sc, int queue, struct aac_fib *fib) argument
2339 aac_timeout(struct aac_softc *sc) argument
2381 aac_sa_get_fwstatus(struct aac_softc *sc) argument
2389 aac_rx_get_fwstatus(struct aac_softc *sc) argument
2398 aac_rkt_get_fwstatus(struct aac_softc *sc) argument
2411 aac_sa_qnotify(struct aac_softc *sc, int qbit) argument
2419 aac_rx_qnotify(struct aac_softc *sc, int qbit) argument
2427 aac_rkt_qnotify(struct aac_softc *sc, int qbit) argument
2438 aac_sa_get_istatus(struct aac_softc *sc) argument
2446 aac_rx_get_istatus(struct aac_softc *sc) argument
2454 aac_rkt_get_istatus(struct aac_softc *sc) argument
2465 aac_sa_clear_istatus(struct aac_softc *sc, int mask) argument
2473 aac_rx_clear_istatus(struct aac_softc *sc, int mask) argument
2481 aac_rkt_clear_istatus(struct aac_softc *sc, int mask) argument
2492 aac_sa_set_mailbox(struct aac_softc *sc, u_int32_t command, u_int32_t arg0, u_int32_t arg1, u_int32_t arg2, u_int32_t arg3) argument
2505 aac_rx_set_mailbox(struct aac_softc *sc, u_int32_t command, u_int32_t arg0, u_int32_t arg1, u_int32_t arg2, u_int32_t arg3) argument
2518 aac_rkt_set_mailbox(struct aac_softc *sc, u_int32_t command, u_int32_t arg0, u_int32_t arg1, u_int32_t arg2, u_int32_t arg3) argument
2534 aac_sa_get_mailbox(struct aac_softc *sc, int mb) argument
2542 aac_rx_get_mailbox(struct aac_softc *sc, int mb) argument
2550 aac_rkt_get_mailbox(struct aac_softc *sc, int mb) argument
2561 aac_sa_set_interrupts(struct aac_softc *sc, int enable) argument
2573 aac_rx_set_interrupts(struct aac_softc *sc, int enable) argument
2588 aac_rkt_set_interrupts(struct aac_softc *sc, int enable) argument
2606 aac_rx_send_command(struct aac_softc *sc, struct aac_command *cm) argument
2629 aac_rkt_send_command(struct aac_softc *sc, struct aac_command *cm) argument
2655 aac_rx_get_outb_queue(struct aac_softc *sc) argument
2663 aac_rkt_get_outb_queue(struct aac_softc *sc) argument
2671 aac_rx_set_outb_queue(struct aac_softc *sc, int index) argument
2679 aac_rkt_set_outb_queue(struct aac_softc *sc, int index) argument
2694 aac_describe_controller(struct aac_softc *sc) argument
2799 struct aac_softc *sc; local
2813 struct aac_softc *sc; local
2917 struct aac_softc *sc; local
2944 aac_ioctl_event(struct aac_softc *sc, struct aac_event *event, void *arg) argument
2966 aac_ioctl_sendfib(struct aac_softc *sc, caddr_t ufib) argument
3050 aac_ioctl_send_raw_srb(struct aac_softc *sc, caddr_t arg) argument
3209 struct aac_softc *sc; local
3223 aac_handle_aif(struct aac_softc *sc, struct aac_fib *fib) argument
3401 aac_rev_check(struct aac_softc *sc, caddr_t udata) argument
3443 aac_open_aif(struct aac_softc *sc, caddr_t arg) argument
3488 aac_close_aif(struct aac_softc *sc, caddr_t arg) argument
3518 aac_getnext_aif(struct aac_softc *sc, caddr_t arg) argument
3566 aac_return_aif(struct aac_softc *sc, struct aac_fib_context *ctx, caddr_t uptr) argument
3593 aac_get_pci_info(struct aac_softc *sc, caddr_t uptr) argument
3613 aac_supported_features(struct aac_softc *sc, caddr_t uptr) argument
3655 aac_query_disk(struct aac_softc *sc, caddr_t uptr) argument
3707 aac_get_bus_info(struct aac_softc *sc) argument
[all...]
/freebsd-11-stable/sys/dev/etherswitch/ip17x/
H A Dip17x.c78 struct ip17x_softc *sc; local
81 sc = device_get_softc(dev);
98 sc->sc_switchtype = IP17X_SWITCH_IP175A;
101 sc->sc_switchtype = IP17X_SWITCH_IP175C;
113 sc->sc_switchtype = IP17X_SWITCH_IP175D;
118 sc->sc_switchtype = IP17X_SWITCH_IP178C;
126 ip17x_attach_phys(struct ip17x_softc *sc) argument
134 snprintf(name, IFNAMSIZ, "%sport", device_get_nameunit(sc->sc_dev));
136 if (((1 << phy) & sc->phymask) == 0)
138 sc
169 struct ip17x_softc *sc; local
242 struct ip17x_softc *sc; local
274 ip17x_miiforport(struct ip17x_softc *sc, int port) argument
283 ip17x_ifpforport(struct ip17x_softc *sc, int port) argument
295 ip17x_miipollstat(struct ip17x_softc *sc) argument
323 struct ip17x_softc *sc; local
333 struct ip17x_softc *sc; local
343 struct ip17x_softc *sc; local
353 struct ip17x_softc *sc; local
362 struct ip17x_softc *sc; local
415 struct ip17x_softc *sc; local
484 struct ip17x_softc *sc; local
500 struct ip17x_softc *sc; local
516 struct ip17x_softc *sc; local
528 struct ip17x_softc *sc; local
540 struct ip17x_softc *sc; local
554 struct ip17x_softc *sc; local
[all...]
/freebsd-11-stable/sys/pc98/cbus/
H A Dolpt.c318 struct lpt_softc *sc; local
322 sc = device_get_softc(dev);
323 callout_init(&sc->timer, 0);
326 sc->res_port = isa_alloc_resourcev(dev, SYS_RES_IOPORT, &rid,
328 if (sc->res_port == NULL)
330 isa_load_resourcev(sc->res_port, lpt_iat, 4);
332 sc->sc_port = rman_get_start(sc->res_port);
333 sc->sc_primed = 0; /* not primed yet */
335 outb(sc
382 struct lpt_softc *sc = dev->si_drv1; local
434 struct lpt_softc *sc = arg; local
471 struct lpt_softc *sc = dev->si_drv1; local
495 pushbytes(struct lpt_softc * sc) argument
559 struct lpt_softc *sc = dev->si_drv1; local
615 struct lpt_softc *sc = dev->si_drv1; local
[all...]
H A Dpmc.c64 #define sc_inw(sc, port) \
65 bus_space_read_2(rman_get_bustag((sc)->port_res), \
66 rman_get_bushandle((sc)->port_res), (port))
68 #define sc_outw(sc, port, value) \
69 bus_space_write_2(rman_get_bustag((sc)->port_res), \
70 rman_get_bushandle((sc)->port_res), (port), (value))
75 struct pmc_isa_softc *sc = (struct pmc_isa_softc *)arg; local
77 if (!sc->flags) {
85 sc_outw(sc, 0, 0x0044);
86 sc_outw(sc,
97 struct pmc_isa_softc *sc = device_get_softc(dev); local
115 struct pmc_isa_softc *sc = device_get_softc(dev); local
126 struct pmc_isa_softc *sc = device_get_softc(dev); local
195 struct pmc_isa_softc *sc = device_get_softc(dev); local
214 struct pmc_isa_softc *sc = device_get_softc(dev); local
[all...]
/freebsd-11-stable/sys/dev/ex/
H A Dif_exvar.h95 #define CSR_READ_1(sc, off) (bus_read_1((sc)->ioport, off))
96 #define CSR_READ_2(sc, off) (bus_read_2((sc)->ioport, off))
97 #define CSR_WRITE_1(sc, off, val) \
98 bus_write_1((sc)->ioport, off, val)
99 #define CSR_WRITE_2(sc, off, val) \
100 bus_write_2((sc)->ioport, off, val)
101 #define CSR_WRITE_MULTI_1(sc, off, addr, count) \
102 bus_write_multi_1((sc)
[all...]
/freebsd-11-stable/sys/dev/sbni/
H A Dif_sbni_isa.c80 struct sbni_softc *sc; local
87 sc = device_get_softc(dev);
89 sc->io_res = bus_alloc_resource_anywhere(dev, SYS_RES_IOPORT,
90 &sc->io_rid, SBNI_PORTS,
92 if (!sc->io_res) {
97 if (sbni_probe(sc) != 0) {
98 sbni_release_resources(sc);
110 struct sbni_softc *sc; local
114 sc = device_get_softc(dev);
115 sc
[all...]
/freebsd-11-stable/sys/arm/nvidia/
H A Dtegra_sdhci.c118 RD4(struct tegra_sdhci_softc *sc, bus_size_t off) argument
121 return (bus_read_4(sc->mem_res, off));
127 struct tegra_sdhci_softc *sc; local
129 sc = device_get_softc(dev);
130 return (bus_read_1(sc->mem_res, off));
136 struct tegra_sdhci_softc *sc; local
138 sc = device_get_softc(dev);
139 return (bus_read_2(sc->mem_res, off));
145 struct tegra_sdhci_softc *sc; local
148 sc
160 struct tegra_sdhci_softc *sc; local
170 struct tegra_sdhci_softc *sc; local
180 struct tegra_sdhci_softc *sc; local
190 struct tegra_sdhci_softc *sc; local
200 struct tegra_sdhci_softc *sc; local
209 struct tegra_sdhci_softc *sc = arg; local
218 struct tegra_sdhci_softc *sc = device_get_softc(brdev); local
226 struct tegra_sdhci_softc *sc = device_get_softc(dev); local
234 struct tegra_sdhci_softc *sc; local
265 struct tegra_sdhci_softc *sc; local
413 struct tegra_sdhci_softc *sc = device_get_softc(dev); local
[all...]
/freebsd-11-stable/sys/dev/sn/
H A Dif_sn.c161 struct sn_softc *sc = device_get_softc(dev); local
170 ifp = sc->ifp = if_alloc(IFT_ETHER);
176 SN_LOCK_INIT(sc);
177 callout_init_mtx(&sc->watchdog, &sc->sc_mtx, 0);
178 snstop(sc);
179 sc->pages_wanted = -1;
182 SMC_SELECT_BANK(sc, 3);
183 rev = (CSR_READ_2(sc, REVISION_REG_W) >> 4) & 0xf;
188 SMC_SELECT_BANK(sc,
238 struct sn_softc *sc = device_get_softc(dev); local
255 struct sn_softc *sc = xsc; local
267 struct sn_softc *sc = xsc; local
363 struct sn_softc *sc = ifp->if_softc; local
373 struct sn_softc *sc = ifp->if_softc; local
592 struct sn_softc *sc = ifp->if_softc; local
781 struct sn_softc *sc = (struct sn_softc *) arg; local
789 snintr_locked(struct sn_softc *sc) argument
1003 struct sn_softc *sc = ifp->if_softc; local
1139 struct sn_softc *sc = ifp->if_softc; local
1173 struct sn_softc *sc; local
1189 snstop(struct sn_softc *sc) argument
1219 struct sn_softc *sc = device_get_softc(dev); local
1245 struct sn_softc *sc = device_get_softc(dev); local
1283 struct sn_softc *sc = device_get_softc(dev); local
1372 sn_setmcast(struct sn_softc *sc) argument
[all...]
/freebsd-11-stable/sys/powerpc/pseries/
H A Dphyp_llan.c125 static int llan_add_rxbuf(struct llan_softc *sc, struct llan_xfer *rx);
126 static int llan_set_multicast(struct llan_softc *sc);
155 struct llan_softc *sc; local
159 sc = device_get_softc(dev);
160 sc->dev = dev;
164 OF_getprop(node, "local-mac-address", sc->mac_address,
165 sizeof(sc->mac_address));
166 OF_getencprop(node, "reg", &sc->unit, sizeof(sc->unit));
168 mtx_init(&sc
247 struct llan_softc *sc = ifp->if_softc; local
269 struct llan_softc *sc = xsc; local
280 struct llan_softc *sc = xsc; local
316 llan_add_rxbuf(struct llan_softc *sc, struct llan_xfer *rx) argument
370 struct llan_softc *sc = xsc; local
426 struct llan_softc *sc = xsc; local
451 struct llan_softc *sc = ifp->if_softc; local
491 struct llan_softc *sc = ifp->if_softc; local
499 llan_set_multicast(struct llan_softc *sc) argument
528 struct llan_softc *sc = ifp->if_softc; local
[all...]
/freebsd-11-stable/sys/dev/usb/gadget/
H A Dg_keyboard.c171 g_keyboard_timeout_reset(struct g_keyboard_softc *sc) argument
182 usb_callout_reset(&sc->sc_callout, i, &g_keyboard_timeout, sc);
188 struct g_keyboard_softc *sc = arg; local
190 sc->sc_mode = g_keyboard_mode;
192 memcpy(sc->sc_pattern, g_keyboard_key_press_pattern, sizeof(sc->sc_pattern));
194 sc->sc_pattern[G_KEYBOARD_MAX_STRLEN - 1] = 0;
196 sc->sc_pattern_len = strlen(sc
226 struct g_keyboard_softc *sc = device_get_softc(dev); local
263 struct g_keyboard_softc *sc = device_get_softc(dev); local
281 g_keyboard_get_keycode(struct g_keyboard_softc *sc, int index) argument
305 struct g_keyboard_softc *sc = usbd_xfer_softc(xfer); local
381 struct g_keyboard_softc *sc = device_get_softc(dev); local
[all...]
/freebsd-11-stable/sys/dev/led/
H A Dled.c53 struct ledsc *sc; local
55 LIST_FOREACH(sc, &led_list, list) {
56 if (sc->ptr == NULL)
58 if (sc->count > 0) {
59 sc->count--;
62 if (*sc->ptr == '.') {
63 sc->ptr = NULL;
66 } else if (*sc->ptr == 'U' || *sc->ptr == 'u') {
67 if (sc
87 led_state(struct ledsc *sc, struct sbuf **sb, int state) argument
212 struct ledsc *sc; local
243 struct ledsc *sc; local
280 struct ledsc *sc; local
306 struct ledsc *sc; local
[all...]
/freebsd-11-stable/sys/arm/xscale/ixp425/
H A Dixp425_npe.c234 npe_reg_read(struct ixpnpe_softc *sc, bus_size_t off) argument
236 uint32_t v = bus_space_read_4(sc->sc_iot, sc->sc_ioh, off);
237 DPRINTFn(9, sc->sc_dev, "%s(0x%lx) => 0x%x\n", __func__, off, v);
242 npe_reg_write(struct ixpnpe_softc *sc, bus_size_t off, uint32_t val) argument
244 DPRINTFn(9, sc->sc_dev, "%s(0x%lx, 0x%x)\n", __func__, off, val);
245 bus_space_write_4(sc->sc_iot, sc->sc_ioh, off, val);
282 struct ixpnpe_softc *sc; local
290 sc
342 ixpnpe_detach(struct ixpnpe_softc *sc) argument
359 ixpnpe_stopandreset(struct ixpnpe_softc *sc) argument
376 ixpnpe_start_locked(struct ixpnpe_softc *sc) argument
392 ixpnpe_start(struct ixpnpe_softc *sc) argument
403 ixpnpe_stop(struct ixpnpe_softc *sc) argument
433 npe_findimage(struct ixpnpe_softc *sc, const uint32_t *imageLibrary, uint32_t imageId, const uint32_t **imagePtr, uint32_t *imageSize) argument
465 ixpnpe_load_firmware(struct ixpnpe_softc *sc, const char *imageName, uint32_t imageId) argument
544 ixpnpe_init(struct ixpnpe_softc *sc) argument
595 ixpnpe_getfunctionality(struct ixpnpe_softc *sc) argument
601 npe_checkbits(struct ixpnpe_softc *sc, uint32_t reg, uint32_t expectedBitsSet) argument
613 npe_isstopped(struct ixpnpe_softc *sc) argument
620 npe_load_ins(struct ixpnpe_softc *sc, const IxNpeDlNpeMgrCodeBlock *bp, int verify) argument
644 npe_load_data(struct ixpnpe_softc *sc, const IxNpeDlNpeMgrCodeBlock *bp, int verify) argument
667 npe_load_stateinfo(struct ixpnpe_softc *sc, const IxNpeDlNpeMgrStateInfoBlock *bp, int verify) argument
720 npe_load_image(struct ixpnpe_softc *sc, const uint32_t *imageCodePtr, int verify) argument
826 npe_cpu_reset(struct ixpnpe_softc *sc) argument
975 npe_cpu_start(struct ixpnpe_softc *sc) argument
1009 npe_cpu_stop(struct ixpnpe_softc *sc) argument
1035 npe_cmd_issue_write(struct ixpnpe_softc *sc, uint32_t cmd, uint32_t addr, uint32_t data) argument
1044 npe_cmd_issue_read(struct ixpnpe_softc *sc, uint32_t cmd, uint32_t addr) argument
1057 npe_ins_write(struct ixpnpe_softc *sc, uint32_t addr, uint32_t data, int verify) argument
1087 npe_data_write(struct ixpnpe_softc *sc, uint32_t addr, uint32_t data, int verify) argument
1104 npe_ecs_reg_write(struct ixpnpe_softc *sc, uint32_t reg, uint32_t data) argument
1110 npe_ecs_reg_read(struct ixpnpe_softc *sc, uint32_t reg) argument
1116 npe_issue_cmd(struct ixpnpe_softc *sc, uint32_t command) argument
1122 npe_cpu_step_save(struct ixpnpe_softc *sc) argument
1140 npe_cpu_step(struct ixpnpe_softc *sc, uint32_t npeInstruction, uint32_t ctxtNum, uint32_t ldur) argument
1195 npe_cpu_step_restore(struct ixpnpe_softc *sc) argument
1211 npe_logical_reg_read(struct ixpnpe_softc *sc, uint32_t regAddr, uint32_t regSize, uint32_t ctxtNum, uint32_t *regVal) argument
1257 npe_logical_reg_write(struct ixpnpe_softc *sc, uint32_t regAddr, uint32_t regVal, uint32_t regSize, uint32_t ctxtNum, int verify) argument
1337 npe_physical_reg_write(struct ixpnpe_softc *sc, uint32_t regAddr, uint32_t regValue, int verify) argument
1360 npe_ctx_reg_write(struct ixpnpe_softc *sc, uint32_t ctxtNum, uint32_t ctxtReg, uint32_t ctxtRegVal, int verify) argument
1403 ofifo_wait(struct ixpnpe_softc *sc) argument
1418 getmsg(struct ixpnpe_softc *sc, uint32_t msg[2]) argument
1436 struct ixpnpe_softc *sc = arg; local
1460 ififo_wait(struct ixpnpe_softc *sc) argument
1475 putmsg(struct ixpnpe_softc *sc, const uint32_t msg[2]) argument
1495 ixpnpe_sendandrecvmsg_sync(struct ixpnpe_softc *sc, const uint32_t send[2], uint32_t recv[2]) argument
1513 ixpnpe_sendmsg_async(struct ixpnpe_softc *sc, const uint32_t msg[2]) argument
1525 recvmsg_locked(struct ixpnpe_softc *sc, uint32_t msg[2]) argument
1545 ixpnpe_recvmsg_async(struct ixpnpe_softc *sc, uint32_t msg[2]) argument
1561 ixpnpe_recvmsg_sync(struct ixpnpe_softc *sc, uint32_t msg[2]) argument
[all...]
/freebsd-11-stable/sys/dev/dcons/
H A Ddcons_crom.c105 dcons_crom_expose_idt(struct dcons_crom_softc *sc) argument
112 crom_add_entry(&sc->unit, DCONS_CSR_KEY_RESET_HI, ADDR_HI(idt_paddr));
113 crom_add_entry(&sc->unit, DCONS_CSR_KEY_RESET_LO, ADDR_LO(idt_paddr));
120 struct dcons_crom_softc *sc; local
124 sc = (struct dcons_crom_softc *) arg;
125 src = sc->fd.fc->crom_src;
126 root = sc->fd.fc->crom_root;
128 bzero(&sc->unit, sizeof(struct crom_chunk));
130 crom_add_chunk(src, root, &sc->unit, CROM_UDIR);
131 crom_add_entry(&sc
145 struct dcons_crom_softc *sc; local
173 struct dcons_crom_softc *sc = (struct dcons_crom_softc *) p; local
181 struct dcons_crom_softc *sc; local
225 struct dcons_crom_softc *sc; local
[all...]
/freebsd-11-stable/sys/mips/atheros/
H A Dar71xx_spi.c65 #define SPI_BARRIER_WRITE(sc) bus_barrier((sc)->sc_mem_res, 0, 0, \
67 #define SPI_BARRIER_READ(sc) bus_barrier((sc)->sc_mem_res, 0, 0, \
69 #define SPI_BARRIER_RW(sc) bus_barrier((sc)->sc_mem_res, 0, 0, \
72 #define SPI_WRITE(sc, reg, val) do { \
73 bus_write_4(sc->sc_mem_res, (reg), (val)); \
76 #define SPI_READ(sc, reg) bus_read_4(sc
100 struct ar71xx_spi_softc *sc = device_get_softc(dev); local
141 ar71xx_spi_chip_activate(struct ar71xx_spi_softc *sc, int cs) argument
161 ar71xx_spi_chip_deactivate(struct ar71xx_spi_softc *sc, int cs) argument
170 ar71xx_spi_txrx(struct ar71xx_spi_softc *sc, int cs, uint8_t data) argument
206 struct ar71xx_spi_softc *sc; local
248 struct ar71xx_spi_softc *sc = device_get_softc(dev); local
[all...]
/freebsd-11-stable/sys/dev/usb/controller/
H A Dmusb_otg_atmelarm.c71 musbotg_vbus_poll(struct musbotg_super_softc *sc) argument
76 musbotg_vbus_interrupt(&sc->sc_otg, vbus_val);
83 struct musbotg_super_softc *sc = arg;
92 struct musbotg_super_softc *sc = arg;
109 musbotg_ep_int_set(struct musbotg_softc *sc, int ep, int on) argument
127 struct musbotg_super_softc *sc = device_get_softc(dev); local
132 sc->sc_otg.sc_clocks_on = &musbotg_clocks_on;
133 sc->sc_otg.sc_clocks_off = &musbotg_clocks_off;
134 sc->sc_otg.sc_clocks_arg = sc;
206 struct musbotg_super_softc *sc = device_get_softc(dev); local
[all...]
/freebsd-11-stable/sys/arm/xscale/i8134x/
H A Di81342_pci.c60 struct i81342_pci_softc *sc; local
62 sc = device_get_softc(dev);
65 sc->sc_is_atux = 1;
68 sc->sc_is_atux = 0;
80 struct i81342_pci_softc *sc; local
86 sc = device_get_softc(dev);
88 sc->sc_atu_sh = sc->sc_is_atux ? parent_sc->sc_atux_sh :
90 sc->sc_st = parent_sc->sc_st;
91 if (bus_space_read_4(sc
224 i81342_pci_conf_setup(struct i81342_pci_softc *sc, int bus, int slot, int func, int reg, uint32_t *addr) argument
257 struct i81342_pci_softc *sc = device_get_softc(dev); local
302 struct i81342_pci_softc *sc = device_get_softc(dev); local
333 struct i81342_pci_softc *sc = device_get_softc(bus); local
422 struct i81342_pci_softc *sc; local
481 struct i81342_pci_softc *sc = device_get_softc(dev); local
497 struct i81342_pci_softc * sc = device_get_softc(dev); local
[all...]

Completed in 288 milliseconds

<<11121314151617181920>>