Searched refs:sc (Results 26 - 50 of 1873) sorted by relevance

1234567891011>>

/openbsd-current/sys/dev/pci/
H A Dcom_pci.c63 #define HREAD4(sc, reg) \
64 (bus_space_read_4((sc)->sc.sc_iot, (sc)->sc.sc_ioh, (reg)))
65 #define HWRITE4(sc, reg, val) \
66 bus_space_write_4((sc)->sc.sc_iot, (sc)->sc
79 struct com_softc sc; member in struct:com_pci_softc
110 struct com_pci_softc *sc = (struct com_pci_softc *)self; local
185 struct com_pci_softc *sc = (struct com_pci_softc *)self; local
206 struct com_pci_softc *sc = (struct com_pci_softc *)self; local
234 struct com_softc *sc = cookie; local
[all...]
H A Dif_ixgb.c169 struct ixgb_softc *sc; local
174 sc = (struct ixgb_softc *)self;
175 sc->osdep.ixgb_pa = *pa;
177 timeout_set(&sc->timer_handle, ixgb_local_timer, sc);
180 ixgb_identify_hardware(sc);
183 sc->num_tx_desc = IXGB_MAX_TXD;
184 sc->num_rx_desc = IXGB_MAX_RXD;
185 sc->tx_int_delay = TIDV;
186 sc
272 struct ixgb_softc *sc = ifp->if_softc; local
334 struct ixgb_softc *sc = ifp->if_softc; local
405 struct ixgb_softc *sc = ifp->if_softc; local
436 struct ixgb_softc *sc = arg; local
514 struct ixgb_softc *sc = arg; local
569 struct ixgb_softc *sc = ifp->if_softc; local
605 struct ixgb_softc *sc = ifp->if_softc; local
624 ixgb_encap(struct ixgb_softc *sc, struct mbuf *m_head) argument
713 ixgb_set_promisc(struct ixgb_softc *sc) argument
740 ixgb_set_multi(struct ixgb_softc *sc) argument
789 struct ixgb_softc *sc = arg; local
810 ixgb_update_link_status(struct ixgb_softc *sc) argument
842 struct ixgb_softc *sc = arg; local
866 ixgb_identify_hardware(struct ixgb_softc *sc) argument
902 ixgb_allocate_pci_resources(struct ixgb_softc *sc) argument
946 ixgb_free_pci_resources(struct ixgb_softc *sc) argument
970 ixgb_hardware_init(struct ixgb_softc *sc) argument
999 ixgb_setup_interface(struct ixgb_softc *sc) argument
1051 ixgb_dma_malloc(struct ixgb_softc *sc, bus_size_t size, struct ixgb_dma_alloc * dma, int mapflags) argument
1109 ixgb_dma_free(struct ixgb_softc *sc, struct ixgb_dma_alloc *dma) argument
1132 ixgb_allocate_transmit_structures(struct ixgb_softc *sc) argument
1150 ixgb_setup_transmit_structures(struct ixgb_softc *sc) argument
1200 ixgb_initialize_transmit_unit(struct ixgb_softc *sc) argument
1241 ixgb_free_transmit_structures(struct ixgb_softc *sc) argument
1288 ixgb_transmit_checksum_setup(struct ixgb_softc *sc, struct mbuf *mp, u_int8_t *txd_popts) argument
1362 ixgb_txeof(struct ixgb_softc *sc) argument
1434 ixgb_get_buf(struct ixgb_softc *sc, int i, struct mbuf *nmp) argument
1493 ixgb_allocate_receive_structures(struct ixgb_softc *sc) argument
1542 ixgb_setup_receive_structures(struct ixgb_softc *sc) argument
1562 ixgb_initialize_receive_unit(struct ixgb_softc *sc) argument
1653 ixgb_free_receive_structures(struct ixgb_softc *sc) argument
1701 ixgb_rxeof(struct ixgb_softc *sc, int count) argument
1860 ixgb_receive_checksum(struct ixgb_softc *sc, struct ixgb_rx_desc *rx_desc, struct mbuf *mp) argument
1893 ixgb_enable_hw_vlans(struct ixgb_softc *sc) argument
1903 ixgb_enable_intr(struct ixgb_softc *sc) argument
1915 ixgb_disable_intr(struct ixgb_softc *sc) argument
1937 ixgb_update_stats_counters(struct ixgb_softc *sc) argument
2030 ixgb_print_hw_stats(struct ixgb_softc *sc) argument
[all...]
H A Dtcpcib.c122 tcpcib_wdt_unlock(struct tcpcib_softc *sc) argument
125 bus_space_write_1(sc->sc_wdt_iot, sc->sc_wdt_ioh, E600_WDT_RR0, 0x80);
126 bus_space_write_1(sc->sc_wdt_iot, sc->sc_wdt_ioh, E600_WDT_RR0, 0x86);
130 tcpcib_wdt_init(struct tcpcib_softc *sc, int period) argument
142 bus_space_write_1(sc->sc_wdt_iot, sc->sc_wdt_ioh, E600_WDT_WDTCR,
144 tcpcib_wdt_unlock(sc);
145 bus_space_write_4(sc
155 tcpcib_wdt_start(struct tcpcib_softc *sc) argument
163 tcpcib_wdt_stop(struct tcpcib_softc *sc) argument
185 struct tcpcib_softc *sc = (struct tcpcib_softc *)self; local
271 struct tcpcib_softc *sc = (struct tcpcib_softc *)self; local
313 struct tcpcib_softc *sc = arg; local
341 struct tcpcib_softc *sc = tc->tc_priv; local
[all...]
H A Dehci_pci.c60 struct ehci_softc sc; member in struct:ehci_pci_softc
102 struct ehci_pci_softc *sc = (struct ehci_pci_softc *)self; local
109 char *devname = sc->sc.sc_bus.bdev.dv_xname;
115 &sc->sc.iot, &sc->sc.ioh, NULL, &sc->sc
240 struct ehci_pci_softc *sc = (struct ehci_pci_softc *)self; local
267 struct ehci_pci_softc *sc = (struct ehci_pci_softc *)self; local
305 ehci_pci_takecontroller(struct ehci_pci_softc *sc, int silent) argument
[all...]
H A Dif_bce.c185 struct bce_softc *sc = (struct bce_softc *) self; local
201 sc->bce_pa = *pa;
202 sc->bce_dmatag = pa->pa_dmat;
208 if (pci_mapreg_map(pa, BCE_PCI_BAR0, memtype, 0, &sc->bce_btag,
209 &sc->bce_bhandle, &memaddr, &memsize, 0)) {
238 sc->bce_intrhand = pci_intr_establish(pc, ih, IPL_NET, bce_intr, sc,
240 if (sc->bce_intrhand == NULL) {
249 bce_reset(sc);
252 if ((sc
433 struct bce_softc *sc = (struct bce_softc *)self; local
456 struct bce_softc *sc = ifp->if_softc; local
504 struct bce_softc *sc = ifp->if_softc; local
597 struct bce_softc *sc = ifp->if_softc; local
611 struct bce_softc *sc; local
682 bce_rxintr(struct bce_softc *sc) argument
749 bce_txintr(struct bce_softc *sc) argument
785 struct bce_softc *sc = ifp->if_softc; local
904 bce_add_mac(struct bce_softc *sc, u_int8_t *mac, unsigned long idx) argument
931 bce_add_rxbuf(struct bce_softc *sc, int idx) argument
957 struct bce_softc *sc = ifp->if_softc; local
995 bce_reset(struct bce_softc *sc) argument
1169 struct bce_softc *sc = ifp->if_softc; local
1202 struct bce_softc *sc = (struct bce_softc *) self; local
1235 struct bce_softc *sc = (struct bce_softc *) self; local
1268 struct bce_softc *sc = (struct bce_softc *) self; local
1295 struct bce_softc *sc = ifp->if_softc; local
1306 struct bce_softc *sc = ifp->if_softc; local
1317 struct bce_softc *sc = v; local
[all...]
/openbsd-current/sys/dev/gpio/
H A Dgpiodcf.c132 struct gpiodcf_softc *sc = (struct gpiodcf_softc *)self; local
140 sc->sc_gpio = ga->ga_gpio;
141 sc->sc_map.pm_map = sc->__map;
142 if (gpio_pin_map(sc->sc_gpio, ga->ga_offset, ga->ga_mask,
143 &sc->sc_map)) {
148 caps = gpio_pin_caps(sc->sc_gpio, &sc->sc_map, GPIODCF_PIN_DATA);
153 printf(": DATA[%d]", sc->sc_map.pm_map[GPIODCF_PIN_DATA]);
154 sc
212 struct gpiodcf_softc *sc = (struct gpiodcf_softc *)self; local
237 gpiodcf_signal(struct gpiodcf_softc *sc) argument
247 struct gpiodcf_softc *sc = xsc; local
308 struct gpiodcf_softc *sc = xsc; local
330 struct gpiodcf_softc *sc = xsc; local
466 struct gpiodcf_softc *sc = xsc; local
481 struct gpiodcf_softc *sc = xsc; local
502 struct gpiodcf_softc *sc = (struct gpiodcf_softc *)self; local
[all...]
/openbsd-current/sys/arch/armv7/omap/
H A Domehci.c75 struct ehci_softc sc; member in struct:omehci_softc
87 void omehci_soft_phy_reset(struct omehci_softc *sc, unsigned int port);
109 struct omehci_softc *sc = (struct omehci_softc *)self; local
112 char *devname = sc->sc.sc_bus.bdev.dv_xname;
122 sc->sc.iot = faa->fa_iot;
123 sc->sc.sc_bus.dmatag = faa->fa_dmat;
127 sc
228 omehci_init(struct omehci_softc *sc) argument
391 omehci_soft_phy_reset(struct omehci_softc *sc, unsigned int port) argument
426 struct omehci_softc *sc = (struct omehci_softc *)self; local
451 struct omehci_softc *sc = (struct omehci_softc *)self; local
[all...]
H A Dif_cpsw.c219 cpsw_set_txdesc_next(struct cpsw_softc * const sc, const u_int i, uint32_t n) argument
222 bus_space_write_4(sc->sc_bst, sc->sc_bsh_txdescs, o, n);
226 cpsw_set_rxdesc_next(struct cpsw_softc * const sc, const u_int i, uint32_t n) argument
229 bus_space_write_4(sc->sc_bst, sc->sc_bsh_rxdescs, o, n);
233 cpsw_get_txdesc(struct cpsw_softc * const sc, const u_int i, argument
237 bus_space_read_region_4(sc->sc_bst, sc->sc_bsh_txdescs, o,
242 cpsw_set_txdesc(struct cpsw_softc * const sc, cons argument
251 cpsw_get_rxdesc(struct cpsw_softc * const sc, const u_int i, struct cpsw_cpdma_bd * const bdp) argument
260 cpsw_set_rxdesc(struct cpsw_softc * const sc, const u_int i, struct cpsw_cpdma_bd * const bdp) argument
269 cpsw_txdesc_paddr(struct cpsw_softc * const sc, u_int x) argument
276 cpsw_rxdesc_paddr(struct cpsw_softc * const sc, u_int x) argument
283 cpsw_mdio_init(struct cpsw_softc *sc) argument
332 struct cpsw_softc *sc = (struct cpsw_softc *)self; local
481 struct cpsw_softc *sc = ifp->if_softc; local
492 struct cpsw_softc *sc = ifp->if_softc; local
504 struct cpsw_softc * const sc = ifp->if_softc; local
632 struct cpsw_softc *sc = ifp->if_softc; local
684 cpsw_mii_wait(struct cpsw_softc * const sc, int reg) argument
699 struct cpsw_softc * const sc = (struct cpsw_softc *)dev; local
721 struct cpsw_softc * const sc = (struct cpsw_softc *)dev; local
749 cpsw_new_rxbuf(struct cpsw_softc * const sc, const u_int i) argument
807 struct cpsw_softc * const sc = ifp->if_softc; local
950 struct cpsw_softc * const sc = ifp->if_softc; local
1030 struct cpsw_softc * const sc = arg; local
1041 struct cpsw_softc * const sc = arg; local
1132 struct cpsw_softc *sc = arg; local
1145 struct cpsw_softc * const sc = arg; local
1240 struct cpsw_softc * const sc = arg; local
[all...]
/openbsd-current/sys/dev/
H A Daudio.c51 #define DEVNAME(sc) ((sc)->dev.dv_xname)
278 audio_mixer_wakeup(struct audio_softc *sc) argument
282 if (sc->mix_blocking) {
283 wakeup(&sc->mix_blocking);
284 sc->mix_blocking = 0;
286 knote_locked(&sc->mix_klist, 0);
302 audio_buf_init(struct audio_softc *sc, struct audio_buf *buf, int dir) argument
305 if (sc->ops->round_buffersize) {
306 buf->datalen = sc
323 audio_buf_done(struct audio_softc *sc, struct audio_buf *buf) argument
400 audio_calc_sil(struct audio_softc *sc) argument
446 audio_fill_sil(struct audio_softc *sc, unsigned char *ptr, size_t count) argument
460 audio_clear(struct audio_softc *sc) argument
480 struct audio_softc *sc = addr; local
552 struct audio_softc *sc = addr; local
624 audio_start_do(struct audio_softc *sc) argument
685 audio_stop_do(struct audio_softc *sc) argument
696 audio_start(struct audio_softc *sc) argument
704 audio_stop(struct audio_softc *sc) argument
717 audio_canstart(struct audio_softc *sc) argument
729 audio_setpar_blksz(struct audio_softc *sc, struct audio_params *p, struct audio_params *r) argument
833 audio_setpar_nblks(struct audio_softc *sc, struct audio_params *p, struct audio_params *r) argument
872 audio_setpar(struct audio_softc *sc) argument
1041 audio_ioc_start(struct audio_softc *sc) argument
1060 audio_ioc_stop(struct audio_softc *sc) argument
1073 audio_ioc_getpar(struct audio_softc *sc, struct audio_swpar *p) argument
1091 audio_ioc_setpar(struct audio_softc *sc, struct audio_swpar *p) argument
1170 audio_ioc_getstatus(struct audio_softc *sc, struct audio_status *p) argument
1189 struct audio_softc *sc = (void *)self; local
1300 struct audio_softc *sc = (struct audio_softc *)self; local
1374 struct audio_softc *sc = (struct audio_softc *)self; local
1474 audio_open(struct audio_softc *sc, int flags) argument
1511 audio_drain(struct audio_softc *sc) argument
1574 audio_close(struct audio_softc *sc) argument
1586 audio_read(struct audio_softc *sc, struct uio *uio, int ioflag) argument
1648 audio_write(struct audio_softc *sc, struct uio *uio, int ioflag) argument
1730 audio_getdev(struct audio_softc *sc, struct audio_device *adev) argument
1740 audio_ioctl(struct audio_softc *sc, unsigned long cmd, void *addr) argument
1787 audio_event(struct audio_softc *sc, int addr) argument
1805 audio_mixer_devinfo(struct audio_softc *sc, struct mixer_devinfo *devinfo) argument
1841 audio_mixer_get(struct audio_softc *sc, struct mixer_ctrl *c) argument
1860 audio_mixer_set(struct audio_softc *sc, struct mixer_ctrl *c, struct proc *p) argument
1897 audio_ioctl_mixer(struct audio_softc *sc, unsigned long cmd, void *addr, struct proc *p) argument
1921 audio_mixer_read(struct audio_softc *sc, struct uio *uio, int ioflag) argument
1974 audio_mixer_open(struct audio_softc *sc, int flags) argument
1987 audio_mixer_close(struct audio_softc *sc, int flags) argument
2008 struct audio_softc *sc; local
2035 struct audio_softc *sc; local
2058 struct audio_softc *sc; local
2081 struct audio_softc *sc; local
2104 struct audio_softc *sc; local
2140 struct audio_softc *sc; local
2187 struct audio_softc *sc = kn->kn_hook; local
2195 struct audio_softc *sc = kn->kn_hook; local
2205 struct audio_softc *sc = kn->kn_hook; local
2213 struct audio_softc *sc = kn->kn_hook; local
2223 struct audio_softc *sc = kn->kn_hook; local
2231 struct audio_softc *sc = kn->kn_hook; local
2264 wskbd_initmute(struct audio_softc *sc, struct mixer_devinfo *vol) argument
2285 wskbd_initvol(struct audio_softc *sc, struct wskbd_vol *vol, char *cn, char *dn) argument
2320 wskbd_mixer_init(struct audio_softc *sc) argument
2352 wskbd_mixer_update(struct audio_softc *sc, struct wskbd_vol *vol) argument
2425 struct audio_softc *sc = arg; local
2435 struct audio_softc *sc; local
2459 struct audio_softc *sc; local
2486 struct audio_softc *sc; local
[all...]
/openbsd-current/sys/arch/luna88k/cbus/
H A Dnec86hw.c127 nec86hw_attach(struct nec86hw_softc *sc) argument
129 bus_space_tag_t iot = sc->sc_iot;
130 bus_space_handle_t ioh = sc->sc_ioh;
134 sc->func_fifo_output = nec86fifo_output_mono_8_direct;
135 sc->func_fifo_input = nec86fifo_input_mono_8_direct;
136 (void) nec86hw_set_params(sc, AUMODE_RECORD, 0,
138 (void) nec86hw_set_params(sc, AUMODE_PLAY, 0,
142 (void) nec86hw_set_in_port(sc, NEC86HW_INPUT_MIXER);
143 (void) nec86hw_set_out_port(sc, NEC86HW_OUTPUT_MIXER);
146 nec86hw_set_volume(sc, NEC86_VOLUME_PORT_OPNA
170 struct nec86hw_softc *sc = arg; local
206 register struct nec86hw_softc *sc = (struct nec86hw_softc *) addr; local
221 register struct nec86hw_softc *sc = (struct nec86hw_softc *) addr; local
261 register struct nec86hw_softc *sc = (struct nec86hw_softc *) addr; local
276 register struct nec86hw_softc *sc = (struct nec86hw_softc *) addr; local
286 register struct nec86hw_softc *sc = (struct nec86hw_softc *) addr; local
301 register struct nec86hw_softc *sc = (struct nec86hw_softc *) addr; local
311 register struct nec86hw_softc *sc = (struct nec86hw_softc *) addr; local
365 nec86hw_set_output_block(struct nec86hw_softc *sc, int cc) argument
412 nec86hw_set_input_block(struct nec86hw_softc *sc, int cc) argument
444 struct nec86hw_softc *sc = (struct nec86hw_softc *) addr; local
465 struct nec86hw_softc *sc = (struct nec86hw_softc *) addr; local
487 struct nec86hw_softc *sc = (struct nec86hw_softc *) addr; local
544 struct nec86hw_softc *sc = (struct nec86hw_softc *) addr; local
585 register struct nec86hw_softc *sc = (struct nec86hw_softc *) addr; local
600 register struct nec86hw_softc *sc = (struct nec86hw_softc *) addr; local
615 register struct nec86hw_softc *sc = (struct nec86hw_softc *) addr; local
638 nec86hw_rate_bits(struct nec86hw_softc *sc, u_long sr) argument
674 nec86hw_reset(struct nec86hw_softc *sc) argument
694 nec86hw_set_mode_playing(struct nec86hw_softc *sc) argument
706 nec86hw_set_mode_recording(struct nec86hw_softc *sc) argument
721 nec86hw_set_volume(struct nec86hw_softc *sc, int port, u_int8_t vol) argument
735 nec86hw_start_fifo(struct nec86hw_softc *sc) argument
748 nec86hw_stop_fifo(struct nec86hw_softc *sc) argument
761 nec86hw_enable_fifointr(struct nec86hw_softc *sc) argument
773 nec86hw_disable_fifointr(struct nec86hw_softc *sc) argument
785 nec86hw_seeif_intrflg(struct nec86hw_softc *sc) argument
797 nec86hw_clear_intrflg(struct nec86hw_softc *sc) argument
811 nec86hw_reset_fifo(struct nec86hw_softc *sc) argument
825 nec86hw_set_watermark(struct nec86hw_softc *sc, int wm) argument
849 nec86hw_set_precision_real(struct nec86hw_softc *sc, u_int prec) argument
863 nec86hw_set_rate_real(struct nec86hw_softc *sc, u_int8_t bits) argument
879 nec86hw_output_chunk(struct nec86hw_softc *sc) argument
921 nec86fifo_output_mono_8_direct(struct nec86hw_softc *sc, int cc) argument
941 nec86fifo_output_mono_16_direct(struct nec86hw_softc *sc, int cc) argument
968 nec86fifo_output_stereo_8_direct(struct nec86hw_softc *sc, int cc) argument
986 nec86fifo_output_stereo_16_direct(struct nec86hw_softc *sc, int cc) argument
1023 nec86fifo_output_mono_8_resamp(struct nec86hw_softc *sc, int cc) argument
1071 nec86fifo_output_mono_16_resamp(struct nec86hw_softc *sc, int cc) argument
1127 nec86hw_input_chunk(struct nec86hw_softc *sc) argument
1157 nec86fifo_input_mono_8_direct(struct nec86hw_softc *sc, int cc) argument
1177 nec86fifo_input_mono_16_direct(struct nec86hw_softc *sc, int cc) argument
1209 nec86fifo_input_stereo_8_direct(struct nec86hw_softc *sc, int cc) argument
1225 nec86fifo_input_stereo_16_direct(struct nec86hw_softc *sc, int cc) argument
1255 nec86fifo_padding(struct nec86hw_softc *sc, int cc) argument
1273 struct nec86hw_softc *sc = (struct nec86hw_softc *) arg; local
[all...]
/openbsd-current/sys/dev/acpi/
H A Dacpidock.c74 struct acpidock_softc *sc = (struct acpidock_softc *)self; local
77 sc->sc_acpi = (struct acpi_softc *)parent;
78 sc->sc_devnode = aa->aaa_node;
80 printf(": %s", sc->sc_devnode->name);
82 acpidock_status(sc);
83 if (sc->sc_docked == ACPIDOCK_STATUS_DOCKED) {
84 acpidock_docklock(sc, 1);
85 acpidock_dockctl(sc, 1);
88 acpidock_status(sc);
90 sc
116 acpidock_status(struct acpidock_softc *sc) argument
135 acpidock_docklock(struct acpidock_softc *sc, int lock) argument
159 acpidock_dockctl(struct acpidock_softc *sc, int dock) argument
183 acpidock_eject(struct acpidock_softc *sc, struct aml_node *node) argument
212 struct acpidock_softc *sc = arg; local
261 struct acpidock_softc *sc = arg; local
278 struct acpidock_softc *sc = (struct acpidock_softc *)arg; local
[all...]
H A Ddwgpio.c43 #define HREAD4(sc, reg) \
44 (bus_space_read_4((sc)->sc_memt, (sc)->sc_memh, (reg)))
45 #define HWRITE4(sc, reg, val) \
46 bus_space_write_4((sc)->sc_memt, (sc)->sc_memh, (reg), (val))
47 #define HSET4(sc, reg, bits) \
48 HWRITE4((sc), (reg), HREAD4((sc), (reg)) | (bits))
49 #define HCLR4(sc, re
111 struct dwgpio_softc *sc = (struct dwgpio_softc *)self; local
183 struct dwgpio_softc *sc = (struct dwgpio_softc *)arg; local
204 struct dwgpio_softc *sc = cookie; local
219 struct dwgpio_softc *sc = cookie; local
234 struct dwgpio_softc *sc = cookie; local
259 struct dwgpio_softc *sc = arg; local
[all...]
H A Dacpitz.c128 acpitz_init(struct acpitz_softc *sc, int flag) argument
136 sc->sc_psv = acpitz_getreading(sc, "_PSV");
139 sc->sc_ac[i] = acpitz_getreading(sc, name);
145 if (!aml_evalname(sc->sc_acpi, sc->sc_devnode, "_PSL",
147 acpi_freedevlist(&sc->sc_psl);
148 acpi_getdevlist(&sc->sc_psl, sc
187 struct acpitz_softc *sc = (struct acpitz_softc *)self; local
257 struct acpitz_softc *sc = (struct acpitz_softc *)self; local
268 acpitz_setfan(struct acpitz_softc *sc, int i, char *method) argument
349 struct acpitz_softc *sc = arg; local
441 acpitz_getreading(struct acpitz_softc *sc, char *name) argument
452 acpitz_gettempreading(struct acpitz_softc *sc, char *name) argument
484 struct acpitz_softc *sc = arg; local
[all...]
H A Dchvgpio.c80 chvgpio_read_pad_cfg0(struct chvgpio_softc *sc, int pin) argument
82 return bus_space_read_4(sc->sc_memt, sc->sc_memh,
87 chvgpio_write_pad_cfg0(struct chvgpio_softc *sc, int pin, uint32_t val) argument
89 bus_space_write_4(sc->sc_memt, sc->sc_memh,
94 chvgpio_read_pad_cfg1(struct chvgpio_softc *sc, int pin) argument
96 return bus_space_read_4(sc->sc_memt, sc->sc_memh,
101 chvgpio_write_pad_cfg1(struct chvgpio_softc *sc, in argument
168 struct chvgpio_softc *sc = (struct chvgpio_softc *)self; local
253 chvgpio_check_pin(struct chvgpio_softc *sc, int pin) argument
268 struct chvgpio_softc *sc = cookie; local
280 struct chvgpio_softc *sc = cookie; local
297 struct chvgpio_softc *sc = cookie; local
345 struct chvgpio_softc *sc = cookie; local
364 struct chvgpio_softc *sc = cookie; local
383 struct chvgpio_softc *sc = arg; local
408 struct chvgpio_softc *sc = cookie; local
[all...]
H A Damdgpio.c119 struct amdgpio_softc *sc = (struct amdgpio_softc *)self; local
122 sc->sc_acpi = (struct acpi_softc *)parent;
123 sc->sc_node = aaa->aaa_node;
124 printf(" %s", sc->sc_node->name);
126 if (aml_evalinteger(sc->sc_acpi, sc->sc_node, "_UID", 0, NULL, &uid)) {
135 sc->sc_npins = 184;
145 sc->sc_memt = aaa->aaa_bst[0];
146 if (bus_space_map(sc->sc_memt, aaa->aaa_addr[0], aaa->aaa_size[0],
147 0, &sc
185 struct amdgpio_softc *sc = (struct amdgpio_softc *)self; local
200 amdgpio_save_pin(struct amdgpio_softc *sc, int pin) argument
207 amdgpio_save(struct amdgpio_softc *sc) argument
216 amdgpio_restore_pin(struct amdgpio_softc *sc, int pin) argument
226 amdgpio_restore(struct amdgpio_softc *sc) argument
237 struct amdgpio_softc *sc = cookie; local
248 struct amdgpio_softc *sc = cookie; local
264 struct amdgpio_softc *sc = cookie; local
288 struct amdgpio_softc *sc = cookie; local
301 struct amdgpio_softc *sc = cookie; local
312 amdgpio_pin_intr(struct amdgpio_softc *sc, int pin) argument
342 struct amdgpio_softc *sc = arg; local
[all...]
/openbsd-current/sys/dev/usb/
H A Duonerng.c129 int uonerng_enable(struct uonerng_softc *sc);
130 void uonerng_cleanup(struct uonerng_softc *sc);
131 usbd_status uonerng_set_line_state(struct uonerng_softc *sc);
132 usbd_status uonerng_rts(struct uonerng_softc *sc, int onoff);
160 struct uonerng_softc *sc = (struct uonerng_softc *)self; local
169 sc->sc_udev = uaa->device;
170 sc->sc_dtr = -1;
171 sc->sc_rts = -1;
172 sc->sc_first_run = 1;
174 usb_init_task(&sc
284 uonerng_enable(struct uonerng_softc *sc) argument
318 struct uonerng_softc *sc = (struct uonerng_softc *)self; local
329 uonerng_cleanup(struct uonerng_softc *sc) argument
348 uonerng_rts(struct uonerng_softc *sc, int onoff) argument
358 uonerng_set_line_state(struct uonerng_softc *sc) argument
377 struct uonerng_softc *sc = (struct uonerng_softc *) arg; local
436 struct uonerng_softc *sc = arg; local
[all...]
H A Dumass.c88 * version of the 8070i command set. The sc->transform method is used to
184 void umass_disco(struct umass_softc *sc);
187 usbd_status umass_polled_transfer(struct umass_softc *sc,
189 usbd_status umass_setup_transfer(struct umass_softc *sc,
193 usbd_status umass_setup_ctrl_transfer(struct umass_softc *sc,
197 void umass_clear_endpoint_stall(struct umass_softc *sc, int endpt,
201 void umass_reset(struct umass_softc *sc, transfer_cb_f cb, void *priv);
234 void umass_bbb_dump_cbw(struct umass_softc *sc,
236 void umass_bbb_dump_csw(struct umass_softc *sc,
238 void umass_dump_buffer(struct umass_softc *sc, u_int8_
293 struct umass_softc *sc = (struct umass_softc *)self; local
608 struct umass_softc *sc = (struct umass_softc *)self; local
649 umass_disco(struct umass_softc *sc) argument
680 umass_polled_transfer(struct umass_softc *sc, struct usbd_xfer *xfer) argument
739 umass_setup_transfer(struct umass_softc *sc, struct usbd_pipe *pipe, void *buffer, int buflen, int flags, struct usbd_xfer *xfer) argument
775 umass_setup_ctrl_transfer(struct umass_softc *sc, usb_device_request_t *req, void *buffer, int buflen, int flags, struct usbd_xfer *xfer) argument
812 umass_adjust_transfer(struct umass_softc *sc) argument
847 umass_clear_endpoint_stall(struct umass_softc *sc, int endpt, struct usbd_xfer *xfer) argument
883 umass_bbb_reset(struct umass_softc *sc, int status) argument
921 umass_bbb_transfer(struct umass_softc *sc, int lun, void *cmd, int cmdlen, void *data, int datalen, int dir, u_int timeout, umass_callback cb, void *priv) argument
1019 struct umass_softc *sc = (struct umass_softc *) priv; local
1337 umass_cbi_adsc(struct umass_softc *sc, char *buffer, int buflen, struct usbd_xfer *xfer) argument
1351 umass_cbi_reset(struct umass_softc *sc, int status) argument
1394 umass_cbi_transfer(struct umass_softc *sc, int lun, void *cmd, int cmdlen, void *data, int datalen, int dir, u_int timeout, umass_callback cb, void *priv) argument
1456 struct umass_softc *sc = (struct umass_softc *) priv; local
1737 umass_bbb_get_max_lun(struct umass_softc *sc) argument
1774 umass_bbb_dump_cbw(struct umass_softc *sc, struct umass_bbb_cbw *cbw) argument
1794 umass_bbb_dump_csw(struct umass_softc *sc, struct umass_bbb_csw *csw) argument
1811 umass_dump_buffer(struct umass_softc *sc, u_int8_t *buffer, int buflen, int printlen) argument
[all...]
/openbsd-current/sys/arch/hppa/gsc/
H A Dif_ie_gsc.c84 void ie_gsc_reset(struct ie_softc *sc, int what);
85 void ie_gsc_attend(struct ie_softc *sc);
86 void ie_gsc_run(struct ie_softc *sc);
87 void ie_gsc_port(struct ie_softc *sc, u_int);
89 int ie_gsc_intrhook(struct ie_softc *sc, int what);
91 u_int16_t ie_gsc_read16(struct ie_softc *sc, int offset);
92 void ie_gsc_write16(struct ie_softc *sc, int offset, u_int16_t v);
93 void ie_gsc_write24(struct ie_softc *sc, int offset, int addr);
94 void ie_gsc_memcopyin(struct ie_softc *sc, void *p, int offset, size_t);
95 void ie_gsc_memcopyout(struct ie_softc *sc, cons
298 struct ie_softc *sc = (struct ie_softc *)self; local
[all...]
/openbsd-current/sys/dev/ic/
H A Ddc.c195 #define DC_SETBIT(sc, reg, x) \
196 CSR_WRITE_4(sc, reg, CSR_READ_4(sc, reg) | (x))
198 #define DC_CLRBIT(sc, reg, x) \
199 CSR_WRITE_4(sc, reg, CSR_READ_4(sc, reg) & ~(x))
201 #define SIO_SET(x) DC_SETBIT(sc, DC_SIO, (x))
202 #define SIO_CLR(x) DC_CLRBIT(sc, DC_SIO, (x))
205 dc_delay(struct dc_softc *sc) argument
210 CSR_READ_4(sc, DC_BUSCT
214 dc_eeprom_width(struct dc_softc *sc) argument
278 dc_eeprom_idle(struct dc_softc *sc) argument
309 dc_eeprom_putbyte(struct dc_softc *sc, int addr) argument
350 dc_eeprom_getword_pnic(struct dc_softc *sc, int addr, u_int16_t *dest) argument
373 dc_eeprom_getword_xircom(struct dc_softc *sc, int addr, u_int16_t *dest) argument
391 dc_eeprom_getword(struct dc_softc *sc, int addr, u_int16_t *dest) argument
437 dc_read_eeprom(struct dc_softc *sc, caddr_t dest, int off, int cnt, int swap) argument
466 dc_mii_writebit(struct dc_softc *sc, int bit) argument
482 dc_mii_readbit(struct dc_softc *sc) argument
497 dc_mii_sync(struct dc_softc *sc) argument
511 dc_mii_send(struct dc_softc *sc, u_int32_t bits, int cnt) argument
523 dc_mii_readreg(struct dc_softc *sc, struct dc_mii_frame *frame) argument
593 dc_mii_writereg(struct dc_softc *sc, struct dc_mii_frame *frame) argument
630 struct dc_softc *sc = (struct dc_softc *)self; local
750 struct dc_softc *sc = (struct dc_softc *)self; local
820 struct dc_softc *sc = (struct dc_softc *)self; local
843 dc_crc_le(struct dc_softc *sc, caddr_t addr) argument
890 dc_setfilt_21143(struct dc_softc *sc) argument
972 dc_setfilt_admtek(struct dc_softc *sc) argument
1019 dc_setfilt_asix(struct dc_softc *sc) argument
1074 dc_setfilt_xircom(struct dc_softc *sc) argument
1148 dc_setfilt(struct dc_softc *sc) argument
1170 dc_setcfg(struct dc_softc *sc, uint64_t media) argument
1324 dc_reset(struct dc_softc *sc) argument
1370 dc_apply_fixup(struct dc_softc *sc, uint64_t media) argument
1400 dc_decode_leaf_sia(struct dc_softc *sc, struct dc_eblock_sia *l) argument
1446 dc_decode_leaf_sym(struct dc_softc *sc, struct dc_eblock_sym *l) argument
1469 dc_decode_leaf_mii(struct dc_softc *sc, struct dc_eblock_mii *l) argument
1494 dc_read_srom(struct dc_softc *sc, int bits) argument
1504 dc_parse_21143_srom(struct dc_softc *sc) argument
1565 dc_attach(struct dc_softc *sc) argument
1787 dc_list_tx_init(struct dc_softc *sc) argument
1822 dc_list_rx_init(struct dc_softc *sc) argument
1854 dc_newbuf(struct dc_softc *sc, int i, struct mbuf *m) argument
1975 dc_pnic_rx_bug_war(struct dc_softc *sc, int idx) argument
2041 dc_rx_resync(struct dc_softc *sc) argument
2076 dc_rxeof(struct dc_softc *sc) argument
2179 dc_txeof(struct dc_softc *sc) argument
2295 struct dc_softc *sc = (struct dc_softc *)xsc; local
2375 dc_tx_underrun(struct dc_softc *sc) argument
2421 struct dc_softc *sc; local
2500 dc_encap(struct dc_softc *sc, bus_dmamap_t map, struct mbuf *m, u_int32_t *idx) argument
2553 dc_fits(struct dc_softc *sc, int idx, bus_dmamap_t map) argument
2570 struct dc_softc *sc = ifp->if_softc; local
2665 struct dc_softc *sc = xsc; local
2854 struct dc_softc *sc; local
2879 struct dc_softc *sc; local
2901 struct dc_softc *sc = ifp->if_softc; local
2951 struct dc_softc *sc; local
2969 dc_stop(struct dc_softc *sc, int softonly) argument
3062 struct dc_softc *sc = (struct dc_softc *)self; local
3084 dc_detach(struct dc_softc *sc) argument
[all...]
H A Dqla.c71 void qla_host_cmd(struct qla_softc *sc, u_int16_t);
106 int qla_get_loop_id(struct qla_softc *sc, int);
117 int qla_verify_firmware(struct qla_softc *sc, u_int16_t);
177 qla_classify_port(struct qla_softc *sc, u_int32_t location, argument
185 TAILQ_FOREACH(port, &sc->sc_ports_new, update) {
195 if (sc->sc_scsibus == NULL) {
200 TAILQ_FOREACH(port, &sc->sc_ports, ports) {
225 qla_get_loop_id(struct qla_softc *sc, int start) argument
229 if (sc->sc_2k_logins) {
241 if (sc
249 qla_get_port_db(struct qla_softc *sc, u_int16_t loopid, struct qla_dmamem *mem) argument
274 qla_add_loop_port(struct qla_softc *sc, struct qla_fc_port *port) argument
327 qla_add_fabric_port(struct qla_softc *sc, struct qla_fc_port *port) argument
364 qla_add_logged_in_port(struct qla_softc *sc, int loopid, u_int32_t portid) argument
425 qla_attach(struct qla_softc *sc) argument
711 qla_detach(struct qla_softc *sc, int flags) argument
717 qla_handle_resp(struct qla_softc *sc, u_int16_t id) argument
854 qla_handle_intr(struct qla_softc *sc, u_int16_t isr, u_int16_t info) argument
931 struct qla_softc *sc = xsc; local
945 struct qla_softc *sc = link->bus->sb_adapter_softc; local
967 struct qla_softc *sc = link->bus->sb_adapter_softc; local
1087 qla_read(struct qla_softc *sc, bus_size_t offset) argument
1097 qla_write(struct qla_softc *sc, bus_size_t offset, u_int16_t value) argument
1105 qla_read_mbox(struct qla_softc *sc, int mbox) argument
1112 qla_write_mbox(struct qla_softc *sc, int mbox, u_int16_t value) argument
1118 qla_host_cmd(struct qla_softc *sc, u_int16_t cmd) argument
1126 qla_mbox(struct qla_softc *sc, int maskin) argument
1198 qla_sns_req(struct qla_softc *sc, struct qla_dmamem *mem, int reqsize) argument
1226 qla_set_ints(struct qla_softc *sc, int enabled) argument
1233 qla_read_isr_1G(struct qla_softc *sc, u_int16_t *isr, u_int16_t *info) argument
1255 qla_read_isr_2G(struct qla_softc *sc, u_int16_t *isr, u_int16_t *info) argument
1293 qla_clear_isr(struct qla_softc *sc, u_int16_t isr) argument
1307 qla_read_queue_2100(struct qla_softc *sc, bus_size_t queue) argument
1325 qla_softreset(struct qla_softc *sc) argument
1383 qla_update_topology(struct qla_softc *sc) argument
1432 qla_update_fabric(struct qla_softc *sc) argument
1492 qla_get_port_name_list(struct qla_softc *sc, u_int32_t match) argument
1563 qla_next_fabric_port(struct qla_softc *sc, u_int32_t *firstport, u_int32_t *lastport) argument
1626 qla_fabric_plogi(struct qla_softc *sc, struct qla_fc_port *port) argument
1690 qla_fabric_plogo(struct qla_softc *sc, struct qla_fc_port *port) argument
1708 qla_update_done(struct qla_softc *sc, int task) argument
1714 qla_update_start(struct qla_softc *sc, int task) argument
1721 qla_clear_port_lists(struct qla_softc *sc) argument
1746 struct qla_softc *sc = xsc; local
2025 qla_async(struct qla_softc *sc, u_int16_t info) argument
2131 qla_dump_iocb(struct qla_softc *sc, void *buf) argument
2152 qla_dump_iocb_segs(struct qla_softc *sc, void *segs, int n) argument
2172 qla_put_marker(struct qla_softc *sc, void *buf) argument
2198 qla_put_cmd(struct qla_softc *sc, void *buf, struct scsi_xfer *xs, struct qla_ccb *ccb) argument
2272 qla_verify_firmware(struct qla_softc *sc, u_int16_t addr) argument
2281 qla_load_firmware_words(struct qla_softc *sc, const u_int16_t *src, u_int16_t dest) argument
2300 qla_load_firmware_2100(struct qla_softc *sc) argument
2307 qla_load_firmware_2200(struct qla_softc *sc) argument
2314 qla_load_fwchunk_2300(struct qla_softc *sc, struct qla_dmamem *mem, const u_int16_t *src, u_int32_t dest) argument
2356 qla_load_firmware_2300(struct qla_softc *sc) argument
2370 qla_load_firmware_2322(struct qla_softc *sc) argument
2402 qla_read_nvram(struct qla_softc *sc) argument
2485 qla_dmamem_alloc(struct qla_softc *sc, size_t size) argument
2527 qla_dmamem_free(struct qla_softc *sc, struct qla_dmamem *m) argument
2537 qla_alloc_ccbs(struct qla_softc *sc) argument
2620 qla_free_ccbs(struct qla_softc *sc) argument
2636 struct qla_softc *sc = xsc; local
2651 struct qla_softc *sc = xsc; local
[all...]
/openbsd-current/sys/dev/sun/
H A Dsunms.c51 sunms_attach(struct sunms_softc *sc, const struct wsmouse_accessops *ao) argument
58 sc->sc_state = STATE_PROBING;
59 sc->sc_bps = INIT_SPEED;
60 timeout_set(&sc->sc_abort_tmo, sunms_abort_input, sc);
68 getmicrotime(&sc->sc_lastbpschange);
71 a.accesscookie = sc;
72 sc->sc_wsmousedev = config_found(&sc->sc_dev, &a, wsmousedevprint);
79 struct sunms_softc *sc
98 sunms_speed_change(struct sunms_softc *sc) argument
131 sunms_input(struct sunms_softc *sc, int c) argument
232 struct sunms_softc *sc = v; local
[all...]
/openbsd-current/sys/arch/i386/isa/
H A Disapnp_machdep.c90 isapnp_map(struct isapnp_softc *sc) argument
94 if (sc->sc_iot != I386_BUS_SPACE_IO)
98 sc->sc_addr_ioh = ISAPNP_ADDR;
99 sc->sc_wrdata_ioh = ISAPNP_WRDATA;
107 isapnp_unmap(struct isapnp_softc *sc) argument
117 * NOTE: assumes the caller has filled in sc->sc_read_port!
120 isapnp_map_readport(struct isapnp_softc *sc) argument
127 if (sc->sc_iot != I386_BUS_SPACE_IO)
133 if ((error = bus_space_map(sc->sc_iot, sc
151 isapnp_unmap_readport(struct isapnp_softc *sc) argument
[all...]
/openbsd-current/sys/dev/fdt/
H A Dsdhc_fdt.c90 struct sdhc_softc sc; member in struct:sdhc_fdt_softc
140 struct sdhc_fdt_softc *sc = (struct sdhc_fdt_softc *)self; local
152 sc->sc_iot = faa->fa_iot;
153 sc->sc_size = faa->fa_reg[0].size;
154 sc->sc_node = faa->fa_node;
156 if (bus_space_map(sc->sc_iot, faa->fa_reg[0].addr,
157 faa->fa_reg[0].size, 0, &sc->sc_ioh)) {
168 sc->sc_ih = fdt_intr_establish(faa->fa_node, IPL_BIO,
169 sdhc_intr, sc, sc
332 struct sdhc_fdt_softc *sc = (struct sdhc_fdt_softc *)ssc; local
341 sdhc_fdt_signal_voltage(struct sdhc_softc *sc, int signal_voltage) argument
354 struct sdhc_fdt_softc *sc = cookie; local
362 struct sdhc_fdt_softc *sc = (struct sdhc_fdt_softc *)ssc; local
[all...]
/openbsd-current/sys/dev/cardbus/
H A Duhci_cardbus.c53 struct uhci_softc sc; member in struct:uhci_cardbus_softc
83 struct uhci_cardbus_softc *sc = (struct uhci_cardbus_softc *)self; local
92 const char *devname = sc->sc.sc_bus.bdev.dv_xname;
96 &sc->sc.iot, &sc->sc.ioh, NULL, &sc->sc
175 struct uhci_cardbus_softc *sc = (struct uhci_cardbus_softc *)self; local
[all...]
/openbsd-current/sys/dev/isa/
H A Dsb_isa.c78 struct sbdsp_softc probesc, *sc = &probesc; local
80 bzero(sc, sizeof *sc);
81 sc->sc_dev.dv_cfdata = ((struct device *)match)->dv_cfdata;
82 strlcpy(sc->sc_dev.dv_xname, "sb", sizeof sc->sc_dev.dv_xname);
83 return sbfind(parent, sc, aux);
87 sbfind(struct device *parent, struct sbdsp_softc *sc, argument
95 sc->sc_iot = ia->ia_iot;
98 if (bus_space_map(sc
140 struct sbdsp_softc *sc = (struct sbdsp_softc *)self; local
[all...]

Completed in 228 milliseconds

1234567891011>>