/freebsd-current/sys/powerpc/powermac/ |
H A D | cuda.c | 76 static void cuda_send_inbound(struct cuda_softc *sc); 77 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 261 struct cuda_softc *sc; local 274 cuda_read_reg(struct cuda_softc *sc, u_int offset) argument 279 cuda_write_reg(struct cuda_softc *sc, u_int offset, uint8_t value) argument 284 cuda_idle(struct cuda_softc *sc) argument 294 cuda_tip(struct cuda_softc *sc) argument 304 cuda_clear_tip(struct cuda_softc *sc) argument 314 cuda_in(struct cuda_softc *sc) argument 324 cuda_out(struct cuda_softc *sc) argument 334 cuda_toggle_ack(struct cuda_softc *sc) argument 344 cuda_ack_off(struct cuda_softc *sc) argument 354 cuda_intr_state(struct cuda_softc *sc) argument 362 struct cuda_softc *sc = cookie; local 404 cuda_send_outbound(struct cuda_softc *sc) argument 437 cuda_send_inbound(struct cuda_softc *sc) argument 505 struct cuda_softc *sc = device_get_softc(dev); local 519 struct cuda_softc *sc; local 708 struct cuda_softc *sc = device_get_softc(dev); local 725 struct cuda_softc *sc = device_get_softc(dev); local 747 struct cuda_softc *sc = xsc; local 769 struct cuda_softc *sc = device_get_softc(dev); local 788 struct cuda_softc *sc = device_get_softc(dev); local [all...] |
/freebsd-current/sys/dev/rtwn/rtl8192c/usb/ |
H A D | r92cu_attach.c | 63 r92cu_postattach(struct rtwn_softc *sc) argument 65 struct r92c_softc *rs = sc->sc_priv; 66 struct ieee80211com *ic = &sc->sc_ic; 70 sc->agc_prog = &rtl8188ru_agc[0]; 71 sc->agc_size = nitems(rtl8188ru_agc); 74 sc->agc_prog = &rtl8192ce_agc[0]; 75 sc->agc_size = nitems(rtl8192ce_agc); 81 sc->fwname = "rtwn-rtl8192cfwU"; 83 sc->fwname = "rtwn-rtl8192cfwT"; 85 sc 94 r92cu_set_name(struct rtwn_softc *sc, uint8_t *buf) argument 110 r92cu_attach_private(struct rtwn_softc *sc) argument 140 r92cu_adj_devcaps(struct rtwn_softc *sc) argument 149 struct rtwn_softc *sc = &uc->uc_sc; local [all...] |
/freebsd-current/sys/dev/ath/ |
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);
|
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_beacon.h | 36 extern int ath_beaconq_setup(struct ath_softc *sc); 37 extern int ath_beaconq_config(struct ath_softc *sc); 38 extern void ath_beacon_config(struct ath_softc *sc, 40 extern struct ath_buf * ath_beacon_generate(struct ath_softc *sc, 42 extern void ath_beacon_cabq_start(struct ath_softc *sc); 45 extern void ath_beacon_start_adhoc(struct ath_softc *sc, 47 extern int ath_beacon_alloc(struct ath_softc *sc, struct ieee80211_node *ni); 48 extern void ath_beacon_return(struct ath_softc *sc, struct ath_buf *bf); 49 extern void ath_beacon_free(struct ath_softc *sc); 51 extern void ath_beacon_miss(struct ath_softc *sc); [all...] |
/freebsd-current/sys/dev/cadence/ |
H A D | if_cgem.c | 220 #define RD4(sc, off) (bus_read_4((sc)->mem_res, (off))) 221 #define WR4(sc, off, val) (bus_write_4((sc)->mem_res, (off), (val))) 222 #define BARRIER(sc, off, len, flags) \ 223 (bus_barrier((sc)->mem_res, (off), (len), (flags)) 225 #define CGEM_LOCK(sc) mtx_lock(&(sc)->sc_mtx) 226 #define CGEM_UNLOCK(sc) mtx_unlock(&(sc) 244 cgem_get_mac(struct cgem_softc *sc, u_char eaddr[]) argument 336 cgem_rx_filter(struct cgem_softc *sc) argument 376 cgem_null_qs(struct cgem_softc *sc) argument 407 cgem_setup_descs(struct cgem_softc *sc) argument 503 cgem_fill_rqueue(struct cgem_softc *sc) argument 563 cgem_recv(struct cgem_softc *sc) argument 664 cgem_clean_tx(struct cgem_softc *sc) argument 744 struct cgem_softc *sc = (struct cgem_softc *) if_getsoftc(ifp); local 867 struct cgem_softc *sc = (struct cgem_softc *) if_getsoftc(ifp); local 875 cgem_poll_hw_stats(struct cgem_softc *sc) argument 942 struct cgem_softc *sc = (struct cgem_softc *)arg; local 978 struct cgem_softc *sc = (struct cgem_softc *)arg; local 1032 cgem_reset(struct cgem_softc *sc) argument 1071 cgem_config(struct cgem_softc *sc) argument 1140 cgem_init_locked(struct cgem_softc *sc) argument 1165 struct cgem_softc *sc = (struct cgem_softc *)arg; local 1174 cgem_stop(struct cgem_softc *sc) argument 1235 struct cgem_softc *sc = if_getsoftc(ifp); local 1341 struct cgem_softc *sc = (struct cgem_softc *) if_getsoftc(ifp); local 1361 struct cgem_softc *sc = (struct cgem_softc *) if_getsoftc(ifp); local 1375 struct cgem_softc *sc = device_get_softc(dev); local 1408 struct cgem_softc *sc = device_get_softc(dev); local 1433 struct cgem_softc *sc = device_get_softc(dev); local 1447 struct cgem_softc *sc = device_get_softc(dev); local 1472 cgem_mediachange(struct cgem_softc *sc, struct mii_data *mii) argument 1515 struct cgem_softc *sc = device_get_softc(dev); local 1732 struct cgem_softc *sc = device_get_softc(dev); local 1902 struct cgem_softc *sc = device_get_softc(dev); local [all...] |
/freebsd-current/sys/dev/rtwn/rtl8188e/pci/ |
H A D | r88ee_attach.c | 67 r88ee_set_macaddr(struct rtwn_softc *sc, uint8_t *buf) argument 71 IEEE80211_ADDR_COPY(sc->sc_ic.ic_macaddr, rom->diff_d0.pci.macaddr); 75 r88ee_postattach(struct rtwn_softc *sc) argument 77 struct r92c_softc *rs = sc->sc_priv; 78 struct ieee80211com *ic = &sc->sc_ic; 87 r88ee_attach_private(struct rtwn_softc *sc) argument 107 sc->sc_priv = rs; 112 r88ee_adj_devcaps(struct rtwn_softc *sc) argument 120 struct rtwn_softc *sc = &pc->pc_sc; local 133 sc [all...] |
/freebsd-current/usr.sbin/bhyve/amd64/ |
H A D | ps2mouse.h | 35 struct ps2mouse_softc *ps2mouse_init(struct atkbdc_softc *sc); 37 int ps2mouse_read(struct ps2mouse_softc *sc, uint8_t *val); 38 void ps2mouse_write(struct ps2mouse_softc *sc, uint8_t val, int insert); 39 void ps2mouse_toggle(struct ps2mouse_softc *sc, int enable); 40 int ps2mouse_fifocnt(struct ps2mouse_softc *sc); 43 int ps2mouse_snapshot(struct ps2mouse_softc *sc, struct vm_snapshot_meta *meta);
|
/freebsd-current/sys/dev/mrsas/ |
H A D | mrsas.c | 66 static int mrsas_setup_msix(struct mrsas_softc *sc); 67 static int mrsas_allocate_msix(struct mrsas_softc *sc); 68 static void mrsas_shutdown_ctlr(struct mrsas_softc *sc, u_int32_t opcode); 69 static void mrsas_flush_cache(struct mrsas_softc *sc); 70 static void mrsas_reset_reply_desc(struct mrsas_softc *sc); 72 static int mrsas_get_map_info(struct mrsas_softc *sc); 73 static int mrsas_get_ld_map_info(struct mrsas_softc *sc); 74 static int mrsas_sync_map_info(struct mrsas_softc *sc); 75 static int mrsas_get_pd_list(struct mrsas_softc *sc); 76 static int mrsas_get_ld_list(struct mrsas_softc *sc); 246 mrsas_read_reg_with_retries(struct mrsas_softc *sc, int offset) argument 266 mrsas_write_reg(struct mrsas_softc *sc, int offset, u_int32_t value) argument 276 mrsas_read_reg(struct mrsas_softc *sc, int offset) argument 289 mrsas_disable_intr(struct mrsas_softc *sc) argument 300 mrsas_enable_intr(struct mrsas_softc *sc) argument 313 mrsas_clear_intr(struct mrsas_softc *sc) argument 375 mrsas_setup_sysctl(struct mrsas_softc *sc) argument 463 mrsas_get_tunables(struct mrsas_softc *sc) argument 501 mrsas_alloc_evt_log_info_cmd(struct mrsas_softc *sc) argument 543 mrsas_free_evt_log_info_cmd(struct mrsas_softc *sc) argument 564 mrsas_get_seq_num(struct mrsas_softc *sc, struct mrsas_evt_log_info *eli) argument 628 mrsas_register_aen(struct mrsas_softc *sc, u_int32_t seq_num, u_int32_t class_locale_word) argument 739 mrsas_start_aen(struct mrsas_softc *sc) argument 766 mrsas_setup_msix(struct mrsas_softc *sc) argument 803 mrsas_allocate_msix(struct mrsas_softc *sc) argument 830 struct mrsas_softc *sc = device_get_softc(dev); local 990 struct mrsas_softc *sc = (struct mrsas_softc *)arg; local 1058 struct mrsas_softc *sc; local 1146 struct mrsas_softc *sc; local 1185 mrsas_free_mem(struct mrsas_softc *sc) argument 1347 mrsas_teardown_intr(struct mrsas_softc *sc) argument 1414 struct mrsas_softc *sc = NULL; local 1446 struct mrsas_softc *sc; local 1541 struct mrsas_softc *sc; local 1571 mrsas_setup_irq(struct mrsas_softc *sc) argument 1611 struct mrsas_softc *sc = irq_context->sc; local 1647 mrsas_complete_cmd(struct mrsas_softc *sc, u_int32_t MSIxIndex) argument 1844 struct mrsas_softc *sc = cmd->sc; local 1889 mrsas_alloc_mem(struct mrsas_softc *sc) argument 2174 mrsas_setup_raidmap(struct mrsas_softc *sc) argument 2247 megasas_setup_jbod_map(struct mrsas_softc *sc) argument 2324 mrsas_init_fw(struct mrsas_softc *sc) argument 2551 mrsas_init_adapter(struct mrsas_softc *sc) argument 2644 mrsas_alloc_ioc_cmd(struct mrsas_softc *sc) argument 2686 mrsas_free_ioc_cmd(struct mrsas_softc *sc) argument 2703 mrsas_ioc_init(struct mrsas_softc *sc) argument 2822 mrsas_alloc_mpt_cmds(struct mrsas_softc *sc) argument 2912 mrsas_write_64bit_req_desc(struct mrsas_softc *sc, u_int32_t req_desc_lo, u_int32_t req_desc_hi) argument 2933 mrsas_fire_cmd(struct mrsas_softc *sc, u_int32_t req_desc_lo, u_int32_t req_desc_hi) argument 2953 mrsas_transition_to_ready(struct mrsas_softc *sc, int ocr) argument 3065 mrsas_get_mfi_cmd(struct mrsas_softc *sc) argument 3090 struct mrsas_softc *sc; local 3188 mrsas_reset_reply_desc(struct mrsas_softc *sc) argument 3216 mrsas_reset_ctrl(struct mrsas_softc *sc, u_int8_t reset_reason) argument 3455 mrsas_kill_hba(struct mrsas_softc *sc) argument 3474 mrsas_complete_outstanding_ioctls(struct mrsas_softc *sc) argument 3504 mrsas_wait_for_outstanding(struct mrsas_softc *sc, u_int8_t check_reason) argument 3571 struct mrsas_softc *sc = cmd_mfi->sc; local 3607 mrsas_get_ctrl_info(struct mrsas_softc *sc) argument 3684 mrsas_update_ext_vd_details(struct mrsas_softc *sc) argument 3742 mrsas_alloc_ctlr_info_cmd(struct mrsas_softc *sc) argument 3784 mrsas_free_ctlr_info_cmd(struct mrsas_softc *sc) argument 3804 mrsas_issue_polled(struct mrsas_softc *sc, struct mrsas_mfi_cmd *cmd) argument 3850 mrsas_issue_dcmd(struct mrsas_softc *sc, struct mrsas_mfi_cmd *cmd) argument 3872 mrsas_build_mpt_cmd(struct mrsas_softc *sc, struct mrsas_mfi_cmd *cmd) argument 3903 mrsas_build_mptmfi_passthru(struct mrsas_softc *sc, struct mrsas_mfi_cmd *mfi_cmd) argument 3961 mrsas_issue_blocked_cmd(struct mrsas_softc *sc, struct mrsas_mfi_cmd *cmd) argument 4017 mrsas_complete_mptmfi_passthru(struct mrsas_softc *sc, struct mrsas_mfi_cmd *cmd, u_int8_t status) argument 4125 mrsas_wakeup(struct mrsas_softc *sc, struct mrsas_mfi_cmd *cmd) argument 4145 mrsas_shutdown_ctlr(struct mrsas_softc *sc, u_int32_t opcode) argument 4193 mrsas_flush_cache(struct mrsas_softc *sc) argument 4226 megasas_sync_pd_seq_num(struct mrsas_softc *sc, boolean_t pend) argument 4310 mrsas_get_map_info(struct mrsas_softc *sc) argument 4333 mrsas_get_ld_map_info(struct mrsas_softc *sc) argument 4386 mrsas_sync_map_info(struct mrsas_softc *sc) argument 4451 mrsas_get_pd_info(struct mrsas_softc *sc, u_int16_t device_id) argument 4513 mrsas_add_target(struct mrsas_softc *sc, u_int16_t target_id) argument 4541 mrsas_remove_target(struct mrsas_softc *sc, u_int16_t target_id) argument 4560 mrsas_get_pd_list(struct mrsas_softc *sc) argument 4670 mrsas_get_ld_list(struct mrsas_softc *sc) argument 4772 mrsas_alloc_tmp_dcmd(struct mrsas_softc *sc, struct mrsas_tmp_dcmd *tcmd, int size) argument 4832 mrsas_issue_blocked_abort_cmd(struct mrsas_softc *sc, struct mrsas_mfi_cmd *cmd_to_abort) argument 4892 mrsas_complete_abort(struct mrsas_softc *sc, struct mrsas_mfi_cmd *cmd) argument 4910 mrsas_aen_handler(struct mrsas_softc *sc) argument 5019 mrsas_complete_aen(struct mrsas_softc *sc, struct mrsas_mfi_cmd *cmd) argument [all...] |
/freebsd-current/sys/dev/rtwn/ |
H A D | if_rtwn_calib.c | 51 rtwn_temp_calib(struct rtwn_softc *sc) argument 55 RTWN_ASSERT_LOCKED(sc); 57 if (!(sc->sc_flags & RTWN_TEMP_MEASURED)) { 59 RTWN_DPRINTF(sc, RTWN_DEBUG_TEMP, 61 rtwn_temp_measure(sc); 62 sc->sc_flags |= RTWN_TEMP_MEASURED; 65 sc->sc_flags &= ~RTWN_TEMP_MEASURED; 68 temp = rtwn_temp_read(sc); 70 RTWN_DPRINTF(sc, RTWN_DEBUG_TEMP, 75 RTWN_DPRINTF(sc, RTWN_DEBUG_TEM 102 rtwn_calib_cb(struct rtwn_softc *sc, union sec_param *data) argument 121 struct rtwn_softc *sc = arg; local [all...] |
H A D | if_rtwn_task.c | 47 struct rtwn_softc *sc = arg; local 54 RTWN_LOCK(sc); 55 if (!(sc->sc_flags & RTWN_RUNNING)) { 56 RTWN_UNLOCK(sc); 60 RTWN_CMDQ_LOCK(sc); 61 while (sc->cmdq[sc->cmdq_first].func != NULL) { 62 item = &sc->cmdq[sc->cmdq_first]; 63 sc 76 rtwn_cmdq_init(struct rtwn_softc *sc) argument 83 rtwn_cmdq_destroy(struct rtwn_softc *sc) argument 90 rtwn_cmd_sleepable(struct rtwn_softc *sc, const void *ptr, size_t len, CMD_FUNC_PROTO) argument [all...] |
/freebsd-current/sys/dev/iicbus/controller/twsi/ |
H A D | twsi.c | 86 #define debugf(sc, fmt, args...) if ((sc)->debug) \ 87 device_printf((sc)->dev, "%s: " fmt, __func__, ##args) 96 TWSI_READ(struct twsi_softc *sc, bus_size_t off) argument 100 val = bus_read_4(sc->res[0], off); 101 if (sc->debug > 1) 102 debugf(sc, "read %x from %lx\n", val, off); 107 TWSI_WRITE(struct twsi_softc *sc, bus_size_t off, uint32_t val) argument 110 if (sc->debug > 1) 111 debugf(sc, "Writin 116 twsi_control_clear(struct twsi_softc *sc, uint32_t mask) argument 129 twsi_control_set(struct twsi_softc *sc, uint32_t mask) argument 142 twsi_clear_iflg(struct twsi_softc *sc) argument 162 twsi_poll_ctrl(struct twsi_softc *sc, int timeout, uint32_t mask) argument 184 twsi_locked_start(device_t dev, struct twsi_softc *sc, int32_t mask, u_char slave, int timeout) argument 250 twsi_calc_baud_rate(struct twsi_softc *sc, const u_int target, int *param) argument 287 struct twsi_softc *sc; local 326 struct twsi_softc *sc; local 347 struct twsi_softc *sc; local 371 struct twsi_softc *sc; local 391 struct twsi_softc *sc; local 439 struct twsi_softc *sc; local 473 twsi_error(struct twsi_softc *sc, int err) argument 488 struct twsi_softc *sc; local 549 struct twsi_softc *sc; local 775 struct twsi_softc *sc; local 789 struct twsi_softc *sc; local 830 struct twsi_softc *sc; local [all...] |
/freebsd-current/sys/dev/ips/ |
H A D | ips.c | 78 ips_softc_t *sc = dev->si_drv1; local 79 mtx_lock(&sc->queue_mtx); 80 sc->state |= IPS_DEV_OPEN; 81 mtx_unlock(&sc->queue_mtx); 87 ips_softc_t *sc = dev->si_drv1; local 89 mtx_lock(&sc->queue_mtx); 90 sc->state &= ~IPS_DEV_OPEN; 91 mtx_unlock(&sc->queue_mtx); 98 ips_softc_t *sc; local 100 sc 114 ips_cmdqueue_free(ips_softc_t *sc) argument 145 ips_cmdqueue_init(ips_softc_t *sc) argument 194 ips_get_free_cmd(ips_softc_t *sc, ips_command_t **cmd, unsigned long flags) argument 221 ips_insert_free_cmd(ips_softc_t *sc, ips_command_t *command) argument 261 ips_diskdev_init(ips_softc_t *sc) argument 282 ips_diskdev_free(ips_softc_t *sc) argument 306 ips_softc_t *sc = arg; local 344 ips_adapter_init(ips_softc_t *sc) argument 435 ips_morpheus_reinit(ips_softc_t *sc, int force) argument 488 ips_adapter_free(ips_softc_t *sc) argument 512 ips_morpheus_check_intr(ips_softc_t *sc) argument 540 ips_softc_t *sc = void_sc; local 583 ips_copperhead_queue_init(ips_softc_t *sc) argument 639 ips_copperhead_reinit(ips_softc_t *sc, int force) argument 696 ips_copperhead_cmd_status(ips_softc_t *sc) argument 711 ips_softc_t *sc = (ips_softc_t *)void_sc; local [all...] |
/freebsd-current/sys/dev/qcom_qup/ |
H A D | qcom_spi_var.h | 110 #define QCOM_SPI_QUP_VERSION_V1(sc) \ 111 ((sc)->hw_version == QCOM_SPI_HW_QPI_V1_1) 113 #define QCOM_SPI_LOCK(sc) mtx_lock(&(sc)->sc_mtx) 114 #define QCOM_SPI_UNLOCK(sc) mtx_unlock(&(sc)->sc_mtx) 115 #define QCOM_SPI_ASSERT_LOCKED(sc) mtx_assert(&(sc)->sc_mtx, MA_OWNED) 116 #define QCOM_SPI_READ_4(sc, reg) bus_read_4((sc) [all...] |
/freebsd-current/sys/dev/rtwn/rtl8188e/usb/ |
H A D | r88eu_attach.c | 67 r88eu_set_macaddr(struct rtwn_softc *sc, uint8_t *buf) argument 71 IEEE80211_ADDR_COPY(sc->sc_ic.ic_macaddr, rom->diff_d0.usb.macaddr); 75 r88e_postattach(struct rtwn_softc *sc) argument 77 struct r92c_softc *rs = sc->sc_priv; 78 struct ieee80211com *ic = &sc->sc_ic; 87 r88eu_attach_private(struct rtwn_softc *sc) argument 108 sc->sc_priv = rs; 112 r88eu_adj_devcaps(struct rtwn_softc *sc) argument 120 struct rtwn_softc *sc = &uc->uc_sc; local 127 sc [all...] |
/freebsd-current/sys/dev/tws/ |
H A D | tws.c | 52 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); 113 struct tws_softc *sc = dev->si_drv1; local 123 struct tws_softc *sc = dev->si_drv1; local 133 struct tws_softc *sc = dev->si_drv1; local 143 struct tws_softc *sc = dev->si_drv1; local 180 struct tws_softc *sc = device_get_softc(dev); local 348 struct tws_softc *sc = device_get_softc(dev); local 431 tws_setup_intr(struct tws_softc *sc, int irqs) argument 451 tws_teardown_intr(struct tws_softc *sc) argument 466 tws_setup_irq(struct tws_softc *sc) argument 505 tws_init(struct tws_softc *sc) argument 638 tws_init_aen_q(struct tws_softc *sc) argument 650 tws_init_trace_q(struct tws_softc *sc) argument 662 tws_init_reqs(struct tws_softc *sc, u_int32_t dma_mem_size) argument 713 tws_send_event(struct tws_softc *sc, u_int8_t event) argument 766 tws_get_state(struct tws_softc *sc) argument 779 struct tws_softc *sc = device_get_softc(dev); local 795 struct tws_softc *sc = device_get_softc(dev); local 809 struct tws_softc *sc = device_get_softc(dev); local 817 tws_get_request(struct tws_softc *sc, u_int16_t type) argument 856 struct tws_softc *sc = req->sc; local [all...] |
/freebsd-current/sys/dev/hyperv/netvsc/ |
H A D | hn_rndis.h | 34 int hn_rndis_attach(struct hn_softc *sc, int mtu, int *init_done); 35 void hn_rndis_detach(struct hn_softc *sc); 36 int hn_rndis_conf_rss(struct hn_softc *sc, uint16_t flags); 37 int hn_rndis_query_rsscaps(struct hn_softc *sc, int *rxr_cnt); 38 int hn_rndis_get_eaddr(struct hn_softc *sc, uint8_t *eaddr); 40 int hn_rndis_get_linkstatus(struct hn_softc *sc, 42 int hn_rndis_get_mtu(struct hn_softc *sc, uint32_t *mtu); 44 int hn_rndis_set_rxfilter(struct hn_softc *sc, uint32_t filter); 45 void hn_rndis_rx_ctrl(struct hn_softc *sc, const void *data, 47 int hn_rndis_reconf_offload(struct hn_softc *sc, in [all...] |
/freebsd-current/sys/dev/dwc/ |
H A D | dwc1000_dma.h | 45 int dma1000_init(struct dwc_softc *sc); 46 void dma1000_free(struct dwc_softc *sc); 47 void dma1000_start(struct dwc_softc *sc); 48 void dma1000_stop(struct dwc_softc *sc); 49 int dma1000_reset(struct dwc_softc *sc); 50 int dma1000_setup_txbuf(struct dwc_softc *sc, int idx, struct mbuf **mp); 51 void dma1000_txfinish_locked(struct dwc_softc *sc); 52 void dma1000_rxfinish_locked(struct dwc_softc *sc); 53 void dma1000_txstart(struct dwc_softc *sc); 54 int dma1000_intr(struct dwc_softc *sc); [all...] |
/freebsd-current/sys/arm/xilinx/ |
H A D | zy7_spi.c | 85 #define SPI_SC_LOCK(sc) mtx_lock(&(sc)->sc_mtx) 86 #define SPI_SC_UNLOCK(sc) mtx_unlock(&(sc)->sc_mtx) 87 #define SPI_SC_LOCK_INIT(sc) \ 88 mtx_init(&(sc)->sc_mtx, device_get_nameunit((sc)->dev), NULL, MTX_DEF) 89 #define SPI_SC_LOCK_DESTROY(sc) mtx_destroy(&(sc)->sc_mtx) 90 #define SPI_SC_ASSERT_LOCKED(sc) mtx_asser 149 zy7_spi_write_fifo(struct zy7_spi_softc *sc, int nbytes) argument 172 zy7_spi_read_fifo(struct zy7_spi_softc *sc) argument 198 zy7_spi_abort_transfer(struct zy7_spi_softc *sc) argument 215 struct zy7_spi_softc *sc = (struct zy7_spi_softc *)arg; local 294 zy7_spi_init_hw(struct zy7_spi_softc *sc) argument 335 struct zy7_spi_softc *sc = device_get_softc(dev); local 378 struct zy7_spi_softc *sc; local 450 struct zy7_spi_softc *sc = device_get_softc(dev); local 497 struct zy7_spi_softc *sc = device_get_softc(dev); local [all...] |
/freebsd-current/usr.sbin/bhyve/ |
H A D | uart_backend.h | 40 void uart_rxfifo_drain(struct uart_softc *sc, bool loopback); 41 int uart_rxfifo_getchar(struct uart_softc *sc); 42 int uart_rxfifo_numchars(struct uart_softc *sc); 43 int uart_rxfifo_putchar(struct uart_softc *sc, uint8_t ch, bool loopback); 44 void uart_rxfifo_reset(struct uart_softc *sc, int size); 45 int uart_rxfifo_size(struct uart_softc *sc); 47 int uart_rxfifo_snapshot(struct uart_softc *sc, 52 int uart_tty_open(struct uart_softc *sc, const char *path, 54 void uart_softc_lock(struct uart_softc *sc); 55 void uart_softc_unlock(struct uart_softc *sc); [all...] |
/freebsd-current/sys/dev/rtwn/rtl8192e/usb/ |
H A D | r92eu_attach.c | 69 r92eu_attach_private(struct rtwn_softc *sc) argument 78 sc->sc_priv = rs; 82 r92e_detach_private(struct rtwn_softc *sc) argument 84 struct r92e_softc *rs = sc->sc_priv; 90 r92eu_adj_devcaps(struct rtwn_softc *sc) argument 98 struct rtwn_softc *sc = &uc->uc_sc; local 105 sc->sc_flags = RTWN_FLAG_EXT_HDR; 107 sc->sc_set_chan = r92e_set_chan; 108 sc->sc_fill_tx_desc = r12a_fill_tx_desc; 109 sc [all...] |
/freebsd-current/sys/dev/ffec/ |
H A D | if_ffec.c | 196 #define FFEC_LOCK(sc) mtx_lock(&(sc)->mtx) 197 #define FFEC_UNLOCK(sc) mtx_unlock(&(sc)->mtx) 198 #define FFEC_LOCK_INIT(sc) mtx_init(&(sc)->mtx, \ 199 device_get_nameunit((sc)->dev), MTX_NETWORK_LOCK, MTX_DEF) 200 #define FFEC_LOCK_DESTROY(sc) mtx_destroy(&(sc)->mtx); 201 #define FFEC_ASSERT_LOCKED(sc) mtx_asser 210 RD2(struct ffec_softc *sc, bus_size_t off) argument 217 WR2(struct ffec_softc *sc, bus_size_t off, uint16_t val) argument 224 RD4(struct ffec_softc *sc, bus_size_t off) argument 231 WR4(struct ffec_softc *sc, bus_size_t off, uint32_t val) argument 238 next_rxidx(struct ffec_softc *sc, uint32_t curidx) argument 245 next_txidx(struct ffec_softc *sc, uint32_t curidx) argument 261 ffec_miigasket_setup(struct ffec_softc *sc) argument 305 ffec_miibus_iowait(struct ffec_softc *sc) argument 319 struct ffec_softc *sc; local 344 struct ffec_softc *sc; local 367 struct ffec_softc *sc; local 444 struct ffec_softc *sc; local 458 ffec_media_change_locked(struct ffec_softc *sc) argument 467 struct ffec_softc *sc; local 478 ffec_clear_stats(struct ffec_softc *sc) argument 518 ffec_harvest_stats(struct ffec_softc *sc) argument 553 struct ffec_softc *sc; local 591 ffec_setup_txdesc(struct ffec_softc *sc, int idx, bus_addr_t paddr, uint32_t len) argument 622 ffec_setup_txbuf(struct ffec_softc *sc, int idx, struct mbuf **mp) argument 648 ffec_txstart_locked(struct ffec_softc *sc) argument 694 struct ffec_softc *sc = if_getsoftc(ifp); local 702 ffec_txfinish_locked(struct ffec_softc *sc) argument 747 ffec_setup_rxdesc(struct ffec_softc *sc, int idx, bus_addr_t paddr) argument 765 ffec_setup_rxbuf(struct ffec_softc *sc, int idx, struct mbuf * m) argument 798 ffec_alloc_mbufcl(struct ffec_softc *sc) argument 810 ffec_rxfinish_onebuf(struct ffec_softc *sc, int len) argument 871 ffec_rxfinish_locked(struct ffec_softc *sc) argument 936 ffec_get_hwaddr(struct ffec_softc *sc, uint8_t *hwaddr) argument 990 ffec_setup_rxfilter(struct ffec_softc *sc) argument 1037 ffec_stop_locked(struct ffec_softc *sc) argument 1100 ffec_init_locked(struct ffec_softc *sc) argument 1277 struct ffec_softc *sc = if_softc; local 1287 struct ffec_softc *sc; local 1329 struct ffec_softc *sc; local 1392 struct ffec_softc *sc; local 1468 struct ffec_softc *sc; local [all...] |
/freebsd-current/sys/dev/gem/ |
H A D | if_gem.c | 99 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); 143 gem_attach(struct gem_softc *sc) argument 404 gem_detach(struct gem_softc *sc) argument 439 gem_suspend(struct gem_softc *sc) argument 449 gem_resume(struct gem_softc *sc) argument 530 struct gem_softc *sc = xsc; local 542 struct gem_softc *sc = arg; local 585 gem_bitwait(struct gem_softc *sc, bus_addr_t r, uint32_t clr, uint32_t set) argument 599 gem_reset(struct gem_softc *sc) argument 617 gem_rxdrain(struct gem_softc *sc) argument 637 struct gem_softc *sc = if_getsoftc(ifp); local 681 gem_reset_rx(struct gem_softc *sc) argument 727 gem_reset_rxdma(struct gem_softc *sc) argument 769 gem_reset_tx(struct gem_softc *sc) argument 798 gem_disable_rx(struct gem_softc *sc) argument 812 gem_disable_tx(struct gem_softc *sc) argument 826 gem_meminit(struct gem_softc *sc) argument 904 struct gem_softc *sc = xsc; local 916 gem_init_locked(struct gem_softc *sc) argument 1073 gem_load_txmbuf(struct gem_softc *sc, struct mbuf **m_head) argument 1213 gem_init_regs(struct gem_softc *sc) argument 1290 struct gem_softc *sc = if_getsoftc(ifp); local 1298 gem_txkick(struct gem_softc *sc) argument 1318 struct gem_softc *sc = if_getsoftc(ifp); local 1374 gem_tint(struct gem_softc *sc) argument 1490 struct gem_softc *sc = arg; local 1499 gem_rint(struct gem_softc *sc) argument 1622 gem_add_rxbuf(struct gem_softc *sc, int idx) argument 1670 gem_eint(struct gem_softc *sc, u_int status) argument 1690 struct gem_softc *sc = v; local 1773 gem_watchdog(struct gem_softc *sc) argument 1809 gem_mifinit(struct gem_softc *sc) argument 1836 struct gem_softc *sc; local 1894 struct gem_softc *sc; local 1973 struct gem_softc *sc; local 2079 struct gem_softc *sc = if_getsoftc(ifp); local 2093 struct gem_softc *sc = if_getsoftc(ifp); local 2110 struct gem_softc *sc = if_getsoftc(ifp); local 2179 gem_setladrf(struct gem_softc *sc) argument [all...] |
/freebsd-current/sys/dev/altera/jtag_uart/ |
H A D | altera_jtag_uart_tty.c | 131 aju_data_read(struct altera_jtag_uart_softc *sc) argument 134 return (le32toh(bus_read_4(sc->ajus_mem_res, 139 aju_data_write(struct altera_jtag_uart_softc *sc, uint32_t v) argument 142 bus_write_4(sc->ajus_mem_res, ALTERA_JTAG_UART_DATA_OFF, htole32(v)); 146 aju_control_read(struct altera_jtag_uart_softc *sc) argument 149 return (le32toh(bus_read_4(sc->ajus_mem_res, 154 aju_control_write(struct altera_jtag_uart_softc *sc, uint32_t v) argument 157 bus_write_4(sc->ajus_mem_res, ALTERA_JTAG_UART_CONTROL_OFF, 165 aju_writable(struct altera_jtag_uart_softc *sc) argument 168 return ((aju_control_read(sc) 173 aju_readable(struct altera_jtag_uart_softc *sc) argument 191 aju_read(struct altera_jtag_uart_softc *sc) argument 205 aju_intr_readable_enable(struct altera_jtag_uart_softc *sc) argument 218 aju_intr_writable_enable(struct altera_jtag_uart_softc *sc) argument 231 aju_intr_writable_disable(struct altera_jtag_uart_softc *sc) argument 244 aju_intr_disable(struct altera_jtag_uart_softc *sc) argument 262 aju_handle_input(struct altera_jtag_uart_softc *sc, struct tty *tp) argument 293 aju_handle_output(struct altera_jtag_uart_softc *sc, struct tty *tp) argument 362 struct altera_jtag_uart_softc *sc = tty_softc(tp); local 374 struct altera_jtag_uart_softc *sc = arg; local 405 struct altera_jtag_uart_softc *sc = arg; local 445 struct altera_jtag_uart_softc *sc = arg; local 465 altera_jtag_uart_attach(struct altera_jtag_uart_softc *sc) argument 539 altera_jtag_uart_detach(struct altera_jtag_uart_softc *sc) argument [all...] |
/freebsd-current/sys/dev/clk/allwinner/ |
H A D | aw_ccung.c | 73 #define CCU_READ4(sc, reg) bus_read_4((sc)->res, (reg)) 74 #define CCU_WRITE4(sc, reg, val) bus_write_4((sc)->res, (reg), (val)) 79 struct aw_ccung_softc *sc; local 81 sc = device_get_softc(dev); 83 CCU_WRITE4(sc, addr, val); 90 struct aw_ccung_softc *sc; local 92 sc = device_get_softc(dev); 94 *val = CCU_READ4(sc, add 102 struct aw_ccung_softc *sc; local 119 struct aw_ccung_softc *sc; local 145 struct aw_ccung_softc *sc; local 165 struct aw_ccung_softc *sc; local 174 struct aw_ccung_softc *sc; local 181 aw_ccung_register_gates(struct aw_ccung_softc *sc) argument 206 aw_ccung_init_clocks(struct aw_ccung_softc *sc) argument 265 struct aw_ccung_softc *sc; local [all...] |