/freebsd-11-stable/sys/dev/dpaa/ |
H A D | if_dtsec_rm.h | 36 int dtsec_rm_fm_port_rx_init(struct dtsec_softc *sc, int unit); 37 int dtsec_rm_fm_port_tx_init(struct dtsec_softc *sc, int unit); 39 void dtsec_rm_if_start_locked(struct dtsec_softc *sc); 41 int dtsec_rm_pool_rx_init(struct dtsec_softc *sc); 42 void dtsec_rm_pool_rx_free(struct dtsec_softc *sc); 44 int dtsec_rm_fi_pool_init(struct dtsec_softc *sc); 45 void dtsec_rm_fi_pool_free(struct dtsec_softc *sc); 47 int dtsec_rm_fqr_rx_init(struct dtsec_softc *sc); 48 int dtsec_rm_fqr_tx_init(struct dtsec_softc *sc); 49 void dtsec_rm_fqr_rx_free(struct dtsec_softc *sc); [all...] |
H A D | if_dtsec_im.h | 36 int dtsec_im_fm_port_tx_init(struct dtsec_softc *sc, int unit); 37 int dtsec_im_fm_port_rx_init(struct dtsec_softc *sc, int unit); 38 void dtsec_im_if_start_locked(struct dtsec_softc *sc);
|
/freebsd-11-stable/sys/dev/iwm/ |
H A D | if_iwm_power.h | 93 extern int iwm_mvm_power_update_device(struct iwm_softc *sc); 94 extern int iwm_mvm_power_update_mac(struct iwm_softc *sc); 95 extern int iwm_mvm_power_update_ps(struct iwm_softc *sc); 96 extern int iwm_mvm_enable_beacon_filter(struct iwm_softc *sc, 98 extern int iwm_mvm_disable_beacon_filter(struct iwm_softc *sc);
|
/freebsd-11-stable/sys/dev/mse/ |
H A D | mse.c | 111 static void mseintr_locked(mse_softc_t *sc); 121 mse_softc_t *sc; local 124 sc = device_get_softc(dev); 126 mtx_init(&sc->sc_lock, "mse", NULL, MTX_DEF); 127 callout_init_mtx(&sc->sc_callout, &sc->sc_lock, 0); 130 sc->sc_intr = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid, 132 if (sc->sc_intr == NULL) { 133 bus_release_resource(dev, SYS_RES_IOPORT, rid, sc->sc_port); 134 mtx_destroy(&sc 160 mse_softc_t *sc; local 194 mse_softc_t *sc = dev->si_drv1; local 230 mse_softc_t *sc = dev->si_drv1; local 248 mse_softc_t *sc = dev->si_drv1; local 331 mse_softc_t *sc = dev->si_drv1; local 451 mse_softc_t *sc = dev->si_drv1; local 474 mse_softc_t *sc; local 494 mse_softc_t *sc = arg; local 502 mseintr_locked(mse_softc_t *sc) argument [all...] |
/freebsd-11-stable/sys/dev/altera/jtag_uart/ |
H A D | altera_jtag_uart_tty.c | 83 aju_data_read(struct altera_jtag_uart_softc *sc) argument 86 return (le32toh(bus_read_4(sc->ajus_mem_res, 91 aju_data_write(struct altera_jtag_uart_softc *sc, uint32_t v) argument 94 bus_write_4(sc->ajus_mem_res, ALTERA_JTAG_UART_DATA_OFF, htole32(v)); 98 aju_control_read(struct altera_jtag_uart_softc *sc) argument 101 return (le32toh(bus_read_4(sc->ajus_mem_res, 106 aju_control_write(struct altera_jtag_uart_softc *sc, uint32_t v) argument 109 bus_write_4(sc->ajus_mem_res, ALTERA_JTAG_UART_CONTROL_OFF, 117 aju_writable(struct altera_jtag_uart_softc *sc) argument 120 return ((aju_control_read(sc) 125 aju_readable(struct altera_jtag_uart_softc *sc) argument 143 aju_read(struct altera_jtag_uart_softc *sc) argument 157 aju_intr_readable_enable(struct altera_jtag_uart_softc *sc) argument 169 aju_intr_writable_enable(struct altera_jtag_uart_softc *sc) argument 181 aju_intr_writable_disable(struct altera_jtag_uart_softc *sc) argument 193 aju_intr_disable(struct altera_jtag_uart_softc *sc) argument 210 aju_handle_input(struct altera_jtag_uart_softc *sc, struct tty *tp) argument 241 aju_handle_output(struct altera_jtag_uart_softc *sc, struct tty *tp) argument 304 struct altera_jtag_uart_softc *sc = tty_softc(tp); local 316 struct altera_jtag_uart_softc *sc = arg; local 347 struct altera_jtag_uart_softc *sc = arg; local 378 struct altera_jtag_uart_softc *sc = arg; local 394 altera_jtag_uart_attach(struct altera_jtag_uart_softc *sc) argument 468 altera_jtag_uart_detach(struct altera_jtag_uart_softc *sc) argument [all...] |
/freebsd-11-stable/sys/dev/terasic/de4led/ |
H A D | terasic_de4led.h | 47 #define TERASIC_DE4LED_LOCK(sc) mtx_lock(&(sc)->tdl_lock) 48 #define TERASIC_DE4LED_LOCK_ASSERT(sc) mtx_assert(&(sc)->tdl_lock, MA_OWNED) 49 #define TERASIC_DE4LED_LOCK_DESTROY(sc) mtx_destroy(&(sc)->tdl_lock) 50 #define TERASIC_DE4LED_LOCK_INIT(sc) mtx_init(&(sc)->tdl_lock, \ 52 #define TERASIC_DE4LED_UNLOCK(sc) mtx_unlock(&(sc) [all...] |
/freebsd-11-stable/sys/dev/cmx/ |
H A D | cmx.c | 153 struct cmx_softc *sc = device_get_softc(dev); local 154 sc->dev = dev; 155 sc->timeout = CCID_DRIVER_MINIMUM_TIMEOUT; 169 struct cmx_softc *sc = device_get_softc(dev); local 174 sc->ioport = bus_alloc_resource_any(dev, SYS_RES_IOPORT, 175 &sc->ioport_rid, RF_ACTIVE); 176 if (!sc->ioport) { 180 sc->bst = rman_get_bustag(sc->ioport); 181 sc 211 struct cmx_softc *sc = device_get_softc(dev); local 244 struct cmx_softc *sc = device_get_softc(dev); local 268 struct cmx_softc *sc = device_get_softc(dev); local 304 cmx_wait_BSR(struct cmx_softc *sc, uint8_t flags, int test) argument 340 cmx_sync_write_SCR(struct cmx_softc *sc, uint8_t val) argument 395 struct cmx_softc *sc = xsc; local 419 struct cmx_softc *sc = cdev->si_drv1; local 443 struct cmx_softc *sc = cdev->si_drv1; local 480 struct cmx_softc *sc = cdev->si_drv1; local 581 struct cmx_softc *sc = cdev->si_drv1; local 646 struct cmx_softc *sc = cdev->si_drv1; local 689 struct cmx_softc *sc = (struct cmx_softc *)arg; local [all...] |
/freebsd-11-stable/sys/dev/altera/sdcard/ |
H A D | altera_sdcard.c | 78 altera_sdcard_attach(struct altera_sdcard_softc *sc) argument 81 ALTERA_SDCARD_LOCK_INIT(sc); 82 ALTERA_SDCARD_CONDVAR_INIT(sc); 83 sc->as_disk = NULL; 84 bioq_init(&sc->as_bioq); 85 sc->as_currentbio = NULL; 86 sc->as_state = ALTERA_SDCARD_STATE_NOCARD; 87 sc->as_taskqueue = taskqueue_create("altera_sdcardc taskq", M_WAITOK, 88 taskqueue_thread_enqueue, &sc->as_taskqueue); 89 taskqueue_start_threads(&sc 103 altera_sdcard_detach(struct altera_sdcard_softc *sc) argument 153 altera_sdcard_nextio(struct altera_sdcard_softc *sc) argument 169 altera_sdcard_task_nocard(struct altera_sdcard_softc *sc) argument 211 altera_sdcard_task_badcard(struct altera_sdcard_softc *sc) argument 233 altera_sdcard_task_idle(struct altera_sdcard_softc *sc) argument 256 altera_sdcard_task_io(struct altera_sdcard_softc *sc) argument 317 altera_sdcard_task_rechedule(struct altera_sdcard_softc *sc) argument 358 struct altera_sdcard_softc *sc; local 399 altera_sdcard_start(struct altera_sdcard_softc *sc) argument [all...] |
/freebsd-11-stable/sys/dev/uart/ |
H A D | uart_core.c | 96 uart_pps_print_mode(struct uart_softc *sc) argument 99 device_printf(sc->sc_dev, "PPS capture mode: "); 100 switch(sc->sc_pps_mode) { 110 if (sc->sc_pps_mode & UART_PPS_INVERT_PULSE) 112 if (sc->sc_pps_mode & UART_PPS_NARROW_PULSE) 120 struct uart_softc *sc; local 123 sc = arg1; 124 tmp = sc->sc_pps_mode; 130 sc->sc_pps_mode = tmp; 135 uart_pps_process(struct uart_softc *sc, in argument 184 uart_pps_init(struct uart_softc *sc) argument 266 uart_sched_softih(struct uart_softc *sc, uint32_t ipend) argument 291 struct uart_softc *sc = arg; local 322 struct uart_softc *sc = arg; local 341 struct uart_softc *sc = arg; local 372 struct uart_softc *sc = arg; local 409 struct uart_softc *sc = arg; local 421 struct uart_softc *sc = arg; local 475 struct uart_softc *sc; local 484 struct uart_softc *sc; local 493 struct uart_softc *sc; local 570 struct uart_softc *sc, *sc0; local 767 struct uart_softc *sc; local 807 struct uart_softc *sc; local [all...] |
/freebsd-11-stable/usr.sbin/bhyve/ |
H A D | ps2mouse.c | 112 fifo_init(struct ps2mouse_softc *sc) argument 116 fifo = &sc->fifo; 121 fifo_reset(struct ps2mouse_softc *sc) argument 125 fifo = &sc->fifo; 131 fifo_put(struct ps2mouse_softc *sc, uint8_t val) argument 135 fifo = &sc->fifo; 144 fifo_get(struct ps2mouse_softc *sc, uint8_t *val) argument 148 fifo = &sc->fifo; 160 movement_reset(struct ps2mouse_softc *sc) argument 162 assert(pthread_mutex_isowned_np(&sc 169 movement_update(struct ps2mouse_softc *sc, int x, int y) argument 178 movement_get(struct ps2mouse_softc *sc) argument 228 ps2mouse_reset(struct ps2mouse_softc *sc) argument 244 ps2mouse_read(struct ps2mouse_softc *sc, uint8_t *val) argument 256 ps2mouse_fifocnt(struct ps2mouse_softc *sc) argument 262 ps2mouse_toggle(struct ps2mouse_softc *sc, int enable) argument 277 ps2mouse_write(struct ps2mouse_softc *sc, uint8_t val, int insert) argument 372 struct ps2mouse_softc *sc = arg; local 402 struct ps2mouse_softc *sc; local [all...] |
/freebsd-11-stable/sys/dev/ath/ |
H A D | if_ath_btcoex.h | 38 extern int ath_btcoex_attach(struct ath_softc *sc); 39 extern int ath_btcoex_detach(struct ath_softc *sc); 40 extern int ath_btcoex_ioctl(struct ath_softc *sc, struct ath_diag *ad); 41 extern int ath_btcoex_enable(struct ath_softc *sc,
|
H A D | if_ath_btcoex_mci.h | 36 extern int ath_btcoex_mci_attach(struct ath_softc *sc); 37 extern int ath_btcoex_mci_detach(struct ath_softc *sc); 38 extern int ath_btcoex_mci_enable(struct ath_softc *sc, 40 extern void ath_btcoex_mci_intr(struct ath_softc *sc);
|
H A D | if_ath_rx_edma.h | 34 extern void ath_recv_setup_edma(struct ath_softc *sc);
|
H A D | if_ath_spectral.h | 34 extern int ath_spectral_attach(struct ath_softc *sc); 35 extern int ath_spectral_detach(struct ath_softc *sc); 36 extern int ath_ioctl_spectral(struct ath_softc *sc, struct ath_diag *ad); 37 extern int ath_spectral_enable(struct ath_softc *sc,
|
H A D | if_ath_tx_edma.h | 34 extern void ath_xmit_setup_edma(struct ath_softc *sc);
|
H A D | if_ath_led.h | 34 extern void ath_led_event(struct ath_softc *sc, int rix); 35 extern void ath_led_config(struct ath_softc *sc);
|
H A D | if_ath_sysctl.h | 36 extern void ath_sysctl_stats_attach(struct ath_softc *sc); 37 extern void ath_sysctl_hal_attach(struct ath_softc *sc);
|
/freebsd-11-stable/sys/dev/etherswitch/arswitch/ |
H A D | arswitch_8216.h | 31 extern void ar8216_attach(struct arswitch_softc *sc);
|
H A D | arswitch_8226.h | 31 extern void ar8226_attach(struct arswitch_softc *sc);
|
H A D | arswitch_8316.h | 31 extern void ar8316_attach(struct arswitch_softc *sc);
|
/freebsd-11-stable/sys/dev/oce/ |
H A D | oce_hw.c | 44 static int oce_POST(POCE_SOFTC sc); 48 * @param sc software handle to the device 51 oce_POST(POCE_SOFTC sc) argument 57 post_status.dw0 = OCE_READ_CSR_MPU(sc, csr, MPU_EP_SEMAPHORE(sc)); 62 OCE_WRITE_CSR_MPU(sc, csr, MPU_EP_SEMAPHORE(sc), post_status.dw0); 72 post_status.dw0 = OCE_READ_CSR_MPU(sc, csr, MPU_EP_SEMAPHORE(sc)); 74 device_printf(sc 92 oce_hw_init(POCE_SOFTC sc) argument 155 oce_hw_pci_free(POCE_SOFTC sc) argument 203 oce_get_pci_capabilities(POCE_SOFTC sc) argument 247 oce_hw_pci_alloc(POCE_SOFTC sc) argument 341 oce_hw_shutdown(POCE_SOFTC sc) argument 375 oce_create_nw_interface(POCE_SOFTC sc) argument 442 oce_delete_nw_interface(POCE_SOFTC sc) argument 457 oce_pci_soft_reset(POCE_SOFTC sc) argument 477 oce_hw_start(POCE_SOFTC sc) argument 519 oce_hw_intr_enable(POCE_SOFTC sc) argument 535 oce_hw_intr_disable(POCE_SOFTC sc) argument 551 oce_hw_update_multicast(POCE_SOFTC sc) argument [all...] |
/freebsd-11-stable/sys/powerpc/powermac/ |
H A D | cuda.c | 74 static void cuda_send_inbound(struct cuda_softc *sc); 75 static void cuda_send_outbound(struct cuda_softc *sc); 117 static uint8_t cuda_read_reg(struct cuda_softc *sc, u_int offset); 118 static void cuda_write_reg(struct cuda_softc *sc, u_int offset, uint8_t value); 143 struct cuda_softc *sc; local 149 sc = device_get_softc(dev); 150 sc->sc_dev = dev; 152 sc->sc_memrid = 0; 153 sc->sc_memr = bus_alloc_resource_any(dev, SYS_RES_MEMORY, 154 &sc 257 struct cuda_softc *sc; local 270 cuda_read_reg(struct cuda_softc *sc, u_int offset) argument 275 cuda_write_reg(struct cuda_softc *sc, u_int offset, uint8_t value) argument 280 cuda_idle(struct cuda_softc *sc) argument 290 cuda_tip(struct cuda_softc *sc) argument 300 cuda_clear_tip(struct cuda_softc *sc) argument 310 cuda_in(struct cuda_softc *sc) argument 320 cuda_out(struct cuda_softc *sc) argument 330 cuda_toggle_ack(struct cuda_softc *sc) argument 340 cuda_ack_off(struct cuda_softc *sc) argument 350 cuda_intr_state(struct cuda_softc *sc) argument 358 struct cuda_softc *sc = cookie; local 400 cuda_send_outbound(struct cuda_softc *sc) argument 433 cuda_send_inbound(struct cuda_softc *sc) argument 501 struct cuda_softc *sc = device_get_softc(dev); local 515 struct cuda_softc *sc; local 706 struct cuda_softc *sc = device_get_softc(dev); local 723 struct cuda_softc *sc = device_get_softc(dev); local 745 struct cuda_softc *sc = xsc; local 761 struct cuda_softc *sc = device_get_softc(dev); local 780 struct cuda_softc *sc = device_get_softc(dev); local [all...] |
/freebsd-11-stable/sys/sparc64/sbus/ |
H A D | lsi64854var.h | 67 #define L64854_GCSR(sc) bus_read_4((sc)->sc_res, L64854_REG_CSR) 68 #define L64854_SCSR(sc, csr) bus_write_4((sc)->sc_res, L64854_REG_CSR, csr) 73 #define DMA_RESET(sc) (((sc)->reset)(sc)) 74 #define DMA_INTR(sc) (((sc)->intr)(sc)) [all...] |
/freebsd-11-stable/sys/dev/vx/ |
H A D | if_vxvar.h | 60 #define CSR_WRITE_4(sc, reg, val) \ 61 bus_space_write_4(sc->vx_bst, sc->vx_bsh, reg, val) 62 #define CSR_WRITE_2(sc, reg, val) \ 63 bus_space_write_2(sc->vx_bst, sc->vx_bsh, reg, val) 64 #define CSR_WRITE_1(sc, reg, val) \ 65 bus_space_write_1(sc->vx_bst, sc->vx_bsh, reg, val) 67 #define CSR_READ_4(sc, re [all...] |
/freebsd-11-stable/sys/dev/hatm/ |
H A D | if_hatm.c | 200 hatm_alloc_dmamem(struct hatm_softc *sc, const char *what, struct dmamem *mem) argument 216 error = bus_dma_tag_create(sc->parent_tag, mem->align, 0, 222 if_printf(sc->ifp, "DMA tag create (%s)\n", what); 228 if_printf(sc->ifp, "DMA mem alloc (%s): %d\n", 238 if_printf(sc->ifp, "DMA map load (%s): %d\n", 246 DBG(sc, DMA, ("%s S/A/V/P 0x%x 0x%x %p 0x%lx", what, mem->size, 270 hatm_destroy_rmaps(struct hatm_softc *sc) argument 274 DBG(sc, ATTACH, ("destroying rmaps and lbuf pointers...")); 275 if (sc->rmaps != NULL) { 276 for (b = 0; b < sc 285 hatm_init_rmaps(struct hatm_softc *sc) argument 308 hatm_destroy_smbufs(struct hatm_softc *sc) argument 338 hatm_init_smbufs(struct hatm_softc *sc) argument 349 hatm_destroy_tpds(struct hatm_softc *sc) argument 369 hatm_init_tpds(struct hatm_softc *sc) argument 417 hatm_stop_tpds(struct hatm_softc *sc) argument 444 hatm_destroy(struct hatm_softc *sc) argument 510 hatm_reset(struct hatm_softc *sc) argument 534 hatm_init_bus_width(struct hatm_softc *sc) argument 563 hatm_init_endianess(struct hatm_softc *sc) argument 596 hatm_read_prom_byte(struct hatm_softc *sc, u_int addr) argument 654 hatm_init_read_eeprom(struct hatm_softc *sc) argument 732 hatm_clear_irq(struct hatm_softc *sc, u_int group) argument 744 hatm_init_irq(struct hatm_softc *sc, struct heirq *q, u_int group) argument 775 hatm_init_cm(struct hatm_softc *sc) argument 822 hatm_init_rx_buffer_pool(struct hatm_softc *sc, u_int num, u_int start, u_int numbuffs ) argument 876 hatm_init_tx_buffer_pool(struct hatm_softc *sc, u_int start, u_int numbuffs ) argument 929 hatm_init_imed_queues(struct hatm_softc *sc) argument 950 hatm_init_cs_block(struct hatm_softc *sc) argument 1017 hatm_init_cs_block_cm(struct hatm_softc *sc) argument 1116 hatm_clear_rpool(struct hatm_softc *sc, u_int group, u_int large) argument 1128 hatm_init_rpool(struct hatm_softc *sc, struct herbp *q, u_int group, u_int large) argument 1156 hatm_clear_rbrq(struct hatm_softc *sc, u_int group) argument 1168 hatm_init_rbrq(struct hatm_softc *sc, struct herbrq *rq, u_int group) argument 1194 hatm_clear_tbrq(struct hatm_softc *sc, u_int group) argument 1206 hatm_init_tbrq(struct hatm_softc *sc, struct hetbrq *tq, u_int group) argument 1228 hatm_init_tpdrq(struct hatm_softc *sc) argument 1249 struct hatm_softc *sc = p; local 1267 struct hatm_softc *sc = arg1; local 1304 kenv_getuint(struct hatm_softc *sc, const char *var, u_int *ptr, u_int def, int rw) argument 1347 hatm_configure(struct hatm_softc *sc) argument 1430 struct hatm_softc *sc = arg1; local 1456 struct hatm_softc *sc = arg1; local 1482 struct hatm_softc *sc = arg1; local 1507 struct hatm_softc *sc = arg1; local 1533 struct hatm_softc *sc = arg1; local 1559 struct hatm_softc *sc = arg1; local 1589 struct hatm_softc *sc = ifatm->ifp->if_softc; local 1610 struct hatm_softc *sc = ifatm->ifp->if_softc; local 1634 struct hatm_softc *sc = device_get_softc(dev); local 1658 struct hatm_softc *sc; local 1973 hatm_initialize(struct hatm_softc *sc) argument 2268 hatm_stop(struct hatm_softc *sc) argument [all...] |