/freebsd-9.3-release/sys/dev/twa/ |
H A D | tw_osl_externs.h | 58 extern TW_INT32 tw_osli_fw_passthru(struct twa_softc *sc, TW_INT8 *buf); 61 extern struct tw_osli_req_context *tw_osli_get_request(struct twa_softc *sc); 74 extern TW_INT32 tw_osli_cam_attach(struct twa_softc *sc); 77 extern TW_VOID tw_osli_cam_detach(struct twa_softc *sc); 80 extern TW_INT32 tw_osli_request_bus_scan(struct twa_softc *sc); 83 extern TW_VOID tw_osli_disallow_new_requests(struct twa_softc *sc,
|
/freebsd-9.3-release/sys/pci/ |
H A D | intpm.c | 61 #define INTSMB_LOCK(sc) mtx_lock(&(sc)->lock) 62 #define INTSMB_UNLOCK(sc) mtx_unlock(&(sc)->lock) 63 #define INTSMB_LOCK_ASSERT(sc) mtx_assert(&(sc)->lock, MA_OWNED) 68 static int intsmb_intr(struct intsmb_softc *sc); 69 static int intsmb_slvintr(struct intsmb_softc *sc); 70 static void intsmb_alrintr(struct intsmb_softc *sc); 82 static void intsmb_start(struct intsmb_softc *sc, u_cha 121 struct intsmb_softc *sc = device_get_softc(dev); local 236 struct intsmb_softc *sc = device_get_softc(dev); local 259 struct intsmb_softc *sc = arg; local 286 intsmb_free(struct intsmb_softc *sc) argument 310 intsmb_intr(struct intsmb_softc *sc) argument 334 intsmb_slvintr(struct intsmb_softc *sc) argument 355 intsmb_alrintr(struct intsmb_softc *sc) argument 395 intsmb_start(struct intsmb_softc *sc, unsigned char cmd, int nointr) argument 438 intsmb_stop_poll(struct intsmb_softc *sc) argument 471 intsmb_stop(struct intsmb_softc *sc) argument 510 struct intsmb_softc *sc = device_get_softc(dev); local 544 struct intsmb_softc *sc = device_get_softc(dev); local 564 struct intsmb_softc *sc = device_get_softc(dev); local 594 struct intsmb_softc *sc = device_get_softc(dev); local 615 struct intsmb_softc *sc = device_get_softc(dev); local 637 struct intsmb_softc *sc = device_get_softc(dev); local 659 struct intsmb_softc *sc = device_get_softc(dev); local 689 struct intsmb_softc *sc = device_get_softc(dev); local 718 struct intsmb_softc *sc = device_get_softc(dev); local 748 struct intsmb_softc *sc = device_get_softc(dev); local [all...] |
/freebsd-9.3-release/sys/dev/atkbdc/ |
H A D | psm.c | 811 doinitialize(struct psm_softc *sc, mousemode_t *mode) argument 813 KBDC kbdc = sc->kbdc; 825 sc->unit, i); 832 if (sc->config & PSM_CONFIG_IGNPORTERROR) 835 sc->unit, i); 839 if (sc->config & PSM_CONFIG_NORESET) { 852 sc->unit); 863 sc->unit); 870 if (vendortype[i].model == sc->hw.model) 871 (*vendortype[i].probefunc)(sc 896 doopen(struct psm_softc *sc, int command_byte) argument 1016 reinitialize(struct psm_softc *sc, int doinit) argument 1155 struct psm_softc *sc = device_get_softc(dev); local 1462 struct psm_softc *sc = device_get_softc(dev); local 1523 struct psm_softc *sc; local 1543 struct psm_softc *sc; local 1629 struct psm_softc *sc = dev->si_drv1; local 1721 tame_mouse(struct psm_softc *sc, packetbuf_t *pb, mousestatus_t *status, u_char *buf) argument 1785 struct psm_softc *sc = dev->si_drv1; local 1841 block_mouse_data(struct psm_softc *sc, int *c) argument 1881 dropqueue(struct psm_softc *sc) argument 1895 flushpackets(struct psm_softc *sc) argument 1903 unblock_mouse_data(struct psm_softc *sc, int c) argument 1932 struct psm_softc *sc = dev->si_drv1; local 1965 struct psm_softc *sc = dev->si_drv1; local 2293 struct psm_softc *sc; local 2346 struct psm_softc *sc = arg; local 2499 proc_mmanplus(struct psm_softc *sc, packetbuf_t *pb, mousestatus_t *ms, int *x, int *y, int *z) argument 2595 proc_synaptics(struct psm_softc *sc, packetbuf_t *pb, mousestatus_t *ms, int *x, int *y, int *z) argument 3227 proc_versapad(struct psm_softc *sc, packetbuf_t *pb, mousestatus_t *ms, int *x, int *y, int *z) argument 3310 struct psm_softc *sc = arg; local 3560 struct psm_softc *sc = dev->si_drv1; local 3614 enable_lcordless(KDBC kbdc, struct psm_softc *sc) argument 3636 enable_groller(KBDC kbdc, struct psm_softc *sc) argument 3673 enable_gmouse(KBDC kbdc, struct psm_softc *sc) argument 3696 enable_aglide(KBDC kbdc, struct psm_softc *sc) argument 3718 enable_kmouse(KBDC kbdc, struct psm_softc *sc) argument 3771 enable_mmanplus(KBDC kbdc, struct psm_softc *sc) argument 3829 enable_msexplorer(KBDC kbdc, struct psm_softc *sc) argument 3877 enable_msintelli(KBDC kbdc, struct psm_softc *sc) argument 3907 enable_4dmouse(KBDC kbdc, struct psm_softc *sc) argument 3939 enable_4dplus(KBDC kbdc, struct psm_softc *sc) argument 4056 synaptics_sysctl_create_tree(struct psm_softc *sc) argument 4359 enable_synaptics(KBDC kbdc, struct psm_softc *sc) argument 4552 struct psm_softc *sc; local 4579 trackpoint_sysctl_create_tree(struct psm_softc *sc) argument 4701 enable_trackpoint(KBDC kbdc, struct psm_softc *sc) argument 4746 enable_versapad(KBDC kbdc, struct psm_softc *sc) argument 4793 struct psm_softc *sc = device_get_softc(dev); local [all...] |
/freebsd-9.3-release/sys/dev/fb/ |
H A D | creator.c | 94 #define FFB_READ(sc, reg, off) \ 95 bus_space_read_4((sc)->sc_bt[(reg)], (sc)->sc_bh[(reg)], (off)) 96 #define FFB_WRITE(sc, reg, off, val) \ 97 bus_space_write_4((sc)->sc_bt[(reg)], (sc)->sc_bh[(reg)], (off), (val)) 194 static void creator_cursor_enable(struct creator_softc *sc, int onoff); 195 static void creator_cursor_install(struct creator_softc *sc); 298 static inline void creator_ras_fifo_wait(struct creator_softc *sc, int n); 299 static inline void creator_ras_setfontinc(struct creator_softc *sc, in 307 creator_ras_wait(struct creator_softc *sc) argument 323 creator_ras_fifo_wait(struct creator_softc *sc, int n) argument 335 creator_ras_setfontinc(struct creator_softc *sc, int fontinc) argument 347 creator_ras_setfontw(struct creator_softc *sc, int fontw) argument 359 creator_ras_setbg(struct creator_softc *sc, int bg) argument 371 creator_ras_setfg(struct creator_softc *sc, int fg) argument 383 creator_ras_setpmask(struct creator_softc *sc, int pmask) argument 400 struct creator_softc *sc; local 466 struct creator_softc *sc; local 549 struct creator_softc *sc; local 608 struct creator_softc *sc; local 668 struct creator_softc *sc; local 705 struct creator_softc *sc; local 736 struct creator_softc *sc; local 747 struct creator_softc *sc; local 818 struct creator_softc *sc; local 857 struct creator_softc *sc; local 906 struct creator_softc *sc; local 1044 struct creator_softc *sc; local 1054 struct creator_softc *sc; local 1080 creator_cursor_enable(struct creator_softc *sc, int onoff) argument 1093 creator_cursor_install(struct creator_softc *sc) argument 1116 struct creator_softc *sc = xsc; local [all...] |
/freebsd-9.3-release/sys/powerpc/ps3/ |
H A D | ps3disk.c | 86 #define DPRINTF(sc, m, fmt, ...) \ 88 if (sc->sc_debug & (m)) \ 92 #define DPRINTF(sc, m, fmt, ...) 135 static int ps3disk_get_disk_geometry(struct ps3disk_softc *sc); 136 static int ps3disk_enum_regions(struct ps3disk_softc *sc); 140 static void ps3disk_sysctlattach(struct ps3disk_softc *sc); 159 struct ps3disk_softc *sc; local 166 sc = device_get_softc(dev); 167 sc->sc_dev = dev; 169 PS3DISK_LOCK_INIT(sc); 291 struct ps3disk_softc *sc = device_get_softc(dev); local 326 struct ps3disk_softc *sc = (struct ps3disk_softc *) arg; local 357 struct ps3disk_softc *sc = (struct ps3disk_softc *)bp->bio_disk->d_drv1; local 415 struct ps3disk_softc *sc = (struct ps3disk_softc *) arg; local 468 ps3disk_get_disk_geometry(struct ps3disk_softc *sc) argument 499 ps3disk_enum_regions(struct ps3disk_softc *sc) argument 592 struct ps3disk_softc *sc = (struct ps3disk_softc *)bp->bio_disk->d_drv1; local 658 struct ps3disk_softc *sc = arg1; local 674 ps3disk_sysctlattach(struct ps3disk_softc *sc) argument [all...] |
/freebsd-9.3-release/sys/dev/usb/input/ |
H A D | wsp.c | 448 static int wsp_enable(struct wsp_softc *sc); 449 static void wsp_disable(struct wsp_softc *sc); 452 static void wsp_reset_buf(struct wsp_softc *sc); 476 wsp_set_device_mode(struct wsp_softc *sc, interface_mode mode) argument 481 err = usbd_req_get_report(sc->sc_usb_device, NULL, 500 return (usbd_req_set_report(sc->sc_usb_device, NULL, 506 wsp_enable(struct wsp_softc *sc) argument 509 memset(&sc->sc_status, 0, sizeof(sc->sc_status)); 510 sc 517 wsp_disable(struct wsp_softc *sc) argument 544 struct wsp_softc *sc = device_get_softc(dev); local 643 struct wsp_softc *sc = device_get_softc(dev); local 664 struct wsp_softc *sc = usbd_xfer_softc(xfer); local 1003 wsp_add_to_queue(struct wsp_softc *sc, int dx, int dy, int dz, uint32_t buttons_in) argument 1042 wsp_reset_buf(struct wsp_softc *sc) argument 1051 struct wsp_softc *sc = usb_fifo_softc(fifo); local 1074 struct wsp_softc *sc = usb_fifo_softc(fifo); local 1086 struct wsp_softc *sc = usb_fifo_softc(fifo); local 1109 struct wsp_softc *sc = usb_fifo_softc(fifo); local 1119 struct wsp_softc *sc = usb_fifo_softc(fifo); local [all...] |
/freebsd-9.3-release/sys/dev/bce/ |
H A D | if_bce.c | 421 static void bce_mgmt_init_locked (struct bce_softc *sc); 646 struct bce_softc *sc; local 652 sc = device_get_softc(dev); 653 sc->bce_unit = device_get_unit(dev); 654 sc->bce_dev = dev; 662 DBPRINT(sc, BCE_EXTREME_LOAD, 705 bce_print_adapter_info(struct bce_softc *sc) argument 712 BCE_PRINTF("ASIC (0x%08X); ", sc->bce_chipid); 713 printf("Rev (%c%d); ", ((BCE_CHIP_ID(sc) & 0xf000) >> 714 12) + 'A', ((BCE_CHIP_ID(sc) 797 bce_probe_pci_caps(device_t dev, struct bce_softc *sc) argument 845 bce_set_tunables(struct bce_softc *sc) argument 1033 struct bce_softc *sc; local 1527 struct bce_softc *sc = device_get_softc(dev); local 1580 struct bce_softc *sc = device_get_softc(dev); local 1608 bce_reg_rd(struct bce_softc *sc, u32 offset) argument 1624 bce_reg_wr16(struct bce_softc *sc, u32 offset, u16 val) argument 1639 bce_reg_wr(struct bce_softc *sc, u32 offset, u32 val) argument 1658 bce_reg_rd_ind(struct bce_softc *sc, u32 offset) argument 1689 bce_reg_wr_ind(struct bce_softc *sc, u32 offset, u32 val) argument 1711 bce_shmem_wr(struct bce_softc *sc, u32 offset, u32 val) argument 1729 bce_shmem_rd(struct bce_softc *sc, u32 offset) argument 1751 bce_ctx_rd(struct bce_softc *sc, u32 cid_addr, u32 ctx_offset) argument 1801 bce_ctx_wr(struct bce_softc *sc, u32 cid_addr, u32 ctx_offset, u32 ctx_val) argument 1848 struct bce_softc *sc; local 1929 struct bce_softc *sc; local 2002 struct bce_softc *sc; local 2114 bce_acquire_nvram_lock(struct bce_softc *sc) argument 2152 bce_release_nvram_lock(struct bce_softc *sc) argument 2192 bce_enable_nvram_write(struct bce_softc *sc) argument 2237 bce_disable_nvram_write(struct bce_softc *sc) argument 2262 bce_enable_nvram_access(struct bce_softc *sc) argument 2286 bce_disable_nvram_access(struct bce_softc *sc) argument 2313 bce_nvram_erase_page(struct bce_softc *sc, u32 offset) argument 2369 bce_nvram_read_dword(struct bce_softc *sc, u32 offset, u8 *ret_val, u32 cmd_flags) argument 2435 bce_nvram_write_dword(struct bce_softc *sc, u32 offset, u8 *val, u32 cmd_flags) argument 2493 bce_init_nvram(struct bce_softc *sc) argument 2607 bce_nvram_read(struct bce_softc *sc, u32 offset, u8 *ret_buf, int buf_size) argument 2733 bce_nvram_write(struct bce_softc *sc, u32 offset, u8 *data_buf, int buf_size) argument 2933 bce_nvram_test(struct bce_softc *sc) argument 3006 bce_get_rx_buffer_sizes(struct bce_softc *sc, int mtu) argument 3057 bce_get_media(struct bce_softc *sc) argument 3165 bce_init_media(struct bce_softc *sc) argument 3199 bce_dma_free(struct bce_softc *sc) argument 3493 struct bce_softc *sc; local 3883 bce_release_resources(struct bce_softc *sc) argument 3937 bce_fw_sync(struct bce_softc *sc, u32 msg_data) argument 3998 bce_load_rv2p_fw(struct bce_softc *sc, const u32 *rv2p_code, u32 rv2p_code_len, u32 rv2p_proc) argument 4049 bce_load_cpu_fw(struct bce_softc *sc, struct cpu_reg *cpu_reg, struct fw_info *fw) argument 4126 bce_start_cpu(struct bce_softc *sc, struct cpu_reg *cpu_reg) argument 4149 bce_halt_cpu(struct bce_softc *sc, struct cpu_reg *cpu_reg) argument 4172 bce_start_rxp_cpu(struct bce_softc *sc) argument 4205 bce_init_rxp_cpu(struct bce_softc *sc) argument 4303 bce_init_txp_cpu(struct bce_softc *sc) argument 4400 bce_init_tpat_cpu(struct bce_softc *sc) argument 4497 bce_init_cp_cpu(struct bce_softc *sc) argument 4594 bce_init_com_cpu(struct bce_softc *sc) argument 4693 bce_init_cpus(struct bce_softc *sc) argument 4737 bce_init_ctx(struct bce_softc *sc) argument 4839 bce_get_mac_addr(struct bce_softc *sc) argument 4882 bce_set_mac_addr(struct bce_softc *sc) argument 4913 bce_stop(struct bce_softc *sc) argument 4952 bce_reset(struct bce_softc *sc, u32 reset_code) argument 5075 bce_chipinit(struct bce_softc *sc) argument 5182 bce_blockinit(struct bce_softc *sc) argument 5352 bce_get_rx_buf(struct bce_softc *sc, u16 prod, u16 chain_prod, u32 *prod_bseq) argument 5467 bce_get_pg_buf(struct bce_softc *sc, u16 prod, u16 prod_idx) argument 5571 bce_init_tx_context(struct bce_softc *sc) argument 5621 bce_init_tx_chain(struct bce_softc *sc) argument 5681 bce_free_tx_chain(struct bce_softc *sc) argument 5723 bce_init_rx_context(struct bce_softc *sc) argument 5797 bce_init_rx_chain(struct bce_softc *sc) argument 5862 bce_fill_rx_chain(struct bce_softc *sc) argument 5909 bce_free_rx_chain(struct bce_softc *sc) argument 5953 bce_init_pg_chain(struct bce_softc *sc) argument 6033 bce_fill_pg_chain(struct bce_softc *sc) argument 6079 bce_free_pg_chain(struct bce_softc *sc) argument 6114 bce_get_rphy_link(struct bce_softc *sc) argument 6171 struct bce_softc *sc = ifp->if_softc; local 6194 struct bce_softc *sc = ifp->if_softc; local 6309 bce_ifmedia_sts_rphy(struct bce_softc *sc, struct ifmediareq *ifmr) argument 6396 struct bce_softc *sc = ifp->if_softc; local 6430 bce_phy_intr(struct bce_softc *sc) argument 6497 bce_get_hw_rx_cons(struct bce_softc *sc) argument 6516 bce_rx_intr(struct bce_softc *sc) argument 6877 bce_get_hw_tx_cons(struct bce_softc *sc) argument 6897 bce_tx_intr(struct bce_softc *sc) argument 7016 bce_disable_intr(struct bce_softc *sc) argument 7034 bce_enable_intr(struct bce_softc *sc, int coal_now) argument 7060 bce_init_locked(struct bce_softc *sc) argument 7174 bce_mgmt_init_locked(struct bce_softc *sc) argument 7212 struct bce_softc *sc = xsc; local 7231 bce_tso_setup(struct bce_softc *sc, struct mbuf **m_head, u16 *flags) argument 7351 bce_tx_encap(struct bce_softc *sc, struct mbuf **m_head) argument 7550 struct bce_softc *sc = ifp->if_softc; local 7645 struct bce_softc *sc = ifp->if_softc; local 7666 struct bce_softc *sc = ifp->if_softc; local 7829 bce_watchdog(struct bce_softc *sc) argument 7909 struct bce_softc *sc; local 8049 bce_set_rx_mode(struct bce_softc *sc) argument 8141 bce_stats_update(struct bce_softc *sc) argument 8385 struct bce_softc *sc = xsc; local 8442 struct bce_softc *sc = xsc; local 8511 bce_fw_cap_init(struct bce_softc *sc) argument 8552 struct bce_softc *sc; local 8580 struct bce_softc *sc; local 8608 struct bce_softc *sc; local 8636 struct bce_softc *sc; local 8665 struct bce_softc *sc; local 8729 struct bce_softc *sc; local 8757 struct bce_softc *sc; local 8785 struct bce_softc *sc; local 8813 struct bce_softc *sc; local 8841 struct bce_softc *sc; local 8869 struct bce_softc *sc; local 8895 struct bce_softc *sc = (struct bce_softc *)arg1; local 8924 struct bce_softc *sc = (struct bce_softc *)arg1; local 8956 struct bce_softc *sc; local 8987 struct bce_softc *sc = (struct bce_softc *)arg1; local 9017 struct bce_softc *sc = (struct bce_softc *)arg1; local 9049 struct bce_softc *sc; local 9079 struct bce_softc *sc; local 9103 bce_add_sysctls(struct bce_softc *sc) argument 9667 bce_freeze_controller(struct bce_softc *sc) argument 9684 bce_unfreeze_controller(struct bce_softc *sc) argument 9702 bce_dump_enet(struct bce_softc *sc, struct mbuf *m) argument 9805 bce_dump_mbuf(struct bce_softc *sc, struct mbuf *m) argument 9873 bce_dump_tx_mbuf_chain(struct bce_softc *sc, u16 chain_prod, int count) argument 9903 bce_dump_rx_mbuf_chain(struct bce_softc *sc, u16 chain_prod, int count) argument 9934 bce_dump_pg_mbuf_chain(struct bce_softc *sc, u16 chain_prod, int count) argument 9965 bce_dump_txbd(struct bce_softc *sc, int idx, struct tx_bd *txbd) argument 10080 bce_dump_rxbd(struct bce_softc *sc, int idx, struct rx_bd *rxbd) argument 10106 bce_dump_pgbd(struct bce_softc *sc, int idx, struct rx_bd *pgbd) argument 10131 bce_dump_l2fhdr(struct bce_softc *sc, int idx, struct l2_fhdr *l2fhdr) argument 10149 bce_dump_ctx(struct bce_softc *sc, u16 cid) argument 10271 bce_dump_ftqs(struct bce_softc *sc) argument 10517 bce_dump_tx_chain(struct bce_softc *sc, u16 tx_prod, int count) argument 10559 bce_dump_rx_bd_chain(struct bce_softc *sc, u16 rx_prod, int count) argument 10603 bce_dump_pg_chain(struct bce_softc *sc, u16 pg_prod, int count) argument 10662 bce_dump_status_block(struct bce_softc *sc) argument 10726 bce_dump_stats_block(struct bce_softc *sc) argument 10809 bce_dump_driver_state(struct bce_softc *sc) argument 10968 bce_dump_hw_state(struct bce_softc *sc) argument 11080 bce_dump_shmem_state(struct bce_softc *sc) argument 11117 bce_dump_mq_regs(struct bce_softc *sc) argument 11149 bce_dump_bc_state(struct bce_softc *sc) argument 11190 bce_dump_txp_state(struct bce_softc *sc, int regs) argument 11249 bce_dump_rxp_state(struct bce_softc *sc, int regs) argument 11309 bce_dump_tpat_state(struct bce_softc *sc, int regs) argument 11369 bce_dump_cp_state(struct bce_softc *sc, int regs) argument 11429 bce_dump_com_state(struct bce_softc *sc, int regs) argument 11487 bce_dump_rv2p_state(struct bce_softc *sc) argument 11555 bce_breakpoint(struct bce_softc *sc) argument [all...] |
/freebsd-9.3-release/sys/dev/ste/ |
H A D | if_ste.c | 183 #define STE_SETBIT4(sc, reg, x) \ 184 CSR_WRITE_4(sc, reg, CSR_READ_4(sc, reg) | (x)) 186 #define STE_CLRBIT4(sc, reg, x) \ 187 CSR_WRITE_4(sc, reg, CSR_READ_4(sc, reg) & ~(x)) 189 #define STE_SETBIT2(sc, reg, x) \ 190 CSR_WRITE_2(sc, reg, CSR_READ_2(sc, reg) | (x)) 192 #define STE_CLRBIT2(sc, re 207 struct ste_softc *sc; local 225 struct ste_softc *sc; local 253 struct ste_softc *sc; local 304 struct ste_softc *sc; local 323 struct ste_softc *sc; local 341 ste_wait(struct ste_softc *sc) argument 360 ste_eeprom_wait(struct ste_softc *sc) argument 386 ste_read_eeprom(struct ste_softc *sc, uint16_t *dest, int off, int cnt) argument 406 ste_rxfilter(struct ste_softc *sc) argument 461 struct ste_softc *sc = ifp->if_softc; local 474 struct ste_softc *sc = ifp->if_softc; local 505 struct ste_softc *sc; local 588 ste_rxeof(struct ste_softc *sc, int count) argument 666 ste_txeoc(struct ste_softc *sc) argument 733 struct ste_softc *sc; local 762 ste_txeof(struct ste_softc *sc) argument 804 ste_stats_clear(struct ste_softc *sc) argument 832 ste_stats_update(struct ste_softc *sc) argument 904 struct ste_softc *sc; local 1062 struct ste_softc *sc; local 1122 ste_dma_alloc(struct ste_softc *sc) argument 1307 ste_dma_free(struct ste_softc *sc) argument 1381 ste_newbuf(struct ste_softc *sc, struct ste_chain_onefrag *rxc) argument 1420 ste_init_rx_list(struct ste_softc *sc) argument 1457 ste_init_tx_list(struct ste_softc *sc) argument 1495 struct ste_softc *sc; local 1504 ste_init_locked(struct ste_softc *sc) argument 1619 ste_stop(struct ste_softc *sc) argument 1690 ste_reset(struct ste_softc *sc) argument 1720 ste_restart_tx(struct ste_softc *sc) argument 1742 struct ste_softc *sc; local 1813 ste_encap(struct ste_softc *sc, struct mbuf **m_head, struct ste_chain *txc) argument 1878 struct ste_softc *sc; local 1889 struct ste_softc *sc; local 1954 ste_watchdog(struct ste_softc *sc) argument 1987 struct ste_softc *sc; local 2002 struct ste_softc *sc; local 2035 ste_sysctl_node(struct ste_softc *sc) argument 2104 ste_setwol(struct ste_softc *sc) argument [all...] |
/freebsd-9.3-release/sys/dev/iwn/ |
H A D | if_iwn.c | 340 #define DPRINTF(sc, m, fmt, ...) do { \ 341 if (sc->sc_debug & (m)) \ 388 #define DPRINTF(sc, m, fmt, ...) do { (void) sc; } while (0) 436 struct iwn_softc *sc = (struct iwn_softc *)device_get_softc(dev); local 442 sc->sc_dev = dev; 448 error = pci_find_cap(dev, PCIY_EXPRESS, &sc->sc_cap_off); 461 sc->mem = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, 463 if (sc->mem == NULL) { 468 sc 691 iwn4965_attach(struct iwn_softc *sc, uint16_t pid) argument 729 iwn5000_attach(struct iwn_softc *sc, uint16_t pid) argument 818 iwn_radiotap_attach(struct iwn_softc *sc) argument 831 iwn_sysctlattach(struct iwn_softc *sc) argument 885 struct iwn_softc *sc = device_get_softc(dev); local 935 struct iwn_softc *sc = device_get_softc(dev); local 944 struct iwn_softc *sc = device_get_softc(dev); local 954 struct iwn_softc *sc = device_get_softc(dev); local 965 iwn_nic_lock(struct iwn_softc *sc) argument 984 iwn_nic_unlock(struct iwn_softc *sc) argument 990 iwn_prph_read(struct iwn_softc *sc, uint32_t addr) argument 998 iwn_prph_write(struct iwn_softc *sc, uint32_t addr, uint32_t data) argument 1006 iwn_prph_setbits(struct iwn_softc *sc, uint32_t addr, uint32_t mask) argument 1012 iwn_prph_clrbits(struct iwn_softc *sc, uint32_t addr, uint32_t mask) argument 1018 iwn_prph_write_region_4(struct iwn_softc *sc, uint32_t addr, const uint32_t *data, int count) argument 1026 iwn_mem_read(struct iwn_softc *sc, uint32_t addr) argument 1034 iwn_mem_write(struct iwn_softc *sc, uint32_t addr, uint32_t data) argument 1042 iwn_mem_write_2(struct iwn_softc *sc, uint32_t addr, uint16_t data) argument 1055 iwn_mem_read_region_4(struct iwn_softc *sc, uint32_t addr, uint32_t *data, int count) argument 1063 iwn_mem_set_region_4(struct iwn_softc *sc, uint32_t addr, uint32_t val, int count) argument 1071 iwn_eeprom_lock(struct iwn_softc *sc) argument 1092 iwn_eeprom_unlock(struct iwn_softc *sc) argument 1102 iwn_init_otprom(struct iwn_softc *sc) argument 1154 iwn_read_prom_data(struct iwn_softc *sc, uint32_t addr, void *data, int count) argument 1205 iwn_dma_contig_alloc(struct iwn_softc *sc, struct iwn_dma_info *dma, void **kvap, bus_size_t size, bus_size_t alignment) argument 1261 iwn_alloc_sched(struct iwn_softc *sc) argument 1269 iwn_free_sched(struct iwn_softc *sc) argument 1275 iwn_alloc_kw(struct iwn_softc *sc) argument 1282 iwn_free_kw(struct iwn_softc *sc) argument 1288 iwn_alloc_ict(struct iwn_softc *sc) argument 1296 iwn_free_ict(struct iwn_softc *sc) argument 1302 iwn_alloc_fwmem(struct iwn_softc *sc) argument 1309 iwn_free_fwmem(struct iwn_softc *sc) argument 1315 iwn_alloc_rx_ring(struct iwn_softc *sc, struct iwn_rx_ring *ring) argument 1403 iwn_reset_rx_ring(struct iwn_softc *sc, struct iwn_rx_ring *ring) argument 1422 iwn_free_rx_ring(struct iwn_softc *sc, struct iwn_rx_ring *ring) argument 1449 iwn_alloc_tx_ring(struct iwn_softc *sc, struct iwn_tx_ring *ring, int qid) argument 1514 iwn_reset_tx_ring(struct iwn_softc *sc, struct iwn_tx_ring *ring) argument 1539 iwn_free_tx_ring(struct iwn_softc *sc, struct iwn_tx_ring *ring) argument 1565 iwn5000_ict_reset(struct iwn_softc *sc) argument 1590 iwn_read_eeprom(struct iwn_softc *sc, uint8_t macaddr[IEEE80211_ADDR_LEN]) argument 1657 iwn4965_read_eeprom(struct iwn_softc *sc) argument 1705 iwn4965_print_power_group(struct iwn_softc *sc, int i) argument 1739 iwn5000_read_eeprom(struct iwn_softc *sc) argument 1815 iwn_read_eeprom_band(struct iwn_softc *sc, int n) argument 1870 iwn_read_eeprom_ht40(struct iwn_softc *sc, int n) argument 1932 iwn_read_eeprom_channels(struct iwn_softc *sc, int n, uint32_t addr) argument 1948 iwn_find_eeprom_channel(struct iwn_softc *sc, struct ieee80211_channel *c) argument 1980 struct iwn_softc *sc = ic->ic_ifp->if_softc; local 2001 iwn_read_eeprom_enhinfo(struct iwn_softc *sc) argument 2095 struct iwn_softc *sc = ic->ic_ifp->if_softc; local 2155 struct iwn_softc *sc = ic->ic_ifp->if_softc; local 2225 struct iwn_softc *sc = arg; local 2248 iwn_rx_phy(struct iwn_softc *sc, struct iwn_rx_desc *desc, struct iwn_rx_data *data) argument 2266 iwn_rx_done(struct iwn_softc *sc, struct iwn_rx_desc *desc, struct iwn_rx_data *data) argument 2424 iwn_rx_compressed_ba(struct iwn_softc *sc, struct iwn_rx_desc *desc, struct iwn_rx_data *data) argument 2519 iwn5000_rx_calib_results(struct iwn_softc *sc, struct iwn_rx_desc *desc, struct iwn_rx_data *data) argument 2579 iwn_rx_statistics(struct iwn_softc *sc, struct iwn_rx_desc *desc, struct iwn_rx_data *data) argument 2638 iwn4965_tx_done(struct iwn_softc *sc, struct iwn_rx_desc *desc, struct iwn_rx_data *data) argument 2665 iwn5000_tx_done(struct iwn_softc *sc, struct iwn_rx_desc *desc, struct iwn_rx_data *data) argument 2700 iwn_tx_done(struct iwn_softc *sc, struct iwn_rx_desc *desc, int ackfailcnt, uint8_t status) argument 2773 iwn_cmd_done(struct iwn_softc *sc, struct iwn_rx_desc *desc) argument 2795 iwn_ampdu_tx_done(struct iwn_softc *sc, int qid, int idx, int nframes, void *stat) argument 2905 iwn_notif_intr(struct iwn_softc *sc) argument 3081 iwn_wakeup_intr(struct iwn_softc *sc) argument 3097 iwn_rftoggle_intr(struct iwn_softc *sc) argument 3119 iwn_fatal_intr(struct iwn_softc *sc) argument 3178 struct iwn_softc *sc = arg; local 3277 iwn4965_update_sched(struct iwn_softc *sc, int qid, int idx, uint8_t id, uint16_t len) argument 3293 iwn5000_update_sched(struct iwn_softc *sc, int qid, int idx, uint8_t id, uint16_t len) argument 3310 iwn5000_reset_sched(struct iwn_softc *sc, int qid, int idx) argument 3326 iwn_tx_data(struct iwn_softc *sc, struct mbuf *m, struct ieee80211_node *ni) argument 3596 iwn_tx_data_raw(struct iwn_softc *sc, struct mbuf *m, struct ieee80211_node *ni, const struct ieee80211_bpf_params *params) argument 3805 struct iwn_softc *sc = ifp->if_softc; local 3842 struct iwn_softc *sc = ifp->if_softc; local 3852 struct iwn_softc *sc = ifp->if_softc; local 3883 struct iwn_softc *sc = arg; local 3904 struct iwn_softc *sc = ifp->if_softc; local 3948 iwn_cmd(struct iwn_softc *sc, int code, const void *buf, int size, int async) argument 4017 iwn4965_add_node(struct iwn_softc *sc, struct iwn_node_info *node, int async) argument 4036 iwn5000_add_node(struct iwn_softc *sc, struct iwn_node_info *node, int async) argument 4043 iwn_set_link_quality(struct iwn_softc *sc, struct ieee80211_node *ni) argument 4091 iwn_add_broadcast_node(struct iwn_softc *sc, int async) argument 4136 struct iwn_softc *sc = ic->ic_ifp->if_softc; local 4167 iwn_set_led(struct iwn_softc *sc, uint8_t which, uint8_t off, uint8_t on) argument 4186 iwn_set_critical_temp(struct iwn_softc *sc) argument 4206 iwn_set_timing(struct iwn_softc *sc, struct ieee80211_node *ni) argument 4228 iwn4965_power_calibration(struct iwn_softc *sc, int temp) argument 4249 iwn4965_set_txpower(struct iwn_softc *sc, struct ieee80211_channel *ch, int async) argument 4399 iwn5000_set_txpower(struct iwn_softc *sc, struct ieee80211_channel *ch, int async) argument 4420 iwn4965_get_rssi(struct iwn_softc *sc, struct iwn_rx_stat *stat) argument 4445 iwn5000_get_rssi(struct iwn_softc *sc, struct iwn_rx_stat *stat) argument 4487 iwn4965_get_temperature(struct iwn_softc *sc) argument 4512 iwn5000_get_temperature(struct iwn_softc *sc) argument 4532 iwn_init_sensitivity(struct iwn_softc *sc) argument 4573 iwn_collect_noise(struct iwn_softc *sc, const struct iwn_rx_general_stats *stats) argument 4625 iwn4965_init_gains(struct iwn_softc *sc) argument 4638 iwn5000_init_gains(struct iwn_softc *sc) argument 4652 iwn4965_set_gains(struct iwn_softc *sc) argument 4685 iwn5000_set_gains(struct iwn_softc *sc) argument 4723 iwn_tune_sensitivity(struct iwn_softc *sc, const struct iwn_rx_stats *stats) argument 4874 iwn_send_sensitivity(struct iwn_softc *sc) argument 4925 iwn_set_pslevel(struct iwn_softc *sc, int dtim, int level, int async) argument 4976 iwn_send_btcoex(struct iwn_softc *sc) argument 4990 iwn_send_advanced_btcoex(struct iwn_softc *sc) argument 5047 iwn5000_runtime_calib(struct iwn_softc *sc) argument 5060 iwn_config(struct iwn_softc *sc) argument 5198 iwn_scan(struct iwn_softc *sc) argument 5355 iwn_auth(struct iwn_softc *sc, struct ieee80211vap *vap) argument 5414 iwn_run(struct iwn_softc *sc, struct ieee80211vap *vap) argument 5555 struct iwn_softc *sc = ni->ni_ic->ic_ifp->if_softc; local 5589 struct iwn_softc *sc = ic->ic_ifp->if_softc; local 5615 struct iwn_softc *sc = ni->ni_ic->ic_ifp->if_softc; local 5643 struct iwn_softc *sc = ni->ni_ic->ic_ifp->if_softc; local 5670 struct iwn_softc *sc = ni->ni_ic->ic_ifp->if_softc; local 5702 struct iwn_softc *sc = ni->ni_ic->ic_ifp->if_softc; local 5725 iwn4965_ampdu_tx_start(struct iwn_softc *sc, struct ieee80211_node *ni, int qid, uint8_t tid, uint16_t ssn) argument 5763 iwn4965_ampdu_tx_stop(struct iwn_softc *sc, int qid, uint8_t tid, uint16_t ssn) argument 5782 iwn5000_ampdu_tx_start(struct iwn_softc *sc, struct ieee80211_node *ni, int qid, uint8_t tid, uint16_t ssn) argument 5819 iwn5000_ampdu_tx_stop(struct iwn_softc *sc, int qid, uint8_t tid, uint16_t ssn) argument 5845 iwn5000_query_calibration(struct iwn_softc *sc) argument 5872 iwn5000_send_calibration(struct iwn_softc *sc) argument 5895 iwn5000_send_wimax_coex(struct iwn_softc *sc) argument 5922 iwn5000_crystal_calib(struct iwn_softc *sc) argument 5938 iwn5000_temp_offset_calib(struct iwn_softc *sc) argument 5960 iwn4965_post_alive(struct iwn_softc *sc) argument 6013 iwn5000_post_alive(struct iwn_softc *sc) argument 6106 iwn4965_load_bootcode(struct iwn_softc *sc, const uint8_t *ucode, int size) argument 6148 iwn4965_load_firmware(struct iwn_softc *sc) argument 6215 iwn5000_load_firmware_section(struct iwn_softc *sc, uint32_t dst, const uint8_t *section, int size) argument 6252 iwn5000_load_firmware(struct iwn_softc *sc) argument 6287 iwn_read_firmware_leg(struct iwn_softc *sc, struct iwn_fw_info *fw) argument 6339 iwn_read_firmware_tlv(struct iwn_softc *sc, struct iwn_fw_info *fw, uint16_t alt) argument 6434 iwn_read_firmware(struct iwn_softc *sc) argument 6496 iwn_clock_wait(struct iwn_softc *sc) argument 6515 iwn_apm_init(struct iwn_softc *sc) argument 6568 iwn_apm_stop_master(struct iwn_softc *sc) argument 6583 iwn_apm_stop(struct iwn_softc *sc) argument 6595 iwn4965_nic_config(struct iwn_softc *sc) argument 6614 iwn5000_nic_config(struct iwn_softc *sc) argument 6663 iwn_hw_prepare(struct iwn_softc *sc) argument 6699 iwn_hw_init(struct iwn_softc *sc) argument 6807 iwn_hw_stop(struct iwn_softc *sc) argument 6859 struct iwn_softc *sc = arg0; local 6873 struct iwn_softc *sc = arg0; local 6890 iwn_init_locked(struct iwn_softc *sc) argument 6956 struct iwn_softc *sc = arg; local 6969 iwn_stop_locked(struct iwn_softc *sc) argument 6985 iwn_stop(struct iwn_softc *sc) argument 6999 struct iwn_softc *sc = ifp->if_softc; local 7014 struct iwn_softc *sc = ifp->if_softc; local 7033 struct iwn_softc *sc = ifp->if_softc; local 7062 struct iwn_softc *sc = vap->iv_ic->ic_ifp->if_softc; local 7086 struct iwn_softc *sc = arg0; local [all...] |
/freebsd-9.3-release/sys/dev/pcf/ |
H A D | envctrl.c | 109 struct pcf_softc *sc; local 112 sc = DEVTOSOFTC(dev); 113 mtx_init(&sc->pcf_lock, device_get_nameunit(dev), "pcf", MTX_DEF); 116 sc->res_ioport = bus_alloc_resource_any(dev, SYS_RES_MEMORY, 117 &sc->rid_ioport, RF_ACTIVE); 118 if (sc->res_ioport == 0) { 123 sc->pcf_flags = device_get_flags(dev); 125 if (!(sc->pcf_flags & IIC_POLLED)) { 126 sc->res_irq = bus_alloc_resource_any(dev, SYS_RES_IRQ, &sc 169 struct pcf_softc *sc; local [all...] |
/freebsd-9.3-release/sys/dev/nsp/ |
H A D | nsp_pccard.c | 94 struct nsp_softc *sc = device_get_softc(dev); local 96 if (sc->nsp_intrhand) 97 bus_teardown_intr(dev, sc->irq_res, sc->nsp_intrhand); 98 if (sc->port_res) 100 sc->port_rid, sc->port_res); 101 if (sc->irq_res) 103 sc->irq_rid, sc 112 struct nsp_softc *sc = device_get_softc(dev); local 179 struct nsp_softc *sc = device_get_softc(dev); local 234 struct nsp_softc *sc = DEVPORT_PDEVGET_SOFTC(devi); local 247 struct nsp_softc *sc = device_get_softc(devi); local 259 struct nsp_softc *sc; local [all...] |
/freebsd-9.3-release/sys/powerpc/powermac/ |
H A D | ata_dbdma.c | 58 struct ata_dbdma_channel *sc; member in struct:ata_dbdma_dmaload_args 68 struct ata_dbdma_channel *sc = arg->sc; local 73 mtx_lock(&sc->dbdma_mtx); 75 prev_stop = sc->next_dma_slot-1; 81 if (sc->next_dma_slot == 0xff) 94 dbdma_insert_command(sc->dbdma, sc->next_dma_slot++, 99 sc->next_dma_slot = 0; 106 if (sc 128 struct ata_dbdma_channel *sc = device_get_softc(dev); local 147 struct ata_dbdma_channel *sc = device_get_softc(request->parent); local 157 struct ata_dbdma_channel *sc = device_get_softc(dev); local 174 struct ata_dbdma_channel *sc = device_get_softc(request->parent); local 261 struct ata_dbdma_channel *sc = device_get_softc(dev); local [all...] |
/freebsd-9.3-release/sys/dev/usb/wlan/ |
H A D | if_uath.c | 150 #define DPRINTF(sc, m, fmt, ...) do { \ 151 if (sc->sc_debug & (m)) \ 155 #define DPRINTF(sc, m, fmt, ...) do { \ 156 (void) sc; \ 338 struct uath_softc *sc = device_get_softc(dev); local 346 sc->sc_dev = dev; 347 sc->sc_udev = uaa->device; 349 sc->sc_debug = uath_debug; 356 mtx_init(&sc->sc_mtx, device_get_nameunit(sc 504 struct uath_softc *sc = device_get_softc(dev); local 555 uath_free_cmd_list(struct uath_softc *sc, struct uath_cmd cmds[]) argument 564 uath_alloc_cmd_list(struct uath_softc *sc, struct uath_cmd cmds[]) argument 587 uath_host_available(struct uath_softc *sc) argument 701 uath_cmdsend(struct uath_softc *sc, uint32_t code, const void *idata, int ilen, void *odata, int olen, int flags) argument 768 uath_cmd_read(struct uath_softc *sc, uint32_t code, const void *idata, int ilen, void *odata, int olen, int flags) argument 777 uath_cmd_write(struct uath_softc *sc, uint32_t code, const void *data, int len, int flags) argument 786 uath_get_cmdbuf(struct uath_softc *sc) argument 811 struct uath_softc *sc = arg; local 829 uath_get_capability(struct uath_softc *sc, uint32_t cap, uint32_t *val) argument 846 uath_get_devcap(struct uath_softc *sc) argument 903 uath_get_devstatus(struct uath_softc *sc, uint8_t macaddr[IEEE80211_ADDR_LEN]) argument 925 uath_get_status(struct uath_softc *sc, uint32_t which, void *odata, int olen) argument 939 uath_free_data_list(struct uath_softc *sc, struct uath_data data[], int ndata, int fillmbuf) argument 964 uath_alloc_data_list(struct uath_softc *sc, struct uath_data data[], int ndata, int maxsz, void *dma_buf) argument 997 uath_alloc_rx_data_list(struct uath_softc *sc) argument 1021 uath_alloc_tx_data_list(struct uath_softc *sc) argument 1045 uath_free_rx_data_list(struct uath_softc *sc) argument 1052 uath_free_tx_data_list(struct uath_softc *sc) argument 1106 struct uath_softc *sc = arg; local 1189 struct uath_softc *sc = arg; local 1199 struct uath_softc *sc = ifp->if_softc; local 1222 struct uath_softc *sc = ifp->if_softc; local 1230 uath_config(struct uath_softc *sc, uint32_t reg, uint32_t val) argument 1249 uath_config_multi(struct uath_softc *sc, uint32_t reg, const void *data, int len) argument 1270 uath_switch_channel(struct uath_softc *sc, struct ieee80211_channel *c) argument 1314 uath_set_rxfilter(struct uath_softc *sc, uint32_t bits, uint32_t op) argument 1330 struct uath_softc *sc = arg; local 1345 uath_abort_xfers(struct uath_softc *sc) argument 1356 uath_flush(struct uath_softc *sc) argument 1373 uath_cmdflush(struct uath_softc *sc) argument 1380 uath_dataflush(struct uath_softc *sc) argument 1428 _uath_getbuf(struct uath_softc *sc) argument 1445 uath_getbuf(struct uath_softc *sc) argument 1462 uath_set_ledstate(struct uath_softc *sc, int connected) argument 1473 uath_set_chan(struct uath_softc *sc, struct ieee80211_channel *c) argument 1506 uath_reset_tx_queues(struct uath_softc *sc) argument 1523 uath_wme_init(struct uath_softc *sc) argument 1561 struct uath_softc *sc = ifp->if_softc; local 1600 uath_tx_start(struct uath_softc *sc, struct mbuf *m0, struct ieee80211_node *ni, struct uath_data *data) argument 1707 uath_txfrag_cleanup(struct uath_softc *sc, uath_datahead *frags, struct ieee80211_node *ni) argument 1729 uath_txfrag_setup(struct uath_softc *sc, uath_datahead *frags, struct mbuf *m0, struct ieee80211_node *ni) argument 1769 struct uath_softc *sc = ifp->if_softc; local 1859 struct uath_softc *sc = ifp->if_softc; local 1910 struct uath_softc *sc = ifp->if_softc; local 1923 uath_set_rxmulti_filter(struct uath_softc *sc) argument 1931 struct uath_softc *sc = ifp->if_softc; local 1951 struct uath_softc *sc = ifp->if_softc; local 1969 uath_create_connection(struct uath_softc *sc, uint32_t connid) argument 2003 uath_set_rates(struct uath_softc *sc, const struct ieee80211_rateset *rs) argument 2021 uath_write_associd(struct uath_softc *sc) argument 2040 uath_set_ledsteady(struct uath_softc *sc, int lednum, int ledmode) argument 2054 uath_set_ledblink(struct uath_softc *sc, int lednum, int ledmode, int blinkrate, int slowmode) argument 2077 struct uath_softc *sc = ic->ic_ifp->if_softc; local 2168 uath_set_key(struct uath_softc *sc, const struct ieee80211_key *wk, int index) argument 2203 uath_set_keys(struct uath_softc *sc, struct ieee80211vap *vap) argument 2228 uath_sysctl_node(struct uath_softc *sc) argument 2290 uath_cmdeof(struct uath_softc *sc, struct uath_cmd *cmd) argument 2416 struct uath_softc *sc = usbd_xfer_softc(xfer); local 2457 struct uath_softc *sc = usbd_xfer_softc(xfer); local 2506 uath_update_rxstat(struct uath_softc *sc, uint32_t status) argument 2543 struct uath_softc *sc = usbd_xfer_softc(xfer); local 2716 struct uath_softc *sc = usbd_xfer_softc(xfer); local 2804 struct uath_softc *sc = usbd_xfer_softc(xfer); local 2837 struct uath_softc *sc = usbd_xfer_softc(xfer); local [all...] |
/freebsd-9.3-release/sys/dev/mrsas/ |
H A D | mrsas_ioctl.c | 53 int mrsas_alloc_mfi_cmds(struct mrsas_softc *sc); 54 int mrsas_passthru(struct mrsas_softc *sc, void *arg); 55 void mrsas_free_ioc_cmd(struct mrsas_softc *sc); 56 void mrsas_free_frame(struct mrsas_softc *sc, struct mrsas_mfi_cmd *cmd); 57 void mrsas_dump_dcmd(struct mrsas_softc *sc, struct mrsas_dcmd_frame* dcmd); 58 void mrsas_dump_ioctl(struct mrsas_softc *sc, struct mrsas_iocpacket *user_ioc); 59 void * mrsas_alloc_frame(struct mrsas_softc *sc, struct mrsas_mfi_cmd *cmd); 60 static int mrsas_create_frame_pool(struct mrsas_softc *sc); 64 extern struct mrsas_mfi_cmd* mrsas_get_mfi_cmd(struct mrsas_softc *sc); 66 extern int mrsas_issue_blocked_cmd(struct mrsas_softc *sc, 78 mrsas_dump_dcmd( struct mrsas_softc *sc, struct mrsas_dcmd_frame* dcmd ) argument 114 mrsas_dump_ioctl(struct mrsas_softc *sc, struct mrsas_iocpacket *user_ioc) argument 150 mrsas_passthru( struct mrsas_softc *sc, void *arg ) argument 388 mrsas_alloc_mfi_cmds(struct mrsas_softc *sc) argument 452 mrsas_create_frame_pool(struct mrsas_softc *sc) argument 494 mrsas_alloc_frame(struct mrsas_softc *sc, struct mrsas_mfi_cmd *cmd) argument 540 mrsas_free_frame(struct mrsas_softc *sc, struct mrsas_mfi_cmd *cmd) argument [all...] |
/freebsd-9.3-release/tools/regression/geom/MdLoad/ |
H A D | MdLoad.c | 74 g_simdisk_insertsector(struct simdisk_softc *sc, struct sector *dsp) argument 78 if (sc->lastsector < dsp->offset) 79 sc->lastsector = dsp->offset; 80 if (LIST_EMPTY(&sc->sectors)) { 81 LIST_INSERT_HEAD(&sc->sectors, dsp, sectors); 85 LIST_FOREACH(dsp2, &sc->sectors, sectors) { 98 struct simdisk_softc *sc; local 100 sc = userData; 102 sc->sp = calloc(1, sizeof(*sc 111 struct simdisk_softc *sc; local 188 struct simdisk_softc *sc; local 207 struct simdisk_softc *sc; local 234 struct simdisk_softc *sc; local [all...] |
/freebsd-9.3-release/sys/arm/at91/ |
H A D | at91_mci.c | 96 RD4(struct at91_mci_softc *sc, bus_size_t off) argument 98 return (bus_read_4(sc->mem_res, off)); 102 WR4(struct at91_mci_softc *sc, bus_size_t off, uint32_t val) argument 104 bus_write_4(sc->mem_res, off, val); 128 at91_mci_pdc_disable(struct at91_mci_softc *sc) argument 130 WR4(sc, PDC_PTCR, PDC_PTCR_TXTDIS | PDC_PTCR_RXTDIS); 131 WR4(sc, PDC_RPR, 0); 132 WR4(sc, PDC_RCR, 0); 133 WR4(sc, PDC_RNPR, 0); 134 WR4(sc, PDC_RNC 144 struct at91_mci_softc *sc = device_get_softc(dev); local 167 struct at91_mci_softc *sc = device_get_softc(dev); local 185 struct at91_mci_softc *sc = device_get_softc(dev); local 269 struct at91_mci_softc *sc; local 294 struct at91_mci_softc *sc; local 346 struct at91_mci_softc *sc; local 376 at91_mci_start_cmd(struct at91_mci_softc *sc, struct mmc_command *cmd) argument 497 at91_mci_start(struct at91_mci_softc *sc) argument 526 struct at91_mci_softc *sc = device_get_softc(brdev); local 552 struct at91_mci_softc *sc = device_get_softc(brdev); local 566 struct at91_mci_softc *sc = device_get_softc(brdev); local 576 at91_mci_read_done(struct at91_mci_softc *sc) argument 599 at91_mci_xmit_done(struct at91_mci_softc *sc) argument 613 struct at91_mci_softc *sc = (struct at91_mci_softc*)arg; local 697 struct at91_mci_softc *sc = device_get_softc(bus); local 755 struct at91_mci_softc *sc = device_get_softc(bus); local [all...] |
/freebsd-9.3-release/sys/dev/sound/pci/ |
H A D | als4000.c | 108 als_gcr_rd(struct sc_info *sc, int index) argument 110 bus_space_write_1(sc->st, sc->sh, ALS_GCR_INDEX, index); 111 return bus_space_read_4(sc->st, sc->sh, ALS_GCR_DATA); 115 als_gcr_wr(struct sc_info *sc, int index, int data) argument 117 bus_space_write_1(sc->st, sc->sh, ALS_GCR_INDEX, index); 118 bus_space_write_4(sc->st, sc 122 als_intr_rd(struct sc_info *sc) argument 128 als_intr_wr(struct sc_info *sc, u_int8_t data) argument 134 als_mix_rd(struct sc_info *sc, u_int8_t index) argument 141 als_mix_wr(struct sc_info *sc, u_int8_t index, u_int8_t data) argument 148 als_esp_wr(struct sc_info *sc, u_int8_t data) argument 167 als_esp_reset(struct sc_info *sc) argument 195 als_ack_read(struct sc_info *sc, u_int8_t addr) argument 208 struct sc_info *sc = devinfo; local 247 struct sc_info *sc = ch->parent; local 265 struct sc_info *sc = ch->parent; local 278 struct sc_info *sc = ch->parent; local 297 struct sc_info *sc = ch->parent; local 349 struct sc_info *sc = ch->parent; local 380 struct sc_info *sc = ch->parent; local 396 struct sc_info *sc = ch->parent; local 433 als_get_fifo_format(struct sc_info *sc, u_int32_t format) argument 452 struct sc_info *sc = ch->parent; local 480 struct sc_info *sc = ch->parent; local 495 struct sc_info *sc = ch->parent; local 572 struct sc_info *sc = mix_getdevinfo(m); local 604 struct sc_info *sc = mix_getdevinfo(m); local 638 struct sc_info *sc = (struct sc_info *)p; local 679 als_init(struct sc_info *sc) argument 715 als_uninit(struct sc_info *sc) argument 735 als_resource_free(device_t dev, struct sc_info *sc) argument 760 als_resource_grab(device_t dev, struct sc_info *sc) argument 808 struct sc_info *sc; local 875 struct sc_info *sc; local 892 struct sc_info *sc = pcm_getdevinfo(dev); local 905 struct sc_info *sc = pcm_getdevinfo(dev); local [all...] |
H A D | cs4281.c | 147 cs4281_rd(struct sc_info *sc, int regno) argument 149 return bus_space_read_4(sc->st, sc->sh, regno); 153 cs4281_wr(struct sc_info *sc, int regno, u_int32_t data) argument 155 bus_space_write_4(sc->st, sc->sh, regno, data); 160 cs4281_clr4(struct sc_info *sc, int regno, u_int32_t mask) argument 163 r = cs4281_rd(sc, regno); 164 cs4281_wr(sc, regno, r & ~mask); 168 cs4281_set4(struct sc_info *sc, in argument 176 cs4281_waitset(struct sc_info *sc, int regno, u_int32_t mask, int tries) argument 190 cs4281_waitclr(struct sc_info *sc, int regno, u_int32_t mask, int tries) argument 257 struct sc_info *sc = (struct sc_info *)devinfo; local 291 struct sc_info *sc = (struct sc_info *)devinfo; local 322 struct sc_info *sc = devinfo; local 350 struct sc_info *sc = ch->parent; local 372 struct sc_info *sc = ch->parent; local 389 struct sc_info *sc = ch->parent; local 415 struct sc_info *sc = ch->parent; local 476 struct sc_info *sc = ch->parent; local 494 struct sc_info *sc = ch->parent; local 514 struct sc_info *sc = (struct sc_info *)p; local 539 cs4281_power(struct sc_info *sc, int state) argument 563 cs4281_init(struct sc_info *sc) argument 761 struct sc_info *sc; local 894 struct sc_info *sc; local 918 struct sc_info *sc; local 933 struct sc_info *sc; local [all...] |
/freebsd-9.3-release/sys/mips/idt/ |
H A D | if_kr.c | 153 struct kr_softc *sc; local 157 sc = device_get_softc(dev); 159 sc->kr_dev = dev; 161 mtx_init(&sc->kr_mtx, device_get_nameunit(dev), MTX_NETWORK_LOCK, 163 callout_init_mtx(&sc->kr_stat_callout, &sc->kr_mtx, 0); 164 TASK_INIT(&sc->kr_link_task, 0, kr_link_task, sc); 168 sc->kr_rid = 0; 169 sc 323 struct kr_softc *sc = device_get_softc(dev); local 394 struct kr_softc *sc; local 408 struct kr_softc * sc = device_get_softc(dev); local 450 struct kr_softc * sc = device_get_softc(dev); local 484 struct kr_softc *sc; local 493 struct kr_softc *sc; local 519 kr_reset(struct kr_softc *sc) argument 538 struct kr_softc *sc = xsc; local 546 kr_init_locked(struct kr_softc *sc) argument 636 struct kr_softc *sc; local 650 kr_encap(struct kr_softc *sc, struct mbuf **m_head) argument 746 struct kr_softc *sc; local 786 kr_stop(struct kr_softc *sc) argument 836 struct kr_softc *sc = ifp->if_softc; local 916 struct kr_softc *sc; local 938 struct kr_softc *sc = ifp->if_softc; local 965 kr_dma_alloc(struct kr_softc *sc) argument 1141 kr_dma_free(struct kr_softc *sc) argument 1219 kr_tx_ring_init(struct kr_softc *sc) argument 1259 kr_rx_ring_init(struct kr_softc *sc) argument 1299 kr_newbuf(struct kr_softc *sc, int idx) argument 1359 kr_tx(struct kr_softc *sc) argument 1430 kr_rx(struct kr_softc *sc) argument 1521 struct kr_softc *sc = arg; local 1559 struct kr_softc *sc = arg; local 1602 struct kr_softc *sc = xsc; local [all...] |
/freebsd-9.3-release/sys/dev/aac/ |
H A D | aacvar.h | 237 int (*aif_get_fwstatus)(struct aac_softc *sc); 238 void (*aif_qnotify)(struct aac_softc *sc, int qbit); 239 int (*aif_get_istatus)(struct aac_softc *sc); 240 void (*aif_clr_istatus)(struct aac_softc *sc, int mask); 241 void (*aif_set_mailbox)(struct aac_softc *sc, u_int32_t command, 244 int (*aif_get_mailbox)(struct aac_softc *sc, int mb); 245 void (*aif_set_interrupts)(struct aac_softc *sc, int enable); 246 int (*aif_send_command)(struct aac_softc *sc, struct aac_command *cm); 247 int (*aif_get_outb_queue)(struct aac_softc *sc); 248 void (*aif_set_outb_queue)(struct aac_softc *sc, in 596 aac_initq_bio(struct aac_softc *sc) argument 603 aac_enqueue_bio(struct aac_softc *sc, struct bio *bp) argument 610 aac_dequeue_bio(struct aac_softc *sc) argument 622 aac_print_printf(struct aac_softc *sc) argument 635 aac_alloc_sync_fib(struct aac_softc *sc, struct aac_fib **fib) argument 644 aac_release_sync_fib(struct aac_softc *sc) argument [all...] |
/freebsd-9.3-release/sys/dev/cm/ |
H A D | smc90cx6.c | 132 struct cm_softc *sc = device_get_softc(dev); local 134 if (sc->port_res != NULL) { 136 0, sc->port_res); 137 sc->port_res = NULL; 139 if (sc->mem_res != NULL) { 141 0, sc->mem_res); 142 sc->mem_res = NULL; 144 if (sc->irq_res != NULL) { 146 0, sc->irq_res); 147 sc 155 struct cm_softc *sc = device_get_softc(dev); local 218 struct cm_softc *sc = (struct cm_softc *)xsc; local 226 cm_init_locked(struct cm_softc *sc) argument 335 struct cm_softc *sc = ifp->if_softc; local 353 struct cm_softc *sc = ifp->if_softc; local 477 struct cm_softc *sc = (struct cm_softc *)vsc; local 493 struct cm_softc *sc = (struct cm_softc *)vsc; local 691 struct cm_softc *sc = arg; local 835 struct cm_softc *sc = arg; local 857 struct cm_softc *sc; local 919 struct cm_softc *sc; local [all...] |
H A D | smc90cx6var.h | 53 struct mtx sc_mtx; /* sc mutex */ 86 void cm_stop_locked(struct cm_softc *sc); 91 #define CM_LOCK(sc) mtx_lock(&(sc)->sc_mtx) 92 #define CM_UNLOCK(sc) mtx_unlock(&(sc)->sc_mtx) 96 bus_space_read_1(rman_get_bustag((sc)->port_res), \ 97 rman_get_bushandle((sc)->port_res), \ 100 bus_space_write_1(rman_get_bustag((sc)->port_res), \ 101 rman_get_bushandle((sc) [all...] |
/freebsd-9.3-release/sys/dev/twe/ |
H A D | twe.c | 46 static int twe_get_param_1(struct twe_softc *sc, int table_id, int param_id, u_int8_t *result); 47 static int twe_get_param_2(struct twe_softc *sc, int table_id, int param_id, u_int16_t *result); 48 static int twe_get_param_4(struct twe_softc *sc, int table_id, int param_id, u_int32_t *result); 49 static void *twe_get_param(struct twe_softc *sc, int table_id, int parameter_id, size_t size, 52 static int twe_set_param_1(struct twe_softc *sc, int table_id, int param_id, u_int8_t value); 55 static int twe_set_param_2(struct twe_softc *sc, int table_id, int param_id, u_int16_t value); 56 static int twe_set_param_4(struct twe_softc *sc, int table_id, int param_id, u_int32_t value); 58 static int twe_set_param(struct twe_softc *sc, int table_id, int param_id, int param_size, 60 static int twe_init_connection(struct twe_softc *sc, int mode); 64 static void twe_reset(struct twe_softc *sc); 118 twe_setup(struct twe_softc *sc) argument 203 twe_add_unit(struct twe_softc *sc, int unit) argument 287 twe_del_unit(struct twe_softc *sc, int unit) argument 306 twe_init(struct twe_softc *sc) argument 347 twe_deinit(struct twe_softc *sc) argument 369 twe_intr(struct twe_softc *sc) argument 399 twe_startio(struct twe_softc *sc) argument 480 twe_dump_blocks(struct twe_softc *sc, int unit, u_int32_t lba, void *data, int nblks) argument 513 twe_ioctl(struct twe_softc *sc, u_long ioctlcmd, void *addr) argument 692 twe_enable_interrupts(struct twe_softc *sc) argument 705 twe_disable_interrupts(struct twe_softc *sc) argument 721 twe_get_param_1(struct twe_softc *sc, int table_id, int param_id, u_int8_t *result) argument 733 twe_get_param_2(struct twe_softc *sc, int table_id, int param_id, u_int16_t *result) argument 745 twe_get_param_4(struct twe_softc *sc, int table_id, int param_id, u_int32_t *result) argument 763 twe_get_param(struct twe_softc *sc, int table_id, int param_id, size_t param_size, void (* func)(struct twe_request *tr)) argument 834 twe_set_param_1(struct twe_softc *sc, int table_id, int param_id, u_int8_t value) argument 858 twe_set_param(struct twe_softc *sc, int table_id, int param_id, int param_size, void *data) argument 917 twe_init_connection(struct twe_softc *sc, int mode) argument 978 struct twe_softc *sc; local 1015 struct twe_softc *sc = tr->tr_sc; local 1041 twe_reset(struct twe_softc *sc) argument 1108 struct twe_softc *sc = tr->tr_sc; local 1169 twe_done(struct twe_softc *sc, int startio) argument 1219 twe_complete(struct twe_softc *sc) argument 1255 twe_wait_status(struct twe_softc *sc, u_int32_t status, int timeout) argument 1279 twe_drain_response_queue(struct twe_softc *sc) argument 1300 twe_soft_reset(struct twe_softc *sc) argument 1346 twe_host_intr(struct twe_softc *sc) argument 1360 twe_attention_intr(struct twe_softc *sc) argument 1378 twe_command_intr(struct twe_softc *sc) argument 1400 twe_fetch_aen(struct twe_softc *sc) argument 1416 struct twe_softc *sc = tr->tr_sc; local 1440 twe_drain_aen_queue(struct twe_softc *sc) argument 1463 twe_enqueue_aen(struct twe_softc *sc, u_int16_t aen) argument 1504 twe_dequeue_aen(struct twe_softc *sc) argument 1526 twe_find_aen(struct twe_softc *sc, u_int16_t aen) argument 1581 twe_get_request(struct twe_softc *sc, struct twe_request **tr) argument 1632 twe_describe_controller(struct twe_softc *sc) argument 1717 twe_check_bits(struct twe_softc *sc, u_int32_t status_reg) argument 1773 twe_format_aen(struct twe_softc *sc, u_int16_t aen) argument 1822 struct twe_softc *sc = tr->tr_sc; local 1883 twe_print_controller(struct twe_softc *sc) argument 1909 twe_panic(struct twe_softc *sc, char *reason) argument [all...] |
/freebsd-9.3-release/sys/arm/xscale/ixp425/ |
H A D | cambria_exp_space.c | 59 struct ixp425_softc *sc; /* bus space tag */ member in struct:expbus_softc 74 enable_16(struct ixp425_softc *sc, bus_size_t cs) argument 76 EXP_BUS_WRITE_4(sc, cs, EXP_BUS_READ_4(sc, cs) &~ EXP_BYTE_EN); 80 disable_16(struct ixp425_softc *sc, bus_size_t cs) argument 82 EXP_BUS_WRITE_4(sc, cs, EXP_BUS_READ_4(sc, cs) | EXP_BYTE_EN); 89 struct ixp425_softc *sc = exp->sc; local 93 v = bus_space_read_1(sc 102 struct ixp425_softc *sc = exp->sc; local 113 struct ixp425_softc *sc = exp->sc; local 128 struct ixp425_softc *sc = exp->sc; local 142 struct ixp425_softc *sc = exp->sc; local 156 struct ixp425_softc *sc = exp->sc; local 172 struct ixp425_softc *sc = exp->sc; local 195 struct ixp425_softc *sc = exp->sc; local 237 cambria_exp_bus_init(struct ixp425_softc *sc) argument [all...] |
/freebsd-9.3-release/sys/dev/if_ndis/ |
H A D | if_ndis_pccard.c | 182 struct ndis_softc *sc; local 189 sc = device_get_softc(dev); 191 sc->ndis_dev = dev; 196 sc->ndis_dobj = db->windrv_object; 197 sc->ndis_regvals = db->windrv_regvals; 198 resource_list_init(&sc->ndis_rl); 200 sc->ndis_io_rid = 0; 201 sc->ndis_res_io = bus_alloc_resource_any(dev, SYS_RES_IOPORT, 202 &sc->ndis_io_rid, RF_ACTIVE); 203 if (sc 261 struct ndis_softc *sc; local 273 struct ndis_softc *sc; local 321 struct ndis_softc *sc; local [all...] |