Home
last modified time | relevance | path

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

12345678910>>...128

/netbsd-src/sys/arch/shark/shark/
H A Dscr.c171 #define INVALID_STATE_CMD(sc,state,cmd) invalidStateCmd(sc,state,cmd,__LINE__); argument
176 #define INVALID_STATE_CMD(sc,state,cmd) sc->bigTrouble = true; argument
392 #define CLK_COUNT_START (((372 * TIMER_FREQ) / sc->cardFreq) /5)
393 #define CLK_COUNT_DATA (((372 * TIMER_FREQ) / sc->cardFreq) )
426 #define T_t2 ((300 * TIMER_FREQ) / sc->cardFreq)
427 #define T_t3 ((40000 * (TIMER_FREQ/1024)) / (sc->cardFreq/1024))
428 #define T_WORK_WAITING (((960 * sc->Wi * sc->Fi ) / (sc->cardFreq/1024)) * (TIMER_FREQ/1024))
582 static void initStates(struct scr_softc * sc);
594 static void masterSM(struct scr_softc * sc,int cmd);
597 static void t0SendSM(struct scr_softc * sc,int cnd);
[all …]
/netbsd-src/sys/arch/atari/dev/
H A Dite.c84 #define SUBR_INIT(sc) (sc)->grf->g_iteinit(sc) argument
85 #define SUBR_DEINIT(sc) (sc)->grf->g_itedeinit(sc) argument
86 #define SUBR_PUTC(sc,c,dy,dx,m) (sc)->grf->g_iteputc(sc,c,dy,dx,m) argument
87 #define SUBR_CURSOR(sc,flg) (sc)->grf->g_itecursor(sc,flg) argument
88 #define SUBR_CLEAR(sc,sy,sx,h,w) (sc)->grf->g_iteclear(sc,sy,sx,h,w) argument
89 #define SUBR_SCROLL(sc,sy,sx,cnt,dir) (sc)->grf->g_itescroll(sc,sy,sx,cnt,dir) argument
138 static void iteputchar(int c, struct ite_softc *sc);
205 struct ite_softc *sc; in iteattach() local
210 sc = device_private(self); in iteattach()
224 memcpy(&sc->grf, &con_itesoftc.grf, in iteattach()
[all …]
/netbsd-src/sys/dev/ic/
H A Di82586.c231 i82586_attach(struct ie_softc *sc, const char *name, uint8_t *etheraddr, in i82586_attach() argument
235 struct ifnet *ifp = &sc->sc_ethercom.ec_if; in i82586_attach()
237 strlcpy(ifp->if_xname, device_xname(sc->sc_dev), IFNAMSIZ); in i82586_attach()
238 ifp->if_softc = sc; in i82586_attach()
248 sc->sc_ethercom.ec_ifmedia = &sc->sc_media; in i82586_attach()
249 ifmedia_init(&sc->sc_media, 0, i82586_mediachange, i82586_mediastatus); in i82586_attach()
252 ifmedia_add(&sc->sc_media, media[i], 0, NULL); in i82586_attach()
253 ifmedia_set(&sc->sc_media, defmedia); in i82586_attach()
255 ifmedia_add(&sc->sc_media, IFM_ETHER | IFM_MANUAL, 0, NULL); in i82586_attach()
256 ifmedia_set(&sc->sc_media, IFM_ETHER | IFM_MANUAL); in i82586_attach()
[all …]
H A Di82596.c194 struct iee_softc *sc = intarg; in iee_intr() local
195 struct ifnet *ifp = &sc->sc_ethercom.ec_if; in iee_intr()
207 (sc->sc_iee_cmd)(sc, IEE_SCB_ACK); in iee_intr()
210 IEE_SCBSYNC(sc, BUS_DMASYNC_POSTREAD); in iee_intr()
211 scb_status = SC_SCB(sc)->scb_status; in iee_intr()
212 scb_cmd = SC_SCB(sc)->scb_cmd; in iee_intr()
214 rfd = SC_RFD(sc, sc->sc_rx_done); in iee_intr()
215 IEE_RFDSYNC(sc, sc->sc_rx_done, in iee_intr()
219 IEE_RFDSYNC(sc, sc->sc_rx_done, BUS_DMASYNC_PREREAD); in iee_intr()
223 IEE_RFDSYNC(sc, sc->sc_rx_done, in iee_intr()
[all …]
H A Dncr53c9x.c141 #define NCR_SET_COUNT(sc, size) do { \ argument
142 NCR_WRITE_REG((sc), NCR_TCL, (size)); \
143 NCR_WRITE_REG((sc), NCR_TCM, (size) >> 8); \
144 if ((sc->sc_cfg2 & NCRCFG2_FE) || \
145 (sc->sc_rev == NCR_VARIANT_FAS366)) { \
146 NCR_WRITE_REG((sc), NCR_TCH, (size) >> 16); \
148 if (sc->sc_rev == NCR_VARIANT_FAS366) { \
149 NCR_WRITE_REG(sc, NCR_RCH, 0); \
192 ncr53c9x_attach(struct ncr53c9x_softc *sc) in ncr53c9x_attach() argument
194 struct scsipi_adapter *adapt = &sc->sc_adapter; in ncr53c9x_attach()
[all …]
H A Dathn.c143 athn_attach(struct athn_softc *sc) in athn_attach() argument
145 struct ieee80211com *ic = &sc->sc_ic; in athn_attach()
146 struct ifnet *ifp = &sc->sc_if; in athn_attach()
151 athn_get_chipid(sc); in athn_attach()
153 if ((error = athn_reset_power_on(sc)) != 0) { in athn_attach()
154 aprint_error_dev(sc->sc_dev, "could not reset chip\n"); in athn_attach()
158 if ((error = athn_set_power_awake(sc)) != 0) { in athn_attach()
159 aprint_error_dev(sc->sc_dev, "could not wakeup chip\n"); in athn_attach()
163 if (AR_SREV_5416(sc) || AR_SREV_9160(sc)) in athn_attach()
164 error = ar5416_attach(sc); in athn_attach()
[all …]
H A Dncr5380sbc.c192 ncr5380_wait_req(struct ncr5380_softc *sc) in ncr5380_wait_req() argument
197 if (NCR5380_READ(sc, sci_bus_csr) & SCI_BUS_REQ) { in ncr5380_wait_req()
210 ncr5380_wait_not_req(struct ncr5380_softc *sc) in ncr5380_wait_not_req() argument
215 if ((NCR5380_READ(sc, sci_bus_csr) & SCI_BUS_REQ) == 0) { in ncr5380_wait_not_req()
228 ncr_sched_msgout(struct ncr5380_softc *sc, int msg_code) in ncr_sched_msgout() argument
232 if (sc->sc_msgpriq == 0) { in ncr_sched_msgout()
234 icmd = NCR5380_READ(sc, sci_icmd) & SCI_ICMD_RMASK; in ncr_sched_msgout()
235 NCR5380_WRITE(sc, sci_icmd, (icmd | SCI_ICMD_ATN)); in ncr_sched_msgout()
238 sc->sc_msgpriq |= msg_code; in ncr_sched_msgout()
243 ncr5380_pio_out(struct ncr5380_softc *sc, in argument
301 ncr5380_pio_in(struct ncr5380_softc * sc,int phase,int count,uint8_t * data) ncr5380_pio_in() argument
353 ncr5380_init(struct ncr5380_softc * sc) ncr5380_init() argument
394 ncr5380_reset_scsibus(struct ncr5380_softc * sc) ncr5380_reset_scsibus() argument
422 struct ncr5380_softc *sc = arg; ncr5380_intr() local
483 ncr5380_abort(struct ncr5380_softc * sc) ncr5380_abort() argument
524 struct ncr5380_softc *sc; ncr5380_cmd_timeout() local
599 struct ncr5380_softc *sc; ncr5380_scsipi_request() local
714 ncr5380_done(struct ncr5380_softc * sc) ncr5380_done() argument
819 ncr5380_sched(struct ncr5380_softc * sc) ncr5380_sched() argument
1057 ncr5380_reselect(struct ncr5380_softc * sc) ncr5380_reselect() argument
1295 ncr5380_select(struct ncr5380_softc * sc,struct sci_req * sr) ncr5380_select() argument
1541 ncr5380_msg_in(struct ncr5380_softc * sc) ncr5380_msg_in() argument
1782 ncr5380_msg_out(struct ncr5380_softc * sc) ncr5380_msg_out() argument
2004 ncr5380_command(struct ncr5380_softc * sc) ncr5380_command() argument
2041 ncr5380_data_xfer(struct ncr5380_softc * sc,int phase) ncr5380_data_xfer() argument
2128 ncr5380_status(struct ncr5380_softc * sc) ncr5380_status() argument
2158 ncr5380_machine(struct ncr5380_softc * sc) ncr5380_machine() argument
2503 struct ncr5380_softc *sc; ncr5380_show_state() local
2549 ncr5380_attach(struct ncr5380_softc * sc) ncr5380_attach() argument
2596 ncr5380_detach(struct ncr5380_softc * sc,int flags) ncr5380_detach() argument
[all...]
H A Ddwc_mmc.c80 #define MMC_WRITE(sc, reg, val) \ argument
81 bus_space_write_4((sc)->sc_bst, (sc)->sc_bsh, (reg), (val))
82 #define MMC_READ(sc, reg) \ argument
83 bus_space_read_4((sc)->sc_bst, (sc)->sc_bsh, (reg))
86 dwc_mmc_dmabounce_setup(struct dwc_mmc_softc *sc) in dwc_mmc_dmabounce_setup() argument
91 sc->sc_dmabounce_buflen = dwc_mmc_host_maxblklen(sc); in dwc_mmc_dmabounce_setup()
92 error = bus_dmamem_alloc(sc->sc_dmat, sc->sc_dmabounce_buflen, 0, in dwc_mmc_dmabounce_setup()
93 sc->sc_dmabounce_buflen, ds, 1, &rseg, BUS_DMA_WAITOK); in dwc_mmc_dmabounce_setup()
96 error = bus_dmamem_map(sc->sc_dmat, ds, 1, sc->sc_dmabounce_buflen, in dwc_mmc_dmabounce_setup()
97 &sc->sc_dmabounce_buf, BUS_DMA_WAITOK); in dwc_mmc_dmabounce_setup()
[all …]
/netbsd-src/sys/dev/pci/
H A Dif_rge.c68 MCLGETL(struct rge_softc *sc __unused, int how, in MCLGETL()
189 struct rge_softc *sc = device_private(self); in rge_attach() local
205 sc->sc_dev = self; in rge_attach()
213 PCI_MAPREG_MEM_TYPE_64BIT, 0, &sc->rge_btag, &sc->rge_bhandle, in rge_attach()
214 NULL, &sc->rge_bsize)) { in rge_attach()
216 PCI_MAPREG_MEM_TYPE_32BIT, 0, &sc->rge_btag, in rge_attach()
217 &sc->rge_bhandle, NULL, &sc->rge_bsize)) { in rge_attach()
219 0, &sc in rge_attach()
376 struct rge_softc *sc = arg; rge_intr() local
452 rge_encap(struct rge_softc * sc,struct mbuf * m,int idx) rge_encap() argument
547 struct rge_softc *sc = ifp->if_softc; rge_ioctl() local
587 struct rge_softc *sc = ifp->if_softc; rge_start() local
648 struct rge_softc *sc = ifp->if_softc; rge_watchdog() local
659 struct rge_softc *sc = ifp->if_softc; rge_init() local
847 struct rge_softc *sc = ifp->if_softc; rge_stop() local
888 struct rge_softc *sc = ifp->if_softc; rge_ifmedia_upd() local
956 struct rge_softc *sc = ifp->if_softc; rge_ifmedia_sts() local
990 rge_allocmem(struct rge_softc * sc) rge_allocmem() argument
1104 rge_load_rxbuf(struct rge_softc * sc,int idx) rge_load_rxbuf() argument
1128 rge_newbuf(struct rge_softc * sc,int idx) rge_newbuf() argument
1163 rge_rx_list_init(struct rge_softc * sc) rge_rx_list_init() argument
1184 rge_rx_list_fini(struct rge_softc * sc) rge_rx_list_fini() argument
1200 rge_tx_list_init(struct rge_softc * sc) rge_tx_list_init() argument
1217 rge_tx_list_fini(struct rge_softc * sc) rge_tx_list_fini() argument
1233 rge_rxeof(struct rge_softc * sc) rge_rxeof() argument
1362 rge_txeof(struct rge_softc * sc) rge_txeof() argument
1429 rge_reset(struct rge_softc * sc) rge_reset() argument
1467 rge_iff(struct rge_softc * sc) rge_iff() argument
1526 rge_set_phy_power(struct rge_softc * sc,int on) rge_set_phy_power() argument
1548 rge_phy_config(struct rge_softc * sc) rge_phy_config() argument
1594 rge_phy_config_mac_cfg2(struct rge_softc * sc) rge_phy_config_mac_cfg2() argument
1668 rge_phy_config_mac_cfg3(struct rge_softc * sc) rge_phy_config_mac_cfg3() argument
1773 rge_phy_config_mac_cfg4(struct rge_softc * sc) rge_phy_config_mac_cfg4() argument
1963 rge_phy_config_mac_cfg5(struct rge_softc * sc) rge_phy_config_mac_cfg5() argument
2008 rge_phy_config_mcu(struct rge_softc * sc,uint16_t mcode_version) rge_phy_config_mcu() argument
2072 rge_set_macaddr(struct rge_softc * sc,const uint8_t * addr) rge_set_macaddr() argument
2083 rge_get_macaddr(struct rge_softc * sc,uint8_t * addr) rge_get_macaddr() argument
2092 rge_hw_init(struct rge_softc * sc) rge_hw_init() argument
2135 rge_disable_phy_ocp_pwrsave(struct rge_softc * sc) rge_disable_phy_ocp_pwrsave() argument
2146 rge_patch_phy_mcu(struct rge_softc * sc,int set) rge_patch_phy_mcu() argument
2167 rge_add_media_types(struct rge_softc * sc) rge_add_media_types() argument
2180 rge_config_imtype(struct rge_softc * sc,int imtype) rge_config_imtype() argument
2200 rge_disable_hw_im(struct rge_softc * sc) rge_disable_hw_im() argument
2206 rge_disable_sim_im(struct rge_softc * sc) rge_disable_sim_im() argument
2213 rge_setup_sim_im(struct rge_softc * sc) rge_setup_sim_im() argument
2221 rge_setup_intr(struct rge_softc * sc,int imtype) rge_setup_intr() argument
2243 rge_exit_oob(struct rge_softc * sc) rge_exit_oob() argument
2293 rge_write_csi(struct rge_softc * sc,uint32_t reg,uint32_t val) rge_write_csi() argument
2311 rge_read_csi(struct rge_softc * sc,uint32_t reg) rge_read_csi() argument
2330 rge_write_mac_ocp(struct rge_softc * sc,uint16_t reg,uint16_t val) rge_write_mac_ocp() argument
2341 rge_read_mac_ocp(struct rge_softc * sc,uint16_t reg) rge_read_mac_ocp() argument
2352 rge_write_ephy(struct rge_softc * sc,uint16_t reg,uint16_t val) rge_write_ephy() argument
2371 rge_read_ephy(struct rge_softc * sc,uint16_t reg) rge_read_ephy() argument
2392 rge_write_phy(struct rge_softc * sc,uint16_t addr,uint16_t reg,uint16_t val) rge_write_phy() argument
2407 rge_read_phy(struct rge_softc * sc,uint16_t addr,uint16_t reg) rge_read_phy() argument
2422 rge_write_phy_ocp(struct rge_softc * sc,uint16_t reg,uint16_t val) rge_write_phy_ocp() argument
2439 rge_read_phy_ocp(struct rge_softc * sc,uint16_t reg) rge_read_phy_ocp() argument
2458 rge_get_link_status(struct rge_softc * sc) rge_get_link_status() argument
2466 struct rge_softc *sc = arg; rge_txstart() local
2474 struct rge_softc *sc = arg; rge_tick() local
2485 rge_link_state(struct rge_softc * sc) rge_link_state() argument
[all...]
H A Dcs4281.c185 struct cs428x_softc *sc; in cs4281_attach() local
193 sc = device_private(self); in cs4281_attach()
194 sc->sc_dev = self; in cs4281_attach()
200 sc->sc_pc = pa->pa_pc; in cs4281_attach()
201 sc->sc_pt = pa->pa_tag; in cs4281_attach()
206 &sc->ba0t, &sc->ba0h, NULL, NULL)) { in cs4281_attach()
207 aprint_error_dev(sc->sc_dev, "can't map BA0 space\n"); in cs4281_attach()
212 &sc->ba1t, &sc in cs4281_attach()
304 struct cs428x_softc *sc; cs4281_intr() local
405 struct cs428x_softc *sc; cs4281_set_format() local
417 struct cs428x_softc *sc; cs4281_halt_output() local
428 struct cs428x_softc *sc; cs4281_halt_input() local
449 struct cs428x_softc *sc; cs4281_trigger_output() local
540 struct cs428x_softc *sc; cs4281_trigger_input() local
612 struct cs428x_softc *sc = device_private(dv); cs4281_suspend() local
645 struct cs428x_softc *sc = device_private(dv); cs4281_resume() local
687 struct cs428x_softc *sc; cs4281_reset_codec() local
823 cs4281_set_adc_rate(struct cs428x_softc * sc,int rate) cs4281_set_adc_rate() argument
830 cs4281_set_dac_rate(struct cs428x_softc * sc,int rate) cs4281_set_dac_rate() argument
837 cs4281_init(struct cs428x_softc * sc,int init) cs4281_init() argument
[all...]
H A Dneo.c258 #define nm_rd_1(sc, regno) \ argument
259 bus_space_read_1((sc)->regiot, (sc)->regioh, (regno))
261 #define nm_rd_2(sc, regno) \ argument
262 bus_space_read_2((sc)->regiot, (sc)->regioh, (regno))
264 #define nm_rd_4(sc, regno) \ argument
265 bus_space_read_4((sc)->regiot, (sc)->regioh, (regno))
267 #define nm_wr_1(sc, regno, val) \ argument
268 bus_space_write_1((sc)->regiot, (sc)->regioh, (regno), (val))
270 #define nm_wr_2(sc, regno, val) \ argument
271 bus_space_write_2((sc)->regiot, (sc)->regioh, (regno), (val))
[all …]
H A Dif_bnx.c463 bnx_print_adapter_info(struct bnx_softc *sc) in bnx_print_adapter_info() argument
465 device_t dev = sc->bnx_dev; in bnx_print_adapter_info()
469 BNXNUM(sc), 'A' + BNXREV(sc), BNXMETAL(sc), in bnx_print_adapter_info()
470 (BNX_CHIP_BOND_ID(sc) == BNX_CHIP_BOND_ID_SERDES_BIT) in bnx_print_adapter_info()
471 ? "Serdes " : "", sc->bnx_chipid); in bnx_print_adapter_info()
474 if (sc->bnx_flags & BNX_PCIE_FLAG) { in bnx_print_adapter_info()
475 aprint_normal_dev(dev, "PCIe x%d ", sc->link_width); in bnx_print_adapter_info()
476 switch (sc in bnx_print_adapter_info()
526 bnx_probe_pci_caps(struct bnx_softc * sc) bnx_probe_pci_caps() argument
576 struct bnx_softc *sc = device_private(self); bnx_attach() local
964 struct bnx_softc *sc; bnx_detach() local
1007 bnx_reg_rd_ind(struct bnx_softc * sc,uint32_t offset) bnx_reg_rd_ind() argument
1038 bnx_reg_wr_ind(struct bnx_softc * sc,uint32_t offset,uint32_t val) bnx_reg_wr_ind() argument
1060 bnx_ctx_wr(struct bnx_softc * sc,uint32_t cid_addr,uint32_t ctx_offset,uint32_t ctx_val) bnx_ctx_wr() argument
1102 struct bnx_softc *sc = device_private(dev); bnx_miibus_read_reg() local
1182 struct bnx_softc *sc = device_private(dev); bnx_miibus_write_reg() local
1256 struct bnx_softc *sc = ifp->if_softc; bnx_miibus_statchg() local
1357 bnx_acquire_nvram_lock(struct bnx_softc * sc) bnx_acquire_nvram_lock() argument
1393 bnx_release_nvram_lock(struct bnx_softc * sc) bnx_release_nvram_lock() argument
1429 bnx_enable_nvram_write(struct bnx_softc * sc) bnx_enable_nvram_write() argument
1472 bnx_disable_nvram_write(struct bnx_softc * sc) bnx_disable_nvram_write() argument
1493 bnx_enable_nvram_access(struct bnx_softc * sc) bnx_enable_nvram_access() argument
1514 bnx_disable_nvram_access(struct bnx_softc * sc) bnx_disable_nvram_access() argument
1538 bnx_nvram_erase_page(struct bnx_softc * sc,uint32_t offset) bnx_nvram_erase_page() argument
1591 bnx_nvram_read_dword(struct bnx_softc * sc,uint32_t offset,uint8_t * ret_val,uint32_t cmd_flags) bnx_nvram_read_dword() argument
1653 bnx_nvram_write_dword(struct bnx_softc * sc,uint32_t offset,uint8_t * val,uint32_t cmd_flags) bnx_nvram_write_dword() argument
1707 bnx_init_nvram(struct bnx_softc * sc) bnx_init_nvram() argument
1819 bnx_nvram_read(struct bnx_softc * sc,uint32_t offset,uint8_t * ret_buf,int buf_size) bnx_nvram_read() argument
1937 bnx_nvram_write(struct bnx_softc * sc,uint32_t offset,uint8_t * data_buf,int buf_size) bnx_nvram_write() argument
2122 bnx_nvram_test(struct bnx_softc * sc) bnx_nvram_test() argument
2181 bnx_get_media(struct bnx_softc * sc) bnx_get_media() argument
2282 bnx_init_media(struct bnx_softc * sc) bnx_init_media() argument
2314 bnx_dma_free(struct bnx_softc * sc) bnx_dma_free() argument
2430 bnx_dma_alloc(struct bnx_softc * sc) bnx_dma_alloc() argument
2715 bnx_release_resources(struct bnx_softc * sc) bnx_release_resources() argument
2745 bnx_fw_sync(struct bnx_softc * sc,uint32_t msg_data) bnx_fw_sync() argument
2801 bnx_load_rv2p_fw(struct bnx_softc * sc,uint32_t * rv2p_code,uint32_t rv2p_code_len,uint32_t rv2p_proc) bnx_load_rv2p_fw() argument
2845 bnx_load_cpu_fw(struct bnx_softc * sc,struct cpu_reg * cpu_reg,struct fw_info * fw) bnx_load_cpu_fw() argument
2923 bnx_init_cpus(struct bnx_softc * sc) bnx_init_cpus() argument
3336 bnx_init_context(struct bnx_softc * sc) bnx_init_context() argument
3419 bnx_get_mac_addr(struct bnx_softc * sc) bnx_get_mac_addr() argument
3458 bnx_set_mac_addr(struct bnx_softc * sc) bnx_set_mac_addr() argument
3485 struct bnx_softc *sc = ifp->if_softc; bnx_stop() local
3528 bnx_reset(struct bnx_softc * sc,uint32_t reset_code) bnx_reset() argument
3638 bnx_chipinit(struct bnx_softc * sc) bnx_chipinit() argument
3754 bnx_blockinit(struct bnx_softc * sc) bnx_blockinit() argument
3862 bnx_add_buf(struct bnx_softc * sc,struct mbuf * m_new,uint16_t * prod,uint16_t * chain_prod,uint32_t * prod_bseq) bnx_add_buf() argument
3980 bnx_get_buf(struct bnx_softc * sc,uint16_t * prod,uint16_t * chain_prod,uint32_t * prod_bseq) bnx_get_buf() argument
4076 struct bnx_softc *sc = arg; bnx_alloc_pkts() local
4119 bnx_init_tx_context(struct bnx_softc * sc) bnx_init_tx_context() argument
4161 bnx_init_tx_chain(struct bnx_softc * sc) bnx_init_tx_chain() argument
4225 bnx_free_tx_chain(struct bnx_softc * sc) bnx_free_tx_chain() argument
4275 bnx_init_rx_context(struct bnx_softc * sc) bnx_init_rx_context() argument
4308 bnx_init_rx_chain(struct bnx_softc * sc) bnx_init_rx_chain() argument
4385 bnx_free_rx_chain(struct bnx_softc * sc) bnx_free_rx_chain() argument
4432 struct bnx_softc *sc; bnx_ifmedia_upd() local
4459 struct bnx_softc *sc; bnx_ifmedia_sts() local
4484 bnx_phy_intr(struct bnx_softc * sc) bnx_phy_intr() argument
4526 bnx_rx_intr(struct bnx_softc * sc) bnx_rx_intr() argument
4832 bnx_tx_intr(struct bnx_softc * sc) bnx_tx_intr() argument
4952 bnx_disable_intr(struct bnx_softc * sc) bnx_disable_intr() argument
4965 bnx_enable_intr(struct bnx_softc * sc) bnx_enable_intr() argument
4986 struct bnx_softc *sc = ifp->if_softc; bnx_init() local
5068 bnx_mgmt_init(struct bnx_softc * sc) bnx_mgmt_init() argument
5105 bnx_tx_encap(struct bnx_softc * sc,struct mbuf * m) bnx_tx_encap() argument
5275 struct bnx_softc *sc = ifp->if_softc; bnx_start() local
5376 struct bnx_softc *sc = ifp->if_softc; bnx_ioctl() local
5442 struct bnx_softc *sc = ifp->if_softc; bnx_watchdog() local
5476 struct bnx_softc *sc = xsc; bnx_intr() local
5571 bnx_iff(struct bnx_softc * sc) bnx_iff() argument
5664 bnx_stats_update(struct bnx_softc * sc) bnx_stats_update() argument
5877 struct bnx_softc *sc = xsc; bnx_tick() local
5939 bnx_dump_mbuf(struct bnx_softc * sc,struct mbuf * m) bnx_dump_mbuf() argument
5974 bnx_dump_tx_mbuf_chain(struct bnx_softc * sc,int chain_prod,int count) bnx_dump_tx_mbuf_chain() argument
6002 bnx_dump_rx_mbuf_chain(struct bnx_softc * sc,int chain_prod,int count) bnx_dump_rx_mbuf_chain() argument
6026 bnx_dump_txbd(struct bnx_softc * sc,int idx,struct tx_bd * txbd) bnx_dump_txbd() argument
6046 bnx_dump_rxbd(struct bnx_softc * sc,int idx,struct rx_bd * rxbd) bnx_dump_rxbd() argument
6065 bnx_dump_l2fhdr(struct bnx_softc * sc,int idx,struct l2_fhdr * l2fhdr) bnx_dump_l2fhdr() argument
6079 bnx_dump_tx_chain(struct bnx_softc * sc,int tx_prod,int count) bnx_dump_tx_chain() argument
6122 bnx_dump_rx_chain(struct bnx_softc * sc,int rx_prod,int count) bnx_dump_rx_chain() argument
6167 bnx_dump_status_block(struct bnx_softc * sc) bnx_dump_status_block() argument
6258 bnx_dump_stats_block(struct bnx_softc * sc) bnx_dump_stats_block() argument
6495 bnx_dump_driver_state(struct bnx_softc * sc) bnx_dump_driver_state() argument
6599 bnx_dump_hw_state(struct bnx_softc * sc) bnx_dump_hw_state() argument
6662 bnx_breakpoint(struct bnx_softc * sc) bnx_breakpoint() argument
[all...]
H A Dpm3fb.c171 pm3fb_wait(struct pm3fb_softc *sc, int slots) in pm3fb_wait() argument
176 reg = bus_space_read_4(sc->sc_memt, sc->sc_regh, in pm3fb_wait()
182 pm3fb_flush_engine(struct pm3fb_softc *sc) in pm3fb_flush_engine() argument
185 pm3fb_wait(sc, 2); in pm3fb_flush_engine()
186 bus_space_write_4(sc->sc_memt, sc->sc_regh, PM3_FILTER_MODE, PM3_FM_PASS_SYNC); in pm3fb_flush_engine()
187 bus_space_write_4(sc->sc_memt, sc->sc_regh, PM3_SYNC, 0); in pm3fb_flush_engine()
190 while (bus_space_read_4(sc in pm3fb_flush_engine()
213 struct pm3fb_softc *sc = device_private(self); pm3fb_attach() local
347 struct pm3fb_softc *sc = vd->cookie; pm3fb_ioctl() local
426 struct pm3fb_softc *sc = vd->cookie; pm3fb_mmap() local
477 struct pm3fb_softc *sc = cookie; pm3fb_init_screen() local
504 pm3fb_putcmap(struct pm3fb_softc * sc,struct wsdisplay_cmap * cm) pm3fb_putcmap() argument
542 pm3fb_getcmap(struct pm3fb_softc * sc,struct wsdisplay_cmap * cm) pm3fb_getcmap() argument
565 pm3fb_init_palette(struct pm3fb_softc * sc) pm3fb_init_palette() argument
583 pm3fb_putpalreg(struct pm3fb_softc * sc,uint8_t idx,uint8_t r,uint8_t g,uint8_t b) pm3fb_putpalreg() argument
595 pm3fb_write_dac(struct pm3fb_softc * sc,int reg,uint8_t data) pm3fb_write_dac() argument
605 pm3fb_init(struct pm3fb_softc * sc) pm3fb_init() argument
697 pm3fb_rectfill(struct pm3fb_softc * sc,int x,int y,int wi,int he,uint32_t colour) pm3fb_rectfill() argument
725 struct pm3fb_softc *sc = cookie; pm3fb_bitblt() local
781 struct pm3fb_softc *sc = scr->scr_cookie; pm3fb_cursor() local
815 struct pm3fb_softc *sc = scr->scr_cookie; pm3fb_putchar() local
931 struct pm3fb_softc *sc = scr->scr_cookie; pm3fb_copycols() local
949 struct pm3fb_softc *sc = scr->scr_cookie; pm3fb_erasecols() local
968 struct pm3fb_softc *sc = scr->scr_cookie; pm3fb_copyrows() local
986 struct pm3fb_softc *sc = scr->scr_cookie; pm3fb_eraserows() local
1004 pm3_setup_i2c(struct pm3fb_softc * sc) pm3_setup_i2c() argument
1074 struct pm3fb_softc *sc = cookie; pm3fb_i2cbb_set_bits() local
1090 struct pm3fb_softc *sc = cookie; pm3fb_i2cbb_read() local
1134 pm3fb_set_pll(struct pm3fb_softc * sc,int freq) pm3fb_set_pll() argument
1217 pm3fb_set_mode(struct pm3fb_softc * sc,const struct videomode * mode) pm3fb_set_mode() argument
[all...]
H A Dcs4280.c83 #define BA1READ4(sc, r) bus_space_read_4((sc)->ba1t, (sc)->ba1h, (r)) argument
84 #define BA1WRITE4(sc, r, x) bus_space_write_4((sc)->ba1t, (sc)->ba1h, (r), (x)) argument
245 struct cs428x_softc *sc; in cs4280_attach() local
257 sc = device_private(self); in cs4280_attach()
258 sc->sc_dev = self; in cs4280_attach()
269 aprint_normal_dev(sc->sc_dev, "%s %s\n", vendor, product); in cs4280_attach()
270 sc->sc_flags = cs_card->flags; in cs4280_attach()
272 sc->sc_flags = CS428X_FLAG_NONE; in cs4280_attach()
275 sc->sc_pc = pa->pa_pc; in cs4280_attach()
276 sc->sc_pt = pa->pa_tag; in cs4280_attach()
[all …]
/netbsd-src/sys/arch/hpcarm/dev/
H A Dwzero3_kbd.c61 #define CSR_READ1(r) bus_space_read_1(sc->sc_iot, sc->sc_ioh, (r))
62 #define CSR_WRITE1(r,v) bus_space_write_1(sc->sc_iot, sc->sc_ioh, (r), (v))
63 #define CSR_READ2(r) bus_space_read_2(sc->sc_iot, sc->sc_ioh, (r))
64 #define CSR_WRITE2(r,v) bus_space_write_2(sc->sc_iot, sc->sc_ioh, (r), (v))
65 #define CSR_READ4(r) bus_space_read_4(sc->sc_iot, sc->sc_ioh, (r))
66 #define CSR_WRITE4(r,v) bus_space_write_4(sc->sc_iot, sc->sc_ioh, (r), (v))
262 struct wzero3kbd_softc *sc = device_private(self); in wzero3kbd_attach() local
267 sc->sc_dev = self; in wzero3kbd_attach()
278 sc->sc_key_pin = model->key_pin; in wzero3kbd_attach()
279 sc->sc_power_pin = model->power_pin; in wzero3kbd_attach()
[all …]
/netbsd-src/sys/dev/usb/
H A Dpseye.c189 struct pseye_softc *sc = device_private(self); in pseye_attach() local
204 sc->sc_dev = self; in pseye_attach()
205 sc->sc_udev = dev; in pseye_attach()
206 sc->sc_iface = uiaa->uiaa_iface; in pseye_attach()
207 snprintf(sc->sc_businfo, sizeof(sc->sc_businfo), "usb:%08x", in pseye_attach()
208 sc->sc_udev->ud_cookie.cookie); in pseye_attach()
209 sc->sc_bulkin_bufferlen = PSEYE_BULKIN_BUFLEN; in pseye_attach()
211 sc->sc_dying = sc->sc_running = 0; in pseye_attach()
212 cv_init(&sc->sc_cv, device_xname(self)); in pseye_attach()
213 mutex_init(&sc->sc_mtx, MUTEX_DEFAULT, IPL_NONE); in pseye_attach()
[all …]
H A Dumass.c275 Static void umass_disco(struct umass_softc *sc);
377 struct umass_softc *sc = device_private(self); in umass_attach() local
387 SDT_PROBE1(usb, umass, device, attach__start, sc); in umass_attach()
389 sc->sc_dev = self; in umass_attach()
394 mutex_init(&sc->sc_lock, MUTEX_DEFAULT, IPL_SOFTUSB); in umass_attach()
400 sc->sc_udev = uiaa->uiaa_device; in umass_attach()
401 sc->sc_iface = uiaa->uiaa_iface; in umass_attach()
402 sc->sc_ifaceno = uiaa->uiaa_ifaceno; in umass_attach()
406 sc->sc_wire = quirk->uq_wire; in umass_attach()
407 sc->sc_cmd = quirk->uq_cmd; in umass_attach()
[all …]
H A Dudsir.c114 #define UDSIR_BLOCK_RX_DATA(sc) ((sc)->sc_ur_framelen != 0) argument
175 struct udsir_softc *sc = device_private(self); in udsir_attach() local
185 DPRINTFN(10, ("udsir_attach: sc=%p\n", sc)); in udsir_attach()
187 sc->sc_dev = self; in udsir_attach()
196 sc->sc_udev = dev; in udsir_attach()
197 sc->sc_iface = iface; in udsir_attach()
202 sc->sc_rd_addr = -1; in udsir_attach()
203 sc->sc_wr_addr = -1; in udsir_attach()
212 sc->sc_rd_addr = ed->bEndpointAddress; in udsir_attach()
213 sc->sc_rd_maxpsz = UGETW(ed->wMaxPacketSize); in udsir_attach()
[all …]
H A Duatp.c181 aprint_error_dev(uatp_dev(sc), "%s: check failed: %s\n",\
212 # define DPRINTF(sc, flags, format) do { \ argument
213 if ((flags) & (sc)->sc_debug_flags) { \
214 printf("%s: %s: ", device_xname(uatp_dev(sc)), __func__); \
219 # define DPRINTF(sc, flags, format) do {} while (0) argument
694 uatp_dev(const struct uatp_softc *sc) in uatp_dev() argument
696 return sc->sc_dev; in uatp_dev()
700 uatp_x_sample(struct uatp_softc *sc) in uatp_x_sample() argument
702 return &sc->sc_sample[0]; in uatp_x_sample()
706 uatp_y_sample(struct uatp_softc *sc) in uatp_y_sample() argument
[all …]
/netbsd-src/sys/arch/arm/broadcom/
H A Dbcm2835_bsc.c92 bsciic_attach(struct bsciic_softc *sc) in bsciic_attach() argument
94 mutex_init(&sc->sc_intr_lock, MUTEX_DEFAULT, IPL_VM); in bsciic_attach()
95 cv_init(&sc->sc_intr_wait, device_xname(sc->sc_dev)); in bsciic_attach()
98 bus_space_write_4(sc->sc_iot, sc->sc_ioh, BSC_C, BSC_C_CLEAR_CLEAR); in bsciic_attach()
99 bus_space_write_4(sc->sc_iot, sc->sc_ioh, BSC_S, BSC_S_CLKT | in bsciic_attach()
101 bus_space_write_4(sc->sc_iot, sc->sc_ioh, BSC_DLEN, 0); in bsciic_attach()
103 u_int divider = howmany(sc->sc_frequency, sc->sc_clkrate); in bsciic_attach()
104 bus_space_write_4(sc->sc_iot, sc->sc_ioh, BSC_DIV, in bsciic_attach()
111 struct bsciic_softc * const sc = v; in bsciic_acquire_bus() local
114 bus_space_write_4(sc->sc_iot, sc->sc_ioh, BSC_S, BSC_S_CLKT | in bsciic_acquire_bus()
[all …]
/netbsd-src/sys/dev/hil/
H A Dhil.c95 static int send_device_cmd(struct hil_softc *sc, u_int device, u_int cmd);
102 #define hil_process_pending(sc) wakeup(&(sc)->sc_pending) argument
105 hilwait(struct hil_softc *sc) in hilwait() argument
111 if ((bus_space_read_1(sc->sc_bst, sc->sc_bsh, HILP_STAT) & in hilwait()
120 hildatawait(struct hil_softc *sc) in hildatawait() argument
126 if ((bus_space_read_1(sc->sc_bst, sc->sc_bsh, HILP_STAT) & in hildatawait()
139 hil_attach(struct hil_softc *sc, int *hil_is_console) in hil_attach() argument
142 rnd_attach_source(&sc->sc_rndsource, device_xname(sc->sc_dev), in hil_attach()
150 sc->sc_cmdending = 0; in hil_attach()
151 sc->sc_actdev = sc->sc_cmddev = 0; in hil_attach()
[all …]
/netbsd-src/sys/arch/arm/xscale/
H A Dpxa2x0_ohci.c42 ohci_softc_t sc; member
53 #define HREAD4(sc,r) bus_space_read_4((sc)->sc.iot, (sc)->sc.ioh, (r)) argument
54 #define HWRITE4(sc,r,v) bus_space_write_4((sc)->sc.iot, (sc)->sc.ioh, (r), (v)) argument
71 struct pxaohci_softc *sc = device_private(self); in pxaohci_attach() local
81 sc->sc.iot = pxa->pxa_iot; in pxaohci_attach()
82 sc->sc.sc_bus.ub_dmatag = pxa->pxa_dmat; in pxaohci_attach()
83 sc->sc.sc_size = 0; in pxaohci_attach()
84 sc->sc_ih = NULL; in pxaohci_attach()
85 sc->sc.sc_dev = self; in pxaohci_attach()
86 sc->sc.sc_bus.ub_hcpriv = sc; in pxaohci_attach()
[all …]
/netbsd-src/sys/arch/macppc/dev/
H A Dcuda.c173 struct cuda_softc *sc = device_private(self); in cuda_attach() local
183 sc->sc_dev = self; in cuda_attach()
190 sc->sc_node = ca->ca_node; in cuda_attach()
191 sc->sc_memt = ca->ca_tag; in cuda_attach()
193 sc->sc_sent = 0; in cuda_attach()
194 sc->sc_received = 0; in cuda_attach()
195 sc->sc_waiting = 0; in cuda_attach()
196 sc->sc_polling = 0; in cuda_attach()
197 sc->sc_state = CUDA_NOTREADY; in cuda_attach()
198 sc->sc_error = 0; in cuda_attach()
[all …]
/netbsd-src/sys/arch/sandpoint/sandpoint/
H A Dsatmgr.c208 struct satmgr_softc *sc = device_private(self); in satmgr_attach() local
229 sc->sc_ops = ops; in satmgr_attach()
231 sc->sc_dev = self; in satmgr_attach()
233 sc->sc_iot = eaa->eumb_bt; in satmgr_attach()
234 bus_space_map(eaa->eumb_bt, sataddr, 0x20, 0, &sc->sc_ioh); in satmgr_attach()
235 sc->sc_open = 0; in satmgr_attach()
236 sc->sc_rd_cnt = 0; in satmgr_attach()
237 sc->sc_rd_cur = sc->sc_rd_ptr = &sc->sc_rd_buf[0]; in satmgr_attach()
238 sc->sc_rd_lim = sc->sc_rd_cur + sizeof(sc->sc_rd_buf); in satmgr_attach()
239 sc->sc_wr_cnt = 0; in satmgr_attach()
[all …]
/netbsd-src/sys/dev/isa/
H A Dwt.c186 static int wtwait(struct wt_softc *sc, int catch, const char *msg);
187 static int wtcmd(struct wt_softc *sc, int cmd);
188 static int wtstart(struct wt_softc *sc, int flag, void *vaddr, size_t len);
189 static void wtdma(struct wt_softc *sc);
191 static void wtclock(struct wt_softc *sc);
193 static int wtsense(struct wt_softc *sc, int verbose, int ignore);
194 static int wtstatus(struct wt_softc *sc);
195 static void wtrewind(struct wt_softc *sc);
196 static int wtreadfm(struct wt_softc *sc);
197 static int wtwritefm(struct wt_softc *sc);
[all …]

12345678910>>...128