Home
last modified time | relevance | path

Searched refs:sc (Results 1 – 25 of 2522) sorted by relevance

12345678910>>...101

/freebsd-13-stable/sys/dev/iicbus/twsi/
HDtwsi.c87 #define debugf(sc, fmt, args...) if ((sc)->debug) \ argument
88 device_printf((sc)->dev, "%s: " fmt, __func__, ##args)
97 TWSI_READ(struct twsi_softc *sc, bus_size_t off) in TWSI_READ() argument
101 val = bus_read_4(sc->res[0], off); in TWSI_READ()
102 if (sc->debug > 1) in TWSI_READ()
103 debugf(sc, "read %x from %lx\n", val, off); in TWSI_READ()
108 TWSI_WRITE(struct twsi_softc *sc, bus_size_t off, uint32_t val) in TWSI_WRITE() argument
111 if (sc->debug > 1) in TWSI_WRITE()
112 debugf(sc, "Writing %x to %lx\n", val, off); in TWSI_WRITE()
113 bus_write_4(sc->res[0], off, val); in TWSI_WRITE()
[all …]
/freebsd-13-stable/sys/dev/tws/
HDtws.c52 extern int tws_cam_attach(struct tws_softc *sc);
53 extern void tws_cam_detach(struct tws_softc *sc);
54 extern int tws_init_ctlr(struct tws_softc *sc);
55 extern boolean tws_ctlr_ready(struct tws_softc *sc);
56 extern void tws_turn_off_interrupts(struct tws_softc *sc);
57 extern void tws_q_insert_tail(struct tws_softc *sc, struct tws_request *req,
59 extern struct tws_request *tws_q_remove_request(struct tws_softc *sc,
61 extern struct tws_request *tws_q_remove_head(struct tws_softc *sc,
63 extern boolean tws_get_response(struct tws_softc *sc, u_int16_t *req_id);
64 extern boolean tws_ctlr_reset(struct tws_softc *sc);
[all …]
/freebsd-13-stable/sys/dev/uart/
HDuart_core.c96 uart_pps_print_mode(struct uart_softc *sc) in uart_pps_print_mode() argument
99 device_printf(sc->sc_dev, "PPS capture mode: "); in uart_pps_print_mode()
100 switch(sc->sc_pps_mode & UART_PPS_SIGNAL_MASK) { in uart_pps_print_mode()
114 if (sc->sc_pps_mode & UART_PPS_INVERT_PULSE) in uart_pps_print_mode()
116 if (sc->sc_pps_mode & UART_PPS_NARROW_PULSE) in uart_pps_print_mode()
124 struct uart_softc *sc; in uart_pps_mode_sysctl() local
127 sc = arg1; in uart_pps_mode_sysctl()
128 tmp = sc->sc_pps_mode; in uart_pps_mode_sysctl()
134 sc->sc_pps_mode = tmp; in uart_pps_mode_sysctl()
139 uart_pps_process(struct uart_softc *sc, int ser_sig) in uart_pps_process() argument
[all …]
/freebsd-13-stable/sys/dev/ath/
HDif_ath.c182 static void ath_txq_init(struct ath_softc *sc, struct ath_txq *, int);
187 static int ath_tx_processq(struct ath_softc *sc, struct ath_txq *txq,
260 ath_legacy_attach_comp_func(struct ath_softc *sc) in ath_legacy_attach_comp_func() argument
268 switch (sc->sc_txqsetup &~ (1<<sc->sc_cabq->axq_qnum)) { in ath_legacy_attach_comp_func()
270 TASK_INIT(&sc->sc_txtask, 0, ath_tx_proc_q0, sc); in ath_legacy_attach_comp_func()
273 TASK_INIT(&sc->sc_txtask, 0, ath_tx_proc_q0123, sc); in ath_legacy_attach_comp_func()
276 TASK_INIT(&sc->sc_txtask, 0, ath_tx_proc, sc); in ath_legacy_attach_comp_func()
298 _ath_power_setpower(struct ath_softc *sc, int power_state, int selfgen, in _ath_power_setpower() argument
301 ATH_LOCK_ASSERT(sc); in _ath_power_setpower()
303 DPRINTF(sc, ATH_DEBUG_PWRSAVE, "%s: (%s:%d) state=%d, refcnt=%d, target=%d, cur=%d\n", in _ath_power_setpower()
[all …]
HDif_ath_rx_edma.c149 static int ath_edma_rxfifo_alloc(struct ath_softc *sc, HAL_RX_QUEUE qtype,
151 static int ath_edma_rxfifo_flush(struct ath_softc *sc, HAL_RX_QUEUE qtype);
152 static void ath_edma_rxbuf_free(struct ath_softc *sc, struct ath_buf *bf);
153 static void ath_edma_recv_proc_queue(struct ath_softc *sc,
155 static int ath_edma_recv_proc_deferred_queue(struct ath_softc *sc,
159 ath_edma_stoprecv(struct ath_softc *sc, int dodelay) in ath_edma_stoprecv() argument
161 struct ath_hal *ah = sc->sc_ah; in ath_edma_stoprecv()
163 DPRINTF(sc, ATH_DEBUG_EDMA_RX, "%s: called, dodelay=%d\n", in ath_edma_stoprecv()
166 ATH_RX_LOCK(sc); in ath_edma_stoprecv()
175 sc->sc_rx_stopped = 1; in ath_edma_stoprecv()
[all …]
/freebsd-13-stable/sys/dev/cyapa/
HDcyapa.c214 struct cyapa_softc *sc; member
220 static int cyapa_raw_input(struct cyapa_softc *sc, struct cyapa_regs *regs,
222 static void cyapa_set_power_mode(struct cyapa_softc *sc, int mode);
224 static int fifo_empty(struct cyapa_softc *sc, struct cyapa_fifo *fifo);
225 static size_t fifo_ready(struct cyapa_softc *sc, struct cyapa_fifo *fifo);
226 static char *fifo_read(struct cyapa_softc *sc, struct cyapa_fifo *fifo,
228 static char *fifo_write(struct cyapa_softc *sc, struct cyapa_fifo *fifo,
230 static uint8_t fifo_read_char(struct cyapa_softc *sc,
232 static void fifo_write_char(struct cyapa_softc *sc, struct cyapa_fifo *fifo,
234 static size_t fifo_space(struct cyapa_softc *sc, struct cyapa_fifo *fifo);
[all …]
/freebsd-13-stable/sys/dev/mrsas/
HDmrsas.c68 static int mrsas_setup_msix(struct mrsas_softc *sc);
69 static int mrsas_allocate_msix(struct mrsas_softc *sc);
70 static void mrsas_shutdown_ctlr(struct mrsas_softc *sc, u_int32_t opcode);
71 static void mrsas_flush_cache(struct mrsas_softc *sc);
72 static void mrsas_reset_reply_desc(struct mrsas_softc *sc);
74 static int mrsas_get_map_info(struct mrsas_softc *sc);
75 static int mrsas_get_ld_map_info(struct mrsas_softc *sc);
76 static int mrsas_sync_map_info(struct mrsas_softc *sc);
77 static int mrsas_get_pd_list(struct mrsas_softc *sc);
78 static int mrsas_get_ld_list(struct mrsas_softc *sc);
[all …]
/freebsd-13-stable/sys/arm/broadcom/bcm2835/
HDbcm2835_bsc.c113 #define DEVICE_DEBUGF(sc, lvl, fmt, args...) \ argument
114 if ((lvl) <= (sc)->sc_debug) \
115 device_printf((sc)->sc_dev, fmt, ##args)
117 #define DEBUGF(sc, lvl, fmt, args...) \ argument
118 if ((lvl) <= (sc)->sc_debug) \
125 bcm_bsc_modifyreg(struct bcm_bsc_softc *sc, uint32_t off, uint32_t mask, in bcm_bsc_modifyreg() argument
130 mtx_assert(&sc->sc_mtx, MA_OWNED); in bcm_bsc_modifyreg()
131 reg = BCM_BSC_READ(sc, off); in bcm_bsc_modifyreg()
134 BCM_BSC_WRITE(sc, off, reg); in bcm_bsc_modifyreg()
140 struct bcm_bsc_softc *sc; in bcm_bsc_clock_proc() local
[all …]
/freebsd-13-stable/sys/dev/cfi/
HDcfi_core.c67 cfi_read_raw(struct cfi_softc *sc, u_int ofs) in cfi_read_raw() argument
71 ofs &= ~(sc->sc_width - 1); in cfi_read_raw()
72 switch (sc->sc_width) { in cfi_read_raw()
74 val = bus_space_read_1(sc->sc_tag, sc->sc_handle, ofs); in cfi_read_raw()
77 val = bus_space_read_2(sc->sc_tag, sc->sc_handle, ofs); in cfi_read_raw()
80 val = bus_space_read_4(sc->sc_tag, sc->sc_handle, ofs); in cfi_read_raw()
90 cfi_read(struct cfi_softc *sc, u_int ofs) in cfi_read() argument
95 ofs &= ~(sc->sc_width - 1); in cfi_read()
96 switch (sc->sc_width) { in cfi_read()
98 val = bus_space_read_1(sc->sc_tag, sc->sc_handle, ofs); in cfi_read()
[all …]
/freebsd-13-stable/sys/dev/rtsx/
HDrtsx.c89 void (*rtsx_intr_trans_ok)(struct rtsx_softc *sc);
91 void (*rtsx_intr_trans_ko)(struct rtsx_softc *sc);
203 static int rtsx_dma_alloc(struct rtsx_softc *sc);
205 static void rtsx_dma_free(struct rtsx_softc *sc);
207 static void rtsx_handle_card_present(struct rtsx_softc *sc);
209 static bool rtsx_is_card_present(struct rtsx_softc *sc);
210 static int rtsx_init(struct rtsx_softc *sc);
212 static int rtsx_rts5227_fill_driving(struct rtsx_softc *sc);
213 static int rtsx_rts5249_fill_driving(struct rtsx_softc *sc);
214 static int rtsx_rts5260_fill_driving(struct rtsx_softc *sc);
[all …]
/freebsd-13-stable/sys/dev/esp/
HDncr53c9x.c135 static void ncr53c9x_abort(struct ncr53c9x_softc *sc,
141 static void ncr53c9x_clear(struct ncr53c9x_softc *sc, cam_status result);
142 static void ncr53c9x_clear_target(struct ncr53c9x_softc *sc, int target,
144 static void ncr53c9x_dequeue(struct ncr53c9x_softc *sc,
146 static void ncr53c9x_done(struct ncr53c9x_softc *sc,
148 static void ncr53c9x_free_ecb(struct ncr53c9x_softc *sc,
150 static void ncr53c9x_msgin(struct ncr53c9x_softc *sc);
151 static void ncr53c9x_msgout(struct ncr53c9x_softc *sc);
152 static void ncr53c9x_init(struct ncr53c9x_softc *sc, int doreset);
153 static void ncr53c9x_intr1(struct ncr53c9x_softc *sc);
[all …]
/freebsd-13-stable/sys/dev/altera/jtag_uart/
HDaltera_jtag_uart_tty.c132 aju_data_read(struct altera_jtag_uart_softc *sc) in aju_data_read() argument
135 return (le32toh(bus_read_4(sc->ajus_mem_res, in aju_data_read()
140 aju_data_write(struct altera_jtag_uart_softc *sc, uint32_t v) in aju_data_write() argument
143 bus_write_4(sc->ajus_mem_res, ALTERA_JTAG_UART_DATA_OFF, htole32(v)); in aju_data_write()
147 aju_control_read(struct altera_jtag_uart_softc *sc) in aju_control_read() argument
150 return (le32toh(bus_read_4(sc->ajus_mem_res, in aju_control_read()
155 aju_control_write(struct altera_jtag_uart_softc *sc, uint32_t v) in aju_control_write() argument
158 bus_write_4(sc->ajus_mem_res, ALTERA_JTAG_UART_CONTROL_OFF, in aju_control_write()
166 aju_writable(struct altera_jtag_uart_softc *sc) in aju_writable() argument
169 return ((aju_control_read(sc) & in aju_writable()
[all …]
/freebsd-13-stable/sys/dev/altera/sdcard/
HDaltera_sdcard.c78 altera_sdcard_attach(struct altera_sdcard_softc *sc) in altera_sdcard_attach() argument
81 ALTERA_SDCARD_LOCK_INIT(sc); in altera_sdcard_attach()
82 ALTERA_SDCARD_CONDVAR_INIT(sc); in altera_sdcard_attach()
83 sc->as_disk = NULL; in altera_sdcard_attach()
84 bioq_init(&sc->as_bioq); in altera_sdcard_attach()
85 sc->as_currentbio = NULL; in altera_sdcard_attach()
86 sc->as_state = ALTERA_SDCARD_STATE_NOCARD; in altera_sdcard_attach()
87 sc->as_taskqueue = taskqueue_create("altera_sdcardc taskq", M_WAITOK, in altera_sdcard_attach()
88 taskqueue_thread_enqueue, &sc->as_taskqueue); in altera_sdcard_attach()
89 taskqueue_start_threads(&sc->as_taskqueue, 1, PI_DISK, in altera_sdcard_attach()
[all …]
/freebsd-13-stable/sys/dev/sbni/
HDif_sbni.c134 sbni_inb(struct sbni_softc *sc, enum sbni_reg reg) in sbni_inb() argument
137 rman_get_bustag(sc->io_res), in sbni_inb()
138 rman_get_bushandle(sc->io_res), in sbni_inb()
139 sc->io_off + reg); in sbni_inb()
143 sbni_outb(struct sbni_softc *sc, enum sbni_reg reg, u_char value) in sbni_outb() argument
146 rman_get_bustag(sc->io_res), in sbni_outb()
147 rman_get_bushandle(sc->io_res), in sbni_outb()
148 sc->io_off + reg, value); in sbni_outb()
152 sbni_insb(struct sbni_softc *sc, u_char *to, u_int len) in sbni_insb() argument
155 rman_get_bustag(sc->io_res), in sbni_insb()
[all …]
/freebsd-13-stable/sys/dev/cadence/
HDif_cgem.c220 #define RD4(sc, off) (bus_read_4((sc)->mem_res, (off))) argument
221 #define WR4(sc, off, val) (bus_write_4((sc)->mem_res, (off), (val))) argument
222 #define BARRIER(sc, off, len, flags) \ argument
223 (bus_barrier((sc)->mem_res, (off), (len), (flags))
225 #define CGEM_LOCK(sc) mtx_lock(&(sc)->sc_mtx) argument
226 #define CGEM_UNLOCK(sc) mtx_unlock(&(sc)->sc_mtx) argument
227 #define CGEM_LOCK_INIT(sc) mtx_init(&(sc)->sc_mtx, \ argument
228 device_get_nameunit((sc)->dev), MTX_NETWORK_LOCK, MTX_DEF)
229 #define CGEM_LOCK_DESTROY(sc) mtx_destroy(&(sc)->sc_mtx) argument
230 #define CGEM_ASSERT_LOCKED(sc) mtx_assert(&(sc)->sc_mtx, MA_OWNED) argument
[all …]
/freebsd-13-stable/sys/dev/ffec/
HDif_ffec.c197 #define FFEC_LOCK(sc) mtx_lock(&(sc)->mtx) argument
198 #define FFEC_UNLOCK(sc) mtx_unlock(&(sc)->mtx) argument
199 #define FFEC_LOCK_INIT(sc) mtx_init(&(sc)->mtx, \ argument
200 device_get_nameunit((sc)->dev), MTX_NETWORK_LOCK, MTX_DEF)
201 #define FFEC_LOCK_DESTROY(sc) mtx_destroy(&(sc)->mtx); argument
202 #define FFEC_ASSERT_LOCKED(sc) mtx_assert(&(sc)->mtx, MA_OWNED); argument
203 #define FFEC_ASSERT_UNLOCKED(sc) mtx_assert(&(sc)->mtx, MA_NOTOWNED); argument
205 static void ffec_init_locked(struct ffec_softc *sc);
206 static void ffec_stop_locked(struct ffec_softc *sc);
207 static void ffec_txstart_locked(struct ffec_softc *sc);
[all …]
/freebsd-13-stable/sys/dev/hdmi/
HDdwc_hdmi.c73 dwc_hdmi_phy_wait_i2c_done(struct dwc_hdmi_softc *sc, int msec) in dwc_hdmi_phy_wait_i2c_done() argument
77 val = RD1(sc, HDMI_IH_I2CMPHY_STAT0) & in dwc_hdmi_phy_wait_i2c_done()
84 val = RD1(sc, HDMI_IH_I2CMPHY_STAT0) & in dwc_hdmi_phy_wait_i2c_done()
90 dwc_hdmi_phy_i2c_write(struct dwc_hdmi_softc *sc, unsigned short data, in dwc_hdmi_phy_i2c_write() argument
95 WR1(sc, HDMI_IH_I2CMPHY_STAT0, in dwc_hdmi_phy_i2c_write()
97 WR1(sc, HDMI_PHY_I2CM_ADDRESS_ADDR, addr); in dwc_hdmi_phy_i2c_write()
98 WR1(sc, HDMI_PHY_I2CM_DATAO_1_ADDR, ((data >> 8) & 0xff)); in dwc_hdmi_phy_i2c_write()
99 WR1(sc, HDMI_PHY_I2CM_DATAO_0_ADDR, ((data >> 0) & 0xff)); in dwc_hdmi_phy_i2c_write()
100 WR1(sc, HDMI_PHY_I2CM_OPERATION_ADDR, HDMI_PHY_I2CM_OPERATION_ADDR_WRITE); in dwc_hdmi_phy_i2c_write()
101 dwc_hdmi_phy_wait_i2c_done(sc, 1000); in dwc_hdmi_phy_i2c_write()
[all …]
/freebsd-13-stable/sys/dev/oce/
HDoce_hw.c44 static int oce_POST(POCE_SOFTC sc);
51 oce_POST(POCE_SOFTC sc) in oce_POST() argument
57 post_status.dw0 = OCE_READ_CSR_MPU(sc, csr, MPU_EP_SEMAPHORE(sc)); in oce_POST()
62 OCE_WRITE_CSR_MPU(sc, csr, MPU_EP_SEMAPHORE(sc), post_status.dw0); in oce_POST()
72 post_status.dw0 = OCE_READ_CSR_MPU(sc, csr, MPU_EP_SEMAPHORE(sc)); in oce_POST()
74 device_printf(sc->dev, in oce_POST()
82 device_printf(sc->dev, "POST timed out: %x\n", post_status.dw0); in oce_POST()
92 oce_hw_init(POCE_SOFTC sc) in oce_hw_init() argument
96 rc = oce_POST(sc); in oce_hw_init()
101 rc = oce_dma_alloc(sc, sizeof(struct oce_bmbx), &sc->bsmbx, 0); in oce_hw_init()
[all …]
/freebsd-13-stable/sys/dev/dme/
HDif_dme.c128 dme_read_reg(struct dme_softc *sc, uint8_t reg) in dme_read_reg() argument
132 bus_space_write_1(sc->dme_tag, sc->dme_handle, CMD_ADDR, reg); in dme_read_reg()
133 bus_space_barrier(sc->dme_tag, sc->dme_handle, CMD_ADDR, 1, in dme_read_reg()
137 return bus_space_read_1(sc->dme_tag, sc->dme_handle, DATA_ADDR); in dme_read_reg()
141 dme_write_reg(struct dme_softc *sc, uint8_t reg, uint8_t value) in dme_write_reg() argument
145 bus_space_write_1(sc->dme_tag, sc->dme_handle, CMD_ADDR, reg); in dme_write_reg()
146 bus_space_barrier(sc->dme_tag, sc->dme_handle, CMD_ADDR, 1, in dme_write_reg()
150 bus_space_write_1(sc->dme_tag, sc->dme_handle, DATA_ADDR, value); in dme_write_reg()
151 bus_space_barrier(sc->dme_tag, sc->dme_handle, DATA_ADDR, 1, in dme_write_reg()
156 dme_reset(struct dme_softc *sc) in dme_reset() argument
[all …]
/freebsd-13-stable/sys/dev/bge/
HDif_bge.c363 #define BGE_IS_JUMBO_CAPABLE(sc) ((sc)->bge_flags & BGE_FLAG_JUMBO) argument
364 #define BGE_IS_5700_FAMILY(sc) ((sc)->bge_flags & BGE_FLAG_5700_FAMILY) argument
365 #define BGE_IS_5705_PLUS(sc) ((sc)->bge_flags & BGE_FLAG_5705_PLUS) argument
366 #define BGE_IS_5714_FAMILY(sc) ((sc)->bge_flags & BGE_FLAG_5714_FAMILY) argument
367 #define BGE_IS_575X_PLUS(sc) ((sc)->bge_flags & BGE_FLAG_575X_PLUS) argument
368 #define BGE_IS_5755_PLUS(sc) ((sc)->bge_flags & BGE_FLAG_5755_PLUS) argument
369 #define BGE_IS_5717_PLUS(sc) ((sc)->bge_flags & BGE_FLAG_5717_PLUS) argument
370 #define BGE_IS_57765_PLUS(sc) ((sc)->bge_flags & BGE_FLAG_57765_PLUS) argument
393 static int bge_get_eaddr_fw(struct bge_softc *sc, uint8_t ether_addr[]);
548 bge_has_eaddr(struct bge_softc *sc) in bge_has_eaddr() argument
[all …]
/freebsd-13-stable/sys/powerpc/powermac/
HDcuda.c77 static void cuda_send_inbound(struct cuda_softc *sc);
78 static void cuda_send_outbound(struct cuda_softc *sc);
120 static uint8_t cuda_read_reg(struct cuda_softc *sc, u_int offset);
121 static void cuda_write_reg(struct cuda_softc *sc, u_int offset, uint8_t value);
146 struct cuda_softc *sc; in cuda_attach() local
152 sc = device_get_softc(dev); in cuda_attach()
153 sc->sc_dev = dev; in cuda_attach()
155 sc->sc_memrid = 0; in cuda_attach()
156 sc->sc_memr = bus_alloc_resource_any(dev, SYS_RES_MEMORY, in cuda_attach()
157 &sc->sc_memrid, RF_ACTIVE); in cuda_attach()
[all …]
/freebsd-13-stable/sys/dev/gem/
HDif_gem.c99 static int gem_add_rxbuf(struct gem_softc *sc, int idx);
100 static int gem_bitwait(struct gem_softc *sc, bus_addr_t r, uint32_t clr,
104 static int gem_disable_rx(struct gem_softc *sc);
105 static int gem_disable_tx(struct gem_softc *sc);
106 static void gem_eint(struct gem_softc *sc, u_int status);
108 static void gem_init_locked(struct gem_softc *sc);
109 static void gem_init_regs(struct gem_softc *sc);
111 static int gem_load_txmbuf(struct gem_softc *sc, struct mbuf **m_head);
112 static int gem_meminit(struct gem_softc *sc);
113 static void gem_mifinit(struct gem_softc *sc);
[all …]
/freebsd-13-stable/sys/dev/dc/
HDif_dc.c359 #define DC_SETBIT(sc, reg, x) \ argument
360 CSR_WRITE_4(sc, reg, CSR_READ_4(sc, reg) | (x))
362 #define DC_CLRBIT(sc, reg, x) \ argument
363 CSR_WRITE_4(sc, reg, CSR_READ_4(sc, reg) & ~(x))
365 #define SIO_SET(x) DC_SETBIT(sc, DC_SIO, (x))
366 #define SIO_CLR(x) DC_CLRBIT(sc, DC_SIO, (x))
369 dc_delay(struct dc_softc *sc) in dc_delay() argument
374 CSR_READ_4(sc, DC_BUSCTL); in dc_delay()
378 dc_eeprom_width(struct dc_softc *sc) in dc_eeprom_width() argument
383 dc_eeprom_idle(sc); in dc_eeprom_width()
[all …]
/freebsd-13-stable/sys/dev/smc/
HDif_smc.c83 #define SMC_LOCK(sc) mtx_lock(&(sc)->smc_mtx) argument
84 #define SMC_UNLOCK(sc) mtx_unlock(&(sc)->smc_mtx) argument
85 #define SMC_ASSERT_LOCKED(sc) mtx_assert(&(sc)->smc_mtx, MA_OWNED) argument
149 smc_select_bank(struct smc_softc *sc, uint16_t bank) in smc_select_bank() argument
152 bus_barrier(sc->smc_reg, BSR, 2, in smc_select_bank()
154 bus_write_2(sc->smc_reg, BSR, bank & BSR_BANK_MASK); in smc_select_bank()
155 bus_barrier(sc->smc_reg, BSR, 2, in smc_select_bank()
161 smc_mmu_wait(struct smc_softc *sc) in smc_mmu_wait() argument
164 KASSERT((bus_read_2(sc->smc_reg, BSR) & in smc_mmu_wait()
166 device_get_nameunit(sc->smc_dev))); in smc_mmu_wait()
[all …]
/freebsd-13-stable/sys/dev/xdma/
HDxdma_fdt_test.c93 struct xdmatest_softc *sc; in xdmatest_intr() local
95 sc = arg; in xdmatest_intr()
97 sc->done = 1; in xdmatest_intr()
99 mtx_lock(&sc->mtx); in xdmatest_intr()
100 wakeup(sc); in xdmatest_intr()
101 mtx_unlock(&sc->mtx); in xdmatest_intr()
119 xdmatest_alloc_test_memory(struct xdmatest_softc *sc) in xdmatest_alloc_test_memory() argument
123 sc->len = (0x1000000 - 8); /* 16mb */ in xdmatest_alloc_test_memory()
124 sc->len = 8; in xdmatest_alloc_test_memory()
129 bus_get_dma_tag(sc->dev), in xdmatest_alloc_test_memory()
[all …]

12345678910>>...101