Searched refs:sc (Results 176 - 200 of 2442) sorted by relevance

1234567891011>>

/freebsd-current/sys/arm/allwinner/
H A Dif_emac.c135 #define EMAC_READ_REG(sc, reg) \
136 bus_space_read_4(sc->emac_tag, sc->emac_handle, reg)
137 #define EMAC_WRITE_REG(sc, reg, val) \
138 bus_space_write_4(sc->emac_tag, sc->emac_handle, reg, val)
141 emac_sys_setup(struct emac_softc *sc) argument
146 error = clk_get_by_ofw_index(sc->emac_dev, 0, 0, &sc->emac_clk);
148 device_printf(sc
164 emac_get_hwaddr(struct emac_softc *sc, uint8_t *hwaddr) argument
228 emac_set_rx_mode(struct emac_softc *sc) argument
270 emac_reset(struct emac_softc *sc) argument
280 emac_drain_rxfifo(struct emac_softc *sc) argument
288 emac_txeof(struct emac_softc *sc, uint32_t status) argument
308 emac_rxeof(struct emac_softc *sc, int count) argument
447 emac_watchdog(struct emac_softc *sc) argument
475 struct emac_softc *sc; local
489 struct emac_softc *sc; local
498 emac_init_locked(struct emac_softc *sc) argument
602 struct emac_softc *sc; local
613 struct emac_softc *sc; local
673 emac_stop_locked(struct emac_softc *sc) argument
700 struct emac_softc *sc; local
736 struct emac_softc *sc; local
798 struct emac_softc *sc; local
847 struct emac_softc *sc; local
864 struct emac_softc *sc; local
883 struct emac_softc *sc; local
990 emac_miibus_iowait(struct emac_softc *sc) argument
1009 struct emac_softc *sc; local
1033 struct emac_softc *sc; local
1056 struct emac_softc *sc; local
1107 struct emac_softc *sc; local
1126 struct emac_softc *sc; local
[all...]
/freebsd-current/sys/dev/rtwn/rtl8812a/
H A Dr12a_init.c64 r12a_check_condition(struct rtwn_softc *sc, const uint8_t cond[]) argument
66 struct r12a_softc *rs = sc->sc_priv;
70 RTWN_DPRINTF(sc, RTWN_DEBUG_RESET,
113 r12a_set_page_size(struct rtwn_softc *sc) argument
115 return (rtwn_setbits_1(sc, R92C_PBP, R92C_PBP_PSTX_M,
120 r12a_init_edca(struct rtwn_softc *sc) argument
122 r92c_init_edca(sc);
125 rtwn_write_1(sc, R92C_USTIME_TSF, 0x50);
126 rtwn_write_1(sc, R92C_USTIME_EDCA, 0x50);
130 r12a_init_bb(struct rtwn_softc *sc) argument
205 r12a_init_rf(struct rtwn_softc *sc) argument
216 r12a_crystalcap_write(struct rtwn_softc *sc) argument
229 r12a_rf_init_workaround(struct rtwn_softc *sc) argument
245 r12a_power_on(struct rtwn_softc *sc) argument
323 r12a_power_off(struct rtwn_softc *sc) argument
468 r12a_init_intr(struct rtwn_softc *sc) argument
475 r12a_init_antsel(struct rtwn_softc *sc) argument
[all...]
/freebsd-current/sys/arm/broadcom/bcm2835/
H A Dbcm2835_pwm.c95 bcm_pwm_reconf(struct bcm_pwm_softc *sc) argument
100 W_CTL(sc, 0);
103 (void)bcm2835_clkman_set_frequency(sc->clkman, BCM_PWM_CLKSRC, 0);
107 if (sc->mode == 0 && sc->mode2 == 0) /* both modes are zero */
112 u = bcm2835_clkman_set_frequency(sc->clkman, BCM_PWM_CLKSRC, sc->freq);
115 sc->freq = u;
146 if (sc->mode != 0) {
148 W_RNG(sc, s
183 struct bcm_pwm_softc *sc; local
199 struct bcm_pwm_softc *sc; local
217 struct bcm_pwm_softc *sc; local
235 struct bcm_pwm_softc *sc; local
248 struct bcm_pwm_softc *sc; local
267 struct bcm_pwm_softc *sc; local
283 struct bcm_pwm_softc *sc; local
301 struct bcm_pwm_softc *sc; local
314 struct bcm_pwm_softc *sc; local
333 struct bcm_pwm_softc *sc; local
349 bcm_pwm_sysctl_init(struct bcm_pwm_softc *sc) argument
426 struct bcm_pwm_softc *sc; local
469 struct bcm_pwm_softc *sc; local
[all...]
/freebsd-current/sys/dev/tws/
H A Dtws_services.c42 void tws_q_insert_tail(struct tws_softc *sc, struct tws_request *req,
44 struct tws_request * tws_q_remove_request(struct tws_softc *sc,
46 struct tws_request *tws_q_remove_head(struct tws_softc *sc, u_int8_t q_type );
47 void tws_q_insert_head(struct tws_softc *sc, struct tws_request *req,
49 struct tws_request * tws_q_remove_tail(struct tws_softc *sc, u_int8_t q_type );
52 struct tws_sense *tws_find_sense_from_mfa(struct tws_softc *sc, u_int64_t mfa);
85 struct tws_softc *sc, char *desc, u_int64_t val1, u_int64_t val2)
88 struct tws_trace_rec *rec = (struct tws_trace_rec *)sc->trace_q.q;
92 head = sc->trace_q.head;
93 tail = sc
84 tws_trace(const char *file, const char *fun, int linenum, struct tws_softc *sc, char *desc, u_int64_t val1, u_int64_t val2) argument
129 tws_log(struct tws_softc *sc, int index) argument
163 tws_write_reg(struct tws_softc *sc, int offset, u_int32_t value, int size) argument
180 tws_read_reg(struct tws_softc *sc, int offset, int size) argument
199 tws_init_qs(struct tws_softc *sc) argument
213 tws_insert2_empty_q(struct tws_softc *sc, struct tws_request *req, u_int8_t q_type ) argument
225 tws_q_insert_head(struct tws_softc *sc, struct tws_request *req, u_int8_t q_type ) argument
243 tws_q_insert_tail(struct tws_softc *sc, struct tws_request *req, u_int8_t q_type ) argument
261 tws_q_remove_head(struct tws_softc *sc, u_int8_t q_type ) argument
284 tws_q_remove_tail(struct tws_softc *sc, u_int8_t q_type ) argument
308 tws_q_remove_request(struct tws_softc *sc, struct tws_request *req, u_int8_t q_type ) argument
357 tws_find_sense_from_mfa(struct tws_softc *sc, u_int64_t mfa) argument
382 struct tws_softc *sc = (struct tws_softc *)arg; local
[all...]
/freebsd-current/sys/dev/ipw/
H A Dif_ipw.c225 struct ipw_softc *sc = device_get_softc(dev); local
226 struct ieee80211com *ic = &sc->sc_ic;
230 sc->sc_dev = dev;
232 mtx_init(&sc->sc_mtx, device_get_nameunit(dev), MTX_NETWORK_LOCK,
234 mbufq_init(&sc->sc_snd, ifqmaxlen);
235 TASK_INIT(&sc->sc_init_task, 0, ipw_init_task, sc);
236 callout_init_mtx(&sc->sc_wdtimer, &sc->sc_mtx, 0);
244 sc
367 struct ipw_softc *sc = device_get_softc(dev); local
403 struct ipw_softc *sc = ic->ic_softc; local
486 ipw_dma_alloc(struct ipw_softc *sc) argument
715 ipw_release(struct ipw_softc *sc) argument
788 struct ipw_softc *sc = device_get_softc(dev); local
798 struct ipw_softc *sc = device_get_softc(dev); local
808 struct ipw_softc *sc = device_get_softc(dev); local
838 struct ipw_softc *sc = ic->ic_softc; local
851 struct ipw_softc *sc = ic->ic_softc; local
913 ipw_read_prom_word(struct ipw_softc *sc, uint8_t addr) argument
965 ipw_read_chanmask(struct ipw_softc *sc) argument
978 ipw_rx_cmd_intr(struct ipw_softc *sc, struct ipw_soft_buf *sbuf) argument
996 ipw_rx_newstate_intr(struct ipw_softc *sc, struct ipw_soft_buf *sbuf) argument
1099 ipw_setcurchan(struct ipw_softc *sc, struct ieee80211_channel *chan) argument
1112 ipw_fix_channel(struct ipw_softc *sc, struct mbuf *m) argument
1156 ipw_rx_data_intr(struct ipw_softc *sc, struct ipw_status *status, struct ipw_soft_bd *sbd, struct ipw_soft_buf *sbuf) argument
1241 ipw_rx_intr(struct ipw_softc *sc) argument
1300 ipw_release_sbd(struct ipw_softc *sc, struct ipw_soft_bd *sbd) argument
1336 ipw_tx_intr(struct ipw_softc *sc) argument
1359 ipw_fatal_error_intr(struct ipw_softc *sc) argument
1376 struct ipw_softc *sc = arg; local
1472 ipw_cmd(struct ipw_softc *sc, uint32_t type, void *data, uint32_t len) argument
1544 ipw_tx_start(struct ipw_softc *sc, struct mbuf *m0, struct ieee80211_node *ni) argument
1703 struct ipw_softc *sc = ic->ic_softc; local
1722 ipw_start(struct ipw_softc *sc) argument
1746 struct ipw_softc *sc = arg; local
1777 struct ipw_softc *sc = ic->ic_softc; local
1794 ipw_stop_master(struct ipw_softc *sc) argument
1819 ipw_reset(struct ipw_softc *sc) argument
1851 ipw_waitfordisable(struct ipw_softc *sc, int waitfor) argument
1869 ipw_enable(struct ipw_softc *sc) argument
1887 ipw_disable(struct ipw_softc *sc) argument
1908 ipw_load_ucode(struct ipw_softc *sc, const char *uc, int size) argument
1960 ipw_load_firmware(struct ipw_softc *sc, const char *fw, int size) argument
2004 ipw_setwepkeys(struct ipw_softc *sc) argument
2034 ipw_setwpaie(struct ipw_softc *sc, const void *ie, int ielen) argument
2047 ipw_setbssid(struct ipw_softc *sc, uint8_t *bssid) argument
2062 ipw_setssid(struct ipw_softc *sc, void *ssid, size_t ssidlen) argument
2090 ipw_setscanopts(struct ipw_softc *sc, uint32_t chanmask, uint32_t flags) argument
2101 ipw_scan(struct ipw_softc *sc) argument
2147 ipw_setchannel(struct ipw_softc *sc, struct ieee80211_channel *chan) argument
2164 struct ipw_softc *sc = ic->ic_softc; local
2256 struct ipw_softc *sc = ic->ic_softc; local
2289 struct ipw_softc *sc = priv; local
2301 ipw_init_locked(struct ipw_softc *sc) argument
2397 ipw_config(struct ipw_softc *sc) argument
2492 struct ipw_softc *sc = priv; local
2500 ipw_stop_locked(struct ipw_softc *sc) argument
2524 struct ipw_softc *sc = arg1; local
2544 struct ipw_softc *sc = arg1; local
2554 ipw_read_table1(struct ipw_softc *sc, uint32_t off) argument
2560 ipw_write_table1(struct ipw_softc *sc, uint32_t off, uint32_t info) argument
2604 ipw_write_mem_1(struct ipw_softc *sc, bus_size_t offset, const uint8_t *datap, bus_size_t count) argument
2616 struct ipw_softc *sc = ic->ic_softc; local
2627 struct ipw_softc *sc = ic->ic_softc; local
2646 struct ipw_softc *sc = ic->ic_softc; local
2672 struct ipw_softc *sc = ic->ic_softc; local
[all...]
/freebsd-current/sys/dev/ismt/
H A Dismt.c179 struct ismt_softc *sc = arg; local
182 val = bus_read_4(sc->mmio_res, ISMT_MSTR_MSTS);
183 ISMT_DEBUG(sc->pcidev, "%s MSTS=0x%x\n", __func__, val);
186 bus_write_4(sc->mmio_res, ISMT_MSTR_MSTS, val);
188 wakeup(sc);
194 struct ismt_softc *sc; local
197 sc = device_get_softc(dev);
202 (uintptr_t *)&sc->bus_reserved,
211 KASSERT(sc->bus_reserved == curthread,
214 atomic_store_rel_ptr((uintptr_t *)&sc
227 ismt_alloc_desc(struct ismt_softc *sc) argument
245 ismt_submit(struct ismt_softc *sc, struct ismt_desc *desc, uint8_t slave, uint8_t is_read) argument
306 struct ismt_softc *sc; local
325 struct ismt_softc *sc; local
341 struct ismt_softc *sc; local
364 struct ismt_softc *sc; local
381 struct ismt_softc *sc; local
399 struct ismt_softc *sc; local
424 struct ismt_softc *sc; local
449 struct ismt_softc *sc; local
476 struct ismt_softc *sc; local
497 struct ismt_softc *sc; local
525 struct ismt_softc *sc; local
585 struct ismt_softc *sc = device_get_softc(dev); local
[all...]
/freebsd-current/sys/dev/virtio/balloon/
H A Dvirtio_balloon.c173 struct vtballoon_softc *sc; local
176 sc = device_get_softc(dev);
177 sc->vtballoon_dev = dev;
180 VTBALLOON_LOCK_INIT(sc, device_get_nameunit(dev));
181 TAILQ_INIT(&sc->vtballoon_pages);
183 vtballoon_setup_sysctl(sc);
185 error = vtballoon_setup_features(sc);
191 sc->vtballoon_page_frames = malloc(VTBALLOON_PAGES_PER_REQUEST *
193 if (sc->vtballoon_page_frames == NULL) {
200 error = vtballoon_alloc_virtqueues(sc);
232 struct vtballoon_softc *sc; local
264 struct vtballoon_softc *sc; local
276 vtballoon_negotiate_features(struct vtballoon_softc *sc) argument
289 vtballoon_setup_features(struct vtballoon_softc *sc) argument
301 vtballoon_alloc_virtqueues(struct vtballoon_softc *sc) argument
322 struct vtballoon_softc *sc; local
332 vtballoon_inflate(struct vtballoon_softc *sc, int npages) argument
362 vtballoon_deflate(struct vtballoon_softc *sc, int npages) argument
405 vtballoon_send_page_frames(struct vtballoon_softc *sc, struct virtqueue *vq, int npages) argument
436 vtballoon_pop(struct vtballoon_softc *sc) argument
444 vtballoon_stop(struct vtballoon_softc *sc) argument
454 vtballoon_alloc_page(struct vtballoon_softc *sc) argument
466 vtballoon_free_page(struct vtballoon_softc *sc, vm_page_t m) argument
474 vtballoon_desired_size(struct vtballoon_softc *sc) argument
488 vtballoon_update_size(struct vtballoon_softc *sc) argument
501 vtballoon_sleep(struct vtballoon_softc *sc) argument
543 struct vtballoon_softc *sc; local
569 vtballoon_setup_sysctl(struct vtballoon_softc *sc) argument
[all...]
/freebsd-current/sys/dev/acpi_support/
H A Dacpi_fujitsu.c143 static uint8_t acpi_fujitsu_update(struct acpi_fujitsu_softc *sc);
144 static uint8_t acpi_fujitsu_init(struct acpi_fujitsu_softc *sc);
145 static uint8_t acpi_fujitsu_check_hardware(struct acpi_fujitsu_softc *sc);
166 static int acpi_fujitsu_method_get(struct acpi_fujitsu_softc *sc, int method);
167 static int acpi_fujitsu_method_set(struct acpi_fujitsu_softc *sc, int method, int value);
240 struct acpi_fujitsu_softc *sc; local
244 sc = device_get_softc(dev);
245 sc->dev = dev;
246 sc->handle = acpi_get_handle(dev);
249 AcpiInstallNotifyHandler(sc
275 struct acpi_fujitsu_softc *sc; local
299 struct acpi_fujitsu_softc *sc; local
318 struct acpi_fujitsu_softc *sc; local
338 struct acpi_fujitsu_softc *sc; local
354 acpi_fujitsu_init(struct acpi_fujitsu_softc *sc) argument
432 struct acpi_fujitsu_softc *sc; local
459 acpi_fujitsu_method_get(struct acpi_fujitsu_softc *sc, int method) argument
515 acpi_fujitsu_method_set(struct acpi_fujitsu_softc *sc, int method, int value) argument
577 acpi_fujitsu_check_hardware(struct acpi_fujitsu_softc *sc) argument
651 acpi_fujitsu_update(struct acpi_fujitsu_softc *sc) argument
[all...]
/freebsd-current/sys/arm/freescale/imx/
H A Dimx6_anatop.c147 KASSERT(imx6_anatop_sc != NULL, ("imx6_anatop_read_4 sc NULL"));
156 KASSERT(imx6_anatop_sc != NULL, ("imx6_anatop_write_4 sc NULL"));
162 vdd_set(struct imx6_anatop_softc *sc, int mv) argument
226 sc->cpu_curmv = newtarg * 25 + 700;
230 cpufreq_mhz_from_div(struct imx6_anatop_softc *sc, uint32_t corediv, argument
234 return ((sc->refosc_mhz * (plldiv / 2)) / (corediv + 1));
238 cpufreq_mhz_to_div(struct imx6_anatop_softc *sc, uint32_t cpu_mhz, argument
243 *plldiv = ((*corediv + 1) * cpu_mhz) / (sc->refosc_mhz / 2);
247 cpufreq_actual_mhz(struct imx6_anatop_softc *sc, uint32_t cpu_mhz) argument
251 cpufreq_mhz_to_div(sc, cpu_mh
256 cpufreq_nearest_oppt(struct imx6_anatop_softc *sc, uint32_t cpu_newmhz) argument
276 cpufreq_set_clock(struct imx6_anatop_softc * sc, struct oppt *op) argument
328 struct imx6_anatop_softc *sc; local
360 struct imx6_anatop_softc *sc; local
391 cpufreq_initialize(struct imx6_anatop_softc *sc) argument
463 temp_from_count(struct imx6_anatop_softc *sc, uint32_t count) argument
472 temp_to_count(struct imx6_anatop_softc *sc, uint32_t temp) argument
481 temp_update_count(struct imx6_anatop_softc *sc) argument
496 struct imx6_anatop_softc *sc = arg1; local
509 struct imx6_anatop_softc *sc = arg1; local
534 tempmon_gofast(struct imx6_anatop_softc *sc) argument
543 tempmon_goslow(struct imx6_anatop_softc *sc) argument
554 struct imx6_anatop_softc *sc = arg; local
569 struct imx6_anatop_softc *sc = arg; local
583 initialize_tempmon(struct imx6_anatop_softc *sc) argument
644 struct imx6_anatop_softc *sc; local
663 struct imx6_anatop_softc *sc; local
696 struct imx6_anatop_softc *sc; local
[all...]
/freebsd-current/sys/arm/ti/
H A Dti_wdt.c94 ti_wdt_reg_read(struct ti_wdt_softc *sc, uint32_t reg) argument
97 return (bus_space_read_4(sc->sc_bt, sc->sc_bh, reg));
101 ti_wdt_reg_write(struct ti_wdt_softc *sc, uint32_t reg, uint32_t val) argument
104 bus_space_write_4(sc->sc_bt, sc->sc_bh, reg, val);
111 ti_wdt_reg_wait(struct ti_wdt_softc *sc, uint32_t bit) argument
114 while (ti_wdt_reg_read(sc, TI_WDT_WWPS) & bit)
119 ti_wdt_disable(struct ti_wdt_softc *sc) argument
122 DPRINTF("disabling watchdog %p\n", sc);
130 ti_wdt_enable(struct ti_wdt_softc *sc) argument
157 struct ti_wdt_softc *sc; local
202 struct ti_wdt_softc *sc; local
222 struct ti_wdt_softc *sc; local
233 struct ti_wdt_softc *sc; local
[all...]
/freebsd-current/usr.sbin/bhyve/
H A Drtc_pl031.c101 rtc_pl031_update_mis(struct rtc_pl031_softc *sc) argument
105 mis = sc->ris & sc->imsc;
106 if (mis == sc->prev_mis)
109 sc->prev_mis = mis;
111 (*sc->intr_assert)(sc->arg);
113 (*sc->intr_deassert)(sc->arg);
117 rtc_pl031_next_match_ticks(struct rtc_pl031_softc *sc) argument
129 rtc_pl031_next_timer_msecs(struct rtc_pl031_softc *sc) argument
138 rtc_pl031_update_timer(struct rtc_pl031_softc *sc) argument
144 rtc_pl031_tick(struct rtc_pl031_softc *sc, bool from_timer) argument
168 struct rtc_pl031_softc *sc = param; local
176 rtc_pl031_write(struct rtc_pl031_softc *sc, int offset, uint32_t value) argument
206 rtc_pl031_read(struct rtc_pl031_softc *sc, int offset) argument
261 struct rtc_pl031_softc *sc; local
[all...]
H A Dpci_fbuf.c119 struct pci_fbuf_softc *sc; local
124 sc = pi->pi_arg;
136 p = (uint8_t *)&sc->memregs + offset;
156 if (!sc->gc_image->vgamode && sc->memregs.width == 0 &&
157 sc->memregs.height == 0) {
159 sc->gc_image->vgamode = 1;
160 sc->gc_width = 0;
161 sc->gc_height = 0;
162 } else if (sc
172 struct pci_fbuf_softc *sc; local
218 struct pci_fbuf_softc *sc; local
240 pci_fbuf_parse_config(struct pci_fbuf_softc *sc, nvlist_t *nvl) argument
344 struct pci_fbuf_softc *sc; local
367 struct pci_fbuf_softc *sc; local
[all...]
/freebsd-current/sys/dev/bge/
H A Dif_bge.c363 #define BGE_IS_JUMBO_CAPABLE(sc) ((sc)->bge_flags & BGE_FLAG_JUMBO)
364 #define BGE_IS_5700_FAMILY(sc) ((sc)->bge_flags & BGE_FLAG_5700_FAMILY)
365 #define BGE_IS_5705_PLUS(sc) ((sc)->bge_flags & BGE_FLAG_5705_PLUS)
366 #define BGE_IS_5714_FAMILY(sc) ((sc)->bge_flags & BGE_FLAG_5714_FAMILY)
367 #define BGE_IS_575X_PLUS(sc) ((sc)
546 bge_has_eaddr(struct bge_softc *sc) argument
552 bge_readmem_ind(struct bge_softc *sc, int off) argument
570 bge_writemem_ind(struct bge_softc *sc, int off, int val) argument
587 bge_readreg_ind(struct bge_softc *sc, int off) argument
599 bge_writereg_ind(struct bge_softc *sc, int off, int val) argument
610 bge_writemem_direct(struct bge_softc *sc, int off, int val) argument
616 bge_writembx(struct bge_softc *sc, int off, int val) argument
630 bge_ape_lock_init(struct bge_softc *sc) argument
682 bge_ape_read_fw_ver(struct bge_softc *sc) argument
726 bge_ape_lock(struct bge_softc *sc, int locknum) argument
806 bge_ape_unlock(struct bge_softc *sc, int locknum) argument
859 bge_ape_send_event(struct bge_softc *sc, uint32_t event) argument
889 bge_ape_driver_state_change(struct bge_softc *sc, int kind) argument
957 bge_nvram_getbyte(struct bge_softc *sc, int addr, uint8_t *dest) argument
1010 bge_read_nvram(struct bge_softc *sc, caddr_t dest, int off, int cnt) argument
1035 bge_eeprom_getbyte(struct bge_softc *sc, int addr, uint8_t *dest) argument
1078 bge_read_eeprom(struct bge_softc *sc, caddr_t dest, int off, int cnt) argument
1096 struct bge_softc *sc; local
1150 struct bge_softc *sc; local
1200 struct bge_softc *sc; local
1272 bge_newbuf_std(struct bge_softc *sc, int i) argument
1331 bge_newbuf_jumbo(struct bge_softc *sc, int i) argument
1414 bge_init_rx_ring_std(struct bge_softc *sc) argument
1436 bge_free_rx_ring_std(struct bge_softc *sc) argument
1456 bge_init_rx_ring_jumbo(struct bge_softc *sc) argument
1486 bge_free_rx_ring_jumbo(struct bge_softc *sc) argument
1506 bge_free_tx_ring(struct bge_softc *sc) argument
1529 bge_init_tx_ring(struct bge_softc *sc) argument
1556 bge_setpromisc(struct bge_softc *sc) argument
1584 bge_setmulti(struct bge_softc *sc) argument
1611 bge_setvlan(struct bge_softc *sc) argument
1627 bge_sig_pre_reset(struct bge_softc *sc, int type) argument
1658 bge_sig_post_reset(struct bge_softc *sc, int type) argument
1679 bge_sig_legacy(struct bge_softc *sc, int type) argument
1697 bge_stop_fw(struct bge_softc *sc) argument
1716 bge_dma_swap_options(struct bge_softc *sc) argument
1732 bge_chipinit(struct bge_softc *sc) argument
1919 bge_blockinit(struct bge_softc *sc) argument
2706 struct bge_softc *sc; local
2742 bge_dma_free(struct bge_softc *sc) argument
2866 bge_dma_ring_alloc(struct bge_softc *sc, bus_size_t alignment, bus_size_t maxsize, bus_dma_tag_t *tag, uint8_t **ring, bus_dmamap_t *map, bus_addr_t *paddr, const char *msg) argument
2926 bge_dma_alloc(struct bge_softc *sc) argument
3136 bge_has_multiple_ports(struct bge_softc *sc) argument
3155 bge_can_use_msi(struct bge_softc *sc) argument
3197 bge_mbox_reorder(struct bge_softc *sc) argument
3238 bge_devinfo(struct bge_softc *sc) argument
3294 struct bge_softc *sc; local
3939 struct bge_softc *sc; local
3974 bge_release_resources(struct bge_softc *sc) argument
4010 bge_reset(struct bge_softc *sc) argument
4264 bge_rxreuse_std(struct bge_softc *sc, int i) argument
4276 bge_rxreuse_jumbo(struct bge_softc *sc, int i) argument
4300 bge_rxeof(struct bge_softc *sc, uint16_t rx_prod, int holdlck) argument
4447 bge_rxcsum(struct bge_softc *sc, struct bge_rx_bd *cur_rx, struct mbuf *m) argument
4482 bge_txeof(struct bge_softc *sc, uint16_t tx_cons) argument
4530 struct bge_softc *sc = if_getsoftc(ifp); local
4584 struct bge_softc *sc; local
4598 struct bge_softc *sc; local
4655 struct bge_softc *sc; local
4734 bge_asf_driver_up(struct bge_softc *sc) argument
4757 struct bge_softc *sc = xsc; local
4810 bge_stats_update_regs(struct bge_softc *sc) argument
4930 bge_stats_clear_regs(struct bge_softc *sc) argument
4972 bge_stats_update(struct bge_softc *sc) argument
5085 bge_setup_tso(struct bge_softc *sc, struct mbuf *m, uint16_t *mss, uint16_t *flags) argument
5161 bge_encap(struct bge_softc *sc, struct mbuf **m_head, uint32_t *txidx) argument
5329 struct bge_softc *sc; local
5379 bge_start_tx(struct bge_softc *sc, uint32_t prodidx) argument
5403 struct bge_softc *sc; local
5412 bge_init_locked(struct bge_softc *sc) argument
5591 struct bge_softc *sc = xsc; local
5604 struct bge_softc *sc = if_getsoftc(ifp); local
5617 struct bge_softc *sc = if_getsoftc(ifp); local
5702 struct bge_softc *sc = if_getsoftc(ifp); local
5742 struct bge_softc *sc = if_getsoftc(ifp); local
5899 bge_watchdog(struct bge_softc *sc) argument
5947 bge_stop_block(struct bge_softc *sc, bus_size_t reg, uint32_t bit) argument
5965 bge_stop(struct bge_softc *sc) argument
6067 struct bge_softc *sc; local
6080 struct bge_softc *sc; local
6093 struct bge_softc *sc; local
6110 bge_link_upd(struct bge_softc *sc) argument
6231 bge_add_sysctls(struct bge_softc *sc) argument
6308 bge_add_sysctl_stats(struct bge_softc *sc, struct sysctl_ctx_list *ctx, struct sysctl_oid_list *parent) argument
6437 bge_add_sysctl_stats_regs(struct bge_softc *sc, struct sysctl_ctx_list *ctx, struct sysctl_oid_list *parent) argument
6534 struct bge_softc *sc; local
6549 struct bge_softc *sc; local
6622 struct bge_softc *sc; local
6644 struct bge_softc *sc; local
6666 struct bge_softc *sc; local
6687 bge_get_eaddr_fw(struct bge_softc *sc, uint8_t ether_addr[]) argument
6693 bge_get_eaddr_mem(struct bge_softc *sc, uint8_t ether_addr[]) argument
6712 bge_get_eaddr_nvram(struct bge_softc *sc, uint8_t ether_addr[]) argument
6724 bge_get_eaddr_eeprom(struct bge_softc *sc, uint8_t ether_addr[]) argument
6735 bge_get_eaddr(struct bge_softc *sc, uint8_t eaddr[]) argument
6757 struct bge_softc *sc; local
6780 struct bge_softc *sc; local
6810 struct bge_softc *sc; local
6829 struct bge_softc *sc; local
[all...]
/freebsd-current/sys/dev/iicbus/controller/cadence/
H A Dcdnc_i2c.c104 #define I2C_SC_LOCK(sc) mtx_lock(&(sc)->sc_mtx)
105 #define I2C_SC_UNLOCK(sc) mtx_unlock(&(sc)->sc_mtx)
106 #define I2C_SC_LOCK_INIT(sc) \
107 mtx_init(&(sc)->sc_mtx, device_get_nameunit((sc)->dev), NULL, MTX_DEF)
108 #define I2C_SC_LOCK_DESTROY(sc) mtx_destroy(&(sc)->sc_mtx)
109 #define I2C_SC_ASSERT_LOCKED(sc) mtx_asser
173 cdnc_i2c_set_freq(struct cdnc_i2c_softc *sc) argument
233 cdnc_i2c_init_hw(struct cdnc_i2c_softc *sc) argument
253 cdnc_i2c_errs(struct cdnc_i2c_softc *sc, uint16_t istat) argument
283 struct cdnc_i2c_softc *sc = device_get_softc(dev); local
302 struct cdnc_i2c_softc *sc = (struct cdnc_i2c_softc *)arg; local
327 cdnc_i2c_xfer_rd(struct cdnc_i2c_softc *sc, struct iic_msg *msg) argument
407 cdnc_i2c_xfer_wr(struct cdnc_i2c_softc *sc, struct iic_msg *msg) argument
472 struct cdnc_i2c_softc *sc = device_get_softc(dev); local
506 struct cdnc_i2c_softc *sc = device_get_softc(dev); local
544 struct cdnc_i2c_softc *sc; local
626 struct cdnc_i2c_softc *sc = device_get_softc(dev); local
[all...]
/freebsd-current/sys/dev/sound/pci/
H A Dmaestro3.c270 #define m3_rd_1(sc, regno) bus_space_read_1(sc->st, sc->sh, regno)
271 #define m3_rd_2(sc, regno) bus_space_read_2(sc->st, sc->sh, regno)
272 #define m3_rd_4(sc, regno) bus_space_read_4(sc->st, sc->sh, regno)
273 #define m3_wr_1(sc, regn
286 m3_rd_assp(struct sc_info *sc, u_int16_t region, u_int16_t index) argument
294 m3_wr_assp(struct sc_info *sc, u_int16_t region, u_int16_t index, u_int16_t data) argument
303 m3_wait(struct sc_info *sc) argument
322 struct sc_info *sc = (struct sc_info *)devinfo; local
336 struct sc_info *sc = (struct sc_info *)devinfo; local
356 struct sc_info *sc = (struct sc_info *)devinfo; local
376 struct sc_info *sc = devinfo; local
519 struct sc_info *sc = ch->parent; local
543 struct sc_info *sc = ch->parent; local
571 struct sc_info *sc = ch->parent; local
605 struct sc_info *sc = ch->parent; local
619 m3_chan_active(struct sc_info *sc) argument
638 struct sc_info *sc = ch->parent; local
709 struct sc_info *sc = ch->parent; local
727 struct sc_info *sc = ch->parent; local
753 struct sc_info *sc = devinfo; local
893 struct sc_info *sc = ch->parent; local
917 struct sc_info *sc = ch->parent; local
944 struct sc_info *sc = ch->parent; local
978 struct sc_info *sc = ch->parent; local
995 struct sc_info *sc = ch->parent; local
1061 struct sc_info *sc = ch->parent; local
1079 struct sc_info *sc = ch->parent; local
1105 struct sc_info *sc = (struct sc_info *)p; local
1196 m3_power(struct sc_info *sc, int state) argument
1212 m3_init(struct sc_info *sc) argument
1289 m3_uninit(struct sc_info *sc) argument
1317 struct sc_info *sc; local
1480 struct sc_info *sc = pcm_getdevinfo(dev); local
1508 struct sc_info *sc = pcm_getdevinfo(dev); local
1550 struct sc_info *sc = pcm_getdevinfo(dev); local
1610 struct sc_info *sc = pcm_getdevinfo(dev); local
1622 m3_assp_halt(struct sc_info *sc) argument
1638 m3_config(struct sc_info *sc) argument
1692 m3_enable_ints(struct sc_info *sc) argument
1702 m3_amp_enable(struct sc_info *sc) argument
1733 m3_codec_reset(struct sc_info *sc) argument
[all...]
H A Dhdspe.c112 struct sc_info *sc; local
119 sc = (struct sc_info *)p;
121 snd_mtxlock(sc->lock);
123 status = hdspe_read_1(sc, HDSPE_STATUS_REG);
125 if ((err = device_get_children(sc->dev, &devlist, &devcount)) != 0)
134 hdspe_write_1(sc, HDSPE_INTERRUPT_ACK, 0);
138 snd_mtxunlock(sc->lock);
145 device_printf(sc->dev, "hdspe_dmapsetmap()\n");
150 hdspe_alloc_resources(struct sc_info *sc) argument
154 sc
232 hdspe_map_dmabuf(struct sc_info *sc) argument
251 struct sc_info *sc = oidp->oid_arg1; local
286 struct sc_info *sc = oidp->oid_arg1; local
311 struct sc_info *sc; local
362 struct sc_info *sc; local
402 struct sc_info *sc; local
431 struct sc_info *sc; local
494 hdspe_init(struct sc_info *sc) argument
541 struct sc_info *sc; local
629 hdspe_dmafree(struct sc_info *sc) argument
642 struct sc_info *sc; local
[all...]
/freebsd-current/contrib/bsnmp/tests/
H A Dsnmp_parse_server.cc15 try_parse(struct snmp_client *sc, const char *str) argument
17 const int r = snmp_parse_server(sc, str);
19 std::cout << "snmp_parse_server: " << sc->error << "\n";
25 struct snmp_client sc; variable in typeref:struct:snmp_client
26 snmp_client_init(&sc); variable
28 REQUIRE(try_parse(&sc, "") == 0);
29 REQUIRE(sc.trans == SNMP_TRANS_UDP);
30 REQUIRE(sc.chost == ""s);
31 REQUIRE(sc.cport == "snmp"s);
32 REQUIRE(sc
37 struct snmp_client sc; variable in typeref:struct:snmp_client
38 snmp_client_init(&sc); variable
88 struct snmp_client sc; variable in typeref:struct:snmp_client
89 snmp_client_init(&sc); variable
148 struct snmp_client sc; variable in typeref:struct:snmp_client
149 snmp_client_init(&sc); variable
205 struct snmp_client sc; variable in typeref:struct:snmp_client
206 snmp_client_init(&sc); variable
240 struct snmp_client sc; variable in typeref:struct:snmp_client
241 snmp_client_init(&sc); variable
306 struct snmp_client sc; variable in typeref:struct:snmp_client
307 snmp_client_init(&sc); variable
392 struct snmp_client sc; variable in typeref:struct:snmp_client
393 snmp_client_init(&sc); variable
447 struct snmp_client sc; variable in typeref:struct:snmp_client
448 snmp_client_init(&sc); variable
487 struct snmp_client sc; variable in typeref:struct:snmp_client
488 snmp_client_init(&sc); variable
[all...]
/freebsd-current/sys/dev/rtwn/rtl8188e/
H A Dr88e_calib.c66 r88e_iq_calib_chain(struct rtwn_softc *sc, uint16_t tx[2], uint16_t rx[2]) argument
71 rtwn_bb_write(sc, R92C_FPGA0_IQK, 0);
72 rtwn_rf_write(sc, 0, R88E_RF_WE_LUT, 0x800a0);
73 rtwn_rf_write(sc, 0, R92C_RF_RCK_OS, 0x30000);
74 rtwn_rf_write(sc, 0, R92C_RF_TXPA_G(0), 0xf);
75 rtwn_rf_write(sc, 0, R92C_RF_TXPA_G(1), 0xf117b);
76 rtwn_bb_write(sc, R92C_FPGA0_IQK, 0x80800000);
79 rtwn_bb_write(sc, R92C_TX_IQK, 0x01007c00);
80 rtwn_bb_write(sc, R92C_RX_IQK, 0x81004800);
83 rtwn_bb_write(sc, R92C_TX_IQK_TON
156 r88e_iq_calib_run(struct rtwn_softc *sc, int n, uint16_t tx[2], uint16_t rx[2], struct r88e_iq_cal_reg_vals *vals) argument
289 r88e_iq_calib_compare_results(struct rtwn_softc *sc, uint16_t tx1[2], uint16_t rx1[2], uint16_t tx2[2], uint16_t rx2[2]) argument
309 r88e_iq_calib_write_results(struct rtwn_softc *sc, uint16_t tx[2], uint16_t rx[2]) argument
352 r88e_iq_calib(struct rtwn_softc *sc) argument
381 r88e_temp_measure(struct rtwn_softc *sc) argument
387 r88e_temp_read(struct rtwn_softc *sc) argument
[all...]
/freebsd-current/sys/dev/beri/
H A Dberi_ring.c107 get_control_reg(struct beri_softc *sc, int dir) argument
117 offset = dir ? sc->control_write : sc->control_read;
118 ((uint32_t *)dst)[0] = READ4(sc, offset);
119 ((uint32_t *)dst)[1] = READ4(sc, offset + 4);
128 set_control_reg(struct beri_softc *sc, int dir, control_reg_t *c) argument
140 offset = dir ? sc->control_write : sc->control_read;
141 WRITE4(sc, offset + 0, ((uint32_t *)src)[0]);
142 WRITE4(sc, offse
146 get_stock(struct beri_softc *sc, int dir, control_reg_t *c) argument
161 struct beri_softc *sc; local
181 struct beri_softc *sc; local
202 struct beri_softc *sc; local
243 struct beri_softc *sc; local
261 struct beri_softc *sc; local
305 struct beri_softc *sc; local
333 struct beri_softc *sc; local
361 struct beri_softc *sc; local
385 struct beri_softc *sc; local
417 parse_fdt(struct beri_softc *sc) argument
478 struct beri_softc *sc; local
[all...]
/freebsd-current/sys/dev/mlx/
H A Dmlx.c68 static int mlx_v3_tryqueue(struct mlx_softc *sc, struct mlx_command *mc);
69 static int mlx_v3_findcomplete(struct mlx_softc *sc, u_int8_t *slot, u_int16_t *status);
70 static void mlx_v3_intaction(struct mlx_softc *sc, int action);
71 static int mlx_v3_fw_handshake(struct mlx_softc *sc, int *error, int *param1, int *param2, int first);
73 static int mlx_v4_tryqueue(struct mlx_softc *sc, struct mlx_command *mc);
74 static int mlx_v4_findcomplete(struct mlx_softc *sc, u_int8_t *slot, u_int16_t *status);
75 static void mlx_v4_intaction(struct mlx_softc *sc, int action);
76 static int mlx_v4_fw_handshake(struct mlx_softc *sc, int *error, int *param1, int *param2, int first);
78 static int mlx_v5_tryqueue(struct mlx_softc *sc, struct mlx_command *mc);
79 static int mlx_v5_findcomplete(struct mlx_softc *sc, u_int8_
162 mlx_free(struct mlx_softc *sc) argument
225 struct mlx_softc *sc = (struct mlx_softc *)arg; local
234 mlx_sglist_map(struct mlx_softc *sc) argument
303 mlx_attach(struct mlx_softc *sc) argument
521 mlx_startup(struct mlx_softc *sc) argument
589 struct mlx_softc *sc = device_get_softc(dev); local
634 struct mlx_softc *sc = device_get_softc(dev); local
644 mlx_shutdown_locked(struct mlx_softc *sc) argument
683 struct mlx_softc *sc = device_get_softc(dev); local
706 struct mlx_softc *sc = device_get_softc(dev); local
725 struct mlx_softc *sc = (struct mlx_softc *)arg; local
740 mlx_submit_buf(struct mlx_softc *sc, struct bio *bp) argument
758 struct mlx_softc *sc = dev->si_drv1; local
774 struct mlx_softc *sc = dev->si_drv1; local
790 struct mlx_softc *sc = dev->si_drv1; local
998 mlx_submit_ioctl(struct mlx_softc *sc, struct mlx_sysdrive *drive, u_long cmd, caddr_t addr, int32_t flag, struct thread *td) argument
1068 struct mlx_softc *sc = (struct mlx_softc *)data; local
1142 struct mlx_softc *sc = mc->mc_sc; local
1284 mlx_periodic_eventlog_poll(struct mlx_softc *sc) argument
1345 struct mlx_softc *sc = mc->mc_sc; local
1419 struct mlx_softc *sc = mc->mc_sc; local
1468 mlx_pause_action(struct mlx_softc *sc) argument
1528 struct mlx_softc *sc = mc->mc_sc; local
1554 struct mlx_softc *sc; local
1594 mlx_enquire(struct mlx_softc *sc, int command, size_t bufsize, void (* complete)(struct mlx_command *mc)) argument
1649 mlx_flush(struct mlx_softc *sc) argument
1692 mlx_check(struct mlx_softc *sc, int drive) argument
1736 mlx_rebuild(struct mlx_softc *sc, int channel, int target) argument
1781 struct mlx_softc *sc = mc->mc_sc; local
1816 struct mlx_softc *sc = mc->mc_sc; local
1846 struct mlx_softc *sc; local
1914 mlx_startio(struct mlx_softc *sc) argument
1964 struct mlx_softc *sc = mc->mc_sc; local
2047 mlx_user_command(struct mlx_softc *sc, struct mlx_usercommand *mu) argument
2142 struct mlx_softc *sc = mc->mc_sc; local
2191 struct mlx_softc *sc = mc->mc_sc; local
2229 struct mlx_softc *sc = mc->mc_sc; local
2253 struct mlx_softc *sc = mc->mc_sc; local
2296 mlx_done(struct mlx_softc *sc, int startio) argument
2346 mlx_complete(struct mlx_softc *sc) argument
2411 mlx_alloccmd(struct mlx_softc *sc) argument
2459 struct mlx_softc *sc = mc->mc_sc; local
2478 mlx_v3_tryqueue(struct mlx_softc *sc, struct mlx_command *mc) argument
2503 mlx_v3_findcomplete(struct mlx_softc *sc, u_int8_t *slot, u_int16_t *status) argument
2526 mlx_v3_intaction(struct mlx_softc *sc, int action) argument
2549 mlx_v3_fw_handshake(struct mlx_softc *sc, int *error, int *param1, int *param2, int first) argument
2593 mlx_v4_tryqueue(struct mlx_softc *sc, struct mlx_command *mc) argument
2622 mlx_v4_findcomplete(struct mlx_softc *sc, u_int8_t *slot, u_int16_t *status) argument
2645 mlx_v4_intaction(struct mlx_softc *sc, int action) argument
2668 mlx_v4_fw_handshake(struct mlx_softc *sc, int *error, int *param1, int *param2, int first) argument
2712 mlx_v5_tryqueue(struct mlx_softc *sc, struct mlx_command *mc) argument
2737 mlx_v5_findcomplete(struct mlx_softc *sc, u_int8_t *slot, u_int16_t *status) argument
2760 mlx_v5_intaction(struct mlx_softc *sc, int action) argument
2783 mlx_v5_fw_handshake(struct mlx_softc *sc, int *error, int *param1, int *param2, int first) argument
2929 mlx_describe_controller(struct mlx_softc *sc) argument
3003 mlx_fw_message(struct mlx_softc *sc, int error, int param1, int param2) argument
3057 mlx_findunit(struct mlx_softc *sc, int unit) argument
[all...]
/freebsd-current/sys/dev/usb/serial/
H A Dusb_serial.c265 ucom_attach(struct ucom_super_softc *ssc, struct ucom_softc *sc, argument
272 if ((sc == NULL) ||
305 sc[subunit].sc_subunit = subunit;
306 sc[subunit].sc_super = ssc;
307 sc[subunit].sc_mtx = mtx;
308 sc[subunit].sc_parent = parent;
309 sc[subunit].sc_callback = callback;
311 error = ucom_attach_tty(ssc, &sc[subunit]);
313 ucom_detach(ssc, &sc[0]);
320 sc[subuni
334 ucom_detach(struct ucom_super_softc *ssc, struct ucom_softc *sc) argument
414 ucom_attach_tty(struct ucom_super_softc *ssc, struct ucom_softc *sc) argument
496 ucom_detach_tty(struct ucom_super_softc *ssc, struct ucom_softc *sc) argument
596 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
643 ucom_shutdown(struct ucom_softc *sc) argument
665 ucom_cfg_is_gone(struct ucom_softc *sc) argument
677 struct ucom_softc *sc = task->sc; local
699 ucom_start_transfers(struct ucom_softc *sc) argument
721 struct ucom_softc *sc = task->sc; local
743 struct ucom_softc *sc = tty_softc(tp); local
811 struct ucom_softc *sc = task->sc; local
827 struct ucom_softc *sc = tty_softc(tp); local
853 struct ucom_softc *sc = tty_softc(tp); local
899 struct ucom_softc *sc = tty_softc(tp); local
945 struct ucom_softc *sc = tty_softc(tp); local
1000 struct ucom_softc *sc = task->sc; local
1063 ucom_line_state(struct ucom_softc *sc, uint8_t set_bits, uint8_t clear_bits) argument
1087 ucom_ring(struct ucom_softc *sc, uint8_t onoff) argument
1098 ucom_break(struct ucom_softc *sc, uint8_t onoff) argument
1109 ucom_dtr(struct ucom_softc *sc, uint8_t onoff) argument
1120 ucom_rts(struct ucom_softc *sc, uint8_t onoff) argument
1135 struct ucom_softc *sc = task->sc; local
1227 ucom_status_change(struct ucom_softc *sc) argument
1249 struct ucom_softc *sc = task->sc; local
1267 struct ucom_softc *sc = tty_softc(tp); local
1340 struct ucom_softc *sc = tty_softc(tp); local
1356 struct ucom_softc *sc = tty_softc(tp); local
1382 ucom_get_data(struct ucom_softc *sc, struct usb_page_cache *pc, uint32_t offset, uint32_t len, uint32_t *actlen) argument
1460 ucom_put_data(struct ucom_softc *sc, struct usb_page_cache *pc, uint32_t offset, uint32_t len) argument
1573 struct ucom_softc *sc = xsc; local
1621 struct ucom_softc *sc = ucom_cons_softc; local
1652 struct ucom_softc *sc = ucom_cons_softc; local
[all...]
/freebsd-current/sys/dev/dwwdt/
H A Ddwwdt.c61 #define DWWDT_READ4(sc, reg) bus_read_4((sc)->sc_mem_res, (reg))
62 #define DWWDT_WRITE4(sc, reg, val) \
63 bus_write_4((sc)->sc_mem_res, (reg), (val))
118 static inline void dwwdt_start(struct dwwdt_softc *sc);
119 static inline bool dwwdt_started(const struct dwwdt_softc *sc);
120 static inline void dwwdt_stop(struct dwwdt_softc *sc);
121 static inline void dwwdt_set_timeout(const struct dwwdt_softc *sc, int val);
131 const struct dwwdt_softc *sc = device_get_softc(dev); local
134 device_printf(dev, " CR: %08x\n", DWWDT_READ4(sc, DWWDT_C
144 dwwdt_started(const struct dwwdt_softc *sc) argument
152 dwwdt_start(struct dwwdt_softc *sc) argument
164 dwwdt_stop(struct dwwdt_softc *sc) argument
172 dwwdt_set_timeout(const struct dwwdt_softc *sc, int val) argument
182 struct dwwdt_softc *sc = arg; local
203 struct dwwdt_softc *sc = arg; local
244 struct dwwdt_softc *sc; local
311 struct dwwdt_softc *sc = device_get_softc(dev); local
346 struct dwwdt_softc *sc; local
[all...]
/freebsd-current/sys/dev/ath/
H A Dif_ath_rx_edma.c149 static int ath_edma_rxfifo_alloc(struct ath_softc *sc, HAL_RX_QUEUE qtype,
151 static int ath_edma_rxfifo_flush(struct ath_softc *sc, HAL_RX_QUEUE qtype);
152 static void ath_edma_rxbuf_free(struct ath_softc *sc, struct ath_buf *bf);
153 static void ath_edma_recv_proc_queue(struct ath_softc *sc,
155 static int ath_edma_recv_proc_deferred_queue(struct ath_softc *sc,
159 ath_edma_stoprecv(struct ath_softc *sc, int dodelay) argument
161 struct ath_hal *ah = sc->sc_ah;
163 DPRINTF(sc, ATH_DEBUG_EDMA_RX, "%s: called, dodelay=%d\n",
166 ATH_RX_LOCK(sc);
175 sc
205 ath_edma_reinit_fifo(struct ath_softc *sc, HAL_RX_QUEUE qtype) argument
242 ath_edma_startrecv(struct ath_softc *sc) argument
312 ath_edma_recv_sched_queue(struct ath_softc *sc, HAL_RX_QUEUE qtype, int dosched) argument
335 ath_edma_recv_sched(struct ath_softc *sc, int dosched) argument
359 ath_edma_recv_flush(struct ath_softc *sc) argument
409 ath_edma_recv_proc_queue(struct ath_softc *sc, HAL_RX_QUEUE qtype, int dosched) argument
526 ath_edma_flush_deferred_queue(struct ath_softc *sc) argument
548 ath_edma_recv_proc_deferred_queue(struct ath_softc *sc, HAL_RX_QUEUE qtype, int dosched) argument
618 struct ath_softc *sc = (struct ath_softc *) arg; local
675 ath_edma_rxbuf_init(struct ath_softc *sc, struct ath_buf *bf) argument
754 ath_edma_rxbuf_alloc(struct ath_softc *sc) argument
789 ath_edma_rxbuf_free(struct ath_softc *sc, struct ath_buf *bf) argument
815 ath_edma_rxfifo_alloc(struct ath_softc *sc, HAL_RX_QUEUE qtype, int nbufs) argument
882 ath_edma_rxfifo_flush(struct ath_softc *sc, HAL_RX_QUEUE qtype) argument
916 ath_edma_setup_rxfifo(struct ath_softc *sc, HAL_RX_QUEUE qtype) argument
956 ath_edma_rxfifo_free(struct ath_softc *sc, HAL_RX_QUEUE qtype) argument
970 ath_edma_dma_rxsetup(struct ath_softc *sc) argument
991 ath_edma_dma_rxteardown(struct ath_softc *sc) argument
1012 ath_recv_setup_edma(struct ath_softc *sc) argument
[all...]
/freebsd-current/sys/dev/flash/
H A Dcqspi.c145 struct cqspi_softc *sc; local
148 sc = arg;
150 pending = READ4(sc, CQSPI_IRQSTAT);
159 WRITE4(sc, CQSPI_IRQSTAT, pending);
166 struct cqspi_softc *sc; local
171 sc = arg;
178 ret = xdma_dequeue_bio(sc->xchan_tx, &bp, &st);
182 sc->write_op_done = 1;
187 device_printf(sc->dev,
190 wakeup(&sc
199 struct cqspi_softc *sc; local
229 cqspi_wait_for_completion(struct cqspi_softc *sc) argument
252 cqspi_cmd_write_addr(struct cqspi_softc *sc, uint8_t cmd, uint32_t addr, uint32_t len) argument
275 cqspi_cmd_write(struct cqspi_softc *sc, uint8_t cmd, uint8_t *addr, uint32_t len) argument
292 cqspi_cmd_read(struct cqspi_softc *sc, uint8_t cmd, uint8_t *addr, uint32_t len) argument
334 cqspi_wait_ready(struct cqspi_softc *sc) argument
349 struct cqspi_softc *sc; local
363 struct cqspi_softc *sc; local
374 cqspi_wait_idle(struct cqspi_softc *sc) argument
391 struct cqspi_softc *sc; local
412 struct cqspi_softc *sc; local
469 struct cqspi_softc *sc; local
518 cqspi_init(struct cqspi_softc *sc) argument
618 struct cqspi_softc *sc; local
648 struct cqspi_softc *sc; local
[all...]
/freebsd-current/sys/dev/ral/
H A Drt2560.c66 #define RT2560_RSSI(sc, rssi) \
67 ((rssi) > (RT2560_NOISE_FLOOR + (sc)->rssi_corr) ? \
68 ((rssi) - RT2560_NOISE_FLOOR - (sc)->rssi_corr) : 0)
72 #define DPRINTF(sc, fmt, ...) do { \
73 if (sc->sc_debug > 0) \
76 #define DPRINTFN(sc, n, fmt, ...) do { \
77 if (sc->sc_debug >= (n)) \
81 #define DPRINTF(sc, fmt, ...)
82 #define DPRINTFN(sc, n, fmt, ...)
204 struct rt2560_softc *sc local
340 struct rt2560_softc *sc = xsc; local
365 struct rt2560_softc *sc = ic->ic_softc; local
433 struct rt2560_softc *sc = xsc; local
451 rt2560_alloc_tx_ring(struct rt2560_softc *sc, struct rt2560_tx_ring *ring, int count) argument
518 rt2560_reset_tx_ring(struct rt2560_softc *sc, struct rt2560_tx_ring *ring) argument
552 rt2560_free_tx_ring(struct rt2560_softc *sc, struct rt2560_tx_ring *ring) argument
593 rt2560_alloc_rx_ring(struct rt2560_softc *sc, struct rt2560_rx_ring *ring, int count) argument
688 rt2560_reset_rx_ring(struct rt2560_softc *sc, struct rt2560_rx_ring *ring) argument
704 rt2560_free_rx_ring(struct rt2560_softc *sc, struct rt2560_rx_ring *ring) argument
745 struct rt2560_softc *sc = vap->iv_ic->ic_softc; local
799 rt2560_eeprom_read(struct rt2560_softc *sc, uint8_t addr) argument
857 rt2560_encryption_intr(struct rt2560_softc *sc) argument
906 rt2560_tx_intr(struct rt2560_softc *sc) argument
1002 rt2560_prio_intr(struct rt2560_softc *sc) argument
1084 rt2560_decryption_intr(struct rt2560_softc *sc) argument
1221 rt2560_rx_intr(struct rt2560_softc *sc) argument
1283 rt2560_beacon_expire(struct rt2560_softc *sc) argument
1315 rt2560_wakeup_expire(struct rt2560_softc *sc) argument
1323 struct rt2560_softc *sc = arg; local
1397 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
1445 rt2560_tx_bcn(struct rt2560_softc *sc, struct mbuf *m0, struct ieee80211_node *ni) argument
1498 rt2560_tx_mgt(struct rt2560_softc *sc, struct mbuf *m0, struct ieee80211_node *ni) argument
1587 rt2560_sendprot(struct rt2560_softc *sc, const struct mbuf *m, struct ieee80211_node *ni, int prot, int rate) argument
1641 rt2560_tx_raw(struct rt2560_softc *sc, struct mbuf *m0, struct ieee80211_node *ni, const struct ieee80211_bpf_params *params) argument
1720 rt2560_tx_data(struct rt2560_softc *sc, struct mbuf *m0, struct ieee80211_node *ni) argument
1862 struct rt2560_softc *sc = ic->ic_softc; local
1882 rt2560_start(struct rt2560_softc *sc) argument
1905 struct rt2560_softc *sc = arg; local
1930 struct rt2560_softc *sc = ic->ic_softc; local
1948 rt2560_bbp_write(struct rt2560_softc *sc, uint8_t reg, uint8_t val) argument
1970 rt2560_bbp_read(struct rt2560_softc *sc, uint8_t reg) argument
2000 rt2560_rf_write(struct rt2560_softc *sc, uint8_t reg, uint32_t val) argument
2026 rt2560_set_chan(struct rt2560_softc *sc, struct ieee80211_channel *c) argument
2128 struct rt2560_softc *sc = ic->ic_softc; local
2146 struct rt2560_softc *sc = ic->ic_softc; local
2180 rt2560_enable_tsf_sync(struct rt2560_softc *sc) argument
2213 rt2560_enable_tsf(struct rt2560_softc *sc) argument
2221 rt2560_update_plcp(struct rt2560_softc *sc) argument
2251 struct rt2560_softc *sc = ic->ic_softc; local
2298 rt2560_set_basicrates(struct rt2560_softc *sc, const struct ieee80211_rateset *rs) argument
2322 rt2560_update_led(struct rt2560_softc *sc, int led1, int led2) argument
2332 rt2560_set_bssid(struct rt2560_softc *sc, const uint8_t *bssid) argument
2346 rt2560_set_macaddr(struct rt2560_softc *sc, const uint8_t *addr) argument
2360 rt2560_get_macaddr(struct rt2560_softc *sc, uint8_t *addr) argument
2378 struct rt2560_softc *sc = ic->ic_softc; local
2409 rt2560_read_config(struct rt2560_softc *sc) argument
2455 struct rt2560_softc *sc = ic->ic_softc; local
2465 struct rt2560_softc *sc = ic->ic_softc; local
2474 rt2560_bbp_init(struct rt2560_softc *sc) argument
2507 rt2560_set_txantenna(struct rt2560_softc *sc, int antenna) argument
2534 rt2560_set_rxantenna(struct rt2560_softc *sc, int antenna) argument
2554 rt2560_init_locked(struct rt2560_softc *sc) argument
2641 struct rt2560_softc *sc = priv; local
2653 rt2560_stop_locked(struct rt2560_softc *sc) argument
2693 struct rt2560_softc *sc = arg; local
2705 struct rt2560_softc *sc = ic->ic_softc; local
[all...]

Completed in 375 milliseconds

1234567891011>>