Searched refs:sc (Results 401 - 425 of 2317) sorted by relevance

<<11121314151617181920>>

/freebsd-11-stable/sys/arm/mv/armada38x/
H A Drtc.c60 #define MV_RTC_LOCK(sc) mtx_lock(&(sc)->mutex)
61 #define MV_RTC_UNLOCK(sc) mtx_unlock(&(sc)->mutex)
81 static uint32_t mv_rtc_reg_read(struct mv_rtc_softc *sc, bus_size_t off);
82 static int mv_rtc_reg_write(struct mv_rtc_softc *sc, bus_size_t off,
124 struct mv_rtc_softc *sc; local
129 sc = device_get_softc(dev);
130 sc->dev = dev;
134 mtx_init(&sc
149 struct mv_rtc_softc *sc; local
163 struct mv_rtc_softc *sc; local
190 struct mv_rtc_softc *sc; local
216 mv_rtc_reg_read(struct mv_rtc_softc *sc, bus_size_t off) argument
228 mv_rtc_reg_write(struct mv_rtc_softc *sc, bus_size_t off, uint32_t val) argument
[all...]
/freebsd-11-stable/sys/arm/amlogic/aml8726/
H A Daml8726_ccm.c68 #define AML_CCM_LOCK(sc) mtx_lock(&(sc)->mtx)
69 #define AML_CCM_UNLOCK(sc) mtx_unlock(&(sc)->mtx)
70 #define AML_CCM_LOCK_INIT(sc) \
71 mtx_init(&(sc)->mtx, device_get_nameunit((sc)->dev), \
73 #define AML_CCM_LOCK_DESTROY(sc) mtx_destroy(&(sc)->mtx);
75 #define CSR_WRITE_4(sc, re
79 aml8726_ccm_configure_gates(struct aml8726_ccm_softc *sc) argument
167 struct aml8726_ccm_softc *sc = device_get_softc(dev); local
203 struct aml8726_ccm_softc *sc = device_get_softc(dev); local
[all...]
H A Daml8726_usb_phy-m6.c100 #define CSR_WRITE_4(sc, reg, val) bus_write_4((sc)->res[0], reg, (val))
101 #define CSR_READ_4(sc, reg) bus_read_4((sc)->res[0], reg)
102 #define CSR_BARRIER(sc, reg) bus_barrier((sc)->res[0], reg, 4, \
137 struct aml8726_usb_phy_softc *sc = device_get_softc(dev); local
148 sc->dev = dev;
150 if (bus_alloc_resources(dev, aml8726_usb_phy_spec, sc->res)) {
160 sc
370 struct aml8726_usb_phy_softc *sc = device_get_softc(dev); local
[all...]
/freebsd-11-stable/sys/dev/pcf/
H A Denvctrl.c109 struct pcf_softc *sc; local
112 sc = DEVTOSOFTC(dev);
113 mtx_init(&sc->pcf_lock, device_get_nameunit(dev), "pcf", MTX_DEF);
116 sc->res_ioport = bus_alloc_resource_any(dev, SYS_RES_MEMORY,
117 &sc->rid_ioport, RF_ACTIVE);
118 if (sc->res_ioport == 0) {
123 sc->pcf_flags = device_get_flags(dev);
125 if (!(sc->pcf_flags & IIC_POLLED)) {
126 sc->res_irq = bus_alloc_resource_any(dev, SYS_RES_IRQ, &sc
169 struct pcf_softc *sc; local
[all...]
/freebsd-11-stable/sys/dev/ste/
H A Dif_ste.c184 #define STE_SETBIT4(sc, reg, x) \
185 CSR_WRITE_4(sc, reg, CSR_READ_4(sc, reg) | (x))
187 #define STE_CLRBIT4(sc, reg, x) \
188 CSR_WRITE_4(sc, reg, CSR_READ_4(sc, reg) & ~(x))
190 #define STE_SETBIT2(sc, reg, x) \
191 CSR_WRITE_2(sc, reg, CSR_READ_2(sc, reg) | (x))
193 #define STE_CLRBIT2(sc, re
208 struct ste_softc *sc; local
226 struct ste_softc *sc; local
254 struct ste_softc *sc; local
305 struct ste_softc *sc; local
324 struct ste_softc *sc; local
342 ste_wait(struct ste_softc *sc) argument
361 ste_eeprom_wait(struct ste_softc *sc) argument
387 ste_read_eeprom(struct ste_softc *sc, uint16_t *dest, int off, int cnt) argument
407 ste_rxfilter(struct ste_softc *sc) argument
462 struct ste_softc *sc = ifp->if_softc; local
475 struct ste_softc *sc = ifp->if_softc; local
506 struct ste_softc *sc; local
589 ste_rxeof(struct ste_softc *sc, int count) argument
667 ste_txeoc(struct ste_softc *sc) argument
734 struct ste_softc *sc; local
763 ste_txeof(struct ste_softc *sc) argument
805 ste_stats_clear(struct ste_softc *sc) argument
833 ste_stats_update(struct ste_softc *sc) argument
905 struct ste_softc *sc; local
1063 struct ste_softc *sc; local
1123 ste_dma_alloc(struct ste_softc *sc) argument
1308 ste_dma_free(struct ste_softc *sc) argument
1380 ste_newbuf(struct ste_softc *sc, struct ste_chain_onefrag *rxc) argument
1419 ste_init_rx_list(struct ste_softc *sc) argument
1456 ste_init_tx_list(struct ste_softc *sc) argument
1494 struct ste_softc *sc; local
1503 ste_init_locked(struct ste_softc *sc) argument
1618 ste_stop(struct ste_softc *sc) argument
1689 ste_reset(struct ste_softc *sc) argument
1719 ste_restart_tx(struct ste_softc *sc) argument
1741 struct ste_softc *sc; local
1812 ste_encap(struct ste_softc *sc, struct mbuf **m_head, struct ste_chain *txc) argument
1877 struct ste_softc *sc; local
1888 struct ste_softc *sc; local
1953 ste_watchdog(struct ste_softc *sc) argument
1986 struct ste_softc *sc; local
2001 struct ste_softc *sc; local
2034 ste_sysctl_node(struct ste_softc *sc) argument
2103 ste_setwol(struct ste_softc *sc) argument
[all...]
/freebsd-11-stable/sys/arm/ti/
H A Dti_mbox.c81 #define TI_MBOX_LOCK(sc) mtx_lock(&(sc)->sc_mtx)
82 #define TI_MBOX_UNLOCK(sc) mtx_unlock(&(sc)->sc_mtx)
106 ti_mbox_reg_read(struct ti_mbox_softc *sc, uint16_t reg) argument
108 return (bus_space_read_4(sc->sc_bt, sc->sc_bh, reg));
112 ti_mbox_reg_write(struct ti_mbox_softc *sc, uint16_t reg, uint32_t val) argument
114 bus_space_write_4(sc->sc_bt, sc
135 struct ti_mbox_softc *sc; local
205 struct ti_mbox_softc *sc; local
223 struct ti_mbox_softc *sc; local
232 struct ti_mbox_softc *sc; local
245 struct ti_mbox_softc *sc; local
[all...]
/freebsd-11-stable/sys/powerpc/powermac/
H A Data_dbdma.c57 struct ata_dbdma_channel *sc; member in struct:ata_dbdma_dmaload_args
67 struct ata_dbdma_channel *sc = arg->sc; local
72 mtx_lock(&sc->dbdma_mtx);
74 prev_stop = sc->next_dma_slot-1;
80 if (sc->next_dma_slot == 0xff)
93 dbdma_insert_command(sc->dbdma, sc->next_dma_slot++,
98 sc->next_dma_slot = 0;
105 if (sc
127 struct ata_dbdma_channel *sc = device_get_softc(dev); local
146 struct ata_dbdma_channel *sc = device_get_softc(request->parent); local
156 struct ata_dbdma_channel *sc = device_get_softc(dev); local
173 struct ata_dbdma_channel *sc = device_get_softc(request->parent); local
260 struct ata_dbdma_channel *sc = device_get_softc(dev); local
[all...]
H A Datibl.c80 static int atibl_setlevel(struct atibl_softc *sc, int newlevel);
81 static int atibl_getlevel(struct atibl_softc *sc);
142 struct atibl_softc *sc; local
147 sc = device_get_softc(dev);
150 sc->sc_memr = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid,
152 if (sc->sc_memr == NULL) {
161 "level", CTLTYPE_INT | CTLFLAG_RW, sc, 0,
168 atibl_pll_rreg(struct atibl_softc *sc, uint32_t reg) argument
172 bus_write_1(sc->sc_memr, RADEON_CLOCK_CNTL_INDEX, (reg & 0x3f));
173 (void)bus_read_4(sc
189 atibl_pll_wreg(struct atibl_softc *sc, uint32_t reg, uint32_t val) argument
210 atibl_setlevel(struct atibl_softc *sc, int newlevel) argument
265 atibl_getlevel(struct atibl_softc *sc) argument
283 struct atibl_softc *sc; local
296 struct atibl_softc *sc; local
308 struct atibl_softc *sc; local
[all...]
/freebsd-11-stable/sys/arm/broadcom/bcm2835/
H A Dbcm2835_fbd.c78 bcm_fb_init(struct bcmsc_softc *sc, struct bcm2835_fb_config *fb) argument
94 device_printf(sc->dev, "bcm2835_mbox_fb_init failed, err=%d\n", err);
102 bcm_fb_setup_fbd(struct bcmsc_softc *sc) argument
108 err = bcm_fb_init(sc, &fb);
112 memset(&sc->info, 0, sizeof(sc->info));
113 sc->info.fb_name = device_get_nameunit(sc->dev);
115 sc->info.fb_vbase = (intptr_t)pmap_mapdev(fb.base, fb.size);
116 sc
166 struct bcmsc_softc *sc = arg1; local
182 bcm_fb_sysctl_init(struct bcmsc_softc *sc) argument
217 struct bcmsc_softc *sc; local
250 struct bcmsc_softc *sc; local
[all...]
/freebsd-11-stable/sys/arm/nvidia/
H A Das3722_gpio.c133 as3722_pinmux_get_function(struct as3722_softc *sc, char *name) argument
147 as3722_pinmux_config_node(struct as3722_softc *sc, char *pin_name, argument
153 for (pin = 0; pin < sc->gpio_npins; pin++) {
154 if (strcmp(sc->gpio_pins[pin]->pin_name, pin_name) == 0)
157 if (pin >= sc->gpio_npins) {
158 device_printf(sc->dev, "Unknown pin: %s\n", pin_name);
162 ctrl = sc->gpio_pins[pin]->pin_ctrl_reg;
163 sc->gpio_pins[pin]->pin_cfg_flags = cfg->flags;
165 fnc = as3722_pinmux_get_function(sc, cfg->function);
167 device_printf(sc
210 as3722_pinmux_read_node(struct as3722_softc *sc, phandle_t node, struct as3722_pincfg *cfg, char **pins, int *lpins) argument
233 as3722_pinmux_process_node(struct as3722_softc *sc, phandle_t node) argument
266 struct as3722_softc *sc; local
291 struct as3722_softc *sc; local
308 struct as3722_softc *sc; local
322 struct as3722_softc *sc; local
336 struct as3722_softc *sc; local
386 as3722_gpio_get_mode(struct as3722_softc *sc, uint32_t pin, uint32_t gpio_flags) argument
432 struct as3722_softc *sc; local
463 struct as3722_softc *sc; local
484 struct as3722_softc *sc; local
513 struct as3722_softc *sc; local
546 as3722_gpio_attach(struct as3722_softc *sc, phandle_t node) argument
[all...]
/freebsd-11-stable/sys/dev/uart/
H A Duart_tty.c164 struct uart_softc *sc; local
166 sc = tty_softc(tp);
168 if (sc == NULL || sc->sc_leaving)
171 sc->sc_opened = 1;
178 struct uart_softc *sc; local
180 sc = tty_softc(tp);
181 if (sc == NULL || sc->sc_leaving || !sc
198 struct uart_softc *sc; local
223 struct uart_softc *sc; local
241 struct uart_softc *sc; local
260 struct uart_softc *sc; local
305 struct uart_softc *sc; local
316 struct uart_softc *sc = arg; local
382 struct uart_softc *sc; local
405 uart_tty_attach(struct uart_softc *sc) argument
429 uart_tty_detach(struct uart_softc *sc) argument
443 uart_tty_getlock(struct uart_softc *sc) argument
[all...]
/freebsd-11-stable/sys/dev/mly/
H A Dmlyvar.h88 #define mly_printf(sc, fmt, args...) device_printf(sc->mly_dev, fmt , ##args)
234 #define MLY_LOCK(sc) mtx_lock(&(sc)->mly_lock)
235 #define MLY_UNLOCK(sc) mtx_unlock(&(sc)->mly_lock)
236 #define MLY_ASSERT_LOCKED(sc) mtx_assert(&(sc)->mly_lock, MA_OWNED)
241 #define MLY_SET_REG(sc, reg, val) bus_write_1(sc
[all...]
/freebsd-11-stable/tools/regression/geom/MdLoad/
H A DMdLoad.c74 g_simdisk_insertsector(struct simdisk_softc *sc, struct sector *dsp) argument
78 if (sc->lastsector < dsp->offset)
79 sc->lastsector = dsp->offset;
80 if (LIST_EMPTY(&sc->sectors)) {
81 LIST_INSERT_HEAD(&sc->sectors, dsp, sectors);
85 LIST_FOREACH(dsp2, &sc->sectors, sectors) {
98 struct simdisk_softc *sc; local
100 sc = userData;
102 sc->sp = calloc(1, sizeof(*sc
111 struct simdisk_softc *sc; local
188 struct simdisk_softc *sc; local
207 struct simdisk_softc *sc; local
234 struct simdisk_softc *sc; local
[all...]
/freebsd-11-stable/sys/dev/usb/controller/
H A Dehci_fsl.c156 set_to_host_mode(ehci_softc_t *sc) argument
160 tmp = bus_space_read_4(sc->sc_io_tag, sc->sc_io_hdl, USBMODE);
161 bus_space_write_4(sc->sc_io_tag, sc->sc_io_hdl, USBMODE, tmp | HOST_MODE);
200 clear_port_power(ehci_softc_t *sc) argument
204 tmp = bus_space_read_4(sc->sc_io_tag, sc->sc_io_hdl, PORTSC);
205 bus_space_write_4(sc->sc_io_tag, sc
230 ehci_softc_t *sc; local
380 ehci_softc_t *sc; local
[all...]
/freebsd-11-stable/sys/dev/sound/pci/
H A Dals4000.c108 als_gcr_rd(struct sc_info *sc, int index) argument
110 bus_space_write_1(sc->st, sc->sh, ALS_GCR_INDEX, index);
111 return bus_space_read_4(sc->st, sc->sh, ALS_GCR_DATA);
115 als_gcr_wr(struct sc_info *sc, int index, int data) argument
117 bus_space_write_1(sc->st, sc->sh, ALS_GCR_INDEX, index);
118 bus_space_write_4(sc->st, sc
122 als_intr_rd(struct sc_info *sc) argument
128 als_intr_wr(struct sc_info *sc, u_int8_t data) argument
134 als_mix_rd(struct sc_info *sc, u_int8_t index) argument
141 als_mix_wr(struct sc_info *sc, u_int8_t index, u_int8_t data) argument
148 als_esp_wr(struct sc_info *sc, u_int8_t data) argument
167 als_esp_reset(struct sc_info *sc) argument
195 als_ack_read(struct sc_info *sc, u_int8_t addr) argument
208 struct sc_info *sc = devinfo; local
247 struct sc_info *sc = ch->parent; local
265 struct sc_info *sc = ch->parent; local
278 struct sc_info *sc = ch->parent; local
297 struct sc_info *sc = ch->parent; local
349 struct sc_info *sc = ch->parent; local
380 struct sc_info *sc = ch->parent; local
396 struct sc_info *sc = ch->parent; local
433 als_get_fifo_format(struct sc_info *sc, u_int32_t format) argument
452 struct sc_info *sc = ch->parent; local
480 struct sc_info *sc = ch->parent; local
495 struct sc_info *sc = ch->parent; local
572 struct sc_info *sc = mix_getdevinfo(m); local
604 struct sc_info *sc = mix_getdevinfo(m); local
638 struct sc_info *sc = (struct sc_info *)p; local
679 als_init(struct sc_info *sc) argument
715 als_uninit(struct sc_info *sc) argument
735 als_resource_free(device_t dev, struct sc_info *sc) argument
760 als_resource_grab(device_t dev, struct sc_info *sc) argument
808 struct sc_info *sc; local
865 struct sc_info *sc; local
882 struct sc_info *sc = pcm_getdevinfo(dev); local
895 struct sc_info *sc = pcm_getdevinfo(dev); local
[all...]
H A Dcs4281.c147 cs4281_rd(struct sc_info *sc, int regno) argument
149 return bus_space_read_4(sc->st, sc->sh, regno);
153 cs4281_wr(struct sc_info *sc, int regno, u_int32_t data) argument
155 bus_space_write_4(sc->st, sc->sh, regno, data);
160 cs4281_clr4(struct sc_info *sc, int regno, u_int32_t mask) argument
163 r = cs4281_rd(sc, regno);
164 cs4281_wr(sc, regno, r & ~mask);
168 cs4281_set4(struct sc_info *sc, in argument
176 cs4281_waitset(struct sc_info *sc, int regno, u_int32_t mask, int tries) argument
190 cs4281_waitclr(struct sc_info *sc, int regno, u_int32_t mask, int tries) argument
257 struct sc_info *sc = (struct sc_info *)devinfo; local
291 struct sc_info *sc = (struct sc_info *)devinfo; local
322 struct sc_info *sc = devinfo; local
350 struct sc_info *sc = ch->parent; local
372 struct sc_info *sc = ch->parent; local
389 struct sc_info *sc = ch->parent; local
415 struct sc_info *sc = ch->parent; local
476 struct sc_info *sc = ch->parent; local
494 struct sc_info *sc = ch->parent; local
514 struct sc_info *sc = (struct sc_info *)p; local
539 cs4281_power(struct sc_info *sc, int state) argument
563 cs4281_init(struct sc_info *sc) argument
761 struct sc_info *sc; local
881 struct sc_info *sc; local
905 struct sc_info *sc; local
920 struct sc_info *sc; local
[all...]
/freebsd-11-stable/sys/dev/etherswitch/ukswitch/
H A Dukswitch.c103 struct ukswitch_softc *sc; local
105 sc = device_get_softc(dev);
106 bzero(sc, sizeof(*sc));
113 ukswitch_attach_phys(struct ukswitch_softc *sc) argument
119 snprintf(name, IFNAMSIZ, "%sport", device_get_nameunit(sc->sc_dev));
121 if (((1 << phy) & sc->phymask) == 0)
123 sc->ifpport[phy] = port;
124 sc->portphy[port] = phy;
125 sc
156 struct ukswitch_softc *sc; local
224 struct ukswitch_softc *sc = device_get_softc(dev); local
256 ukswitch_portforphy(struct ukswitch_softc *sc, int phy) argument
263 ukswitch_miiforport(struct ukswitch_softc *sc, int port) argument
272 ukswitch_ifpforport(struct ukswitch_softc *sc, int port) argument
284 ukswitch_miipollstat(struct ukswitch_softc *sc) argument
312 struct ukswitch_softc *sc = arg; local
321 struct ukswitch_softc *sc = device_get_softc(dev); local
330 struct ukswitch_softc *sc = device_get_softc(dev); local
339 struct ukswitch_softc *sc = device_get_softc(dev); local
347 struct ukswitch_softc *sc = device_get_softc(dev); local
384 struct ukswitch_softc *sc = device_get_softc(dev); local
437 struct ukswitch_softc *sc = ifp->if_softc; local
450 struct ukswitch_softc *sc = ifp->if_softc; local
465 struct ukswitch_softc *sc; local
486 struct ukswitch_softc *sc; local
507 struct ukswitch_softc *sc; local
519 struct ukswitch_softc *sc; local
[all...]
/freebsd-11-stable/usr.sbin/bhyve/
H A Dpci_e82545.c352 static void e82545_reset(struct e82545_softc *sc, int dev);
353 static void e82545_rx_enable(struct e82545_softc *sc);
354 static void e82545_rx_disable(struct e82545_softc *sc);
356 static void e82545_tx_start(struct e82545_softc *sc);
357 static void e82545_tx_enable(struct e82545_softc *sc);
358 static void e82545_tx_disable(struct e82545_softc *sc);
374 e82545_init_eeprom(struct e82545_softc *sc) argument
379 sc->eeprom_data[NVM_MAC_ADDR] = ((uint16_t)sc->esc_mac.octet[0]) |
380 (((uint16_t)sc
403 e82545_write_mdi(struct e82545_softc *sc, uint8_t reg_addr, uint8_t phy_addr, uint32_t data) argument
410 e82545_read_mdi(struct e82545_softc *sc, uint8_t reg_addr, uint8_t phy_addr) argument
437 e82545_eecd_strobe(struct e82545_softc *sc) argument
553 struct e82545_softc *sc = param; local
569 e82545_icr_assert(struct e82545_softc *sc, uint32_t bits) argument
600 e82545_ims_change(struct e82545_softc *sc, uint32_t bits) argument
628 e82545_icr_deassert(struct e82545_softc *sc, uint32_t bits) argument
646 e82545_intr_write(struct e82545_softc *sc, uint32_t offset, uint32_t value) argument
677 e82545_intr_read(struct e82545_softc *sc, uint32_t offset) argument
711 e82545_devctl(struct e82545_softc *sc, uint32_t val) argument
724 e82545_rx_update_rdba(struct e82545_softc *sc) argument
737 e82545_rx_ctl(struct e82545_softc *sc, uint32_t val) argument
773 e82545_tx_update_tdba(struct e82545_softc *sc) argument
785 e82545_tx_ctl(struct e82545_softc *sc, uint32_t val) argument
830 struct e82545_softc *sc = param; local
1047 e82545_transmit_backend(struct e82545_softc *sc, struct iovec *iov, int iovcnt) argument
1057 e82545_transmit_done(struct e82545_softc *sc, uint16_t head, uint16_t tail, uint16_t dsize, int *tdwb) argument
1072 e82545_transmit(struct e82545_softc *sc, uint16_t head, uint16_t tail, uint16_t dsize, uint16_t *rhead, int *tdwb) argument
1440 e82545_tx_run(struct e82545_softc *sc) argument
1480 struct e82545_softc *sc = param; local
1500 e82545_tx_start(struct e82545_softc *sc) argument
1508 e82545_tx_enable(struct e82545_softc *sc) argument
1515 e82545_tx_disable(struct e82545_softc *sc) argument
1524 e82545_rx_enable(struct e82545_softc *sc) argument
1531 e82545_rx_disable(struct e82545_softc *sc) argument
1540 e82545_write_ra(struct e82545_softc *sc, int reg, uint32_t wval) argument
1566 e82545_read_ra(struct e82545_softc *sc, int reg) argument
1595 e82545_write_register(struct e82545_softc *sc, uint32_t offset, uint32_t value) argument
1808 e82545_read_register(struct e82545_softc *sc, uint32_t offset) argument
2085 struct e82545_softc *sc; local
2135 struct e82545_softc *sc; local
2188 e82545_reset(struct e82545_softc *sc, int drvr) argument
2276 e82545_open_tap(struct e82545_softc *sc, char *opts) argument
2329 struct e82545_softc *sc; local
[all...]
/freebsd-11-stable/sys/dev/aac/
H A Daacvar.h237 int (*aif_get_fwstatus)(struct aac_softc *sc);
238 void (*aif_qnotify)(struct aac_softc *sc, int qbit);
239 int (*aif_get_istatus)(struct aac_softc *sc);
240 void (*aif_clr_istatus)(struct aac_softc *sc, int mask);
241 void (*aif_set_mailbox)(struct aac_softc *sc, u_int32_t command,
244 int (*aif_get_mailbox)(struct aac_softc *sc, int mb);
245 void (*aif_set_interrupts)(struct aac_softc *sc, int enable);
246 int (*aif_send_command)(struct aac_softc *sc, struct aac_command *cm);
247 int (*aif_get_outb_queue)(struct aac_softc *sc);
248 void (*aif_set_outb_queue)(struct aac_softc *sc, in
596 aac_initq_bio(struct aac_softc *sc) argument
603 aac_enqueue_bio(struct aac_softc *sc, struct bio *bp) argument
610 aac_dequeue_bio(struct aac_softc *sc) argument
622 aac_print_printf(struct aac_softc *sc) argument
635 aac_alloc_sync_fib(struct aac_softc *sc, struct aac_fib **fib) argument
644 aac_release_sync_fib(struct aac_softc *sc) argument
[all...]
/freebsd-11-stable/sys/dev/cm/
H A Dsmc90cx6.c133 struct cm_softc *sc = device_get_softc(dev); local
135 if (sc->port_res != NULL) {
137 0, sc->port_res);
138 sc->port_res = NULL;
140 if (sc->mem_res != NULL) {
142 0, sc->mem_res);
143 sc->mem_res = NULL;
145 if (sc->irq_res != NULL) {
147 0, sc->irq_res);
148 sc
156 struct cm_softc *sc = device_get_softc(dev); local
219 struct cm_softc *sc = (struct cm_softc *)xsc; local
227 cm_init_locked(struct cm_softc *sc) argument
336 struct cm_softc *sc = ifp->if_softc; local
354 struct cm_softc *sc = ifp->if_softc; local
478 struct cm_softc *sc = (struct cm_softc *)vsc; local
494 struct cm_softc *sc = (struct cm_softc *)vsc; local
689 struct cm_softc *sc = arg; local
833 struct cm_softc *sc = arg; local
855 struct cm_softc *sc; local
917 struct cm_softc *sc; local
[all...]
H A Dsmc90cx6var.h53 struct mtx sc_mtx; /* sc mutex */
86 void cm_stop_locked(struct cm_softc *sc);
91 #define CM_LOCK(sc) mtx_lock(&(sc)->sc_mtx)
92 #define CM_UNLOCK(sc) mtx_unlock(&(sc)->sc_mtx)
96 bus_space_read_1(rman_get_bustag((sc)->port_res), \
97 rman_get_bushandle((sc)->port_res), \
100 bus_space_write_1(rman_get_bustag((sc)->port_res), \
101 rman_get_bushandle((sc)
[all...]
/freebsd-11-stable/sys/arm/altera/socfpga/
H A Dsocfpga_gpio.c156 struct socfpga_gpio_softc *sc; local
162 sc = device_get_softc(dev);
163 sc->dev = dev;
164 mtx_init(&sc->sc_mtx, device_get_nameunit(dev), NULL, MTX_DEF);
166 if (bus_alloc_resources(dev, socfpga_gpio_spec, sc->res)) {
168 mtx_destroy(&sc->sc_mtx);
173 sc->bst = rman_get_bustag(sc->res[0]);
174 sc->bsh = rman_get_bushandle(sc
214 struct socfpga_gpio_softc *sc; local
224 struct socfpga_gpio_softc *sc; local
236 struct socfpga_gpio_softc *sc; local
258 struct socfpga_gpio_softc *sc; local
280 struct socfpga_gpio_softc *sc; local
302 struct socfpga_gpio_softc *sc; local
324 struct socfpga_gpio_softc *sc; local
351 socfpga_gpio_pin_configure(struct socfpga_gpio_softc *sc, struct gpio_pin *pin, unsigned int flags) argument
382 struct socfpga_gpio_softc *sc; local
402 struct socfpga_gpio_softc *sc; local
[all...]
/freebsd-11-stable/sys/arm/nvidia/tegra124/
H A Dtegra124_clk_pll.c414 pll_enable(struct pll_sc *sc) argument
419 RD4(sc, sc->base_reg, &reg);
420 if (sc->type != PLL_E)
423 WR4(sc, sc->base_reg, reg);
428 pll_disable(struct pll_sc *sc) argument
432 RD4(sc, sc->base_reg, &reg);
433 if (sc
441 pdiv_to_reg(struct pll_sc *sc, uint32_t p_div) argument
458 reg_to_pdiv(struct pll_sc *sc, uint32_t reg) argument
491 get_divisors(struct pll_sc *sc, uint32_t *m, uint32_t *n, uint32_t *p) argument
504 set_divisors(struct pll_sc *sc, uint32_t val, uint32_t m, uint32_t n, uint32_t p) argument
517 is_locked(struct pll_sc *sc) argument
541 wait_for_lock(struct pll_sc *sc) argument
558 plle_enable(struct pll_sc *sc) argument
679 struct pll_sc *sc; local
695 pll_set_std(struct pll_sc *sc, uint64_t fin, uint64_t *fout, int flags, uint32_t m, uint32_t n, uint32_t p) argument
759 plla_set_freq(struct pll_sc *sc, uint64_t fin, uint64_t *fout, int flags) argument
771 pllc_set_freq(struct pll_sc *sc, uint64_t fin, uint64_t *fout, int flags) argument
797 plld2_set_freq(struct pll_sc *sc, uint64_t fin, uint64_t *fout, int flags) argument
866 pllrefe_set_freq(struct pll_sc *sc, uint64_t fin, uint64_t *fout, int flags) argument
878 pllx_set_freq(struct pll_sc *sc, uint64_t fin, uint64_t *fout, int flags) argument
952 struct pll_sc *sc; local
994 struct pll_sc *sc; local
1019 struct pll_sc *sc; local
1054 struct pll_sc *sc; local
1076 config_utmi_pll(struct tegra124_car_softc *sc) argument
1136 tegra124_init_plls(struct tegra124_car_softc *sc) argument
[all...]
/freebsd-11-stable/sys/mips/idt/
H A Dif_kr.c156 struct kr_softc *sc; local
160 sc = device_get_softc(dev);
162 sc->kr_dev = dev;
164 mtx_init(&sc->kr_mtx, device_get_nameunit(dev), MTX_NETWORK_LOCK,
166 callout_init_mtx(&sc->kr_stat_callout, &sc->kr_mtx, 0);
167 TASK_INIT(&sc->kr_link_task, 0, kr_link_task, sc);
171 sc->kr_rid = 0;
172 sc
326 struct kr_softc *sc = device_get_softc(dev); local
397 struct kr_softc *sc; local
411 struct kr_softc * sc = device_get_softc(dev); local
453 struct kr_softc * sc = device_get_softc(dev); local
487 struct kr_softc *sc; local
496 struct kr_softc *sc; local
522 kr_reset(struct kr_softc *sc) argument
541 struct kr_softc *sc = xsc; local
549 kr_init_locked(struct kr_softc *sc) argument
639 struct kr_softc *sc; local
653 kr_encap(struct kr_softc *sc, struct mbuf **m_head) argument
749 struct kr_softc *sc; local
789 kr_stop(struct kr_softc *sc) argument
839 struct kr_softc *sc = ifp->if_softc; local
919 struct kr_softc *sc; local
941 struct kr_softc *sc = ifp->if_softc; local
968 kr_dma_alloc(struct kr_softc *sc) argument
1144 kr_dma_free(struct kr_softc *sc) argument
1220 kr_tx_ring_init(struct kr_softc *sc) argument
1260 kr_rx_ring_init(struct kr_softc *sc) argument
1300 kr_newbuf(struct kr_softc *sc, int idx) argument
1360 kr_tx(struct kr_softc *sc) argument
1431 kr_rx(struct kr_softc *sc) argument
1522 struct kr_softc *sc = arg; local
1560 struct kr_softc *sc = arg; local
1603 struct kr_softc *sc = xsc; local
[all...]
/freebsd-11-stable/sys/dev/twe/
H A Dtwe.c46 static int twe_get_param_1(struct twe_softc *sc, int table_id, int param_id, u_int8_t *result);
47 static int twe_get_param_2(struct twe_softc *sc, int table_id, int param_id, u_int16_t *result);
48 static int twe_get_param_4(struct twe_softc *sc, int table_id, int param_id, u_int32_t *result);
49 static void *twe_get_param(struct twe_softc *sc, int table_id, int parameter_id, size_t size,
52 static int twe_set_param_1(struct twe_softc *sc, int table_id, int param_id, u_int8_t value);
55 static int twe_set_param_2(struct twe_softc *sc, int table_id, int param_id, u_int16_t value);
56 static int twe_set_param_4(struct twe_softc *sc, int table_id, int param_id, u_int32_t value);
58 static int twe_set_param(struct twe_softc *sc, int table_id, int param_id, int param_size,
60 static int twe_init_connection(struct twe_softc *sc, int mode);
64 static void twe_reset(struct twe_softc *sc);
118 twe_setup(struct twe_softc *sc) argument
203 twe_add_unit(struct twe_softc *sc, int unit) argument
287 twe_del_unit(struct twe_softc *sc, int unit) argument
306 twe_init(struct twe_softc *sc) argument
347 twe_deinit(struct twe_softc *sc) argument
369 twe_intr(struct twe_softc *sc) argument
399 twe_startio(struct twe_softc *sc) argument
480 twe_dump_blocks(struct twe_softc *sc, int unit, u_int32_t lba, void *data, int nblks) argument
513 twe_ioctl(struct twe_softc *sc, u_long ioctlcmd, void *addr) argument
692 twe_enable_interrupts(struct twe_softc *sc) argument
705 twe_disable_interrupts(struct twe_softc *sc) argument
721 twe_get_param_1(struct twe_softc *sc, int table_id, int param_id, u_int8_t *result) argument
733 twe_get_param_2(struct twe_softc *sc, int table_id, int param_id, u_int16_t *result) argument
745 twe_get_param_4(struct twe_softc *sc, int table_id, int param_id, u_int32_t *result) argument
763 twe_get_param(struct twe_softc *sc, int table_id, int param_id, size_t param_size, void (* func)(struct twe_request *tr)) argument
834 twe_set_param_1(struct twe_softc *sc, int table_id, int param_id, u_int8_t value) argument
858 twe_set_param(struct twe_softc *sc, int table_id, int param_id, int param_size, void *data) argument
917 twe_init_connection(struct twe_softc *sc, int mode) argument
978 struct twe_softc *sc; local
1015 struct twe_softc *sc = tr->tr_sc; local
1041 twe_reset(struct twe_softc *sc) argument
1108 struct twe_softc *sc = tr->tr_sc; local
1169 twe_done(struct twe_softc *sc, int startio) argument
1219 twe_complete(struct twe_softc *sc) argument
1255 twe_wait_status(struct twe_softc *sc, u_int32_t status, int timeout) argument
1279 twe_drain_response_queue(struct twe_softc *sc) argument
1300 twe_soft_reset(struct twe_softc *sc) argument
1346 twe_host_intr(struct twe_softc *sc) argument
1360 twe_attention_intr(struct twe_softc *sc) argument
1378 twe_command_intr(struct twe_softc *sc) argument
1400 twe_fetch_aen(struct twe_softc *sc) argument
1416 struct twe_softc *sc = tr->tr_sc; local
1440 twe_drain_aen_queue(struct twe_softc *sc) argument
1463 twe_enqueue_aen(struct twe_softc *sc, u_int16_t aen) argument
1504 twe_dequeue_aen(struct twe_softc *sc) argument
1526 twe_find_aen(struct twe_softc *sc, u_int16_t aen) argument
1581 twe_get_request(struct twe_softc *sc, struct twe_request **tr) argument
1632 twe_describe_controller(struct twe_softc *sc) argument
1717 twe_check_bits(struct twe_softc *sc, u_int32_t status_reg) argument
1773 twe_format_aen(struct twe_softc *sc, u_int16_t aen) argument
1822 struct twe_softc *sc = tr->tr_sc; local
1883 twe_print_controller(struct twe_softc *sc) argument
1909 twe_panic(struct twe_softc *sc, char *reason) argument
[all...]

Completed in 224 milliseconds

<<11121314151617181920>>