HomeSort by: relevance | last modified time | path
    Searched refs:sc (Results 1 - 25 of 3491) sorted by relevancy

1 2 3 4 5 6 7 8 91011>>

  /src/sys/arch/next68k/dev/
mb8795var.h 78 #define MB_READ_REG(sc, reg) \
79 (*(sc)->sc_glue->gl_read_reg)((sc), (reg))
80 #define MB_WRITE_REG(sc, reg, val) \
81 (*(sc)->sc_glue->gl_write_reg)((sc), (reg), (val))
86 #define MBDMA_RESET(sc) (*(sc)->sc_glue->gl_dma_reset)((sc))
87 #define MBDMA_SETUP(sc, addr, len, datain, dmasize)
    [all...]
  /src/sys/arch/arm/xscale/
pxa2x0_ohci.c 42 ohci_softc_t sc; member in struct:pxaohci_softc
53 #define HREAD4(sc,r) bus_space_read_4((sc)->sc.iot, (sc)->sc.ioh, (r))
54 #define HWRITE4(sc,r,v) bus_space_write_4((sc)->sc.iot, (sc)->sc.ioh, (r), (v)
71 struct pxaohci_softc *sc = device_private(self); local in function:pxaohci_attach
147 struct pxaohci_softc *sc = device_private(self); local in function:pxaohci_detach
    [all...]
i80312.c 95 i80312_attach(struct i80312_softc *sc)
103 i80312_softc = sc;
109 if (bus_space_subregion(sc->sc_st, sc->sc_sh, I80312_PPB_BASE,
110 I80312_PPB_SIZE, &sc->sc_ppb_sh))
112 device_xname(sc->sc_dev));
114 if (bus_space_subregion(sc->sc_st, sc->sc_sh, I80312_ATU_BASE,
115 I80312_ATU_SIZE, &sc->sc_atu_sh))
117 device_xname(sc->sc_dev))
    [all...]
i80312_gpio.c 61 struct i80312_softc *sc = i80312_softc; local in function:i80312_gpio_set_direction
63 sc->sc_gpio_dir = (sc->sc_gpio_dir & ~which) | val;
64 bus_space_write_1(sc->sc_st, sc->sc_intc_sh, I80312_INTC_GOE,
65 ~sc->sc_gpio_dir);
76 struct i80312_softc *sc = i80312_softc; local in function:i80312_gpio_set_val
78 sc->sc_gpio_val = (sc->sc_gpio_val & ~which) | val;
79 bus_space_write_1(sc->sc_st, sc->sc_intc_sh, I80312_INTC_GOD
91 struct i80312_softc *sc = i80312_softc; local in function:i80312_gpio_get_val
    [all...]
i80321_gpio.c 58 struct i80321_softc *sc = i80321_softc; local in function:i80321_gpio_set_direction
60 sc->sc_gpio_dir = (sc->sc_gpio_dir & ~which) | val;
61 bus_space_write_1(sc->sc_st, sc->sc_sh, ICU_GPOE, ~sc->sc_gpio_dir);
72 struct i80321_softc *sc = i80321_softc; local in function:i80321_gpio_set_val
74 sc->sc_gpio_val = (sc->sc_gpio_val & ~which) | val;
75 bus_space_write_1(sc->sc_st, sc->sc_sh, ICU_GPOD, sc->sc_gpio_val)
86 struct i80321_softc *sc = i80321_softc; local in function:i80321_gpio_get_val
    [all...]
  /src/sys/dev/ic/
rs5c313.c 48 #define rtc_begin(sc) ((*sc->sc_ops->rs5c313_op_begin)(sc))
49 #define rtc_ce(sc, onoff) ((*sc->sc_ops->rs5c313_op_ce)(sc, onoff))
50 #define rtc_clk(sc, onoff) ((*sc->sc_ops->rs5c313_op_clk)(sc, onoff))
51 #define rtc_dir(sc, output) ((*sc->sc_ops->rs5c313_op_dir)(sc, output)
146 struct rs5c313_softc *sc = device_private(todr->todr_dev); local in function:rs5c313_todr_gettime_ymdhms
206 struct rs5c313_softc *sc = device_private(todr->todr_dev); local in function:rs5c313_todr_settime_ymdhms
    [all...]
i82586.c 214 * (through `sc->scb') as an offset against the shared-memory bus handle.
231 i82586_attach(struct ie_softc *sc, const char *name, uint8_t *etheraddr,
235 struct ifnet *ifp = &sc->sc_ethercom.ec_if;
237 strlcpy(ifp->if_xname, device_xname(sc->sc_dev), IFNAMSIZ);
238 ifp->if_softc = sc;
248 sc->sc_ethercom.ec_ifmedia = &sc->sc_media;
249 ifmedia_init(&sc->sc_media, 0, i82586_mediachange, i82586_mediastatus);
252 ifmedia_add(&sc->sc_media, media[i], 0, NULL);
253 ifmedia_set(&sc->sc_media, defmedia)
281 struct ie_softc *sc = ifp->if_softc; local in function:i82586_watchdog
432 struct ie_softc *sc = v; local in function:i82586_intr
1125 struct ie_softc *sc = ifp->if_softc; local in function:i82586_start
1608 struct ie_softc *sc = ifp->if_softc; local in function:i82586_init
1703 struct ie_softc *sc = ifp->if_softc; local in function:i82586_stop
1713 struct ie_softc *sc = ifp->if_softc; local in function:i82586_ioctl
1802 struct ie_softc *sc = ifp->if_softc; local in function:i82586_mediachange
1815 struct ie_softc *sc = ifp->if_softc; local in function:i82586_mediastatus
    [all...]
lsi64854var.h 65 #define L64854_GCSR(sc) \
66 (bus_space_read_4((sc)->sc_bustag, (sc)->sc_regs, L64854_REG_CSR))
68 #define L64854_SCSR(sc, csr) \
69 bus_space_write_4((sc)->sc_bustag, (sc)->sc_regs, L64854_REG_CSR, csr)
75 #define DMA_RESET(sc) (((sc)->reset)(sc))
76 #define DMA_INTR(sc) (((sc)->intr)(sc)
    [all...]
i82596.c 101 * int (*sc_iee_cmd)(struct iee_softc *sc, uint32_t cmd);
102 * int (*sc_iee_reset)(struct iee_softc *sc);
110 * this may have caused by calling (sc->sc_iee_cmd)(sc, IEE_SCB_ACK);
117 * sc->sc_type has to be set to I82596_UNKNOWN or I82596_DX or I82596_CA.
122 * IEE_NEED_SWAP in sc->sc_flags has to be cleared on little endian hardware
142 * IEE_REV_A flag must be set in sc->sc_flags if the IEE_SYSBUS_BE feature
145 * sc->sc_cl_align must be set to 1 or to the cache line size. When set to
146 * 1 no special alignment of DMA descriptors is done. If sc->sc_cl_align != 1
148 * of sc->sc_cl_align. This is needed on some hppa machines that have non DM
194 struct iee_softc *sc = intarg; local in function:iee_intr
714 struct iee_softc *sc = ifp->if_softc; local in function:iee_mediachange
725 struct iee_softc *sc = ifp->if_softc; local in function:iee_mediastatus
736 struct iee_softc *sc = ifp->if_softc; local in function:iee_start
834 struct iee_softc *sc = ifp->if_softc; local in function:iee_ioctl
867 struct iee_softc *sc = ifp->if_softc; local in function:iee_init
1020 struct iee_softc *sc = ifp->if_softc; local in function:iee_stop
1052 struct iee_softc *sc = ifp->if_softc; local in function:iee_watchdog
    [all...]
rng200.c 44 #define READ4(sc, r) \
45 bus_space_read_4((sc)->sc_bst, (sc)->sc_bsh, (r))
47 #define WRITE4(sc, r, v) \
48 bus_space_write_4((sc)->sc_bst, (sc)->sc_bsh, (r), (v))
51 rng200_reset(struct rng200_softc *sc)
56 ctl = READ4(sc, RNG200_CONTROL);
58 WRITE4(sc, RNG200_CONTROL, ctl);
61 WRITE4(sc, RNG200_STATUS, 0xffffffff)
78 struct rng200_softc * const sc = priv; local in function:rng200_get
    [all...]
  /src/sys/arch/arm/ixp12x0/
ixp12x0.c 46 ixp12x0_attach(struct ixp12x0_softc *sc)
51 ixp12x0_softc = sc;
55 sc->sc_iot = &ixp12x0_bs_tag;
60 if (bus_space_map(sc->sc_iot, IXP12X0_PCI_HWBASE, IXP12X0_PCI_SIZE,
61 0, &sc->sc_pci_ioh))
62 panic("%s: unable to map PCI registers", device_xname(sc->sc_dev));
63 if (bus_space_map(sc->sc_iot, IXP12X0_PCI_TYPE0_HWBASE,
64 IXP12X0_PCI_TYPE0_SIZE, 0, &sc->sc_conf0_ioh))
66 device_xname(sc->sc_dev));
67 if (bus_space_map(sc->sc_iot, IXP12X0_PCI_TYPE1_HWBASE
    [all...]
  /src/sys/arch/shark/shark/
scr.c 172 #define INVALID_STATE_CMD(sc,state,cmd) invalidStateCmd(sc,state,cmd,__LINE__);
176 //#define INVALID_STATE_CMD(sc,state,cmd) panic("scr: invalid state/cmd, sc = %X, state = %X, cmd = %X, line = %d",sc,state,cmd,__LINE__);
177 #define INVALID_STATE_CMD(sc,state,cmd) sc->bigTrouble = true;
393 #define CLK_COUNT_START (((372 * TIMER_FREQ) / sc->cardFreq) /5)
394 #define CLK_COUNT_DATA (((372 * TIMER_FREQ) / sc->cardFreq) )
427 #define T_t2 ((300 * TIMER_FREQ) / sc->cardFreq)
759 struct scr_softc *sc = device_private(self); local in function:scrattach
861 struct scr_softc *sc; local in function:scropen
1025 struct scr_softc* sc = device_lookup_private(&scr_cd, SCRUNIT(dev)); local in function:scrioctl
3595 struct scr_softc * sc; local in function:hatClkIrq
    [all...]
  /src/sys/arch/arm/broadcom/
bcm2835_bsc.c 92 bsciic_attach(struct bsciic_softc *sc)
94 mutex_init(&sc->sc_intr_lock, MUTEX_DEFAULT, IPL_VM);
95 cv_init(&sc->sc_intr_wait, device_xname(sc->sc_dev));
98 bus_space_write_4(sc->sc_iot, sc->sc_ioh, BSC_C, BSC_C_CLEAR_CLEAR);
99 bus_space_write_4(sc->sc_iot, sc->sc_ioh, BSC_S, BSC_S_CLKT |
101 bus_space_write_4(sc->sc_iot, sc->sc_ioh, BSC_DLEN, 0)
111 struct bsciic_softc * const sc = v; local in function:bsciic_acquire_bus
127 struct bsciic_softc * const sc = v; local in function:bsciic_release_bus
244 struct bsciic_softc * const sc = v; local in function:bsciic_intr
444 struct bsciic_softc * const sc = v; local in function:bsciic_exec
    [all...]
  /src/sys/arch/atari/dev/
ite.c 84 #define SUBR_INIT(sc) (sc)->grf->g_iteinit(sc)
85 #define SUBR_DEINIT(sc) (sc)->grf->g_itedeinit(sc)
86 #define SUBR_PUTC(sc,c,dy,dx,m) (sc)->grf->g_iteputc(sc,c,dy,dx,m)
87 #define SUBR_CURSOR(sc,flg) (sc)->grf->g_itecursor(sc,flg
205 struct ite_softc *sc; local in function:iteattach
290 struct ite_softc *sc; local in function:itecninit
329 struct ite_softc *sc; local in function:itecnputc
357 struct ite_softc *sc; local in function:iteinit
384 struct ite_softc *sc; local in function:iteopen
509 struct ite_softc *sc; local in function:iteioctl
630 struct ite_softc *sc; local in function:ite_on
653 struct ite_softc *sc; local in function:ite_off
670 struct ite_softc *sc; local in function:ite_switch
700 struct ite_softc *sc; local in function:ite_reinit
1354 struct ite_softc *sc; local in function:ite_putstr
    [all...]
  /src/sys/arch/mips/cavium/dev/
octeon_asx.c 43 struct octasx_softc *sc; local in function:octasx_init
46 sc = kmem_zalloc(sizeof(*sc), KM_SLEEP);
47 if (sc == NULL)
50 sc->sc_port = aa->aa_port;
51 sc->sc_regt = aa->aa_regt;
53 status = bus_space_map(sc->sc_regt, ASX0_BASE, ASX0_SIZE, 0,
54 &sc->sc_regh);
58 *rsc = sc;
61 #define _ASX_RD8(sc, off)
    [all...]
  /src/sys/arch/arm/samsung/
exynos_wdt.c 78 exynos_wdt_wdog_read(struct exynos_wdt_softc *sc, bus_size_t o)
80 return bus_space_read_4(sc->sc_bst, sc->sc_wdog_bsh, o);
84 exynos_wdt_wdog_write(struct exynos_wdt_softc *sc, bus_size_t o, uint32_t v)
86 bus_space_write_4(sc->sc_bst, sc->sc_wdog_bsh, o, v);
106 struct exynos_wdt_softc * const sc = smw->smw_cookie; local in function:exynos_wdt_tickle
111 exynos_wdt_wdog_write(sc, EXYNOS_WDT_WTCNT, sc->sc_wdog_wtdat);
112 aprint_debug_dev(sc->sc_dev, "tickle\n")
119 struct exynos_wdt_softc * const sc = smw->smw_cookie; local in function:exynos_wdt_setmode
182 struct exynos_wdt_softc * const sc = device_private(self); local in function:exynos_wdt_attach
    [all...]
  /src/sys/arch/evbarm/iq80310/
i80312_mainbus.c 96 struct i80312_softc *sc = device_private(self); local in function:i80312_mainbus_attach
101 sc->sc_dev = self;
109 i80312_bs_init(&i80312_bs_tag, sc);
110 sc->sc_st = &i80312_bs_tag;
111 sc->sc_sh = IQ80310_80312_VBASE;
117 if (bus_space_subregion(sc->sc_st, sc->sc_sh, I80312_MEM_BASE,
118 I80312_MEM_SIZE, &sc->sc_mem_sh))
125 sc->sc_piow_vaddr = IQ80310_PIOW_VBASE;
126 sc->sc_siow_vaddr = IQ80310_SIOW_VBASE
    [all...]
  /src/sys/dev/pci/
uhci_pci.c 61 uhci_softc_t sc; member in struct:uhci_pci_softc
90 struct uhci_pci_softc *sc = device_private(self); local in function:uhci_pci_attach
100 sc->sc.sc_dev = self;
101 sc->sc.sc_bus.ub_hcpriv = sc;
107 &sc->sc.iot, &sc->sc.ioh, NULL, &sc->sc.sc_size))
198 struct uhci_pci_softc *sc = device_private(self); local in function:uhci_pci_detach
235 struct uhci_pci_softc *sc = device_private(dv); local in function:uhci_pci_resume
    [all...]
  /src/sys/arch/arm/ep93xx/
epled.c 63 struct epled_softc *sc = device_private(self); local in function:epled_attach
66 sc->sc_port = ga->ga_port;
67 sc->sc_green = ga->ga_bit1;
68 sc->sc_red = ga->ga_bit2;
69 sc->sc_gpio = (struct epgpio_softc *)parent;
73 the_epled_sc = sc;
79 epgpio_out(sc->sc_gpio, sc->sc_port, sc->sc_green);
80 epgpio_out(sc->sc_gpio, sc->sc_port, sc->sc_red)
86 struct epled_softc *sc = the_epled_sc; local in function:epled_red_on
101 struct epled_softc *sc = the_epled_sc; local in function:epled_red_off
116 struct epled_softc *sc = the_epled_sc; local in function:epled_green_on
131 struct epled_softc *sc = the_epled_sc; local in function:epled_green_off
    [all...]
  /src/sys/arch/arm/nvidia/
tegra_sdhc.c 60 struct sdhc_softc sc; member in struct:tegra_sdhc_softc
98 struct tegra_sdhc_softc * const sc = device_private(self); local in function:tegra_sdhc_attach
114 sc->sc.sc_dev = self;
115 sc->sc.sc_dmat = faa->faa_dmat;
119 &sc->sc.sc_dmat, BUS_DMA_WAITOK);
126 sc->sc.sc_flags = SDHC_FLAG_32BIT_ACCESS
254 struct tegra_sdhc_softc *sc = device_private(ssc->sc_dev); local in function:tegra_sdhc_card_detect
264 struct tegra_sdhc_softc *sc = device_private(ssc->sc_dev); local in function:tegra_sdhc_write_protect
274 struct tegra_sdhc_softc *sc = device_private(ssc->sc_dev); local in function:tegra_sdhc_signal_voltage
    [all...]
  /src/sys/arch/hpcarm/dev/
wzero3_kbd.c 61 #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)
262 struct wzero3kbd_softc *sc = device_private(self); local in function:wzero3kbd_attach
450 struct wzero3kbd_softc *sc = (struct wzero3kbd_softc *)arg; local in function:wzero3kbd_intr
493 struct wzero3kbd_softc *sc = (struct wzero3kbd_softc *)arg; local in function:wzero3kbd_intr2
519 struct wzero3kbd_softc *sc = (struct wzero3kbd_softc *)arg; local in function:wzero3kbd_tick
529 struct wzero3kbd_softc *sc = (struct wzero3kbd_softc *)arg; local in function:wzero3kbd_power_intr
628 struct wzero3kbd_softc *sc = (struct wzero3kbd_softc *)arg; local in function:wzero3kbd_reset_intr
640 struct wzero3kbd_softc *sc = (struct wzero3kbd_softc *)arg; local in function:wzero3kbd_input_establish
652 struct wzero3kbd_softc *sc = (struct wzero3kbd_softc *)arg; local in function:wzero3kbd_sysmon_reset_event
670 struct wzero3kbd_softc *sc = (struct wzero3kbd_softc *)arg; local in function:wzero3kbd_poll1
    [all...]
  /src/sys/dev/hil/
hil.c 95 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)
105 hilwait(struct hil_softc *sc)
111 if ((bus_space_read_1(sc->sc_bst, sc->sc_bsh, HILP_STAT) &
120 hildatawait(struct hil_softc *sc)
126 if ((bus_space_read_1(sc->sc_bst, sc->sc_bsh, HILP_STAT) &
139 hil_attach(struct hil_softc *sc, int *hil_is_console
195 struct hil_softc *sc = device_private(self); local in function:hil_attach_deferred
273 struct hil_softc *sc = v; local in function:hil_intr
444 struct hil_softc *sc = arg; local in function:hil_thread
758 struct hil_softc *sc = device_private(device_parent(hdsc->sc_dev)); local in function:send_hildev_cmd
866 struct hil_softc *sc = device_private(device_parent(hdsc->sc_dev)); local in function:hil_poll_data
    [all...]
  /src/sys/arch/hpcmips/vr/
vr4181aiu.c 120 vr4181aiu_init_inbuf(struct vr4181aiu_softc *sc)
133 sc->sc_inbuf_raw = (u_int16_t *) inbufbase;
135 sc->sc_inbuf1 = (u_int16_t *) ((((u_int32_t) sc->sc_inbuf_raw)
138 sc->sc_inbuf2 = sc->sc_inbuf1 + INBUFLEN;
142 vr4181aiu_disable(struct vr4181aiu_softc *sc)
145 bus_space_write_2(sc->sc_iot, sc->sc_dcu2_ioh,
147 bus_space_write_2(sc->sc_iot, sc->sc_aiu_ioh
174 struct vr4181aiu_softc *sc = device_private(self); local in function:vr4181aiu_attach
244 struct vr4181aiu_softc *sc; local in function:vr4181aiuopen
320 struct vr4181aiu_softc *sc; local in function:vr4181aiuread
377 struct vr4181aiu_softc *sc = arg; local in function:vr4181aiu_intr
    [all...]
  /src/sys/arch/evbarm/hdl_g/
i80321_mainbus.c 78 struct i80321_softc *sc = device_private(self); local in function:hdlg_mainbus_attach
84 sc->sc_dev = self;
91 i80321_bs_init(&i80321_bs_tag, sc);
92 sc->sc_st = &i80321_bs_tag;
93 sc->sc_sh = HDLG_80321_VBASE;
99 if (bus_space_subregion(sc->sc_st, sc->sc_sh, VERDE_MCU_BASE,
100 VERDE_MCU_SIZE, &sc->sc_mcu_sh))
102 device_xname(sc->sc_dev));
104 if (bus_space_subregion(sc->sc_st, sc->sc_sh, VERDE_ATU_BASE
    [all...]
  /src/sys/arch/sun3/dev/
dmavar.h 53 #define DMA_GCSR(sc) \
54 bus_space_read_4((sc)->sc_bst, (sc)->sc_bsh, DMA_REG_CSR)
55 #define DMA_SCSR(sc, csr) \
56 bus_space_write_4((sc)->sc_bst, (sc)->sc_bsh, DMA_REG_CSR, (csr))
62 #define DMA_RESET(sc) (((sc)->reset)(sc))
63 #define DMA_INTR(sc) (((sc)->intr)(sc)
    [all...]

Completed in 62 milliseconds

1 2 3 4 5 6 7 8 91011>>