/freebsd-9.3-release/sys/dev/mc146818/ |
H A D | mc146818.c | 54 struct mc146818_softc *sc; local 56 sc = device_get_softc(dev); 58 if (mtx_initialized(&sc->sc_mtx) == 0) { 63 if (sc->sc_mcread == NULL) 64 sc->sc_mcread = mc146818_def_read; 65 if (sc->sc_mcwrite == NULL) 66 sc->sc_mcwrite = mc146818_def_write; 68 if (sc->sc_flag & MC146818_NO_CENT_ADJUST) { 73 if (sc->sc_getcent == NULL) 74 sc 107 struct mc146818_softc *sc; local 158 struct mc146818_softc *sc; local 193 struct mc146818_softc *sc; local 244 struct mc146818_softc *sc; local 254 struct mc146818_softc *sc; local 273 struct mc146818_softc *sc; local 282 struct mc146818_softc *sc; local [all...] |
/freebsd-9.3-release/sys/dev/ath/ |
H A D | if_athdfs.h | 34 extern int ath_dfs_attach(struct ath_softc *sc); 35 extern int ath_dfs_detach(struct ath_softc *sc); 38 extern void ath_dfs_process_phy_err(struct ath_softc *sc, const char *buf, 40 extern int ath_dfs_process_radar_event(struct ath_softc *sc, 42 extern int ath_dfs_tasklet_needed(struct ath_softc *sc, 44 extern int ath_ioctl_phyerr(struct ath_softc *sc, struct ath_diag *ad); 45 extern int ath_dfs_get_thresholds(struct ath_softc *sc,
|
/freebsd-9.3-release/sys/dev/digi/ |
H A D | digi_isa.c | 74 digi_isa_setwin(struct digi_softc *sc, unsigned int addr) argument 76 outb(sc->wport, sc->window = FEPWIN | (addr >> sc->win_bits)); 77 return (sc->vmem + (addr % sc->win_size)); 81 digi_xi_setwin(struct digi_softc *sc, unsigned int addr) argument 83 outb(sc->wport, sc->window = FEPMEM); 84 return (sc 88 digi_isa_hidewin(struct digi_softc *sc) argument 95 digi_isa_towin(struct digi_softc *sc, int win) argument 101 digi_xi_towin(struct digi_softc *sc, int win) argument 110 digi_isa_check(struct digi_softc *sc) argument 227 struct digi_softc *sc = device_get_softc(dev); local 321 struct digi_softc *sc = device_get_softc(dev); local [all...] |
/freebsd-9.3-release/sys/dev/mfi/ |
H A D | mfi_syspd.c | 98 struct mfi_system_pd *sc; local 104 sc = device_get_softc(dev); 106 sc->pd_dev = dev; 107 sc->pd_id = pd_info->ref.v.device_id; 108 sc->pd_unit = device_get_unit(dev); 109 sc->pd_info = pd_info; 110 sc->pd_controller = device_get_softc(device_get_parent(dev)); 111 sc->pd_flags = 0; 115 mtx_lock(&sc->pd_controller->mfi_io_lock); 116 TAILQ_INSERT_TAIL(&sc 156 struct mfi_system_pd *sc; local 182 struct mfi_system_pd *sc; local 200 struct mfi_system_pd *sc; local 211 mfi_syspd_disable(struct mfi_system_pd *sc) argument 228 mfi_syspd_enable(struct mfi_system_pd *sc) argument 239 struct mfi_system_pd *sc; local 267 struct mfi_system_pd *sc; local [all...] |
/freebsd-9.3-release/sys/dev/ep/ |
H A D | if_ep.c | 110 #define EP_FTST(sc, f) (sc->stat & (f)) 111 #define EP_FSET(sc, f) (sc->stat |= (f)) 112 #define EP_FRST(sc, f) (sc->stat &= ~(f)) 115 eeprom_rdy(struct ep_softc *sc) argument 119 for (i = 0; is_eeprom_busy(sc) && i < MAX_EEPROMBUSY; i++) 123 device_printf(sc->dev, "eeprom failed to come ready.\n"); 135 ep_get_e(struct ep_softc *sc, uint16_ argument 153 ep_get_macaddr(struct ep_softc *sc, u_char *addr) argument 175 struct ep_softc *sc = device_get_softc(dev); local 223 ep_get_media(struct ep_softc *sc) argument 251 struct ep_softc *sc = device_get_softc(dev); local 265 ep_setup_station(struct ep_softc *sc, u_char *enaddr) argument 278 ep_attach(struct ep_softc *sc) argument 354 struct ep_softc *sc; local 379 struct ep_softc *sc = xsc; local 390 epinit_locked(struct ep_softc *sc) argument 470 struct ep_softc *sc; local 480 struct ep_softc *sc; local 590 struct ep_softc *sc; local 599 ep_intr_locked(struct ep_softc *sc) argument 716 epread(struct ep_softc *sc) argument 867 struct ep_softc *sc = ifp->if_softc; local 911 struct ep_softc *sc = ifp->if_softc; local 936 struct ep_softc *sc = ifp->if_softc; local 979 struct ep_softc *sc; local 988 epwatchdog(struct ep_softc *sc) argument 1001 epstop(struct ep_softc *sc) argument [all...] |
/freebsd-9.3-release/sys/dev/ichsmb/ |
H A D | ichsmb.c | 87 static int ichsmb_wait(sc_p sc); 110 const sc_p sc = device_get_softc(dev); local 114 mtx_init(&sc->mutex, device_get_nameunit(dev), "ichsmb", MTX_DEF); 117 if ((sc->smb = device_add_child(dev, DRIVER_SMBUS, -1)) == NULL) { 124 bus_write_1(sc->io_res, ICH_HST_STA, 0xff); 127 error = bus_setup_intr(dev, sc->irq_res, INTR_TYPE_MISC | INTR_MPSAFE, 128 NULL, ichsmb_device_intr, sc, &sc->irq_handle); 143 mtx_destroy(&sc->mutex); 173 const sc_p sc local 202 const sc_p sc = device_get_softc(dev); local 224 const sc_p sc = device_get_softc(dev); local 246 const sc_p sc = device_get_softc(dev); local 270 const sc_p sc = device_get_softc(dev); local 295 const sc_p sc = device_get_softc(dev); local 318 const sc_p sc = device_get_softc(dev); local 345 const sc_p sc = device_get_softc(dev); local 375 const sc_p sc = device_get_softc(dev); local 421 const sc_p sc = device_get_softc(dev); local 500 const sc_p sc = cookie; local 632 ichsmb_wait(sc_p sc) argument 663 ichsmb_release_resources(sc_p sc) argument 686 const sc_p sc = device_get_softc(dev); local [all...] |
/freebsd-9.3-release/sys/dev/amr/ |
H A D | amr_pci.c | 88 static void amr_pci_free(struct amr_softc *sc); 90 static int amr_sglist_map(struct amr_softc *sc); 91 static int amr_setup_mbox(struct amr_softc *sc); 92 static int amr_ccb_map(struct amr_softc *sc); 184 struct amr_softc *sc; local 193 sc = device_get_softc(dev); 194 bzero(sc, sizeof(*sc)); 195 sc->amr_dev = dev; 207 sc 347 struct amr_softc *sc = device_get_softc(dev); local 376 struct amr_softc *sc = device_get_softc(dev); local 412 struct amr_softc *sc = device_get_softc(dev); local 433 struct amr_softc *sc = device_get_softc(dev); local 451 struct amr_softc *sc = (struct amr_softc *)arg; local 465 amr_pci_free(struct amr_softc *sc) argument 531 amr_sglist_map(struct amr_softc *sc) argument 606 amr_setup_mbox(struct amr_softc *sc) argument 659 amr_ccb_map(struct amr_softc *sc) argument [all...] |
/freebsd-9.3-release/sys/dev/tsec/ |
H A D | if_tsec_fdt.c | 74 static int tsec_setup_intr(struct tsec_softc *sc, struct resource **ires, 76 static void tsec_release_intr(struct tsec_softc *sc, struct resource *ires, 110 struct tsec_softc *sc; local 116 sc = device_get_softc(dev); 118 sc->sc_rrid = 0; 119 sc->sc_rres = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &sc->sc_rrid, 121 if (sc->sc_rres == NULL) 124 sc->sc_bas.bsh = rman_get_bushandle(sc 150 struct tsec_softc *sc; local 229 tsec_setup_intr(struct tsec_softc *sc, struct resource **ires, void **ihand, int *irid, driver_intr_t handler, const char *iname) argument 252 tsec_release_intr(struct tsec_softc *sc, struct resource *ires, void *ihand, int irid, const char *iname) argument 274 struct tsec_softc *sc; local 310 tsec_get_hwaddr(struct tsec_softc *sc, uint8_t *addr) argument [all...] |
H A D | if_tsec.h | 150 #define TSEC_BACK_GENERIC(sc, count, wrap) do { \ 151 if ((sc)->count > 0) \ 152 (sc)->count--; \ 154 (sc)->count = (wrap) - 1; \ 158 #define TSEC_TX_MAP_CNT_INIT(sc) do { \ 159 TSEC_CNT_INIT((sc)->tx_map_unused_get_cnt, TSEC_TX_NUM_DESC); \ 160 TSEC_CNT_INIT((sc)->tx_map_unused_put_cnt, TSEC_TX_NUM_DESC); \ 161 TSEC_CNT_INIT((sc)->tx_map_used_get_cnt, TSEC_TX_NUM_DESC); \ 162 TSEC_CNT_INIT((sc)->tx_map_used_put_cnt, TSEC_TX_NUM_DESC); \ 166 #define TSEC_ALLOC_TX_MAP(sc) \ [all...] |
/freebsd-9.3-release/sys/dev/nvram2env/ |
H A D | nvram2env.c | 53 #define nvram2env_read_1(sc, reg) \ 54 bus_space_read_1((sc)->sc_bt, (sc)->sc_bh,(reg)) 56 #define nvram2env_read_2(sc, reg) \ 57 bus_space_read_2((sc)->sc_bt, (sc)->sc_bh,(reg)) 59 #define nvram2env_read_4(sc, reg) \ 60 bus_space_read_4((sc)->sc_bt, (sc)->sc_bh,(reg)) 62 #define nvram2env_write_1(sc, re 107 struct nvram2env_softc * sc = device_get_softc(dev); local 184 read_4(struct nvram2env_softc * sc, int offset) argument 196 struct nvram2env_softc * sc = device_get_softc(dev); local [all...] |
/freebsd-9.3-release/sys/dev/cmx/ |
H A D | cmxvar.h | 73 #define CMX_READ_1(sc, off) \ 74 (bus_space_read_1((sc)->bst, (sc)->bsh, off)) 75 #define CMX_WRITE_1(sc, off, val) \ 76 (bus_space_write_1((sc)->bst, (sc)->bsh, off, val)) 78 #define cmx_read_BSR(sc) \ 79 CMX_READ_1(sc, REG_OFFSET_BSR) 80 #define cmx_write_BSR(sc, val) \ 81 CMX_WRITE_1(sc, REG_OFFSET_BS [all...] |
/freebsd-9.3-release/sys/dev/ex/ |
H A D | if_ex.c | 120 ex_get_address(struct ex_softc *sc, u_char *enaddr) argument 124 eaddr_tmp = ex_eeprom_read(sc, EE_Eth_Addr_Lo); 127 eaddr_tmp = ex_eeprom_read(sc, EE_Eth_Addr_Mid); 130 eaddr_tmp = ex_eeprom_read(sc, EE_Eth_Addr_Hi); 153 struct ex_softc * sc = device_get_softc(dev); local 156 sc->ioport = bus_alloc_resource_any(dev, SYS_RES_IOPORT, 157 &sc->ioport_rid, RF_ACTIVE); 158 if (!sc->ioport) { 164 sc->irq = bus_alloc_resource_any(dev, SYS_RES_IRQ, &sc 180 struct ex_softc * sc = device_get_softc(dev); local 208 struct ex_softc * sc = device_get_softc(dev); local 283 struct ex_softc *sc; local 305 struct ex_softc * sc = (struct ex_softc *) xsc; local 313 ex_init_locked(struct ex_softc *sc) argument 408 struct ex_softc * sc = ifp->if_softc; local 418 struct ex_softc * sc = ifp->if_softc; local 586 ex_stop(struct ex_softc *sc) argument 621 struct ex_softc *sc = (struct ex_softc *)arg; local 661 ex_tx_intr(struct ex_softc *sc) argument 708 ex_rx_intr(struct ex_softc *sc) argument 818 struct ex_softc * sc = ifp->if_softc; local 862 ex_setmulti(struct ex_softc *sc) argument 959 ex_reset(struct ex_softc *sc) argument 976 struct ex_softc * sc = arg; local 997 ex_get_media(struct ex_softc *sc) argument 1023 struct ex_softc * sc = ifp->if_softc; local 1036 struct ex_softc * sc = ifp->if_softc; local 1047 ex_eeprom_read(struct ex_softc *sc, int location) argument [all...] |
/freebsd-9.3-release/sys/dev/patm/ |
H A D | if_patm_intr.c | 76 static void patm_feed_sbufs(struct patm_softc *sc); 77 static void patm_feed_lbufs(struct patm_softc *sc); 78 static void patm_feed_vbufs(struct patm_softc *sc); 79 static void patm_intr_tsif(struct patm_softc *sc); 80 static void patm_intr_raw(struct patm_softc *sc); 90 patm_fbq_write(struct patm_softc *sc, u_int queue, uint32_t h0, argument 93 patm_debug(sc, FREEQ, "supplying(%u,%#x,%#x,%#x,%#x)", 95 patm_nor_write(sc, IDT_NOR_D0, h0); 96 patm_nor_write(sc, IDT_NOR_D1, p0); 97 patm_nor_write(sc, IDT_NOR_D 108 struct patm_softc *sc = p; local 233 patm_feed_cnt(struct patm_softc *sc, u_int q) argument 265 patm_feed_sbufs(struct patm_softc *sc) argument 293 patm_feed_vbufs(struct patm_softc *sc) argument 321 patm_lmbuf_alloc(struct patm_softc *sc) argument 356 patm_feed_lbufs(struct patm_softc *sc) argument 382 patm_intr_tsif(struct patm_softc *sc) argument 424 patm_intr_rsq(struct patm_softc *sc) argument 471 patm_intr_raw(struct patm_softc *sc) argument 515 patm_lbuf_free(struct patm_softc *sc, struct lmbuf *b) argument 531 struct patm_softc *sc; local [all...] |
H A D | if_patm.c | 76 static void patm_tst_init(struct patm_softc *sc); 77 static void patm_scd_init(struct patm_softc *sc); 83 patm_initialize(struct patm_softc *sc) argument 88 patm_debug(sc, ATTACH, "configuring..."); 91 for (i = 0; i < sc->mmap->sram * 1024; i += 4) 92 patm_sram_write4(sc, i, 0, 0, 0, 0); 93 patm_scd_init(sc); 97 /* IDT_CFG_NOIDLE | */ sc->mmap->rxtab; 98 if (!(sc->flags & PATM_UNASS)) 100 patm_nor_write(sc, IDT_NOR_CF 229 struct patm_softc *sc = p; local 241 patm_stop(struct patm_softc *sc) argument 346 patm_reset(struct patm_softc *sc) argument 370 patm_tst_init(struct patm_softc *sc) argument 409 patm_scd_init(struct patm_softc *sc) argument 424 patm_scd_alloc(struct patm_softc *sc) argument 472 patm_scd_free(struct patm_softc *sc, struct patm_scd *scd) argument [all...] |
/freebsd-9.3-release/sys/dev/ipmi/ |
H A D | ipmi_smic.c | 56 smic_wait_for_tx_okay(struct ipmi_softc *sc) argument 61 flags = INB(sc, SMIC_FLAGS); 66 smic_wait_for_rx_okay(struct ipmi_softc *sc) argument 71 flags = INB(sc, SMIC_FLAGS); 76 smic_wait_for_not_busy(struct ipmi_softc *sc) argument 81 flags = INB(sc, SMIC_FLAGS); 86 smic_set_busy(struct ipmi_softc *sc) argument 90 flags = INB(sc, SMIC_FLAGS); 93 OUTB(sc, SMIC_FLAGS, flags); 101 smic_start_write(struct ipmi_softc *sc, u_cha argument 126 smic_write_next(struct ipmi_softc *sc, u_char data) argument 150 smic_write_last(struct ipmi_softc *sc, u_char data) argument 173 smic_start_read(struct ipmi_softc *sc, u_char *data) argument 199 smic_read_byte(struct ipmi_softc *sc, u_char *data) argument 224 smic_read_end(struct ipmi_softc *sc) argument 242 smic_polled_request(struct ipmi_softc *sc, struct ipmi_request *req) argument 359 struct ipmi_softc *sc = arg; local 379 smic_startup(struct ipmi_softc *sc) argument 387 ipmi_smic_attach(struct ipmi_softc *sc) argument [all...] |
/freebsd-9.3-release/sys/arm/at91/ |
H A D | if_macb.c | 90 read_4(struct macb_softc *sc, bus_size_t off) argument 93 return (bus_read_4(sc->mem_res, off)); 97 write_4(struct macb_softc *sc, bus_size_t off, uint32_t val) argument 100 bus_write_4(sc->mem_res, off, val); 124 macb_new_rxbuf(struct macb_softc *sc, int index); 127 macb_free_desc_dma_tx(struct macb_softc *sc); 130 macb_free_desc_dma_rx(struct macb_softc *sc); 133 macb_init_desc_dma_tx(struct macb_softc *sc); 136 macb_watchdog(struct macb_softc *sc); 138 static int macb_intr_rx_locked(struct macb_softc *sc, in 153 struct macb_softc *sc; local 173 macb_alloc_desc_dma_tx(struct macb_softc *sc) argument 240 macb_free_desc_dma_tx(struct macb_softc *sc) argument 275 macb_init_desc_dma_tx(struct macb_softc *sc) argument 302 macb_alloc_desc_dma_rx(struct macb_softc *sc) argument 372 macb_free_desc_dma_rx(struct macb_softc *sc) argument 407 macb_init_desc_dma_rx(struct macb_softc *sc) argument 430 macb_new_rxbuf(struct macb_softc *sc, int index) argument 467 macb_allocate_dma(struct macb_softc *sc) argument 499 struct macb_softc *sc; local 514 macb_watchdog(struct macb_softc *sc) argument 543 struct macb_softc *sc; local 612 macb_tx_cleanup(struct macb_softc *sc) argument 703 macb_rx(struct macb_softc *sc) argument 808 macb_intr_rx_locked(struct macb_softc *sc, int count) argument 817 struct macb_softc *sc; local 828 struct macb_softc *sc; local 861 macb_encap(struct macb_softc *sc, struct mbuf **m_head) argument 954 struct macb_softc *sc; local 1008 struct macb_softc *sc = xsc; local 1018 struct macb_softc *sc = ifp->if_softc; local 1028 macbstop(struct macb_softc *sc) argument 1097 set_filter(struct macb_softc *sc) argument 1150 struct macb_softc *sc = ifp->if_softc; local 1210 struct macb_softc *sc = ifp->if_softc; local 1226 struct macb_softc *sc = ifp->if_softc; local 1244 macb_reset(struct macb_softc *sc) argument 1265 macb_get_mac(struct macb_softc *sc, u_char *eaddr) argument 1287 struct macb_softc *sc; local 1422 struct macb_softc *sc; local 1443 phy_read(struct macb_softc *sc, int phy, int reg) argument 1456 phy_write(struct macb_softc *sc, int phy, int reg, int data) argument 1472 struct macb_softc *sc; local 1480 struct macb_softc *sc; local 1488 struct macb_softc *sc; local 1496 struct macb_softc *sc; local [all...] |
/freebsd-9.3-release/sys/dev/tws/ |
H A D | tws_hdm.c | 45 extern struct tws_request *tws_get_request(struct tws_softc *sc, 47 extern void tws_q_insert_tail(struct tws_softc *sc, struct tws_request *req, 49 extern struct tws_request * tws_q_remove_request(struct tws_softc *sc, 54 extern int tws_send_scsi_cmd(struct tws_softc *sc, int cmd); 55 extern int tws_set_param(struct tws_softc *sc, u_int32_t table_id, 57 extern int tws_get_param(struct tws_softc *sc, u_int32_t table_id, 61 int tws_init_connect(struct tws_softc *sc, u_int16_t mc); 62 int tws_init_ctlr(struct tws_softc *sc); 63 int tws_submit_command(struct tws_softc *sc, struct tws_request *req); 65 u_int16_t tws_poll4_response(struct tws_softc *sc, u_int64_ 83 tws_init_ctlr(struct tws_softc *sc) argument 115 tws_init_obfl_q(struct tws_softc *sc) argument 144 tws_init_connect(struct tws_softc *sc, u_int16_t mcreadits ) argument 219 tws_display_ctlr_info(struct tws_softc *sc) argument 243 tws_send_generic_cmd(struct tws_softc *sc, u_int8_t opcode) argument 277 tws_submit_command(struct tws_softc *sc, struct tws_request *req) argument 362 tws_get_response(struct tws_softc *sc, u_int16_t *req_id, u_int64_t *mfa) argument 394 tws_poll4_response(struct tws_softc *sc, u_int64_t *mfa) argument 415 tws_ctlr_ready(struct tws_softc *sc) argument 427 tws_turn_on_interrupts(struct tws_softc *sc) argument 437 tws_turn_off_interrupts(struct tws_softc *sc) argument 447 tws_disable_db_intr(struct tws_softc *sc) argument 458 tws_enable_db_intr(struct tws_softc *sc) argument 469 tws_ctlr_reset(struct tws_softc *sc) argument 494 tws_assert_soft_reset(struct tws_softc *sc) argument 507 struct tws_softc *sc = (struct tws_softc *)arg; local 518 tws_aen_synctime_with_host(struct tws_softc *sc) argument [all...] |
/freebsd-9.3-release/sys/powerpc/ps3/ |
H A D | if_glc.c | 67 static void glc_set_multicast(struct glc_softc *sc); 68 static int glc_add_rxbuf(struct glc_softc *sc, int idx); 69 static int glc_add_rxbuf_dma(struct glc_softc *sc, int idx); 70 static int glc_encap(struct glc_softc *sc, struct mbuf **m_head, 122 struct glc_softc *sc; local 127 sc = device_get_softc(dev); 129 sc->sc_bus = ps3bus_get_bus(dev); 130 sc->sc_dev = ps3bus_get_device(dev); 131 sc->sc_self = dev; 133 mtx_init(&sc 291 glc_init_locked(struct glc_softc *sc) argument 354 struct glc_softc *sc = xsc; local 365 struct glc_softc *sc = xsc; local 375 struct glc_softc *sc = xsc; local 401 struct glc_softc *sc = ifp->if_softc; local 457 struct glc_softc *sc = ifp->if_softc; local 467 struct glc_softc *sc = ifp->if_softc; local 506 glc_set_multicast(struct glc_softc *sc) argument 551 glc_add_rxbuf(struct glc_softc *sc, int idx) argument 589 glc_add_rxbuf_dma(struct glc_softc *sc, int idx) argument 607 glc_encap(struct glc_softc *sc, struct mbuf **m_head, bus_addr_t *pktdesc) argument 712 glc_rxintr(struct glc_softc *sc) argument 785 glc_txintr(struct glc_softc *sc) argument 856 struct glc_softc *sc = xsc; local 866 struct glc_softc *sc = xsc; local 900 struct glc_softc *sc = ifp->if_softc; local 928 struct glc_softc *sc = ifp->if_softc; local [all...] |
/freebsd-9.3-release/sys/dev/cfi/ |
H A D | cfi_core.c | 57 cfi_read(struct cfi_softc *sc, u_int ofs) argument 61 ofs &= ~(sc->sc_width - 1); 62 switch (sc->sc_width) { 64 val = bus_space_read_1(sc->sc_tag, sc->sc_handle, ofs); 67 val = bus_space_read_2(sc->sc_tag, sc->sc_handle, ofs); 70 val = bus_space_read_4(sc->sc_tag, sc->sc_handle, ofs); 80 cfi_write(struct cfi_softc *sc, u_in argument 98 cfi_read_qry(struct cfi_softc *sc, u_int ofs) argument 109 cfi_amd_write(struct cfi_softc *sc, u_int ofs, u_int addr, u_int data) argument 138 struct cfi_softc *sc; local 234 struct cfi_softc *sc; local 297 struct cfi_softc *sc; local 308 cfi_wait_ready(struct cfi_softc *sc, u_int ofs, u_int timeout) argument 356 cfi_write_block(struct cfi_softc *sc) argument 451 cfi_get16(struct cfi_softc *sc, int off) argument 459 cfi_put16(struct cfi_softc *sc, int off, uint16_t v) argument 469 cfi_intel_get_factory_pr(struct cfi_softc *sc, uint64_t *id) argument 488 cfi_intel_get_oem_pr(struct cfi_softc *sc, uint64_t *id) argument 508 cfi_intel_set_oem_pr(struct cfi_softc *sc, uint64_t id) argument 543 cfi_intel_get_plr(struct cfi_softc *sc, uint32_t *plr) argument 561 cfi_intel_set_plr(struct cfi_softc *sc) argument [all...] |
/freebsd-9.3-release/sys/powerpc/powerpc/ |
H A D | openpic.c | 59 openpic_read(struct openpic_softc *sc, u_int reg) argument 61 return (bus_space_read_4(sc->sc_bt, sc->sc_bh, reg)); 65 openpic_write(struct openpic_softc *sc, u_int reg, uint32_t val) argument 67 bus_space_write_4(sc->sc_bt, sc->sc_bh, reg, val); 71 openpic_set_priority(struct openpic_softc *sc, int pri) argument 77 tpr = OPENPIC_PCPU_TPR((sc->sc_dev == root_pic) ? PCPU_GET(cpuid) : 0); 78 x = openpic_read(sc, tpr); 81 openpic_write(sc, tp 88 struct openpic_softc *sc; local 236 struct openpic_softc *sc; local 255 struct openpic_softc *sc; local 285 struct openpic_softc *sc; local 305 struct openpic_softc *sc; local 325 struct openpic_softc *sc; local 337 struct openpic_softc *sc; local 351 struct openpic_softc *sc; local 369 struct openpic_softc *sc; local [all...] |
/freebsd-9.3-release/sys/dev/xl/ |
H A D | if_xl.c | 274 static void xl_choose_media(struct xl_softc *sc, int *media); 352 xl_wait(struct xl_softc *sc) argument 357 if ((CSR_READ_2(sc, XL_STATUS) & XL_STAT_CMDBUSY) == 0) 361 if (i == XL_TIMEOUT && bus_child_present(sc->xl_dev)) 362 device_printf(sc->xl_dev, "command never completed!\n"); 381 struct xl_softc *sc; local 384 sc = device_get_softc(dev); 387 val = CSR_READ_2(sc, XL_W4_PHY_MGMT); 388 CSR_BARRIER(sc, XL_W4_PHY_MGMT, 2, 400 struct xl_softc *sc; local 413 struct xl_softc *sc; local 426 struct xl_softc *sc; local 441 struct xl_softc *sc; local 483 struct xl_softc *sc; local 524 xl_eeprom_wait(struct xl_softc *sc) argument 548 xl_read_eeprom(struct xl_softc *sc, caddr_t dest, int off, int cnt, int swap) argument 590 xl_rxfilter(struct xl_softc *sc) argument 604 xl_rxfilter_90x(struct xl_softc *sc) argument 650 xl_rxfilter_90xB(struct xl_softc *sc) argument 719 xl_setcfg(struct xl_softc *sc) argument 739 xl_setmode(struct xl_softc *sc, int media) argument 835 xl_reset(struct xl_softc *sc) argument 929 xl_mediacheck(struct xl_softc *sc) argument 967 xl_choose_xcvr(struct xl_softc *sc, int verbose) argument 1066 struct xl_softc *sc; local 1498 xl_choose_media(struct xl_softc *sc, int *media) argument 1554 struct xl_softc *sc; local 1631 xl_list_tx_init(struct xl_softc *sc) argument 1666 xl_list_tx_init_90xB(struct xl_softc *sc) argument 1713 xl_list_rx_init(struct xl_softc *sc) argument 1756 xl_newbuf(struct xl_softc *sc, struct xl_chain_onefrag *c) argument 1798 xl_rx_resync(struct xl_softc *sc) argument 1826 xl_rxeof(struct xl_softc *sc) argument 1975 struct xl_softc *sc = (struct xl_softc *)arg; local 1988 xl_txeof(struct xl_softc *sc) argument 2037 xl_txeof_90xB(struct xl_softc *sc) argument 2083 xl_txeoc(struct xl_softc *sc) argument 2150 struct xl_softc *sc = arg; local 2216 struct xl_softc *sc = ifp->if_softc; local 2229 struct xl_softc *sc = ifp->if_softc; local 2277 struct xl_softc *sc = xsc; local 2295 xl_stats_update(struct xl_softc *sc) argument 2335 xl_encap(struct xl_softc *sc, struct xl_chain *c, struct mbuf **m_head) argument 2432 struct xl_softc *sc = ifp->if_softc; local 2447 struct xl_softc *sc = ifp->if_softc; local 2579 struct xl_softc *sc = ifp->if_softc; local 2664 struct xl_softc *sc = xsc; local 2672 xl_init_locked(struct xl_softc *sc) argument 2882 struct xl_softc *sc = ifp->if_softc; local 2925 struct xl_softc *sc = ifp->if_softc; local 2997 struct xl_softc *sc = ifp->if_softc; local 3094 xl_watchdog(struct xl_softc *sc) argument 3150 xl_stop(struct xl_softc *sc) argument 3232 struct xl_softc *sc; local 3247 struct xl_softc *sc; local 3266 xl_setwol(struct xl_softc *sc) argument [all...] |
/freebsd-9.3-release/sys/dev/cas/ |
H A D | if_cas.c | 125 static inline void cas_add_rxdesc(struct cas_softc *sc, u_int idx); 126 static int cas_attach(struct cas_softc *sc); 127 static int cas_bitwait(struct cas_softc *sc, bus_addr_t r, uint32_t clr, 131 static void cas_detach(struct cas_softc *sc); 132 static int cas_disable_rx(struct cas_softc *sc); 133 static int cas_disable_tx(struct cas_softc *sc); 134 static void cas_eint(struct cas_softc *sc, u_int status); 137 static void cas_init_locked(struct cas_softc *sc); 138 static void cas_init_regs(struct cas_softc *sc); 142 static int cas_load_txmbuf(struct cas_softc *sc, struc 183 cas_attach(struct cas_softc *sc) argument 475 cas_detach(struct cas_softc *sc) argument 521 cas_suspend(struct cas_softc *sc) argument 531 cas_resume(struct cas_softc *sc) argument 611 struct cas_softc *sc = xsc; local 623 struct cas_softc *sc = xsc; local 635 struct cas_softc *sc = arg; local 680 cas_bitwait(struct cas_softc *sc, bus_addr_t r, uint32_t clr, uint32_t set) argument 694 cas_reset(struct cas_softc *sc) argument 722 struct cas_softc *sc = ifp->if_softc; local 764 cas_reset_rx(struct cas_softc *sc) argument 791 cas_reset_tx(struct cas_softc *sc) argument 818 cas_disable_rx(struct cas_softc *sc) argument 833 cas_disable_tx(struct cas_softc *sc) argument 859 cas_meminit(struct cas_softc *sc) argument 955 struct cas_softc *sc = xsc; local 967 cas_init_locked(struct cas_softc *sc) argument 1187 cas_load_txmbuf(struct cas_softc *sc, struct mbuf **m_head) argument 1329 cas_init_regs(struct cas_softc *sc) argument 1421 cas_txkick(struct cas_softc *sc) argument 1441 struct cas_softc *sc = ifp->if_softc; local 1504 cas_tint(struct cas_softc *sc) argument 1612 struct cas_softc *sc = arg; local 1620 cas_rint(struct cas_softc *sc) argument 1741 sc, (void *)(uintptr_t)idx, local 1787 m->m_len, cas_free, sc, local 1829 m2->m_len, cas_free, sc, local 1894 struct cas_softc *sc; local 1921 cas_add_rxdesc(struct cas_softc *sc, u_int idx) argument 1945 cas_eint(struct cas_softc *sc, u_int status) argument 1974 struct cas_softc *sc = v; local 1990 struct cas_softc *sc = arg; local 2111 cas_watchdog(struct cas_softc *sc) argument 2147 cas_mifinit(struct cas_softc *sc) argument 2174 struct cas_softc *sc; local 2232 struct cas_softc *sc; local 2311 struct cas_softc *sc; local 2433 struct cas_softc *sc = ifp->if_softc; local 2447 struct cas_softc *sc = ifp->if_softc; local 2464 struct cas_softc *sc = ifp->if_softc; local 2525 cas_setladrf(struct cas_softc *sc) argument 2676 struct cas_softc *sc; local 2920 struct cas_softc *sc; local [all...] |
/freebsd-9.3-release/sys/arm/xscale/pxa/ |
H A D | pxa_gpio.c | 86 struct pxa_gpio_softc *sc; local 88 sc = (struct pxa_gpio_softc *)device_get_softc(dev); 92 pxa_gpio_softc = sc; 94 error = bus_alloc_resources(dev, pxa_gpio_spec, sc->pg_res); 100 sc->pg_bst = rman_get_bustag(sc->pg_res[0]); 101 sc->pg_bsh = rman_get_bushandle(sc->pg_res[0]); 104 bus_space_write_4(sc->pg_bst, sc 143 struct pxa_gpio_softc *sc; local 156 struct pxa_gpio_softc *sc; local 170 struct pxa_gpio_softc *sc; local 217 struct pxa_gpio_softc *sc; local 239 struct pxa_gpio_softc *sc; local 307 struct pxa_gpio_softc *sc; local 322 struct pxa_gpio_softc *sc; local 336 struct pxa_gpio_softc *sc; local [all...] |
/freebsd-9.3-release/sys/dev/wbwd/ |
H A D | wbwd.c | 191 write_efir_1(struct wb_softc *sc, u_short baseport, uint8_t value) argument 194 MPASS(sc != NULL || baseport != 0); 195 if (sc != NULL) 196 bus_space_write_1((sc)->bst, (sc)->bsh, 0, (value)); 202 read_efir_1(struct wb_softc *sc, u_short baseport) argument 205 MPASS(sc != NULL || baseport != 0); 206 if (sc != NULL) 207 return (bus_space_read_1((sc)->bst, (sc) 213 write_efdr_1(struct wb_softc *sc, u_short baseport, uint8_t value) argument 224 read_efdr_1(struct wb_softc *sc, u_short baseport) argument 242 struct wb_softc *sc; local 268 struct wb_softc *sc; local 306 struct wb_softc *sc; local 367 wb_print_state(struct wb_softc *sc, const char *msg) argument 389 ext_cfg_enter_0x87_0x87(struct wb_softc *sc, u_short baseport) argument 403 ext_cfg_exit_0xaa(struct wb_softc *sc, u_short baseport) argument 414 wb_set_watchdog(struct wb_softc *sc, unsigned int timeout) argument 506 struct wb_softc *sc; local 556 struct wb_softc *sc; local 688 struct wb_softc *sc; local 772 struct wb_softc *sc; local [all...] |
/freebsd-9.3-release/sys/netgraph/bluetooth/drivers/bt3c/ |
H A D | ng_bt3c_pccard.c | 97 #define bt3c_set_address(sc, address) \ 99 bus_space_write_1((sc)->iot, (sc)->ioh, BT3C_ADDR_L, ((address) & 0xff)); \ 100 bus_space_write_1((sc)->iot, (sc)->ioh, BT3C_ADDR_H, (((address) >> 8) & 0xff)); \ 103 #define bt3c_read_data(sc, data) \ 105 (data) = bus_space_read_1((sc)->iot, (sc)->ioh, BT3C_DATA_L); \ 106 (data) |= ((bus_space_read_1((sc)->iot, (sc) 260 bt3c_softc_p sc = (bt3c_softc_p) NG_NODE_PRIVATE(node); local 297 bt3c_softc_p sc = (bt3c_softc_p) NG_NODE_PRIVATE(node); local 317 bt3c_softc_p sc = (bt3c_softc_p) NG_NODE_PRIVATE(NG_HOOK_NODE(hook)); local 337 bt3c_softc_p sc = (bt3c_softc_p) NG_NODE_PRIVATE(NG_HOOK_NODE(hook)); local 364 bt3c_softc_p sc = (bt3c_softc_p) NG_NODE_PRIVATE(node); local 542 bt3c_softc_p sc = (bt3c_softc_p)NG_NODE_PRIVATE(NG_HOOK_NODE(hook)); local 615 bt3c_softc_p sc = (bt3c_softc_p) device_get_softc(dev); local 715 bt3c_softc_p sc = (bt3c_softc_p) device_get_softc(dev); local 756 bt3c_softc_p sc = (bt3c_softc_p) context; local 794 bt3c_receive(bt3c_softc_p sc) argument 975 bt3c_softc_p sc = (bt3c_softc_p) context; local 1017 bt3c_softc_p sc = (bt3c_softc_p) NG_NODE_PRIVATE(node); local 1055 bt3c_softc_p sc = (bt3c_softc_p) NG_NODE_PRIVATE(node); local 1113 bt3c_download_firmware(bt3c_softc_p sc, char const *firmware, int firmware_size) argument [all...] |