Searched refs:sc (Results 201 - 225 of 2317) sorted by relevance

1234567891011>>

/freebsd-11-stable/sys/arm/ti/am335x/
H A Dam335x_ehrpwm.c174 am335x_ehrpwm_freq(struct am335x_ehrpwm_softc *sc) argument
178 clkdiv = am335x_ehrpwm_clkdiv[sc->sc_pwm_clkdiv];
179 sc->sc_pwm_freq = PWM_CLOCK / (1 * clkdiv) / sc->sc_pwm_period;
186 struct am335x_ehrpwm_softc *sc; local
189 sc = (struct am335x_ehrpwm_softc *)arg1;
191 PWM_LOCK(sc);
192 freq = sc->sc_pwm_freq;
193 PWM_UNLOCK(sc);
202 PWM_LOCK(sc);
235 struct am335x_ehrpwm_softc *sc; local
268 struct am335x_ehrpwm_softc *sc = (struct am335x_ehrpwm_softc*)arg1; local
303 struct am335x_ehrpwm_softc *sc = (struct am335x_ehrpwm_softc*)arg1; local
352 struct am335x_ehrpwm_softc *sc; local
431 struct am335x_ehrpwm_softc *sc; local
[all...]
H A Dam335x_dmtpps.c142 #define DMTIMER_READ4(sc, reg) bus_read_4((sc)->mem_res, (reg))
143 #define DMTIMER_WRITE4(sc, reg, val) bus_write_4((sc)->mem_res, (reg), (val))
244 dmtpps_set_hw_capture(struct dmtpps_softc *sc, bool force_off) argument
251 newmode = sc->pps_state.ppsparam.mode & PPS_CAPTUREASSERT;
253 if (newmode == sc->pps_curmode)
255 sc->pps_curmode = newmode;
258 sc->tclr |= DMT_TCLR_CAPTRAN_LOHI;
260 sc
267 struct dmtpps_softc *sc; local
277 struct dmtpps_softc *sc; local
310 struct dmtpps_softc *sc; local
333 struct dmtpps_softc *sc; local
352 struct dmtpps_softc *sc; local
370 struct dmtpps_softc *sc; local
437 struct dmtpps_softc *sc; local
[all...]
/freebsd-11-stable/sys/dev/ral/
H A Drt2560.c69 #define RT2560_RSSI(sc, rssi) \
70 ((rssi) > (RT2560_NOISE_FLOOR + (sc)->rssi_corr) ? \
71 ((rssi) - RT2560_NOISE_FLOOR - (sc)->rssi_corr) : 0)
75 #define DPRINTF(sc, fmt, ...) do { \
76 if (sc->sc_debug > 0) \
79 #define DPRINTFN(sc, n, fmt, ...) do { \
80 if (sc->sc_debug >= (n)) \
84 #define DPRINTF(sc, fmt, ...)
85 #define DPRINTFN(sc, n, fmt, ...)
207 struct rt2560_softc *sc local
343 struct rt2560_softc *sc = xsc; local
368 struct rt2560_softc *sc = ic->ic_softc; local
436 struct rt2560_softc *sc = xsc; local
454 rt2560_alloc_tx_ring(struct rt2560_softc *sc, struct rt2560_tx_ring *ring, int count) argument
521 rt2560_reset_tx_ring(struct rt2560_softc *sc, struct rt2560_tx_ring *ring) argument
555 rt2560_free_tx_ring(struct rt2560_softc *sc, struct rt2560_tx_ring *ring) argument
596 rt2560_alloc_rx_ring(struct rt2560_softc *sc, struct rt2560_rx_ring *ring, int count) argument
691 rt2560_reset_rx_ring(struct rt2560_softc *sc, struct rt2560_rx_ring *ring) argument
707 rt2560_free_rx_ring(struct rt2560_softc *sc, struct rt2560_rx_ring *ring) argument
748 struct rt2560_softc *sc = vap->iv_ic->ic_softc; local
802 rt2560_eeprom_read(struct rt2560_softc *sc, uint8_t addr) argument
860 rt2560_encryption_intr(struct rt2560_softc *sc) argument
909 rt2560_tx_intr(struct rt2560_softc *sc) argument
1008 rt2560_prio_intr(struct rt2560_softc *sc) argument
1090 rt2560_decryption_intr(struct rt2560_softc *sc) argument
1227 rt2560_rx_intr(struct rt2560_softc *sc) argument
1289 rt2560_beacon_expire(struct rt2560_softc *sc) argument
1321 rt2560_wakeup_expire(struct rt2560_softc *sc) argument
1329 struct rt2560_softc *sc = arg; local
1403 rt2560_setup_tx_desc(struct rt2560_softc *sc, struct rt2560_tx_desc *desc, uint32_t flags, int len, int rate, int encrypt, bus_addr_t physaddr) argument
1451 rt2560_tx_bcn(struct rt2560_softc *sc, struct mbuf *m0, struct ieee80211_node *ni) argument
1504 rt2560_tx_mgt(struct rt2560_softc *sc, struct mbuf *m0, struct ieee80211_node *ni) argument
1593 rt2560_sendprot(struct rt2560_softc *sc, const struct mbuf *m, struct ieee80211_node *ni, int prot, int rate) argument
1662 rt2560_tx_raw(struct rt2560_softc *sc, struct mbuf *m0, struct ieee80211_node *ni, const struct ieee80211_bpf_params *params) argument
1741 rt2560_tx_data(struct rt2560_softc *sc, struct mbuf *m0, struct ieee80211_node *ni) argument
1884 struct rt2560_softc *sc = ic->ic_softc; local
1904 rt2560_start(struct rt2560_softc *sc) argument
1927 struct rt2560_softc *sc = arg; local
1952 struct rt2560_softc *sc = ic->ic_softc; local
1970 rt2560_bbp_write(struct rt2560_softc *sc, uint8_t reg, uint8_t val) argument
1992 rt2560_bbp_read(struct rt2560_softc *sc, uint8_t reg) argument
2022 rt2560_rf_write(struct rt2560_softc *sc, uint8_t reg, uint32_t val) argument
2048 rt2560_set_chan(struct rt2560_softc *sc, struct ieee80211_channel *c) argument
2150 struct rt2560_softc *sc = ic->ic_softc; local
2168 struct rt2560_softc *sc = ic->ic_softc; local
2202 rt2560_enable_tsf_sync(struct rt2560_softc *sc) argument
2235 rt2560_enable_tsf(struct rt2560_softc *sc) argument
2243 rt2560_update_plcp(struct rt2560_softc *sc) argument
2273 struct rt2560_softc *sc = ic->ic_softc; local
2320 rt2560_set_basicrates(struct rt2560_softc *sc, const struct ieee80211_rateset *rs) argument
2344 rt2560_update_led(struct rt2560_softc *sc, int led1, int led2) argument
2354 rt2560_set_bssid(struct rt2560_softc *sc, const uint8_t *bssid) argument
2368 rt2560_set_macaddr(struct rt2560_softc *sc, const uint8_t *addr) argument
2382 rt2560_get_macaddr(struct rt2560_softc *sc, uint8_t *addr) argument
2400 struct rt2560_softc *sc = ic->ic_softc; local
2431 rt2560_read_config(struct rt2560_softc *sc) argument
2478 struct rt2560_softc *sc = ic->ic_softc; local
2488 struct rt2560_softc *sc = ic->ic_softc; local
2497 rt2560_bbp_init(struct rt2560_softc *sc) argument
2530 rt2560_set_txantenna(struct rt2560_softc *sc, int antenna) argument
2557 rt2560_set_rxantenna(struct rt2560_softc *sc, int antenna) argument
2577 rt2560_init_locked(struct rt2560_softc *sc) argument
2664 struct rt2560_softc *sc = priv; local
2676 rt2560_stop_locked(struct rt2560_softc *sc) argument
2716 struct rt2560_softc *sc = arg; local
2728 struct rt2560_softc *sc = ic->ic_softc; local
[all...]
/freebsd-11-stable/sys/arm/freescale/vybrid/
H A Dvf_gpio.c122 struct vf_gpio_softc *sc; local
125 sc = device_get_softc(dev);
126 mtx_init(&sc->sc_mtx, device_get_nameunit(dev), NULL, MTX_DEF);
128 if (bus_alloc_resources(dev, vf_gpio_spec, sc->res)) {
130 mtx_destroy(&sc->sc_mtx);
135 sc->bst = rman_get_bustag(sc->res[0]);
136 sc->bsh = rman_get_bushandle(sc->res[0]);
138 gpio_sc = sc;
165 struct vf_gpio_softc *sc; local
183 struct vf_gpio_softc *sc; local
205 struct vf_gpio_softc *sc; local
227 struct vf_gpio_softc *sc; local
249 struct vf_gpio_softc *sc; local
271 struct vf_gpio_softc *sc; local
292 vf_gpio_pin_configure(struct vf_gpio_softc *sc, struct gpio_pin *pin, unsigned int flags) argument
320 struct vf_gpio_softc *sc; local
340 struct vf_gpio_softc *sc; local
[all...]
/freebsd-11-stable/sys/powerpc/pseries/
H A Dphyp_console.c130 uart_phyp_probe_node(struct uart_phyp_softc *sc) argument
132 phandle_t node = sc->node;
136 sc->inbuflen = 0;
137 sc->outseqno = 0;
153 sc->vtermid = reg;
154 sc->node = node;
159 sc->protocol = HVTERM1;
162 sc->protocol = HVTERMPROT;
173 struct uart_phyp_softc sc; local
180 sc
196 static struct uart_phyp_softc sc; local
232 struct uart_phyp_softc *sc; local
284 uart_phyp_get(struct uart_phyp_softc *sc, void *buffer, size_t bufsize) argument
327 uart_phyp_put(struct uart_phyp_softc *sc, void *buffer, size_t bufsize) argument
406 struct uart_phyp_softc *sc; local
419 struct uart_phyp_softc *sc = v; local
[all...]
/freebsd-11-stable/sys/arm/xscale/i8134x/
H A Duart_bus_i81342.c68 struct uart_softc *sc; local
71 sc = device_get_softc(dev);
72 sc->sc_class = &uart_ns8250_class;
74 sc->sc_sysdev = SLIST_FIRST(&uart_sysdevs);
75 bcopy(&sc->sc_sysdev->bas, &sc->sc_bas, sizeof(sc->sc_bas));
77 sc->sc_rres = bus_alloc_resource_anywhere(dev, SYS_RES_IOPORT,
78 &sc->sc_rrid, uart_getrange(sc
[all...]
/freebsd-11-stable/sys/dev/dwc/
H A Dif_dwc.c91 #define DWC_LOCK(sc) mtx_lock(&(sc)->mtx)
92 #define DWC_UNLOCK(sc) mtx_unlock(&(sc)->mtx)
93 #define DWC_ASSERT_LOCKED(sc) mtx_assert(&(sc)->mtx, MA_OWNED)
94 #define DWC_ASSERT_UNLOCKED(sc) mtx_assert(&(sc)->mtx, MA_NOTOWNED)
143 static void dwc_txfinish_locked(struct dwc_softc *sc);
144 static void dwc_rxfinish_locked(struct dwc_softc *sc);
149 next_rxidx(struct dwc_softc *sc, uint32_t curidx) argument
156 next_txidx(struct dwc_softc *sc, uint32_t curidx) argument
172 dwc_setup_txdesc(struct dwc_softc *sc, int idx, bus_addr_t paddr, uint32_t len) argument
213 dwc_setup_txbuf(struct dwc_softc *sc, int idx, struct mbuf **mp) argument
242 dwc_txstart_locked(struct dwc_softc *sc) argument
288 struct dwc_softc *sc = ifp->if_softc; local
296 dwc_stop_locked(struct dwc_softc *sc) argument
331 dwc_clear_stats(struct dwc_softc *sc) argument
341 dwc_harvest_stats(struct dwc_softc *sc) argument
375 struct dwc_softc *sc; local
413 dwc_init_locked(struct dwc_softc *sc) argument
458 struct dwc_softc *sc = if_softc; local
466 dwc_setup_rxdesc(struct dwc_softc *sc, int idx, bus_addr_t paddr) argument
487 dwc_setup_rxbuf(struct dwc_softc *sc, int idx, struct mbuf *m) argument
512 dwc_alloc_mbufcl(struct dwc_softc *sc) argument
526 struct dwc_softc *sc; local
539 dwc_media_change_locked(struct dwc_softc *sc) argument
548 struct dwc_softc *sc; local
585 dwc_setup_rxfilter(struct dwc_softc *sc) argument
655 struct dwc_softc *sc; local
713 dwc_txfinish_locked(struct dwc_softc *sc) argument
745 dwc_rxfinish_locked(struct dwc_softc *sc) argument
801 struct dwc_softc *sc; local
838 setup_dma(struct dwc_softc *sc) argument
1000 dwc_get_hwaddr(struct dwc_softc *sc, uint8_t *hwaddr) argument
1139 struct dwc_softc *sc; local
1266 struct dwc_softc *sc; local
1294 struct dwc_softc *sc; local
1321 struct dwc_softc *sc; local
[all...]
/freebsd-11-stable/usr.sbin/bhyve/
H A Dpci_fbuf.c129 struct pci_fbuf_softc *sc; local
134 sc = pi->pi_arg;
146 p = (uint8_t *)&sc->memregs + offset;
166 if (!sc->gc_image->vgamode && sc->memregs.width == 0 &&
167 sc->memregs.height == 0) {
169 sc->gc_image->vgamode = 1;
170 sc->gc_width = 0;
171 sc->gc_height = 0;
172 } else if (sc
183 struct pci_fbuf_softc *sc; local
226 pci_fbuf_parse_opts(struct pci_fbuf_softc *sc, char *opts) argument
331 struct pci_fbuf_softc *sc; local
356 struct pci_fbuf_softc *sc; local
[all...]
H A Dvga.c176 vga_in_reset(struct vga_softc *sc) argument
178 return (((sc->vga_seq.seq_clock_mode & SEQ_CM_SO) != 0) ||
179 ((sc->vga_seq.seq_reset & SEQ_RESET_ASYNC) == 0) ||
180 ((sc->vga_seq.seq_reset & SEQ_RESET_SYNC) == 0) ||
181 ((sc->vga_crtc.crtc_mode_ctrl & CRTC_MC_TE) == 0));
185 vga_check_size(struct bhyvegc *gc, struct vga_softc *sc) argument
189 if (vga_in_reset(sc))
192 //old_width = sc->gc_width;
193 //old_height = sc->gc_height;
194 old_width = sc
215 vga_get_pixel(struct vga_softc *sc, int x, int y) argument
244 vga_render_graphics(struct vga_softc *sc) argument
259 vga_get_text_pixel(struct vga_softc *sc, int x, int y) argument
307 vga_render_text(struct vga_softc *sc) argument
324 struct vga_softc *sc = arg; local
344 struct vga_softc *sc = arg1; local
404 struct vga_softc *sc = arg1; local
720 struct vga_softc *sc = arg; local
947 struct vga_softc *sc = arg; local
1272 struct vga_softc *sc; local
[all...]
H A Datkbdc.c141 atkbdc_assert_kbd_intr(struct atkbdc_softc *sc) argument
143 if ((sc->ram[0] & KBD_ENABLE_KBD_INT) != 0) {
144 sc->kbd.irq_active = true;
145 vm_isa_pulse_irq(sc->ctx, sc->kbd.irq, sc->kbd.irq);
150 atkbdc_assert_aux_intr(struct atkbdc_softc *sc) argument
152 if ((sc->ram[0] & KBD_ENABLE_AUX_INT) != 0) {
153 sc->aux.irq_active = true;
154 vm_isa_pulse_irq(sc
159 atkbdc_kbd_queue_data(struct atkbdc_softc *sc, uint8_t val) argument
177 atkbdc_kbd_read(struct atkbdc_softc *sc) argument
244 atkbdc_aux_poll(struct atkbdc_softc *sc) argument
254 atkbdc_kbd_poll(struct atkbdc_softc *sc) argument
262 atkbdc_poll(struct atkbdc_softc *sc) argument
269 atkbdc_dequeue_data(struct atkbdc_softc *sc, uint8_t *buf) argument
308 struct atkbdc_softc *sc; local
394 struct atkbdc_softc *sc; local
498 atkbdc_event(struct atkbdc_softc *sc, int iskbd) argument
513 struct atkbdc_softc *sc; local
[all...]
/freebsd-11-stable/sys/dev/tl/
H A Dif_tl.c371 static u_int8_t tl_dio_read8(sc, reg)
372 struct tl_softc *sc;
376 CSR_BARRIER(sc, TL_DIO_ADDR, 2,
378 CSR_WRITE_2(sc, TL_DIO_ADDR, reg);
379 CSR_BARRIER(sc, TL_DIO_ADDR, 2,
381 return(CSR_READ_1(sc, TL_DIO_DATA + (reg & 3)));
384 static u_int16_t tl_dio_read16(sc, reg)
385 struct tl_softc *sc;
389 CSR_BARRIER(sc, TL_DIO_ADDR, 2,
391 CSR_WRITE_2(sc, TL_DIO_ADD
674 struct tl_softc *sc; local
692 struct tl_softc *sc; local
709 struct tl_softc *sc; local
737 struct tl_softc *sc; local
764 struct tl_softc *sc; local
1027 struct tl_softc *sc; local
1262 struct tl_softc *sc; local
1413 struct tl_softc *sc; local
1484 struct tl_softc *sc; local
1508 struct tl_softc *sc; local
1561 struct tl_softc *sc; local
1598 struct tl_softc *sc; local
1619 struct tl_softc *sc; local
1636 struct tl_softc *sc; local
1710 struct tl_softc *sc; local
1869 struct tl_softc *sc; local
1881 struct tl_softc *sc; local
1968 struct tl_softc *sc = xsc; local
2066 struct tl_softc *sc; local
2091 struct tl_softc *sc; local
2124 struct tl_softc *sc = ifp->if_softc; local
2269 struct tl_softc *sc; local
[all...]
/freebsd-11-stable/sys/dev/gem/
H A Dif_gem.c99 static int gem_add_rxbuf(struct gem_softc *sc, int idx);
100 static int gem_bitwait(struct gem_softc *sc, u_int bank, bus_addr_t r,
104 static int gem_disable_rx(struct gem_softc *sc);
105 static int gem_disable_tx(struct gem_softc *sc);
106 static void gem_eint(struct gem_softc *sc, u_int status);
108 static void gem_init_locked(struct gem_softc *sc);
109 static void gem_init_regs(struct gem_softc *sc);
111 static int gem_load_txmbuf(struct gem_softc *sc, struct mbuf **m_head);
112 static int gem_meminit(struct gem_softc *sc);
113 static void gem_mifinit(struct gem_softc *sc);
149 gem_attach(struct gem_softc *sc) argument
424 gem_detach(struct gem_softc *sc) argument
459 gem_suspend(struct gem_softc *sc) argument
469 gem_resume(struct gem_softc *sc) argument
550 struct gem_softc *sc = xsc; local
562 struct gem_softc *sc = arg; local
605 gem_bitwait(struct gem_softc *sc, u_int bank, bus_addr_t r, uint32_t clr, uint32_t set) argument
620 gem_reset(struct gem_softc *sc) argument
640 gem_rxdrain(struct gem_softc *sc) argument
660 struct gem_softc *sc = ifp->if_softc; local
704 gem_reset_rx(struct gem_softc *sc) argument
752 gem_reset_rxdma(struct gem_softc *sc) argument
795 gem_reset_tx(struct gem_softc *sc) argument
826 gem_disable_rx(struct gem_softc *sc) argument
840 gem_disable_tx(struct gem_softc *sc) argument
854 gem_meminit(struct gem_softc *sc) argument
932 struct gem_softc *sc = xsc; local
944 gem_init_locked(struct gem_softc *sc) argument
1104 gem_load_txmbuf(struct gem_softc *sc, struct mbuf **m_head) argument
1248 gem_init_regs(struct gem_softc *sc) argument
1325 struct gem_softc *sc = ifp->if_softc; local
1333 gem_txkick(struct gem_softc *sc) argument
1353 struct gem_softc *sc = ifp->if_softc; local
1409 gem_tint(struct gem_softc *sc) argument
1525 struct gem_softc *sc = arg; local
1534 gem_rint(struct gem_softc *sc) argument
1658 gem_add_rxbuf(struct gem_softc *sc, int idx) argument
1706 gem_eint(struct gem_softc *sc, u_int status) argument
1729 struct gem_softc *sc = v; local
1812 gem_watchdog(struct gem_softc *sc) argument
1848 gem_mifinit(struct gem_softc *sc) argument
1875 struct gem_softc *sc; local
1933 struct gem_softc *sc; local
2012 struct gem_softc *sc; local
2118 struct gem_softc *sc = ifp->if_softc; local
2132 struct gem_softc *sc = ifp->if_softc; local
2149 struct gem_softc *sc = ifp->if_softc; local
2204 gem_setladrf(struct gem_softc *sc) argument
[all...]
/freebsd-11-stable/sys/dev/virtio/balloon/
H A Dvirtio_balloon.c174 struct vtballoon_softc *sc; local
177 sc = device_get_softc(dev);
178 sc->vtballoon_dev = dev;
180 VTBALLOON_LOCK_INIT(sc, device_get_nameunit(dev));
181 TAILQ_INIT(&sc->vtballoon_pages);
183 vtballoon_add_sysctl(sc);
186 vtballoon_negotiate_features(sc);
188 sc->vtballoon_page_frames = malloc(VTBALLOON_PAGES_PER_REQUEST *
190 if (sc->vtballoon_page_frames == NULL) {
197 error = vtballoon_alloc_virtqueues(sc);
229 struct vtballoon_softc *sc; local
261 struct vtballoon_softc *sc; local
273 vtballoon_negotiate_features(struct vtballoon_softc *sc) argument
284 vtballoon_alloc_virtqueues(struct vtballoon_softc *sc) argument
305 struct vtballoon_softc *sc; local
315 vtballoon_inflate(struct vtballoon_softc *sc, int npages) argument
345 vtballoon_deflate(struct vtballoon_softc *sc, int npages) argument
388 vtballoon_send_page_frames(struct vtballoon_softc *sc, struct virtqueue *vq, int npages) argument
419 vtballoon_pop(struct vtballoon_softc *sc) argument
427 vtballoon_stop(struct vtballoon_softc *sc) argument
437 vtballoon_alloc_page(struct vtballoon_softc *sc) argument
449 vtballoon_free_page(struct vtballoon_softc *sc, vm_page_t m) argument
457 vtballoon_desired_size(struct vtballoon_softc *sc) argument
468 vtballoon_update_size(struct vtballoon_softc *sc) argument
477 vtballoon_sleep(struct vtballoon_softc *sc) argument
519 struct vtballoon_softc *sc; local
545 vtballoon_add_sysctl(struct vtballoon_softc *sc) argument
[all...]
/freebsd-11-stable/sys/dev/etherswitch/ip17x/
H A Dip17x_vlans.c59 ip17x_reset_vlans(struct ip17x_softc *sc, uint32_t vlan_mode) argument
65 sc->addtag = 0;
66 sc->striptag = 0;
69 memset(sc->vlan, 0, sizeof(sc->vlan));
70 memset(sc->pvid, 0, sizeof(uint32_t) * sc->numports);
76 if (((1 << phy) & sc->phymask) == 0)
78 v = &sc->vlan[i];
80 v->ports = (1 << sc
112 struct ip17x_softc *sc; local
142 struct ip17x_softc *sc; local
[all...]
/freebsd-11-stable/sys/dev/usb/controller/
H A Duss820dci_atmelarm.c102 struct uss820dci_softc *sc = device_get_softc(dev); local
107 sc->sc_bus.parent = dev;
108 sc->sc_bus.devices = sc->sc_devices;
109 sc->sc_bus.devices_max = USS820_MAX_DEVICES;
110 sc->sc_bus.dma_bits = 32;
113 if (usb_bus_mem_alloc_all(&sc->sc_bus,
118 sc->sc_io_res =
121 if (!sc->sc_io_res) {
124 sc
166 struct uss820dci_softc *sc = device_get_softc(dev); local
[all...]
/freebsd-11-stable/sys/dev/bhnd/cores/chipc/
H A Dchipc_spi.h74 #define SPI_BARRIER_WRITE(sc) bus_barrier((sc)->sc_res, 0, 0, \
76 #define SPI_BARRIER_READ(sc) bus_barrier((sc)->sc_res, 0, 0, \
78 #define SPI_BARRIER_RW(sc) bus_barrier((sc)->sc_res, 0, 0, \
82 #define SPI_WRITE(sc, reg, val) bus_write_4(sc->sc_res, (reg), (val));
84 #define SPI_READ(sc, reg) bus_read_4(sc
[all...]
/freebsd-11-stable/sys/arm/at91/
H A Dat91_rtc.c81 RD4(struct at91_rtc_softc *sc, bus_size_t off) argument
83 return bus_read_4(sc->mem_res, off);
87 WR4(struct at91_rtc_softc *sc, bus_size_t off, uint32_t val) argument
89 bus_write_4(sc->mem_res, off, val);
117 struct at91_rtc_softc *sc; local
120 sc = xsc;
122 status = RD4(sc, RTC_SR);
123 WR4(sc, RTC_SCCR, status);
126 AT91_RTC_LOCK(sc);
128 AT91_RTC_UNLOCK(sc);
144 struct at91_rtc_softc *sc = device_get_softc(dev); local
203 struct at91_rtc_softc *sc; local
228 struct at91_rtc_softc *sc; local
260 struct at91_rtc_softc *sc; local
300 struct at91_rtc_softc *sc; local
[all...]
/freebsd-11-stable/sys/dev/etherswitch/arswitch/
H A Darswitch_7240.h32 extern void ar7240_attach(struct arswitch_softc *sc);
H A Darswitch_9340.h33 extern void ar9340_attach(struct arswitch_softc *sc);
/freebsd-11-stable/sys/dev/hme/
H A Dif_hme.c143 #define HME_SPC_READ_4(spc, sc, offs) \
144 bus_space_read_4((sc)->sc_ ## spc ## t, (sc)->sc_ ## spc ## h, \
146 #define HME_SPC_WRITE_4(spc, sc, offs, v) \
147 bus_space_write_4((sc)->sc_ ## spc ## t, (sc)->sc_ ## spc ## h, \
149 #define HME_SPC_BARRIER(spc, sc, offs, l, f) \
150 bus_space_barrier((sc)->sc_ ## spc ## t, (sc)->sc_ ## spc ## h, \
153 #define HME_SEB_READ_4(sc, off
188 hme_config(struct hme_softc *sc) argument
404 hme_detach(struct hme_softc *sc) argument
437 hme_suspend(struct hme_softc *sc) argument
446 hme_resume(struct hme_softc *sc) argument
459 struct hme_softc *sc = (struct hme_softc *)xsc; local
471 struct hme_softc *sc = arg; local
503 hme_stop(struct hme_softc *sc) argument
536 hme_discard_rxbuf(struct hme_softc *sc, int ix) argument
549 hme_add_rxbuf(struct hme_softc *sc, unsigned int ri, int keepold) argument
612 hme_meminit(struct hme_softc *sc) argument
698 hme_mac_bitflip(struct hme_softc *sc, u_int32_t reg, u_int32_t val, u_int32_t clr, u_int32_t set) argument
731 struct hme_softc *sc = (struct hme_softc *)xsc; local
739 hme_init_locked(struct hme_softc *sc) argument
943 hme_load_txmbuf(struct hme_softc *sc, struct mbuf **m0) argument
1064 hme_read(struct hme_softc *sc, int ix, int len, u_int32_t flags) argument
1111 struct hme_softc *sc = ifp->if_softc; local
1121 struct hme_softc *sc = (struct hme_softc *)ifp->if_softc; local
1158 hme_tint(struct hme_softc *sc) argument
1280 hme_rint(struct hme_softc *sc) argument
1317 hme_eint(struct hme_softc *sc, u_int status) argument
1340 struct hme_softc *sc = (struct hme_softc *)v; local
1359 hme_watchdog(struct hme_softc *sc) argument
1389 hme_mifinit(struct hme_softc *sc) argument
1421 struct hme_softc *sc; local
1458 struct hme_softc *sc; local
1496 struct hme_softc *sc; local
1542 struct hme_softc *sc = ifp->if_softc; local
1552 hme_mediachange_locked(struct hme_softc *sc) argument
1583 struct hme_softc *sc = ifp->if_softc; local
1603 struct hme_softc *sc = ifp->if_softc; local
1661 hme_setladrf(struct hme_softc *sc, int reenable) argument
[all...]
/freebsd-11-stable/sys/dev/wb/
H A Dif_wb.c235 #define WB_SETBIT(sc, reg, x) \
236 CSR_WRITE_4(sc, reg, \
237 CSR_READ_4(sc, reg) | (x))
239 #define WB_CLRBIT(sc, reg, x) \
240 CSR_WRITE_4(sc, reg, \
241 CSR_READ_4(sc, reg) & ~(x))
244 CSR_WRITE_4(sc, WB_SIO, \
245 CSR_READ_4(sc, WB_SIO) | (x))
248 CSR_WRITE_4(sc, WB_SIO, \
249 CSR_READ_4(sc, WB_SI
350 struct wb_softc *sc; local
368 struct wb_softc *sc; local
401 struct wb_softc *sc; local
598 struct wb_softc *sc; local
715 struct wb_softc *sc; local
1043 struct wb_softc *sc; local
1129 struct wb_softc *sc; local
1245 struct wb_softc *sc; local
1257 struct wb_softc *sc; local
1344 struct wb_softc *sc = xsc; local
1472 struct wb_softc *sc; local
1492 struct wb_softc *sc; local
1512 struct wb_softc *sc = ifp->if_softc; local
1629 struct wb_softc *sc; local
[all...]
/freebsd-11-stable/sys/dev/xen/blkfront/
H A Dblkfront.c72 static void xbd_startio(struct xbd_softc *sc);
93 xbd_freeze(struct xbd_softc *sc, xbd_flag_t xbd_flag) argument
95 if (xbd_flag != XBDF_NONE && (sc->xbd_flags & xbd_flag) != 0)
98 sc->xbd_flags |= xbd_flag;
99 sc->xbd_qfrozen_cnt++;
103 xbd_thaw(struct xbd_softc *sc, xbd_flag_t xbd_flag) argument
105 if (xbd_flag != XBDF_NONE && (sc->xbd_flags & xbd_flag) == 0)
108 if (sc->xbd_qfrozen_cnt == 0)
112 sc->xbd_flags &= ~xbd_flag;
113 sc
117 xbd_cm_freeze(struct xbd_softc *sc, struct xbd_command *cm, xbdc_flag_t cm_flag) argument
127 xbd_cm_thaw(struct xbd_softc *sc, struct xbd_command *cm) argument
137 xbd_flush_requests(struct xbd_softc *sc) argument
215 struct xbd_softc *sc; local
297 xbd_queue_request(struct xbd_softc *sc, struct xbd_command *cm) argument
324 struct xbd_softc *sc = arg; local
336 xbd_bio_command(struct xbd_softc *sc) argument
417 xbd_startio(struct xbd_softc *sc) argument
460 xbd_bio_complete(struct xbd_softc *sc, struct xbd_command *cm) argument
484 struct xbd_softc *sc = xsc; local
566 xbd_quiesce(struct xbd_softc *sc) argument
600 struct xbd_softc *sc = dp->d_drv1; local
674 struct xbd_softc *sc = dp->d_drv1; local
689 struct xbd_softc *sc = dp->d_drv1; local
710 struct xbd_softc *sc = dp->d_drv1; local
725 struct xbd_softc *sc = bp->bio_disk->d_drv1; local
750 xbd_alloc_ring(struct xbd_softc *sc) argument
819 xbd_free_ring(struct xbd_softc *sc) argument
838 xbd_feature_string(struct xbd_softc *sc, char *features, size_t len) argument
880 struct xbd_softc *sc = arg1; local
1001 xbd_instance_create(struct xbd_softc *sc, blkif_sector_t sectors, int vdevice, uint16_t vdisk_info, unsigned long sector_size, unsigned long phys_sector_size) argument
1048 xbd_free(struct xbd_softc *sc) argument
1098 xbd_initialize(struct xbd_softc *sc) argument
1223 xbd_connect(struct xbd_softc *sc) argument
1385 struct xbd_softc *sc = device_get_softc(dev); local
1452 struct xbd_softc *sc; local
1496 struct xbd_softc *sc = device_get_softc(dev); local
1509 struct xbd_softc *sc = device_get_softc(dev); local
1538 struct xbd_softc *sc = device_get_softc(dev); local
1558 struct xbd_softc *sc = device_get_softc(dev); local
[all...]
/freebsd-11-stable/sys/dev/usb/serial/
H A Dusb_serial.c259 ucom_attach(struct ucom_super_softc *ssc, struct ucom_softc *sc, argument
266 if ((sc == NULL) ||
299 sc[subunit].sc_subunit = subunit;
300 sc[subunit].sc_super = ssc;
301 sc[subunit].sc_mtx = mtx;
302 sc[subunit].sc_parent = parent;
303 sc[subunit].sc_callback = callback;
305 error = ucom_attach_tty(ssc, &sc[subunit]);
307 ucom_detach(ssc, &sc[0]);
314 sc[subuni
328 ucom_detach(struct ucom_super_softc *ssc, struct ucom_softc *sc) argument
391 ucom_attach_tty(struct ucom_super_softc *ssc, struct ucom_softc *sc) argument
456 ucom_detach_tty(struct ucom_super_softc *ssc, struct ucom_softc *sc) argument
536 ucom_queue_command(struct ucom_softc *sc, usb_proc_callback_t *fn, struct termios *pt, struct usb_proc_msg *t0, struct usb_proc_msg *t1) argument
583 ucom_shutdown(struct ucom_softc *sc) argument
605 ucom_cfg_is_gone(struct ucom_softc *sc) argument
617 struct ucom_softc *sc = task->sc; local
639 ucom_start_transfers(struct ucom_softc *sc) argument
661 struct ucom_softc *sc = task->sc; local
685 struct ucom_softc *sc = tty_softc(tp); local
752 struct ucom_softc *sc = task->sc; local
768 struct ucom_softc *sc = tty_softc(tp); local
794 struct ucom_softc *sc = tty_softc(tp); local
840 struct ucom_softc *sc = tty_softc(tp); local
886 struct ucom_softc *sc = tty_softc(tp); local
942 struct ucom_softc *sc = task->sc; local
1005 ucom_line_state(struct ucom_softc *sc, uint8_t set_bits, uint8_t clear_bits) argument
1029 ucom_ring(struct ucom_softc *sc, uint8_t onoff) argument
1040 ucom_break(struct ucom_softc *sc, uint8_t onoff) argument
1051 ucom_dtr(struct ucom_softc *sc, uint8_t onoff) argument
1062 ucom_rts(struct ucom_softc *sc, uint8_t onoff) argument
1077 struct ucom_softc *sc = task->sc; local
1173 ucom_status_change(struct ucom_softc *sc) argument
1195 struct ucom_softc *sc = task->sc; local
1213 struct ucom_softc *sc = tty_softc(tp); local
1287 struct ucom_softc *sc = tty_softc(tp); local
1303 struct ucom_softc *sc = tty_softc(tp); local
1329 ucom_get_data(struct ucom_softc *sc, struct usb_page_cache *pc, uint32_t offset, uint32_t len, uint32_t *actlen) argument
1408 ucom_put_data(struct ucom_softc *sc, struct usb_page_cache *pc, uint32_t offset, uint32_t len) argument
1523 struct ucom_softc *sc = xsc; local
1579 struct ucom_softc *sc = ucom_cons_softc; local
1610 struct ucom_softc *sc = ucom_cons_softc; local
[all...]
/freebsd-11-stable/sys/dev/usb/storage/
H A Dustorage_fs.c230 static void ustorage_fs_transfer_start(struct ustorage_fs_softc *sc, uint8_t xfer_index);
231 static void ustorage_fs_transfer_stop(struct ustorage_fs_softc *sc);
233 static uint8_t ustorage_fs_verify(struct ustorage_fs_softc *sc);
234 static uint8_t ustorage_fs_inquiry(struct ustorage_fs_softc *sc);
235 static uint8_t ustorage_fs_request_sense(struct ustorage_fs_softc *sc);
236 static uint8_t ustorage_fs_read_capacity(struct ustorage_fs_softc *sc);
237 static uint8_t ustorage_fs_mode_sense(struct ustorage_fs_softc *sc);
238 static uint8_t ustorage_fs_start_stop(struct ustorage_fs_softc *sc);
239 static uint8_t ustorage_fs_prevent_allow(struct ustorage_fs_softc *sc);
240 static uint8_t ustorage_fs_read_format_capacities(struct ustorage_fs_softc *sc);
353 struct ustorage_fs_softc *sc = device_get_softc(dev); local
434 struct ustorage_fs_softc *sc = device_get_softc(dev); local
464 ustorage_fs_transfer_start(struct ustorage_fs_softc *sc, uint8_t xfer_index) argument
473 ustorage_fs_transfer_stop(struct ustorage_fs_softc *sc) argument
486 struct ustorage_fs_softc *sc = device_get_softc(dev); local
518 struct ustorage_fs_softc *sc = usbd_xfer_softc(xfer); local
645 struct ustorage_fs_softc *sc = usbd_xfer_softc(xfer); local
697 struct ustorage_fs_softc *sc = usbd_xfer_softc(xfer); local
752 struct ustorage_fs_softc *sc = usbd_xfer_softc(xfer); local
814 struct ustorage_fs_softc *sc = usbd_xfer_softc(xfer); local
934 ustorage_fs_verify(struct ustorage_fs_softc *sc) argument
989 ustorage_fs_inquiry(struct ustorage_fs_softc *sc) argument
1030 ustorage_fs_request_sense(struct ustorage_fs_softc *sc) argument
1099 ustorage_fs_read_capacity(struct ustorage_fs_softc *sc) argument
1130 ustorage_fs_mode_sense(struct ustorage_fs_softc *sc) argument
1237 ustorage_fs_start_stop(struct ustorage_fs_softc *sc) argument
1266 ustorage_fs_prevent_allow(struct ustorage_fs_softc *sc) argument
1296 ustorage_fs_read_format_capacities(struct ustorage_fs_softc *sc) argument
1327 ustorage_fs_mode_select(struct ustorage_fs_softc *sc) argument
1344 ustorage_fs_synchronize_cache(struct ustorage_fs_softc *sc) argument
1369 ustorage_fs_read(struct ustorage_fs_softc *sc) argument
1421 ustorage_fs_write(struct ustorage_fs_softc *sc) argument
1485 ustorage_fs_min_len(struct ustorage_fs_softc *sc, uint32_t len, uint32_t mask) argument
1526 ustorage_fs_check_cmd(struct ustorage_fs_softc *sc, uint8_t min_cmd_size, uint16_t mask, uint8_t needs_medium) argument
1613 ustorage_fs_do_cmd(struct ustorage_fs_softc *sc) argument
[all...]
/freebsd-11-stable/sys/arm/freescale/imx/
H A Dimx_spi.c155 RD4(struct spi_softc *sc, bus_size_t offset) argument
158 return (bus_read_4(sc->memres, offset));
162 WR4(struct spi_softc *sc, bus_size_t offset, uint32_t value) argument
165 bus_write_4(sc->memres, offset, value);
169 spi_calc_clockdiv(struct spi_softc *sc, u_int busfreq) argument
174 if (sc->basefreq <= busfreq)
182 pre = ((sc->basefreq >> post) / busfreq) - 1;
192 if (sc->debug >= 2) {
193 device_printf(sc->dev,
195 sc
203 spi_set_chipsel(struct spi_softc *sc, u_int cs, bool active) argument
231 spi_hw_setup(struct spi_softc *sc, u_int cs, u_int mode, u_int freq) argument
275 spi_empty_rxfifo(struct spi_softc *sc) argument
285 spi_fill_txfifo(struct spi_softc *sc) argument
304 struct spi_softc *sc = arg; local
374 spi_xfer_buf(struct spi_softc *sc, void *rxbuf, void *txbuf, uint32_t len) argument
412 struct spi_softc *sc = device_get_softc(dev); local
472 struct spi_softc *sc = device_get_softc(dev); local
501 struct spi_softc *sc = device_get_softc(dev); local
[all...]

Completed in 177 milliseconds

1234567891011>>