Searched refs:sc (Results 1 - 25 of 2442) sorted by relevance

1234567891011>>

/freebsd-current/sys/dev/dpaa/
H A Dif_dtsec_rm.h34 int dtsec_rm_fm_port_rx_init(struct dtsec_softc *sc, int unit);
35 int dtsec_rm_fm_port_tx_init(struct dtsec_softc *sc, int unit);
37 void dtsec_rm_if_start_locked(struct dtsec_softc *sc);
39 int dtsec_rm_pool_rx_init(struct dtsec_softc *sc);
40 void dtsec_rm_pool_rx_free(struct dtsec_softc *sc);
42 int dtsec_rm_fi_pool_init(struct dtsec_softc *sc);
43 void dtsec_rm_fi_pool_free(struct dtsec_softc *sc);
45 int dtsec_rm_fqr_rx_init(struct dtsec_softc *sc);
46 int dtsec_rm_fqr_tx_init(struct dtsec_softc *sc);
47 void dtsec_rm_fqr_rx_free(struct dtsec_softc *sc);
[all...]
H A Dif_dtsec_im.h34 int dtsec_im_fm_port_tx_init(struct dtsec_softc *sc, int unit);
35 int dtsec_im_fm_port_rx_init(struct dtsec_softc *sc, int unit);
36 void dtsec_im_if_start_locked(struct dtsec_softc *sc);
/freebsd-current/sys/dev/iwm/
H A Dif_iwm_power.h92 extern int iwm_power_update_device(struct iwm_softc *sc);
93 extern int iwm_power_update_mac(struct iwm_softc *sc);
94 extern int iwm_power_update_ps(struct iwm_softc *sc);
95 extern int iwm_enable_beacon_filter(struct iwm_softc *sc,
97 extern int iwm_disable_beacon_filter(struct iwm_softc *sc);
H A Dif_iwm_pcie_trans.h106 extern uint32_t iwm_read_prph(struct iwm_softc *sc, uint32_t addr);
107 extern void iwm_write_prph(struct iwm_softc *sc, uint32_t addr, uint32_t val);
108 extern void iwm_write_prph64(struct iwm_softc *sc, uint64_t addr,
110 extern int iwm_poll_prph(struct iwm_softc *sc, uint32_t addr, uint32_t bits,
112 extern int iwm_read_mem(struct iwm_softc *sc, uint32_t addr, void *buf, int dwords);
113 extern int iwm_write_mem(struct iwm_softc *sc, uint32_t addr, const void *buf,
115 extern int iwm_write_mem32(struct iwm_softc *sc, uint32_t addr, uint32_t val);
116 extern int iwm_poll_bit(struct iwm_softc *sc, int reg,
118 extern int iwm_nic_lock(struct iwm_softc *sc);
119 extern void iwm_nic_unlock(struct iwm_softc *sc);
[all...]
/freebsd-current/sys/dev/etherswitch/ar40xx/
H A Dar40xx_hw.h30 extern int ar40xx_hw_ess_reset(struct ar40xx_softc *sc);
31 extern int ar40xx_hw_init_globals(struct ar40xx_softc *sc);
32 extern int ar40xx_hw_vlan_init(struct ar40xx_softc *sc);
33 extern int ar40xx_hw_sw_hw_apply(struct ar40xx_softc *sc);
34 extern int ar40xx_hw_wait_bit(struct ar40xx_softc *sc, int reg,
36 extern int ar40xx_hw_read_switch_mac_address(struct ar40xx_softc *sc,
38 extern int ar40xx_hw_write_switch_mac_address(struct ar40xx_softc *sc,
H A Dar40xx_hw_psgmii.h30 extern int ar40xx_hw_psgmii_set_mac_mode(struct ar40xx_softc *sc,
32 extern int ar40xx_hw_psgmii_self_test(struct ar40xx_softc *sc);
33 extern int ar40xx_hw_psgmii_self_test_clean(struct ar40xx_softc *sc);
34 extern int ar40xx_hw_psgmii_single_phy_testing(struct ar40xx_softc *sc,
36 extern int ar40xx_hw_malibu_psgmii_ess_reset(struct ar40xx_softc *sc);
37 extern int ar40xx_hw_psgmii_all_phy_testing(struct ar40xx_softc *sc);
38 extern int ar40xx_hw_psgmii_init_config(struct ar40xx_softc *sc);
H A Dar40xx_hw_atu.h30 extern int ar40xx_hw_atu_wait_busy(struct ar40xx_softc *sc);
31 extern int ar40xx_hw_atu_flush_all(struct ar40xx_softc *sc);
32 extern int ar40xx_hw_atu_flush_port(struct ar40xx_softc *sc, int port);
33 extern int ar40xx_hw_atu_fetch_entry(struct ar40xx_softc *sc,
H A Dar40xx_hw_mib.h30 extern int ar40xx_hw_mib_op(struct ar40xx_softc *sc, uint32_t op);
31 extern int ar40xx_hw_mib_capture(struct ar40xx_softc *sc);
32 extern int ar40xx_hw_mib_flush(struct ar40xx_softc *sc);
34 extern int ar40xx_hw_mib_fetch(struct ar40xx_softc *sc, int port);
H A Dar40xx_hw_mirror.h30 extern int ar40xx_hw_mirror_set_registers(struct ar40xx_softc *sc);
/freebsd-current/usr.sbin/bhyve/amd64/
H A Dps2mouse.c114 fifo_init(struct ps2mouse_softc *sc) argument
118 fifo = &sc->fifo;
123 fifo_reset(struct ps2mouse_softc *sc) argument
127 fifo = &sc->fifo;
133 fifo_put(struct ps2mouse_softc *sc, uint8_t val) argument
137 fifo = &sc->fifo;
146 fifo_get(struct ps2mouse_softc *sc, uint8_t *val) argument
150 fifo = &sc->fifo;
162 movement_reset(struct ps2mouse_softc *sc) argument
164 assert(pthread_mutex_isowned_np(&sc
171 movement_update(struct ps2mouse_softc *sc, int x, int y) argument
180 movement_get(struct ps2mouse_softc *sc) argument
230 ps2mouse_reset(struct ps2mouse_softc *sc) argument
246 ps2mouse_read(struct ps2mouse_softc *sc, uint8_t *val) argument
258 ps2mouse_fifocnt(struct ps2mouse_softc *sc) argument
264 ps2mouse_toggle(struct ps2mouse_softc *sc, int enable) argument
279 ps2mouse_write(struct ps2mouse_softc *sc, uint8_t val, int insert) argument
374 struct ps2mouse_softc *sc = arg; local
404 struct ps2mouse_softc *sc; local
422 ps2mouse_snapshot(struct ps2mouse_softc *sc, struct vm_snapshot_meta *meta) argument
[all...]
/freebsd-current/sys/dev/qcom_qup/
H A Dqcom_spi_hw.c65 qcom_spi_hw_read_controller_transfer_sizes(struct qcom_spi_softc *sc) argument
69 reg = QCOM_SPI_READ_4(sc, QUP_IO_M_MODES);
71 QCOM_SPI_DPRINTF(sc, QCOM_SPI_DEBUG_HW_TRANSFER_SETUP,
78 sc->config.input_block_size = 4;
80 sc->config.input_block_size = val * 16;
86 sc->config.output_block_size = 4;
88 sc->config.output_block_size = val * 16;
93 sc->config.input_fifo_size =
94 sc->config.input_block_size * (2 << val);
99 sc
106 qcom_spi_hw_qup_is_state_valid_locked(struct qcom_spi_softc *sc) argument
119 qcom_spi_hw_qup_wait_state_valid_locked(struct qcom_spi_softc *sc) argument
136 qcom_spi_hw_is_opmode_dma_locked(struct qcom_spi_softc *sc) argument
149 qcom_spi_hw_qup_set_state_locked(struct qcom_spi_softc *sc, uint32_t state) argument
207 qcom_spi_hw_qup_init_locked(struct qcom_spi_softc *sc) argument
246 qcom_spi_hw_spi_init_locked(struct qcom_spi_softc *sc) argument
282 qcom_spi_hw_spi_cs_force(struct qcom_spi_softc *sc, int cs, bool enable) argument
309 qcom_spi_hw_interrupt_handle(struct qcom_spi_softc *sc) argument
378 qcom_spi_hw_setup_transfer_selection(struct qcom_spi_softc *sc, uint32_t len) argument
414 qcom_spi_hw_complete_transfer(struct qcom_spi_softc *sc) argument
436 qcom_spi_hw_setup_current_transfer(struct qcom_spi_softc *sc) argument
500 qcom_spi_hw_setup_pio_transfer_cnt(struct qcom_spi_softc *sc) argument
527 qcom_spi_hw_setup_block_transfer_cnt(struct qcom_spi_softc *sc) argument
542 qcom_spi_hw_setup_io_modes(struct qcom_spi_softc *sc) argument
582 qcom_spi_hw_setup_spi_io_clock_polarity(struct qcom_spi_softc *sc, bool cpol) argument
606 qcom_spi_hw_setup_spi_config(struct qcom_spi_softc *sc, uint32_t clock_val, bool cpha) argument
648 qcom_spi_hw_setup_qup_config(struct qcom_spi_softc *sc, bool is_tx, bool is_rx) argument
685 qcom_spi_hw_setup_operational_mask(struct qcom_spi_softc *sc) argument
711 qcom_spi_hw_ack_write_pio_fifo(struct qcom_spi_softc *sc) argument
721 qcom_spi_hw_ack_opmode(struct qcom_spi_softc *sc) argument
742 qcom_spi_hw_write_from_tx_buf(struct qcom_spi_softc *sc, int shift, uint32_t *val) argument
762 qcom_spi_hw_write_pio_fifo(struct qcom_spi_softc *sc) argument
834 qcom_spi_hw_write_pio_block(struct qcom_spi_softc *sc) argument
847 qcom_spi_hw_read_into_rx_buf(struct qcom_spi_softc *sc, uint8_t val) argument
869 qcom_spi_hw_read_pio_fifo(struct qcom_spi_softc *sc) argument
965 qcom_spi_hw_read_pio_block(struct qcom_spi_softc *sc) argument
973 qcom_spi_hw_do_full_reset(struct qcom_spi_softc *sc) argument
[all...]
/freebsd-current/sys/dev/xdma/
H A Dxdma_fdt_test.c92 struct xdmatest_softc *sc; local
94 sc = arg;
96 sc->done = 1;
98 mtx_lock(&sc->mtx);
99 wakeup(sc);
100 mtx_unlock(&sc->mtx);
118 xdmatest_alloc_test_memory(struct xdmatest_softc *sc) argument
122 sc->len = (0x1000000 - 8); /* 16mb */
123 sc->len = 8;
128 bus_get_dma_tag(sc
197 xdmatest_test(struct xdmatest_softc *sc) argument
255 xdmatest_verify(struct xdmatest_softc *sc) argument
292 struct xdmatest_softc *sc; local
338 struct xdmatest_softc *sc; local
369 struct xdmatest_softc *sc; local
396 struct xdmatest_softc *sc; local
[all...]
/freebsd-current/sys/dev/altera/sdcard/
H A Daltera_sdcard.c77 altera_sdcard_attach(struct altera_sdcard_softc *sc) argument
80 ALTERA_SDCARD_LOCK_INIT(sc);
81 ALTERA_SDCARD_CONDVAR_INIT(sc);
82 sc->as_disk = NULL;
83 bioq_init(&sc->as_bioq);
84 sc->as_currentbio = NULL;
85 sc->as_state = ALTERA_SDCARD_STATE_NOCARD;
86 sc->as_taskqueue = taskqueue_create("altera_sdcardc taskq", M_WAITOK,
87 taskqueue_thread_enqueue, &sc->as_taskqueue);
88 taskqueue_start_threads(&sc
102 altera_sdcard_detach(struct altera_sdcard_softc *sc) argument
152 altera_sdcard_nextio(struct altera_sdcard_softc *sc) argument
168 altera_sdcard_task_nocard(struct altera_sdcard_softc *sc) argument
210 altera_sdcard_task_badcard(struct altera_sdcard_softc *sc) argument
232 altera_sdcard_task_idle(struct altera_sdcard_softc *sc) argument
255 altera_sdcard_task_io(struct altera_sdcard_softc *sc) argument
316 altera_sdcard_task_rechedule(struct altera_sdcard_softc *sc) argument
357 struct altera_sdcard_softc *sc; local
398 altera_sdcard_start(struct altera_sdcard_softc *sc) argument
[all...]
/freebsd-current/sys/dev/uart/
H A Duart_core.c94 uart_pps_print_mode(struct uart_softc *sc) argument
97 device_printf(sc->sc_dev, "PPS capture mode: ");
98 switch(sc->sc_pps_mode & UART_PPS_SIGNAL_MASK) {
112 if (sc->sc_pps_mode & UART_PPS_INVERT_PULSE)
114 if (sc->sc_pps_mode & UART_PPS_NARROW_PULSE)
122 struct uart_softc *sc; local
125 sc = arg1;
126 tmp = sc->sc_pps_mode;
132 sc->sc_pps_mode = tmp;
137 uart_pps_process(struct uart_softc *sc, in argument
186 uart_pps_init(struct uart_softc *sc) argument
268 uart_sched_softih(struct uart_softc *sc, uint32_t ipend) argument
293 struct uart_softc *sc = arg; local
324 struct uart_softc *sc = arg; local
343 struct uart_softc *sc = arg; local
376 struct uart_softc *sc = arg; local
413 struct uart_softc *sc = arg; local
425 struct uart_softc *sc = arg; local
479 struct uart_softc *sc; local
488 struct uart_softc *sc; local
497 struct uart_softc *sc; local
574 struct uart_softc *sc, *sc0; local
770 struct uart_softc *sc; local
809 struct uart_softc *sc; local
[all...]
/freebsd-current/usr.sbin/bhyve/
H A Dtpm_ppi.h15 int (*init)(void **sc);
16 void (*deinit)(void *sc);
17 int (*write_dsdt_regions)(void *sc);
18 int (*write_dsdt_dsm)(void *sc);
/freebsd-current/sys/dev/ath/
H A Dif_ath_tx_edma.h34 extern void ath_xmit_setup_edma(struct ath_softc *sc);
H A Dif_ath_rx_edma.h34 extern void ath_recv_setup_edma(struct ath_softc *sc);
H A Dif_ath_spectral.h34 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 Dif_ath_btcoex.h38 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 Dif_ath_btcoex_mci.h34 extern int ath_btcoex_mci_attach(struct ath_softc *sc);
35 extern int ath_btcoex_mci_detach(struct ath_softc *sc);
36 extern int ath_btcoex_mci_enable(struct ath_softc *sc,
38 extern void ath_btcoex_mci_intr(struct ath_softc *sc);
/freebsd-current/sys/dev/etherswitch/arswitch/
H A Darswitch_8216.h31 extern void ar8216_attach(struct arswitch_softc *sc);
H A Darswitch_8226.h31 extern void ar8226_attach(struct arswitch_softc *sc);
H A Darswitch_8316.h31 extern void ar8316_attach(struct arswitch_softc *sc);
/freebsd-current/sys/dev/qcom_tlmm/
H A Dqcom_tlmm_debug.h33 #define QCOM_TLMM_DPRINTF(sc, flags, ...) \
35 if ((sc)->sc_debug & flags) \
36 device_printf((sc)->dev, __VA_ARGS__); \
39 extern void qcom_tlmm_debug_sysctl_attach(struct qcom_tlmm_softc *sc);
/freebsd-current/sys/dev/oce/
H A Doce_hw.c44 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
150 oce_hw_pci_free(POCE_SOFTC sc) argument
195 oce_get_pci_capabilities(POCE_SOFTC sc) argument
235 oce_hw_pci_alloc(POCE_SOFTC sc) argument
328 oce_hw_shutdown(POCE_SOFTC sc) argument
361 oce_create_nw_interface(POCE_SOFTC sc) argument
428 oce_delete_nw_interface(POCE_SOFTC sc) argument
443 oce_pci_soft_reset(POCE_SOFTC sc) argument
463 oce_hw_start(POCE_SOFTC sc) argument
504 oce_hw_intr_enable(POCE_SOFTC sc) argument
519 oce_hw_intr_disable(POCE_SOFTC sc) argument
547 oce_hw_update_multicast(POCE_SOFTC sc) argument
[all...]

Completed in 350 milliseconds

1234567891011>>