/freebsd-current/sys/arm/ti/ |
H A D | ti_adc.c | 91 ti_adc_ev_report(struct ti_adc_softc *sc) argument 94 evdev_push_event(sc->sc_evdev, EV_ABS, ABS_X, sc->sc_x); 95 evdev_push_event(sc->sc_evdev, EV_ABS, ABS_Y, sc->sc_y); 96 evdev_push_event(sc->sc_evdev, EV_KEY, BTN_TOUCH, sc->sc_pen_down); 97 evdev_sync(sc->sc_evdev); 102 ti_adc_enable(struct ti_adc_softc *sc) argument 106 TI_ADC_LOCK_ASSERT(sc); 140 ti_adc_disable(struct ti_adc_softc *sc) argument 179 ti_adc_setup(struct ti_adc_softc *sc) argument 207 ti_adc_input_setup(struct ti_adc_softc *sc, int32_t ain) argument 242 ti_adc_reset(struct ti_adc_softc *sc) argument 259 struct ti_adc_softc *sc; local 299 struct ti_adc_softc *sc; local 331 struct ti_adc_softc *sc; local 359 struct ti_adc_softc *sc; local 387 ti_adc_read_data(struct ti_adc_softc *sc) argument 424 ti_adc_tsc_read_data(struct ti_adc_softc *sc) argument 481 ti_adc_intr_locked(struct ti_adc_softc *sc, uint32_t status) argument 489 ti_adc_tsc_intr_locked(struct ti_adc_softc *sc, uint32_t status) argument 500 struct ti_adc_softc *sc; local 547 ti_adc_sysctl_init(struct ti_adc_softc *sc) argument 595 ti_adc_inputs_init(struct ti_adc_softc *sc) argument 615 ti_adc_tsc_init(struct ti_adc_softc *sc) argument 690 ti_adc_idlestep_init(struct ti_adc_softc *sc) argument 700 ti_adc_config_wires(struct ti_adc_softc *sc, int *wire_configs, int nwire_configs) argument 748 struct ti_adc_softc *sc; local 917 struct ti_adc_softc *sc; local [all...] |
H A D | ti_i2c.c | 156 * @sc: I2C device context 167 ti_i2c_read_2(struct ti_i2c_softc *sc, bus_size_t off) argument 170 return (bus_read_2(sc->sc_mem_res, off)); 175 * @sc: I2C device context 186 ti_i2c_write_2(struct ti_i2c_softc *sc, bus_size_t off, uint16_t val) argument 189 bus_write_2(sc->sc_mem_res, off, val); 193 ti_i2c_transfer_intr(struct ti_i2c_softc* sc, uint16_t status) argument 202 ti_i2c_dbg(sc, "NACK\n"); 203 ti_i2c_write_2(sc, I2C_REG_STATUS, I2C_STAT_NACK); 204 sc 317 struct ti_i2c_softc *sc; local 371 struct ti_i2c_softc *sc; local 470 ti_i2c_reset(struct ti_i2c_softc *sc, u_char speed) argument 672 struct ti_i2c_softc *sc; local 689 struct ti_i2c_softc *sc; local 719 struct ti_i2c_softc *sc = device_get_softc(dev); local 752 struct ti_i2c_softc *sc; local 773 struct ti_i2c_softc *sc; local 815 struct ti_i2c_softc *sc; local 906 struct ti_i2c_softc *sc; local [all...] |
H A D | ti_scm_syscon.c | 87 struct ti_scm_syscon_softc *sc; local 89 sc = device_get_softc(syscon->pdev); 90 DPRINTF(sc->dev, "offset=%lx write %x\n", offset, val); 91 mtx_lock(&sc->mtx); 92 bus_space_write_4(sc->bst, sc->bsh, offset, val); 93 mtx_unlock(&sc->mtx); 100 struct ti_scm_syscon_softc *sc; local 103 sc = device_get_softc(syscon->pdev); 105 mtx_lock(&sc 114 struct ti_scm_syscon_softc *sc; local 161 struct ti_scm_syscon_softc *sc; local 200 struct ti_scm_syscon_softc *sc; local 213 struct ti_scm_syscon_softc *sc; local 224 struct ti_scm_syscon_softc *sc; local 236 struct ti_scm_syscon_softc *sc; local 253 struct ti_scm_syscon_softc *sc; local 262 struct ti_scm_syscon_softc *sc; local [all...] |
/freebsd-current/sys/dev/tpm/ |
H A D | tpm.c | 203 struct tpm_softc *sc = device_get_softc(dev); local 206 sc->mem_rid = 0; 207 sc->mem_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &sc->mem_rid, 209 if (sc->mem_res == NULL) 212 sc->sc_bt = rman_get_bustag(sc->mem_res); 213 sc->sc_bh = rman_get_bushandle(sc->mem_res); 215 sc 264 struct tpm_softc * sc = device_get_softc(dev); local 325 tpm_tis12_irqinit(struct tpm_softc *sc, int irq, int idx) argument 359 tpm_tis12_init(struct tpm_softc *sc, int irq, const char *name) argument 400 tpm_request_locality(struct tpm_softc *sc, int l) argument 442 tpm_getburst(struct tpm_softc *sc) argument 474 tpm_status(struct tpm_softc *sc) argument 499 struct tpm_softc *sc = device_get_softc(dev); local 527 struct tpm_softc *sc = device_get_softc(dev); local 541 tpm_waitfor_poll(struct tpm_softc *sc, u_int8_t mask, int tmo, void *c) argument 564 tpm_waitfor_int(struct tpm_softc *sc, u_int8_t mask, int tmo, void *c, int inttype) argument 631 tpm_waitfor(struct tpm_softc *sc, u_int8_t b0, int tmo, void *c) argument 724 tpm_tis12_start(struct tpm_softc *sc, int flag) argument 769 tpm_tis12_read(struct tpm_softc *sc, void *buf, int len, size_t *count, int flags) argument 809 tpm_tis12_write(struct tpm_softc *sc, void *buf, int len) argument 870 tpm_tis12_end(struct tpm_softc *sc, int flag, int err) argument 916 struct tpm_softc *sc = v; local 1015 tpm_legacy_init(struct tpm_softc *sc, int irq, const char *name) argument 1037 tpm_legacy_start(struct tpm_softc *sc, int flag) argument 1062 tpm_legacy_read(struct tpm_softc *sc, void *buf, int len, size_t *count, int flags) argument 1087 tpm_legacy_write(struct tpm_softc *sc, void *buf, int len) argument 1106 tpm_legacy_end(struct tpm_softc *sc, int flag, int rv) argument 1139 struct tpm_softc *sc = TPMSOFTC(dev); local 1155 struct tpm_softc *sc = TPMSOFTC(dev); local 1171 struct tpm_softc *sc = TPMSOFTC(dev); local 1243 struct tpm_softc *sc = TPMSOFTC(dev); local [all...] |
H A D | tpm_tis_core.c | 82 static void tpmtis_setup_intr(struct tpm_sc *sc); 84 static bool tpmtis_read_bytes(struct tpm_sc *sc, size_t count, uint8_t *buf); 85 static bool tpmtis_write_bytes(struct tpm_sc *sc, size_t count, uint8_t *buf); 86 static bool tpmtis_request_locality(struct tpm_sc *sc, int locality); 87 static void tpmtis_relinquish_locality(struct tpm_sc *sc); 88 static bool tpmtis_go_ready(struct tpm_sc *sc); 90 static bool tpm_wait_for_u32(struct tpm_sc *sc, bus_size_t off, 93 static uint16_t tpmtis_wait_for_burst(struct tpm_sc *sc); 98 struct tpm_sc *sc; local 101 sc 133 struct tpm_sc *sc; local 158 tpmtis_test_intr(struct tpm_sc *sc) argument 175 tpmtis_setup_intr(struct tpm_sc *sc) argument 214 struct tpm_sc *sc; local 231 tpm_wait_for_u32(struct tpm_sc *sc, bus_size_t off, uint32_t mask, uint32_t val, int32_t timeout) argument 259 tpmtis_wait_for_burst(struct tpm_sc *sc) argument 278 tpmtis_read_bytes(struct tpm_sc *sc, size_t count, uint8_t *buf) argument 298 tpmtis_write_bytes(struct tpm_sc *sc, size_t count, uint8_t *buf) argument 318 tpmtis_request_locality(struct tpm_sc *sc, int locality) argument 350 tpmtis_relinquish_locality(struct tpm_sc *sc) argument 364 tpmtis_go_ready(struct tpm_sc *sc) argument 382 struct tpm_sc *sc; local [all...] |
/freebsd-current/sys/dev/adb/ |
H A D | adb_mouse.c | 146 struct adb_mouse_softc *sc; local 152 sc = device_get_softc(dev); 153 sc->sc_dev = dev; 155 mtx_init(&sc->sc_mtx, "ams", NULL, MTX_DEF); 156 cv_init(&sc->sc_cv,"ams"); 158 sc->flags = 0; 160 sc->hw.buttons = 2; 161 sc->hw.iftype = MOUSE_IF_UNKNOWN; 162 sc->hw.type = MOUSE_UNKNOWN; 163 sc 255 struct adb_mouse_softc *sc; local 271 struct adb_mouse_softc *sc; local 336 struct adb_mouse_softc *sc; local 431 struct adb_mouse_softc *sc; local 450 struct adb_mouse_softc *sc; local 462 struct adb_mouse_softc *sc; local 489 struct adb_mouse_softc *sc; local 577 struct adb_mouse_softc *sc; local 650 struct adb_mouse_softc *sc = arg1; local [all...] |
/freebsd-current/sys/dev/sound/pci/ |
H A D | hdsp.c | 102 struct sc_info *sc; local 109 sc = (struct sc_info *)p; 111 snd_mtxlock(sc->lock); 113 status = hdsp_read_1(sc, HDSP_STATUS_REG); 115 if ((err = device_get_children(sc->dev, &devlist, &devcount)) != 0) 124 hdsp_write_1(sc, HDSP_INTERRUPT_ACK, 0); 128 snd_mtxunlock(sc->lock); 135 device_printf(sc->dev, "hdsp_dmapsetmap()\n"); 140 hdsp_alloc_resources(struct sc_info *sc) argument 144 sc 222 hdsp_map_dmabuf(struct sc_info *sc) argument 236 struct sc_info *sc = oidp->oid_arg1; local 271 struct sc_info *sc = oidp->oid_arg1; local 319 struct sc_info *sc; local 394 struct sc_info *sc; local 434 struct sc_info *sc; local 511 struct sc_info *sc; local 577 hdsp_init(struct sc_info *sc) argument 650 struct sc_info *sc; local 738 hdsp_dmafree(struct sc_info *sc) argument 751 struct sc_info *sc; local [all...] |
H A D | ich.c | 80 #define ICH_LOCK(sc) snd_mtxlock((sc)->ich_lock) 81 #define ICH_UNLOCK(sc) snd_mtxunlock((sc)->ich_lock) 82 #define ICH_LOCK_ASSERT(sc) snd_mtxassert((sc)->ich_lock) 214 ich_rd(struct sc_info *sc, int regno, int size) argument 218 return (bus_space_read_1(sc->nabmbart, sc->nabmbarh, regno)); 220 return (bus_space_read_2(sc 229 ich_wr(struct sc_info *sc, int regno, uint32_t data, int size) argument 248 struct sc_info *sc = (struct sc_info *)devinfo; local 267 struct sc_info *sc = (struct sc_info *)devinfo; local 278 struct sc_info *sc = (struct sc_info *)devinfo; local 300 struct sc_info *sc = ch->parent; local 322 ich_resetchan(struct sc_info *sc, int num) argument 370 struct sc_info *sc = devinfo; local 450 struct sc_info *sc = ch->parent; local 484 struct sc_info *sc = ch->parent; local 512 struct sc_info *sc = ch->parent; local 546 struct sc_info *sc = ch->parent; local 600 struct sc_info *sc = (struct sc_info *)p; local 669 ich_initsys(struct sc_info* sc) argument 684 ich_setstatus(struct sc_info *sc) argument 709 struct sc_info *sc; local 821 struct sc_info *sc = (struct sc_info *)arg; local 827 ich_init(struct sc_info *sc) argument 887 struct sc_info *sc; local 1124 struct sc_info *sc; local 1146 ich_pci_codec_reset(struct sc_info *sc) argument 1170 struct sc_info *sc; local 1190 struct sc_info *sc; local [all...] |
/freebsd-current/sys/dev/mfi/ |
H A D | mfi_tbolt.c | 57 struct mfi_cmd_tbolt *mfi_tbolt_get_cmd(struct mfi_softc *sc, struct mfi_command *); 59 mfi_tbolt_get_request_descriptor(struct mfi_softc *sc, uint16_t index); 60 void mfi_tbolt_complete_cmd(struct mfi_softc *sc); 61 int mfi_tbolt_build_io(struct mfi_softc *sc, struct mfi_command *mfi_cmd, 64 *sc, struct mfi_command *cmd); 66 mfi_build_mpt_pass_thru(struct mfi_softc *sc, struct mfi_command *mfi_cmd); 68 *sc, struct mfi_command *mfi_cmd); 69 void mfi_tbolt_build_ldio(struct mfi_softc *sc, struct mfi_command *mfi_cmd, 71 static int mfi_tbolt_make_sgl(struct mfi_softc *sc, struct mfi_command 76 static void mfi_issue_pending_cmds_again (struct mfi_softc *sc); 92 mfi_tbolt_enable_intr_ppc(struct mfi_softc *sc) argument 99 mfi_tbolt_disable_intr_ppc(struct mfi_softc *sc) argument 106 mfi_tbolt_read_fw_status_ppc(struct mfi_softc *sc) argument 112 mfi_tbolt_check_clear_intr_ppc(struct mfi_softc *sc) argument 135 mfi_tbolt_issue_cmd_ppc(struct mfi_softc *sc, bus_addr_t bus_add, uint32_t frame_cnt) argument 149 mfi_tbolt_adp_reset(struct mfi_softc *sc) argument 200 mfi_tbolt_init_globals(struct mfi_softc *sc) argument 247 mfi_tbolt_get_memory_requirement(struct mfi_softc *sc) argument 269 mfi_tbolt_init_desc_pool(struct mfi_softc *sc, uint8_t* mem_location, uint32_t tbolt_contg_length) argument 332 mfi_tbolt_init_MFI_queue(struct mfi_softc *sc) argument 448 mfi_tbolt_alloc_cmd(struct mfi_softc *sc) argument 535 mfi_tbolt_reset(struct mfi_softc *sc) argument 574 struct mfi_softc *sc = (struct mfi_softc *)arg; local 641 mfi_tbolt_return_cmd(struct mfi_softc *sc, struct mfi_cmd_tbolt *tbolt_cmd, struct mfi_command *mfi_cmd) argument 654 mfi_tbolt_complete_cmd(struct mfi_softc *sc) argument 764 mfi_tbolt_get_cmd(struct mfi_softc *sc, struct mfi_command *mfi_cmd) argument 785 mfi_tbolt_get_request_descriptor(struct mfi_softc *sc, uint16_t index) argument 802 mfi_build_mpt_pass_thru(struct mfi_softc *sc, struct mfi_command *mfi_cmd) argument 835 mfi_tbolt_build_ldio(struct mfi_softc *sc, struct mfi_command *mfi_cmd, struct mfi_cmd_tbolt *cmd) argument 874 mfi_tbolt_build_io(struct mfi_softc *sc, struct mfi_command *mfi_cmd, struct mfi_cmd_tbolt *cmd) argument 935 mfi_tbolt_make_sgl(struct mfi_softc *sc, struct mfi_command *mfi_cmd, pMpi25IeeeSgeChain64_t sgl_ptr, struct mfi_cmd_tbolt *cmd) argument 1033 mfi_build_and_issue_cmd(struct mfi_softc *sc, struct mfi_command *mfi_cmd) argument 1058 mfi_tbolt_build_mpt_cmd(struct mfi_softc *sc, struct mfi_command *cmd) argument 1082 mfi_tbolt_send_frame(struct mfi_softc *sc, struct mfi_command *cm) argument 1167 mfi_issue_pending_cmds_again(struct mfi_softc *sc) argument 1215 mfi_kill_hba(struct mfi_softc *sc) argument 1226 struct mfi_softc *sc= (struct mfi_softc *)arg; local 1345 mfi_tbolt_sync_map_info(struct mfi_softc *sc) argument 1441 struct mfi_softc *sc; local 1469 mfi_queue_map_sync(struct mfi_softc *sc) argument 1478 struct mfi_softc *sc; local [all...] |
/freebsd-current/sys/dev/vte/ |
H A D | if_vte.c | 170 struct vte_softc *sc; local 173 sc = device_get_softc(dev); 175 CSR_WRITE_2(sc, VTE_MMDIO, MMDIO_READ | 179 if ((CSR_READ_2(sc, VTE_MMDIO) & MMDIO_READ) == 0) 184 device_printf(sc->vte_dev, "phy read timeout : %d\n", reg); 188 return (CSR_READ_2(sc, VTE_MMRD)); 194 struct vte_softc *sc; local 197 sc = device_get_softc(dev); 199 CSR_WRITE_2(sc, VTE_MMWD, val); 200 CSR_WRITE_2(sc, VTE_MMDI 217 struct vte_softc *sc; local 274 struct vte_softc *sc; local 294 struct vte_softc *sc; local 307 struct vte_softc *sc; local 352 vte_get_macaddr(struct vte_softc *sc) argument 374 struct vte_softc *sc; local 501 struct vte_softc *sc; local 548 vte_sysctl_node(struct vte_softc *sc) argument 658 vte_dma_alloc(struct vte_softc *sc) argument 856 vte_dma_free(struct vte_softc *sc) argument 941 struct vte_softc *sc; local 958 struct vte_softc *sc; local 975 vte_encap(struct vte_softc *sc, struct mbuf **m_head) argument 1100 struct vte_softc *sc; local 1109 vte_start_locked(struct vte_softc *sc) argument 1163 vte_watchdog(struct vte_softc *sc) argument 1184 struct vte_softc *sc; local 1228 vte_mac_config(struct vte_softc *sc) argument 1257 vte_stats_clear(struct vte_softc *sc) argument 1272 vte_stats_update(struct vte_softc *sc) argument 1310 struct vte_softc *sc; local 1336 struct vte_softc *sc; local 1381 vte_txeof(struct vte_softc *sc) argument 1433 vte_newbuf(struct vte_softc *sc, struct vte_rxdesc *rxd) argument 1493 vte_rxeof(struct vte_softc *sc) argument 1584 struct vte_softc *sc; local 1600 vte_reset(struct vte_softc *sc) argument 1636 struct vte_softc *sc; local 1645 vte_init_locked(struct vte_softc *sc) argument 1768 vte_stop(struct vte_softc *sc) argument 1829 vte_start_mac(struct vte_softc *sc) argument 1856 vte_stop_mac(struct vte_softc *sc) argument 1881 vte_init_tx_ring(struct vte_softc *sc) argument 1928 vte_init_rx_ring(struct vte_softc *sc) argument 1996 vte_rxfilter(struct vte_softc *sc) argument [all...] |
/freebsd-current/sys/dev/ath/ |
H A D | if_ath_led.c | 123 ath_led_config(struct ath_softc *sc) argument 126 ATH_LOCK(sc); 127 ath_power_set_power_state(sc, HAL_PM_AWAKE); 128 ATH_UNLOCK(sc); 131 if (sc->sc_softled) { 132 ath_hal_gpioCfgOutput(sc->sc_ah, sc->sc_ledpin, 134 ath_hal_gpioset(sc->sc_ah, sc->sc_ledpin, !sc 161 struct ath_softc *sc = arg; local 173 struct ath_softc *sc = arg; local 183 ath_led_blink(struct ath_softc *sc, int on, int off) argument 193 ath_led_event(struct ath_softc *sc, int rix) argument [all...] |
H A D | if_ath_btcoex_mci.c | 82 static void ath_btcoex_mci_update_wlan_channels(struct ath_softc *sc); 85 ath_btcoex_mci_attach(struct ath_softc *sc) argument 90 error = ath_descdma_alloc_desc(sc, &sc->sc_btcoex.buf, NULL, 93 device_printf(sc->sc_dev, "%s: failed to alloc MCI RAM\n", 99 sc->sc_btcoex_mci = 1; 102 sc->sc_btcoex.wlan_channels[0] = 0x00000000; 103 sc->sc_btcoex.wlan_channels[1] = 0xffffffff; 104 sc->sc_btcoex.wlan_channels[2] = 0xffffffff; 105 sc 155 ath_btcoex_mci_detach(struct ath_softc *sc) argument 171 ath_btcoex_mci_enable(struct ath_softc *sc, const struct ieee80211_channel *chan) argument 202 ath_btcoex_mci_event(struct ath_softc *sc, ATH_BT_COEX_EVENT nevent, void *param) argument 241 ath_btcoex_mci_send_gpm(struct ath_softc *sc, uint32_t *payload) argument 252 ath_btcoex_mci_bt_cal_do(struct ath_softc *sc, int tx_timeout, int rx_timeout) argument 260 ath_btcoex_mci_cal_msg(struct ath_softc *sc, uint8_t opcode, uint8_t *rx_payload) argument 321 ath_btcoex_mci_update_wlan_channels(struct ath_softc *sc) argument 369 ath_btcoex_mci_coex_msg(struct ath_softc *sc, uint8_t opcode, uint8_t *rx_payload) argument 429 ath_btcoex_mci_intr(struct ath_softc *sc) argument [all...] |
/freebsd-current/sys/dev/rl/ |
H A D | if_rl.c | 191 static void rl_init_locked(struct rl_softc *sc); 264 CSR_WRITE_1(sc, RL_EECMD, \ 265 CSR_READ_1(sc, RL_EECMD) | x) 268 CSR_WRITE_1(sc, RL_EECMD, \ 269 CSR_READ_1(sc, RL_EECMD) & ~x) 275 rl_eeprom_putbyte(struct rl_softc *sc, int addr) argument 279 d = addr | sc->rl_eecmd_read; 302 rl_eeprom_getword(struct rl_softc *sc, int addr, uint16_t *dest) argument 308 CSR_WRITE_1(sc, RL_EECMD, RL_EEMODE_PROGRAM|RL_EE_SEL); 313 rl_eeprom_putbyte(sc, add 339 rl_read_eeprom(struct rl_softc *sc, uint8_t *dest, int off, int cnt, int swap) argument 360 struct rl_softc *sc; local 378 struct rl_softc *sc; local 390 struct rl_softc *sc; local 436 struct rl_softc *sc; local 478 struct rl_softc *sc; local 527 rl_rxfilter(struct rl_softc *sc) argument 562 rl_reset(struct rl_softc *sc) argument 639 struct rl_softc *sc; local 867 struct rl_softc *sc; local 913 rl_dma_alloc(struct rl_softc *sc) argument 1013 rl_dma_free(struct rl_softc *sc) argument 1057 rl_list_tx_init(struct rl_softc *sc) argument 1078 rl_list_rx_init(struct rl_softc *sc) argument 1113 rl_rxeof(struct rl_softc *sc) argument 1236 rl_txeof(struct rl_softc *sc) argument 1295 rl_twister_update(struct rl_softc *sc) argument 1396 struct rl_softc *sc = xsc; local 1437 struct rl_softc *sc = if_getsoftc(ifp); local 1450 struct rl_softc *sc = if_getsoftc(ifp); local 1486 struct rl_softc *sc = arg; local 1545 rl_encap(struct rl_softc *sc, struct mbuf **m_head) argument 1613 struct rl_softc *sc = if_getsoftc(ifp); local 1623 struct rl_softc *sc = if_getsoftc(ifp); local 1672 struct rl_softc *sc = xsc; local 1680 rl_init_locked(struct rl_softc *sc) argument 1778 struct rl_softc *sc = if_getsoftc(ifp); local 1796 struct rl_softc *sc = if_getsoftc(ifp); local 1813 struct rl_softc *sc = if_getsoftc(ifp); local 1888 rl_watchdog(struct rl_softc *sc) argument 1910 rl_stop(struct rl_softc *sc) argument 1959 struct rl_softc *sc; local 1980 struct rl_softc *sc; local 2025 struct rl_softc *sc; local 2044 rl_setwol(struct rl_softc *sc) argument 2098 rl_clrwol(struct rl_softc *sc) argument [all...] |
/freebsd-current/sys/dev/iicbus/controller/vybrid/ |
H A D | vf_i2c.c | 148 struct vf_i2c_softc *sc; local 151 sc = device_get_softc(dev); 153 vf_i2c_dbg(sc, "i2c attach common\n"); 155 mtx_init(&sc->mutex, device_get_nameunit(dev), "I2C", MTX_DEF); 157 error = bus_alloc_resources(dev, i2c_spec, sc->res); 159 mtx_destroy(&sc->mutex); 165 sc->bst = rman_get_bustag(sc->res[0]); 166 sc->bsh = rman_get_bushandle(sc 204 struct vf_i2c_softc *sc; local 240 wait_for_nibb(struct vf_i2c_softc *sc) argument 256 wait_for_icf(struct vf_i2c_softc *sc) argument 285 tx_acked(struct vf_i2c_softc *sc) argument 296 struct vf_i2c_softc *sc; local 338 struct vf_i2c_softc *sc; local 392 struct vf_i2c_softc *sc; local 411 struct vf_i2c_softc *sc; local 450 struct vf_i2c_softc *sc; local 473 struct vf_i2c_softc *sc; local 523 struct vf_i2c_softc *sc; local [all...] |
/freebsd-current/sys/dev/sbni/ |
H A D | if_sbni.c | 134 sbni_inb(struct sbni_softc *sc, enum sbni_reg reg) argument 137 rman_get_bustag(sc->io_res), 138 rman_get_bushandle(sc->io_res), 139 sc->io_off + reg); 143 sbni_outb(struct sbni_softc *sc, enum sbni_reg reg, u_char value) argument 146 rman_get_bustag(sc->io_res), 147 rman_get_bushandle(sc->io_res), 148 sc->io_off + reg, value); 152 sbni_insb(struct sbni_softc *sc, u_char *to, u_int len) argument 155 rman_get_bustag(sc 161 sbni_outsb(struct sbni_softc *sc, u_char *from, u_int len) argument 195 sbni_probe(struct sbni_softc *sc) argument 216 sbni_attach(struct sbni_softc *sc, int unit, struct sbni_flags flags) argument 257 sbni_detach(struct sbni_softc *sc) argument 272 sbni_release_resources(struct sbni_softc *sc) argument 288 struct sbni_softc *sc; local 297 sbni_init_locked(struct sbni_softc *sc) argument 323 struct sbni_softc *sc = if_getsoftc(ifp); local 333 struct sbni_softc *sc = if_getsoftc(ifp); local 340 sbni_stop(struct sbni_softc *sc) argument 374 struct sbni_softc *sc; local 400 handle_channel(struct sbni_softc *sc) argument 444 recv_frame(struct sbni_softc *sc) argument 478 send_frame(struct sbni_softc *sc) argument 524 download_data(struct sbni_softc *sc, u_int32_t *crc_p) argument 580 upload_data(struct sbni_softc *sc, u_int framelen, u_int frameno, u_int is_first, u_int32_t crc) argument 622 send_complete(struct sbni_softc *sc) argument 630 interpret_ack(struct sbni_softc *sc, u_int ack) argument 657 append_frame_to_pkt(struct sbni_softc *sc, u_int framelen, u_int32_t crc) argument 688 prepare_to_send(struct sbni_softc *sc) argument 732 drop_xmit_queue(struct sbni_softc *sc) argument 758 send_frame_header(struct sbni_softc *sc, u_int32_t *crc_p) argument 796 skip_tail(struct sbni_softc *sc, u_int tail_len, u_int32_t crc) argument 805 check_fhdr(struct sbni_softc *sc, u_int *framelen, u_int *frameno, u_int *ack, u_int *is_first, u_int32_t *crc_p) argument 840 get_rx_buf(struct sbni_softc *sc) argument 876 indicate_pkt(struct sbni_softc *sc) argument 901 struct sbni_softc *sc; local 930 card_start(struct sbni_softc *sc) argument 956 set_initial_values(struct sbni_softc *sc, struct sbni_flags flags) argument 985 sbni_add(struct sbni_softc *sc) argument 995 connect_to_master(struct sbni_softc *sc) argument 1022 change_level(struct sbni_softc *sc) argument 1043 timeout_change_level(struct sbni_softc *sc) argument 1067 struct sbni_softc *sc; local [all...] |
/freebsd-current/sys/arm/mv/ |
H A D | a37x0_iic.c | 84 a37x0_iic_rmw(struct a37x0_iic_softc *sc, uint32_t off, uint32_t mask, argument 89 mtx_assert(&sc->sc_mtx, MA_OWNED); 90 reg = A37X0_IIC_READ(sc, off); 93 A37X0_IIC_WRITE(sc, off, reg); 97 a37x0_iic_wait_clear(struct a37x0_iic_softc *sc, uint32_t mask) argument 102 mtx_assert(&sc->sc_mtx, MA_OWNED); 106 status = A37X0_IIC_READ(sc, A37X0_IIC_ISR); 115 a37x0_iic_wait_set(struct a37x0_iic_softc *sc, uint32_t mask) argument 120 mtx_assert(&sc->sc_mtx, MA_OWNED); 124 status = A37X0_IIC_READ(sc, A37X0_IIC_IS 134 a37x0_iic_regdump(struct a37x0_iic_softc *sc) argument 145 a37x0_iic_reset(struct a37x0_iic_softc *sc) argument 188 struct a37x0_iic_softc *sc; local 246 struct a37x0_iic_softc *sc; local 267 struct a37x0_iic_softc *sc; local 286 struct a37x0_iic_softc *sc; local 309 struct a37x0_iic_softc *sc; local 349 struct a37x0_iic_softc *sc; local 370 struct a37x0_iic_softc *sc; local 407 struct a37x0_iic_softc *sc; local [all...] |
/freebsd-current/sys/dev/tsec/ |
H A D | if_tsec.c | 73 static void tsec_dma_ctl(struct tsec_softc *sc, int state); 74 static void tsec_encap(if_t ifp, struct tsec_softc *sc, 76 static void tsec_free_dma(struct tsec_softc *sc); 84 static void tsec_intrs_ctl(struct tsec_softc *sc, int state); 86 static void tsec_init_locked(struct tsec_softc *sc); 88 static void tsec_reset_mac(struct tsec_softc *sc); 89 static void tsec_setfilter(struct tsec_softc *sc); 90 static void tsec_set_mac_address(struct tsec_softc *sc); 93 static void tsec_stop(struct tsec_softc *sc); 95 static void tsec_watchdog(struct tsec_softc *sc); 117 tsec_attach(struct tsec_softc *sc) argument 290 tsec_detach(struct tsec_softc *sc) argument 318 struct tsec_softc *sc; local 347 struct tsec_softc *sc = xsc; local 355 tsec_mii_wait(struct tsec_softc *sc, uint32_t flags) argument 373 tsec_init_locked(struct tsec_softc *sc) argument 566 tsec_set_mac_address(struct tsec_softc *sc) argument 596 tsec_dma_ctl(struct tsec_softc *sc, int state) argument 652 tsec_intrs_ctl(struct tsec_softc *sc, int state) argument 675 tsec_reset_mac(struct tsec_softc *sc) argument 691 tsec_watchdog(struct tsec_softc *sc) argument 711 struct tsec_softc *sc = if_getsoftc(ifp); local 721 struct tsec_softc *sc; local 790 tsec_encap(if_t ifp, struct tsec_softc *sc, struct mbuf *m0, uint16_t fcb_flags, int *start_tx) argument 870 tsec_setfilter(struct tsec_softc *sc) argument 894 struct tsec_softc *sc = if_getsoftc(ifp); local 928 struct tsec_softc *sc = if_getsoftc(ifp); local 1018 struct tsec_softc *sc = if_getsoftc(ifp); local 1033 struct tsec_softc *sc = if_getsoftc(ifp); local 1171 tsec_free_dma(struct tsec_softc *sc) argument 1211 tsec_stop(struct tsec_softc *sc) argument 1251 struct tsec_softc *sc = arg; local 1281 tsec_receive_intr_locked(struct tsec_softc *sc, int count) argument 1410 struct tsec_softc *sc = arg; local 1429 tsec_transmit_intr_locked(struct tsec_softc *sc) argument 1491 struct tsec_softc *sc = arg; local 1509 tsec_error_intr_locked(struct tsec_softc *sc, int count) argument 1561 struct tsec_softc *sc = arg; local 1571 struct tsec_softc *sc; local 1595 struct tsec_softc *sc; local 1615 struct tsec_softc *sc; local 1667 tsec_add_sysctls(struct tsec_softc *sc) argument 1727 struct tsec_softc *sc = (struct tsec_softc *)arg1; local 1756 struct tsec_softc *sc = (struct tsec_softc *)arg1; local 1781 tsec_set_rxic(struct tsec_softc *sc) argument 1798 tsec_set_txic(struct tsec_softc *sc) argument 1815 tsec_offload_setup(struct tsec_softc *sc) argument 1844 tsec_offload_process_frame(struct tsec_softc *sc, struct mbuf *m) argument 1892 tsec_setup_multicast(struct tsec_softc *sc) argument 1914 tsec_set_mtu(struct tsec_softc *sc, unsigned int mtu) argument [all...] |
/freebsd-current/sys/dev/bhnd/cores/pcie2/ |
H A D | bhnd_pcie2_var.h | 52 uint32_t bhnd_pcie2_read_proto_reg(struct bhnd_pcie2_softc *sc, 54 void bhnd_pcie2_write_proto_reg(struct bhnd_pcie2_softc *sc, 56 int bhnd_pcie2_mdio_read(struct bhnd_pcie2_softc *sc, int phy, 58 int bhnd_pcie2_mdio_write(struct bhnd_pcie2_softc *sc, int phy, 60 int bhnd_pcie2_mdio_read_ext(struct bhnd_pcie2_softc *sc, int phy, 62 int bhnd_pcie2_mdio_write_ext(struct bhnd_pcie2_softc *sc, 89 #define BHND_PCIE2_LOCK_INIT(sc) \ 90 mtx_init(&(sc)->mtx, device_get_nameunit((sc)->dev), \ 92 #define BHND_PCIE2_LOCK(sc) mtx_loc [all...] |
/freebsd-current/sys/dev/qcom_tlmm/ |
H A D | qcom_tlmm_ipq4018_hw.h | 34 struct qcom_tlmm_softc *sc, int pin, int function); 36 struct qcom_tlmm_softc *sc, int pin, int *function); 39 struct qcom_tlmm_softc *sc, int pin); 41 struct qcom_tlmm_softc *sc, int pin); 43 struct qcom_tlmm_softc *sc, int pin, bool *is_output); 46 struct qcom_tlmm_softc *sc, 49 struct qcom_tlmm_softc *sc, 52 struct qcom_tlmm_softc *sc, 55 struct qcom_tlmm_softc *sc, 59 struct qcom_tlmm_softc *sc, uint32_ [all...] |
/freebsd-current/sys/dev/hid/ |
H A D | hidraw.c | 209 struct hidraw_softc *sc = device_get_softc(self); local 213 sc->sc_dev = self; 214 sc->sc_rdesc = hidbus_get_rdesc_info(self); 215 sc->sc_hw = hid_get_device_info(self); 218 if (sc->sc_rdesc->data == NULL || sc->sc_rdesc->len == 0) 221 mtx_init(&sc->sc_mtx, "hidraw lock", NULL, MTX_DEF); 222 knlist_init_mtx(&sc->sc_rsel.si_note, &sc->sc_mtx); 230 mda.mda_si_drv1 = sc; 251 struct hidraw_softc *sc = device_get_softc(self); local 275 struct hidraw_softc *sc = context; local 299 hidraw_lock_queue(struct hidraw_softc *sc, bool flush) argument 328 hidraw_unlock_queue(struct hidraw_softc *sc) argument 342 struct hidraw_softc *sc; local 388 struct hidraw_softc *sc = data; local 409 struct hidraw_softc *sc; local 490 struct hidraw_softc *sc; local 566 struct hidraw_softc *sc; local 899 struct hidraw_softc *sc; local 925 struct hidraw_softc *sc; local 950 struct hidraw_softc *sc; local 969 struct hidraw_softc *sc; local 976 hidraw_notify(struct hidraw_softc *sc) argument [all...] |
/freebsd-current/sys/arm64/rockchip/ |
H A D | rk_pcie.c | 166 #define PRIV_CFG_RD4(sc, reg) \ 167 (uint32_t)rk_pcie_local_cfg_read(sc, true, reg, 4) 168 #define PRIV_CFG_RD2(sc, reg) \ 169 (uint16_t)rk_pcie_local_cfg_read(sc, true, reg, 2) 170 #define PRIV_CFG_RD1(sc, reg) \ 171 (uint8_t)rk_pcie_local_cfg_read(sc, true, reg, 1) 172 #define PRIV_CFG_WR4(sc, reg, val) \ 173 rk_pcie_local_cfg_write(sc, true, reg, val, 4) 174 #define PRIV_CFG_WR2(sc, reg, val) \ 175 rk_pcie_local_cfg_write(sc, tru 245 rk_pcie_local_cfg_read(struct rk_pcie_softc *sc, bool priv, u_int reg, int bytes) argument 273 rk_pcie_local_cfg_write(struct rk_pcie_softc *sc, bool priv, u_int reg, uint32_t val, int bytes) argument 304 rk_pcie_check_dev(struct rk_pcie_softc *sc, u_int bus, u_int slot, u_int func, u_int reg) argument 332 rk_pcie_map_out_atu(struct rk_pcie_softc *sc, int idx, int type, int num_bits, uint64_t pa) argument 358 rk_pcie_map_cfg_atu(struct rk_pcie_softc *sc, int idx, int type) argument 380 rk_pcie_map_in_atu(struct rk_pcie_softc *sc, int idx, int num_bits, uint64_t pa) argument 399 rk_pcie_decode_ranges(struct rk_pcie_softc *sc, struct ofw_pci_range *ranges, int nranges) argument 451 struct rk_pcie_softc *sc; local 494 struct rk_pcie_softc *sc; local 629 struct rk_pcie_softc *sc; local 645 rk_pcie_parse_fdt_resources(struct rk_pcie_softc *sc) argument 758 rk_pcie_enable_resources(struct rk_pcie_softc *sc) argument 917 rk_pcie_setup_hw(struct rk_pcie_softc *sc) argument 1002 rk_pcie_setup_sw(struct rk_pcie_softc *sc) argument 1068 struct rk_pcie_softc *sc; local 1088 struct rk_pcie_softc *sc; local 1106 struct rk_pcie_softc *sc; local 1121 struct rk_pcie_softc *sc; local 1146 struct rk_pcie_softc *sc; local [all...] |
/freebsd-current/sys/dev/vge/ |
H A D | if_vge.c | 237 vge_eeprom_getword(struct vge_softc *sc, int addr, uint16_t *dest) argument 247 CSR_SETBIT_1(sc, VGE_CHIPCFG2, VGE_CHIPCFG2_EELOAD); 248 CSR_SETBIT_1(sc, VGE_EECSR, VGE_EECSR_EMBP/*|VGE_EECSR_ECS*/); 251 CSR_WRITE_1(sc, VGE_EEADDR, addr); 254 CSR_SETBIT_1(sc, VGE_EECMD, VGE_EECMD_ERD); 258 if (CSR_READ_1(sc, VGE_EECMD) & VGE_EECMD_EDONE) 263 device_printf(sc->vge_dev, "EEPROM read timed out\n"); 269 word = CSR_READ_2(sc, VGE_EERDDAT); 272 CSR_CLRBIT_1(sc, VGE_EECSR, VGE_EECSR_EMBP/*|VGE_EECSR_ECS*/); 273 CSR_CLRBIT_1(sc, VGE_CHIPCFG 283 vge_read_eeprom(struct vge_softc *sc, caddr_t dest, int off, int cnt, int swap) argument 304 vge_miipoll_stop(struct vge_softc *sc) argument 321 vge_miipoll_start(struct vge_softc *sc) argument 360 struct vge_softc *sc; local 394 struct vge_softc *sc; local 428 vge_cam_clear(struct vge_softc *sc) argument 458 vge_cam_set(struct vge_softc *sc, uint8_t *addr) argument 512 vge_setvlan(struct vge_softc *sc) argument 531 struct vge_softc *sc = arg; local 561 vge_rxfilter(struct vge_softc *sc) argument 615 vge_reset(struct vge_softc *sc) argument 682 vge_dma_alloc(struct vge_softc *sc) argument 912 vge_dma_free(struct vge_softc *sc) argument 996 struct vge_softc *sc; local 1166 struct vge_softc *sc; local 1210 vge_discard_rxbuf(struct vge_softc *sc, int prod) argument 1237 vge_newbuf(struct vge_softc *sc, int prod) argument 1307 vge_tx_list_init(struct vge_softc *sc) argument 1335 vge_rx_list_init(struct vge_softc *sc) argument 1373 vge_freebufs(struct vge_softc *sc) argument 1434 vge_rxeof(struct vge_softc *sc, int count) argument 1606 vge_txeof(struct vge_softc *sc) argument 1661 struct vge_softc *sc; local 1704 struct vge_softc *sc = if_getsoftc(ifp); local 1750 struct vge_softc *sc; local 1814 vge_encap(struct vge_softc *sc, struct mbuf **m_head) argument 1943 struct vge_softc *sc; local 1954 struct vge_softc *sc; local 2016 struct vge_softc *sc = xsc; local 2024 vge_init_locked(struct vge_softc *sc) argument 2161 struct vge_softc *sc; local 2173 vge_ifmedia_upd_locked(struct vge_softc *sc) argument 2194 struct vge_softc *sc; local 2212 vge_setmedia(struct vge_softc *sc) argument 2259 struct vge_softc *sc = if_getsoftc(ifp); local 2374 struct vge_softc *sc; local 2400 vge_stop(struct vge_softc *sc) argument 2432 struct vge_softc *sc; local 2453 struct vge_softc *sc; local 2499 vge_sysctl_node(struct vge_softc *sc) argument 2614 vge_stats_clear(struct vge_softc *sc) argument 2634 vge_stats_update(struct vge_softc *sc) argument 2734 vge_intr_holdoff(struct vge_softc *sc) argument 2782 vge_setlinkspeed(struct vge_softc *sc) argument 2844 vge_setwol(struct vge_softc *sc) argument 2909 vge_clrwol(struct vge_softc *sc) argument [all...] |
/freebsd-current/sys/dev/pwm/ |
H A D | pwm_backlight.c | 75 static int pwm_backlight_find_level_per_percent(struct pwm_backlight_softc *sc, int percent); 96 struct pwm_backlight_softc *sc; local 100 sc = device_get_softc(dev); 103 rv = pwm_get_by_ofw_propidx(dev, node, "pwms", 0, &sc->channel); 110 &sc->power_supply) != 0) { 116 sc->nlevels = OF_getencprop_alloc(node, "brightness-levels", 117 (void **)&sc->levels); 118 if (sc->nlevels <= 0) { 122 sc->nlevels /= sizeof(uint32_t); 125 &sc 174 struct pwm_backlight_softc *sc; local 185 pwm_backlight_find_level_per_percent(struct pwm_backlight_softc *sc, int percent) argument 212 struct pwm_backlight_softc *sc; local 257 struct pwm_backlight_softc *sc; local [all...] |
/freebsd-current/sys/dev/etherswitch/e6000sw/ |
H A D | e6000sw.c | 214 e6000sw_softc_t *sc; local 222 sc = device_get_softc(dev); 223 sc->dev = dev; 239 sc->swid = MV88E6190; 245 sc->node = switch_node; 247 if (OF_getencprop(sc->node, "reg", &sc->sw_addr, 248 sizeof(sc->sw_addr)) < 0) 251 if (resource_int_value(device_get_name(sc->dev), 252 device_get_unit(sc 317 e6000sw_parse_fixed_link(e6000sw_softc_t *sc, phandle_t node, uint32_t port) argument 343 e6000sw_parse_ethernet(e6000sw_softc_t *sc, phandle_t port_handle, uint32_t port) argument 365 e6000sw_parse_child_fdt(e6000sw_softc_t *sc, phandle_t child, int *pport) argument 416 e6000sw_parse_hinted_port(e6000sw_softc_t *sc, int port) argument 450 e6000sw_init_interface(e6000sw_softc_t *sc, int port) argument 474 e6000sw_attach_miibus(e6000sw_softc_t *sc, int port) argument 517 e6000sw_softc_t *sc; local 661 e6000sw_waitready(e6000sw_softc_t *sc, uint32_t phy, uint32_t reg, uint32_t busybit) argument 679 e6000sw_softc_t *sc; local 718 e6000sw_softc_t *sc; local 751 e6000sw_softc_t *sc; local 773 e6000sw_softc_t *sc; local 805 e6000sw_softc_t *sc; local 823 e6000sw_softc_t *sc; local 851 e6000sw_softc_t *sc; local 884 struct e6000sw_softc *sc; local 897 struct e6000sw_softc *sc; local 913 struct e6000sw_softc *sc; local 924 struct e6000sw_softc *sc; local 940 e6000sw_softc_t *sc = device_get_softc(dev); local 985 e6000sw_softc_t *sc; local 1026 e6000sw_port_vlan_assign(e6000sw_softc_t *sc, int port, uint32_t fid, uint32_t members) argument 1043 e6000sw_init_vlan(struct e6000sw_softc *sc) argument 1127 e6000sw_set_vlan_mode(struct e6000sw_softc *sc, uint32_t mode) argument 1156 e6000sw_softc_t *sc; local 1172 e6000sw_softc_t *sc; local 1193 e6000sw_softc_t *sc; local 1209 e6000sw_softc_t *sc; local 1223 e6000sw_set_port_vlan(e6000sw_softc_t *sc, etherswitch_vlangroup_t *vg) argument 1243 e6000sw_set_dot1q_vlan(e6000sw_softc_t *sc, etherswitch_vlangroup_t *vg) argument 1273 e6000sw_softc_t *sc; local 1287 e6000sw_get_port_vlan(e6000sw_softc_t *sc, etherswitch_vlangroup_t *vg) argument 1311 e6000sw_get_dot1q_vlan(e6000sw_softc_t *sc, etherswitch_vlangroup_t *vg) argument 1363 e6000sw_softc_t *sc; local 1377 e6000sw_miiforphy(e6000sw_softc_t *sc, unsigned int phy) argument 1389 e6000sw_softc_t *sc; local 1404 e6000sw_softc_t *sc; local 1419 e6000sw_smi_waitready(e6000sw_softc_t *sc, int phy) argument 1433 e6000sw_readreg(e6000sw_softc_t *sc, int addr, int reg) argument 1457 e6000sw_writereg(e6000sw_softc_t *sc, int addr, int reg, int val) argument 1478 e6000sw_is_cpuport(e6000sw_softc_t *sc, int port) argument 1485 e6000sw_is_fixedport(e6000sw_softc_t *sc, int port) argument 1492 e6000sw_is_fixed25port(e6000sw_softc_t *sc, int port) argument 1499 e6000sw_is_phyport(e6000sw_softc_t *sc, int port) argument 1508 e6000sw_is_portenabled(e6000sw_softc_t *sc, int port) argument 1515 e6000sw_set_pvid(e6000sw_softc_t *sc, int port, int pvid) argument 1526 e6000sw_get_pvid(e6000sw_softc_t *sc, int port, int *pvid) argument 1575 e6000sw_softc_t *sc; local 1613 e6000sw_setup(device_t dev, e6000sw_softc_t *sc) argument 1643 e6000sw_set_atustat(device_t dev, e6000sw_softc_t *sc, int bin, int flag) argument 1652 e6000sw_atu_mac_table(device_t dev, e6000sw_softc_t *sc, struct atu_opt *atu, int flag) argument 1700 e6000sw_atu_flush(device_t dev, e6000sw_softc_t *sc, int flag) argument 1721 e6000sw_vtu_flush(e6000sw_softc_t *sc) argument 1739 e6000sw_vtu_update(e6000sw_softc_t *sc, int purge, int vid, int fid, int members, int untagged) argument [all...] |
/freebsd-current/sys/dev/etherswitch/ip17x/ |
H A D | ip175d.c | 60 ip175d_reset(struct ip17x_softc *sc) argument 64 ip17x_writephy(sc->sc_dev, IP175D_RESET_PHY, IP175D_RESET_REG, 0x175d); 68 ip17x_updatephy(sc->sc_dev, 21, 22, 0x3, 0x0); 71 ip17x_writephy(sc->sc_dev, 22, 3, 0x8100); 80 ip175d_hw_setup(struct ip17x_softc *sc) argument 96 v = &sc->vlan[i]; 98 sc->vlan_mode == 0) { 100 ip17x_writephy(sc->sc_dev, 22, 14 + i, i + 1); 109 ip17x_writephy(sc->sc_dev, 22, 14 + i, 115 if (sc 146 ip175d_set_vlan_mode(struct ip17x_softc *sc, uint32_t mode) argument 200 ip175d_get_vlan_mode(struct ip17x_softc *sc) argument 207 ip175d_attach(struct ip17x_softc *sc) argument [all...] |