Searched refs:sc (Results 451 - 475 of 2317) sorted by relevance

<<11121314151617181920>>

/freebsd-11-stable/sys/dev/if_ndis/
H A Dif_ndis_pccard.c180 ndis_alloc_amem(struct ndis_softc *sc) argument
185 sc->ndis_res_am = bus_alloc_resource_anywhere(sc->ndis_dev,
188 if (sc->ndis_res_am == NULL) {
189 device_printf(sc->ndis_dev,
193 sc->ndis_rescnt++;
194 resource_list_add(&sc->ndis_rl, SYS_RES_MEMORY, rid,
195 rman_get_start(sc->ndis_res_am), rman_get_end(sc->ndis_res_am),
196 rman_get_size(sc
229 struct ndis_softc *sc; local
314 struct ndis_softc *sc = device_get_softc(dev); local
331 struct ndis_softc *sc; local
[all...]
/freebsd-11-stable/sys/sparc64/pci/
H A Dschizo.c89 static int schizo_intr_register(struct schizo_softc *sc, u_int ino);
178 #define SCHIZO_SPC_BARRIER(spc, sc, offs, len, flags) \
179 bus_barrier((sc)->sc_mem_res[(spc)], (offs), (len), (flags))
180 #define SCHIZO_SPC_READ_8(spc, sc, offs) \
181 bus_read_8((sc)->sc_mem_res[(spc)], (offs))
182 #define SCHIZO_SPC_WRITE_8(spc, sc, offs, v) \
183 bus_write_8((sc)->sc_mem_res[(spc)], (offs), (v))
186 #define SCHIZO_SPC_SET(spc, sc, offs, reg, v) \
187 SCHIZO_SPC_WRITE_8((spc), (sc), (offs), (v))
189 #define SCHIZO_SPC_SET(spc, sc, off
267 struct schizo_softc *asc, *sc, *osc; local
702 schizo_set_intr(struct schizo_softc *sc, u_int index, u_int ino, driver_filter_t handler) argument
722 schizo_intr_register(struct schizo_softc *sc, u_int ino) argument
749 schizo_get_intrmap(struct schizo_softc *sc, u_int ino, bus_addr_t *intrmapptr, bus_addr_t *intrclrptr) argument
790 struct schizo_softc *sc = arg; local
867 struct schizo_softc *sc = arg; local
885 struct schizo_softc *sc = arg; local
912 struct schizo_softc *sc = arg; local
925 struct schizo_softc *sc = arg; local
933 schizo_iommu_init(struct schizo_softc *sc, int tsbsize, uint32_t dvmabase) argument
954 struct schizo_softc *sc; local
968 struct schizo_softc *sc; local
1010 struct schizo_softc *sc = sis->sis_sc; local
1072 struct schizo_softc *sc = sis->sis_sc; local
1153 struct schizo_softc *sc; local
1201 struct schizo_softc *sc; local
1214 struct schizo_softc *sc; local
1250 struct schizo_softc *sc; local
[all...]
/freebsd-11-stable/sys/arm/freescale/imx/
H A Dimx_i2c.c147 #define DEVICE_DEBUGF(sc, lvl, fmt, args...) \
148 if ((lvl) <= (sc)->debug) \
149 device_printf((sc)->dev, fmt, ##args)
151 #define DEBUGF(sc, lvl, fmt, args...) \
152 if ((lvl) <= (sc)->debug) \
209 i2c_write_reg(struct i2c_softc *sc, bus_size_t off, uint8_t val) argument
212 bus_write_1(sc->res, off, val);
216 i2c_read_reg(struct i2c_softc *sc, bus_size_t off) argument
219 return (bus_read_1(sc->res, off));
223 i2c_flag_set(struct i2c_softc *sc, bus_size_ argument
234 wait_for_busbusy(struct i2c_softc *sc, int wantbusy) argument
250 wait_for_xfer(struct i2c_softc *sc, int checkack) argument
288 i2c_error_handler(struct i2c_softc *sc, int error) argument
334 i2c_recover_bus(struct i2c_softc *sc) argument
381 struct i2c_softc *sc; local
459 struct i2c_softc *sc; local
481 struct i2c_softc *sc; local
507 struct i2c_softc *sc; local
531 struct i2c_softc *sc; local
556 struct i2c_softc *sc; local
570 struct i2c_softc *sc; local
616 struct i2c_softc *sc; local
666 struct i2c_softc *sc; local
[all...]
H A Dimx6_ssi.c217 struct sc_info *sc; member in struct:sc_pcminfo
238 struct sc_info *sc; local
242 sc = scp->sc;
244 if (sc == NULL)
250 snd_mtxlock(sc->lock);
253 snd_mtxunlock(sc->lock);
294 struct sc_info *sc; local
297 sc = scp->sc;
321 struct sc_info *sc = scp->sc; local
350 struct sc_info *sc; local
385 ssi_configure_clock(struct sc_info *sc) argument
401 struct sc_info *sc = scp->sc; local
416 struct sc_info *sc; local
437 find_sdma_controller(struct sc_info *sc) argument
486 struct sc_info *sc; local
527 struct sc_info *sc; local
549 struct sc_info *sc; local
570 struct sc_info *sc; local
611 struct sc_info *sc; local
666 struct sc_info *sc; local
680 setup_ssi(struct sc_info *sc) argument
738 struct sc_info *sc; local
[all...]
/freebsd-11-stable/sys/arm/nvidia/drm2/
H A Dtegra_dc.c64 mtx_sleep(sc, &sc->mtx, 0, "tegra_dc_wait", timeout);
317 dc_setup_clk(struct dc_softc *sc, struct drm_crtc *crtc, argument
342 rv = output->setup_clock(output, sc->clk_dc, pclk);
344 device_printf(sc->dev, "Cannot setup pixel clock: %llu\n",
349 rv = clk_get_freq(sc->clk_dc, &freq);
358 dc_setup_window(struct dc_softc *sc, unsigned int index, struct dc_window *win) argument
425 LOCK(sc);
429 WR4(sc, DC_CMD_DISPLAY_WINDOW_HEADER, val);
432 WR4(sc, DC_WIN_POSITIO
515 struct dc_softc *sc; local
554 struct dc_softc *sc; local
616 dc_set_base(struct dc_softc *sc, int x, int y, struct tegra_fb *fb) argument
647 struct dc_softc *sc; local
722 struct dc_softc *sc; local
744 struct dc_softc *sc; local
776 struct dc_softc *sc; local
846 struct dc_softc *sc; local
863 struct dc_softc *sc; local
878 dc_finish_page_flip(struct dc_softc *sc) argument
922 struct dc_softc *sc; local
948 struct dc_softc *sc; local
981 struct dc_softc *sc; local
1070 struct dc_softc *sc; local
1105 dc_init_planes(struct dc_softc *sc, struct tegra_drm *drm) argument
1128 struct dc_softc *sc; local
1145 struct dc_softc *sc; local
1162 struct dc_softc *sc; local
1182 struct dc_softc *sc; local
1200 struct dc_softc *sc; local
1247 struct dc_softc *sc; local
1259 get_fdt_resources(struct dc_softc *sc, phandle_t node) argument
1290 enable_fdt_resources(struct dc_softc *sc) argument
1328 struct dc_softc *sc; local
1403 struct dc_softc *sc; local
[all...]
/freebsd-11-stable/sys/dev/acpica/
H A Dacpi_smbat.c125 struct acpi_smbat_softc *sc; local
128 sc = device_get_softc(dev);
133 sc->sb_base_addr = (base >> 8) & 0xff;
136 sc->ec_dev = devclass_get_device(devclass_find("acpi_ec"), 0);
137 if (sc->ec_dev == NULL) {
142 timespecclear(&sc->bix_lastupdated);
143 timespecclear(&sc->bst_lastupdated);
189 acpi_smbus_read_2(struct acpi_smbat_softc *sc, uint8_t addr, uint8_t cmd, argument
201 error = ACPI_EC_WRITE(sc->ec_dev, sc
257 acpi_smbus_read_multi_1(struct acpi_smbat_softc *sc, uint8_t addr, uint8_t cmd, uint8_t *ptr, uint16_t len) argument
346 struct acpi_smbat_softc *sc; local
418 struct acpi_smbat_softc *sc; local
[all...]
/freebsd-11-stable/sys/mips/mediatek/
H A Dmtk_usb_phy.c98 struct mtk_usb_phy_softc *sc = device_get_softc(dev); local
102 if ((sc->socid =
115 struct mtk_usb_phy_softc * sc = device_get_softc(dev); local
120 sc->dev = dev;
149 sc->res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid,
151 if (sc->res == NULL) {
156 sc->res = NULL;
160 switch (sc->socid) {
163 if (sc->res == NULL)
165 sc
190 struct mtk_usb_phy_softc *sc = device_get_softc(dev); local
217 mtk_usb_phy_slew_rate_calibration(struct mtk_usb_phy_softc *sc) argument
266 struct mtk_usb_phy_softc *sc = device_get_softc(dev); local
279 struct mtk_usb_phy_softc *sc = device_get_softc(dev); local
[all...]
/freebsd-11-stable/sys/arm/allwinner/
H A Da10_ehci.c82 #define A10_READ_4(sc, reg) \
83 bus_space_read_4((sc)->sc_io_tag, (sc)->sc_io_hdl, reg)
85 #define A10_WRITE_4(sc, reg, data) \
86 bus_space_write_4((sc)->sc_io_tag, (sc)->sc_io_hdl, reg, data)
92 ehci_softc_t sc; member in struct:aw_ehci_softc
139 ehci_softc_t *sc = &aw_sc->sc; local
149 sc
278 ehci_softc_t *sc = &aw_sc->sc; local
[all...]
/freebsd-11-stable/sys/powerpc/pseries/
H A Dphyp_vscsi.c84 struct vscsi_softc *sc; member in struct:vscsi_xfer
241 static void vscsi_check_response_queue(struct vscsi_softc *sc);
242 static void vscsi_setup_bus(struct vscsi_softc *sc);
244 static void vscsi_srp_login(struct vscsi_softc *sc);
248 static void vscsi_task_management(struct vscsi_softc *sc, union ccb *ccb);
281 struct vscsi_softc *sc; local
285 sc = device_get_softc(dev);
286 if (sc == NULL)
289 sc->dev = dev;
290 mtx_init(&sc
388 struct vscsi_softc *sc; local
415 struct vscsi_softc *sc = cam_sim_softc(sim); local
491 vscsi_srp_login(struct vscsi_softc *sc) argument
536 vscsi_task_management(struct vscsi_softc *sc, union ccb *ccb) argument
716 struct vscsi_softc *sc = xsc; local
728 vscsi_setup_bus(struct vscsi_softc *sc) argument
830 struct vscsi_softc *sc = xsc; local
841 struct vscsi_softc *sc = xp->sc; local
903 struct vscsi_softc *sc = xp->sc; local
921 struct vscsi_softc *sc = cam_sim_softc(sim); local
927 vscsi_check_response_queue(struct vscsi_softc *sc) argument
[all...]
/freebsd-11-stable/sys/dev/aac/
H A Daac_debug.c60 aac_print_queues(struct aac_softc *sc) argument
62 device_printf(sc->aac_dev, "FIB queue header at %p queues at %p\n",
63 &sc->aac_queues->qt_qindex[AAC_HOST_NORM_CMD_QUEUE][0],
64 &sc->aac_queues->qt_HostNormCmdQueue[0]);
65 device_printf(sc->aac_dev, "HOST_NORM_CMD %d/%d (%d)\n",
66 sc->aac_queues->qt_qindex[AAC_HOST_NORM_CMD_QUEUE][
68 sc->aac_queues->qt_qindex[AAC_HOST_NORM_CMD_QUEUE][
71 device_printf(sc->aac_dev, "HOST_HIGH_CMD %d/%d (%d)\n",
72 sc->aac_queues->qt_qindex[AAC_HOST_HIGH_CMD_QUEUE][
74 sc
130 struct aac_softc *sc; local
160 aac_panic(struct aac_softc *sc, char *reason) argument
170 aac_print_fib(struct aac_softc *sc, struct aac_fib *fib, const char *caller) argument
263 aac_print_aif(struct aac_softc *sc, struct aac_aif_command *aif) argument
[all...]
/freebsd-11-stable/sys/dev/aacraid/
H A Daacraid_debug.c70 aacraid_print_queues(struct aac_softc *sc) argument
72 device_printf(sc->aac_dev, "AACQ_FREE %d/%d\n",
73 sc->aac_qstat[AACQ_FREE].q_length, sc->aac_qstat[AACQ_FREE].q_max);
74 device_printf(sc->aac_dev, "AACQ_READY %d/%d\n",
75 sc->aac_qstat[AACQ_READY].q_length,
76 sc->aac_qstat[AACQ_READY].q_max);
77 device_printf(sc->aac_dev, "AACQ_BUSY %d/%d\n",
78 sc->aac_qstat[AACQ_BUSY].q_length, sc
85 aacraid_print_fib(struct aac_softc *sc, struct aac_fib *fib, const char *caller) argument
177 aacraid_print_aif(struct aac_softc *sc, struct aac_aif_command *aif) argument
475 aacraid_get_fw_debug_buffer(struct aac_softc *sc) argument
520 aacraid_fw_printf(struct aac_softc *sc, unsigned long PrintFlags, const char * fmt, ...) argument
618 aacraid_fw_print_mem(struct aac_softc *sc, unsigned long PrintFlags, u_int8_t *Addr, int Count) argument
[all...]
/freebsd-11-stable/sys/netgraph/
H A Dng_source.c120 static void ng_source_mod_counter(sc_p sc,
281 sc_p sc; local
283 sc = malloc(sizeof(*sc), M_NETGRAPH, M_WAITOK | M_ZERO);
285 NG_NODE_SET_PRIVATE(node, sc);
286 sc->node = node;
287 mbufq_init(&sc->snd_queue, 2048);
288 ng_callout_init(&sc->intr_ch);
299 sc_p sc = NG_NODE_PRIVATE(node); local
302 sc
319 sc_p sc = NG_NODE_PRIVATE(NG_HOOK_NODE(hook)); local
350 sc_p sc = NG_NODE_PRIVATE(node); local
555 sc_p sc = NG_NODE_PRIVATE(NG_HOOK_NODE(hook)); local
588 sc_p sc = NG_NODE_PRIVATE(node); local
605 sc_p sc; local
619 ng_source_store_output_ifp(sc_p sc, char *ifname) argument
650 ng_source_set_autosrc(sc_p sc, uint32_t flag) argument
669 ng_source_clr_data(sc_p sc) argument
687 ng_source_start(sc_p sc, uint64_t packets) argument
714 ng_source_stop(sc_p sc) argument
731 sc_p sc = (sc_p)arg1; local
776 ng_source_send(sc_p sc, int tosend, int *sent_p) argument
834 ng_source_packet_mod(sc_p sc, struct mbuf *m, int offset, int len, caddr_t cp, int flags) argument
849 ng_source_mod_counter(sc_p sc, struct ng_source_embed_cnt_info *cnt, struct mbuf *m, int increment) argument
877 ng_source_dup_mod(sc_p sc, struct mbuf *m0, struct mbuf **m_ptr) argument
[all...]
/freebsd-11-stable/sys/dev/wi/
H A Dif_wi.c167 wi_write_val(struct wi_softc *sc, int rid, u_int16_t val) argument
171 return wi_write_rid(sc, rid, &val, sizeof(val));
239 struct wi_softc *sc = device_get_softc(dev); local
240 struct ieee80211com *ic = &sc->sc_ic;
252 sc->sc_firmware_type = WI_NOTYPE;
253 sc->wi_cmd_count = 500;
255 if (wi_reset(sc) != 0) {
261 wi_read_nicid(sc);
262 switch (sc->sc_firmware_type) {
264 if (sc
464 struct wi_softc *sc = device_get_softc(dev); local
489 struct wi_softc *sc = ic->ic_softc; local
549 struct wi_softc *sc = device_get_softc(dev); local
560 struct wi_softc *sc = arg; local
597 wi_enable(struct wi_softc *sc) argument
608 wi_setup_locked(struct wi_softc *sc, int porttype, int mode, const uint8_t mac[IEEE80211_ADDR_LEN]) argument
644 wi_init(struct wi_softc *sc) argument
669 wi_stop(struct wi_softc *sc, int disable) argument
693 struct wi_softc *sc = ic->ic_softc; local
712 struct wi_softc *sc = ic->ic_softc; local
727 struct wi_softc *sc = ic->ic_softc; local
750 struct wi_softc *sc = ic->ic_softc; local
784 struct wi_softc *sc = ic->ic_softc; local
853 struct wi_softc *sc = ic->ic_softc; local
913 struct wi_softc *sc = ic->ic_softc; local
932 wi_start(struct wi_softc *sc) argument
1007 wi_start_tx(struct wi_softc *sc, struct wi_frame *frmhdr, struct mbuf *m0) argument
1039 struct wi_softc *sc = ic->ic_softc; local
1103 wi_reset(struct wi_softc *sc) argument
1133 struct wi_softc *sc = arg; local
1152 struct wi_softc *sc = ic->ic_softc; local
1194 struct wi_softc *sc = ic->ic_softc; local
1220 wi_sync_bssid(struct wi_softc *sc, u_int8_t new_bssid[IEEE80211_ADDR_LEN]) argument
1255 wi_rx_intr(struct wi_softc *sc) argument
1362 wi_tx_ex_intr(struct wi_softc *sc) argument
1402 wi_tx_intr(struct wi_softc *sc) argument
1433 wi_info_intr(struct wi_softc *sc) argument
1510 wi_write_multi(struct wi_softc *sc) argument
1556 struct wi_softc *sc = ic->ic_softc; local
1567 wi_read_nicid(struct wi_softc *sc) argument
1647 wi_write_ssid(struct wi_softc *sc, int rid, u_int8_t *buf, int buflen) argument
1660 wi_write_txrate(struct wi_softc *sc, struct ieee80211vap *vap) argument
1688 wi_write_wep(struct wi_softc *sc, struct ieee80211vap *vap) argument
1753 wi_cmd(struct wi_softc *sc, int cmd, int val0, int val1, int val2) argument
1811 wi_seek_bap(struct wi_softc *sc, int id, int off) argument
1844 wi_read_bap(struct wi_softc *sc, int id, int off, void *buf, int buflen) argument
1861 wi_write_bap(struct wi_softc *sc, int id, int off, const void *buf, int buflen) argument
1880 wi_mwrite_bap(struct wi_softc *sc, int id, int off, struct mbuf *m0, int totlen) argument
1907 wi_alloc_fid(struct wi_softc *sc, int len, int *idp) argument
1932 wi_read_rid(struct wi_softc *sc, int rid, void *buf, int *buflenp) argument
1963 wi_write_rid(struct wi_softc *sc, int rid, const void *buf, int buflen) argument
1988 wi_write_appie(struct wi_softc *sc, int rid, const struct ieee80211_appie *ie) argument
2002 wi_read_chanmask(struct wi_softc *sc) argument
2020 struct wi_softc *sc = device_get_softc(dev); local
2066 struct wi_softc *sc = device_get_softc(dev); local
[all...]
/freebsd-11-stable/sys/dev/usb/net/
H A Dif_smsc.c149 #define smsc_dbg_printf(sc, fmt, args...) \
152 device_printf((sc)->sc_ue.ue_dev, "debug: " fmt, ##args); \
155 #define smsc_dbg_printf(sc, fmt, args...) do { } while (0)
158 #define smsc_warn_printf(sc, fmt, args...) \
159 device_printf((sc)->sc_ue.ue_dev, "warning: " fmt, ##args)
161 #define smsc_err_printf(sc, fmt, args...) \
162 device_printf((sc)->sc_ue.ue_dev, "error: " fmt, ##args)
196 static int smsc_chip_init(struct smsc_softc *sc);
245 * @sc: driver soft context
256 smsc_read_reg(struct smsc_softc *sc, uint32_ argument
292 smsc_write_reg(struct smsc_softc *sc, uint32_t off, uint32_t data) argument
328 smsc_wait_for_bits(struct smsc_softc *sc, uint32_t reg, uint32_t bits) argument
366 smsc_eeprom_read(struct smsc_softc *sc, uint16_t off, uint8_t *buf, uint16_t buflen) argument
439 struct smsc_softc *sc = device_get_softc(dev); local
487 struct smsc_softc *sc = device_get_softc(dev); local
533 struct smsc_softc *sc = device_get_softc(dev); local
631 struct smsc_softc *sc = ifp->if_softc; local
658 struct smsc_softc *sc = ifp->if_softc; local
698 struct smsc_softc *sc = uether_getsc(ue); local
760 struct smsc_softc *sc = uether_getsc(ue); local
787 smsc_sethwcsum(struct smsc_softc *sc) argument
840 smsc_setmacaddress(struct smsc_softc *sc, const uint8_t *addr) argument
869 smsc_reset(struct smsc_softc *sc) argument
902 struct smsc_softc *sc = uether_getsc(ue); local
967 struct smsc_softc *sc = usbd_xfer_softc(xfer); local
1140 struct smsc_softc *sc = usbd_xfer_softc(xfer); local
1231 struct smsc_softc *sc = uether_getsc(ue); local
1254 struct smsc_softc *sc = uether_getsc(ue); local
1273 struct smsc_softc *sc = uether_getsc(ue); local
1301 smsc_phy_init(struct smsc_softc *sc) argument
1354 smsc_chip_init(struct smsc_softc *sc) argument
1525 struct smsc_softc *sc; local
1723 struct smsc_softc *sc = uether_getsc(ue); local
1787 struct smsc_softc *sc; local
1864 struct smsc_softc *sc = device_get_softc(dev); local
1912 struct smsc_softc *sc = device_get_softc(dev); local
[all...]
/freebsd-11-stable/sys/arm/lpc/
H A Dlpc_ohci.c115 struct ohci_softc *sc = device_get_softc(dev); local
122 sc->sc_bus.parent = dev;
123 sc->sc_bus.devices = sc->sc_devices;
124 sc->sc_bus.devices_max = OHCI_MAX_DEVICES;
125 sc->sc_bus.dma_bits = 32;
127 if (usb_bus_mem_alloc_all(&sc->sc_bus, USB_GET_DMA_TAG(dev),
132 sc->sc_io_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, RF_ACTIVE);
133 if (!sc->sc_io_res) {
138 sc
232 lpc_isp3101_read(struct ohci_softc *sc, int reg) argument
255 lpc_otg_i2c_reset(struct ohci_softc *sc) argument
273 lpc_isp3101_write(struct ohci_softc *sc, int reg, int value) argument
296 lpc_isp3101_clear(struct ohci_softc *sc, int reg, int value) argument
302 lpc_isp3101_configure(device_t dev, struct ohci_softc *sc) argument
[all...]
/freebsd-11-stable/sys/geom/
H A Dgeom_fox.c79 struct g_fox_softc *sc; local
88 sc = gp->softc;
90 if (sc->opath != NULL) {
95 sc->opath->provider->name, gp->name);
97 cp1 = LIST_NEXT(sc->opath, consumer);
99 g_access(sc->opath, -sc->cr, -sc->cw, -(sc->ce + 1));
104 error = g_access(sc
168 struct g_fox_softc *sc; local
207 struct g_fox_softc *sc; local
239 struct g_fox_softc *sc; local
291 struct g_fox_softc *sc; local
353 struct g_fox_softc *sc, *sc2; local
463 struct g_fox_softc *sc; local
[all...]
/freebsd-11-stable/sys/arm/ti/am335x/
H A Dam335x_musb.c99 #define USB_WRITE4(sc, idx, reg, val) do { \
100 bus_write_4((sc)->sc_mem_res[idx], (reg), (val)); \
103 #define USB_READ4(sc, idx, reg) bus_read_4((sc)->sc_mem_res[idx], (reg))
105 #define USBCTRL_WRITE4(sc, reg, val) \
106 USB_WRITE4((sc), RES_USBCTRL, (reg), (val))
107 #define USBCTRL_READ4(sc, reg) \
108 USB_READ4((sc), RES_USBCTRL, (reg))
135 musbotg_vbus_poll(struct musbotg_super_softc *sc) argument
139 if (sc
156 struct musbotg_softc *sc; local
172 struct musbotg_softc *sc; local
184 musbotg_ep_int_set(struct musbotg_softc *sc, int ep, int on) argument
200 struct musbotg_softc *sc = arg; local
239 struct musbotg_super_softc *sc = device_get_softc(dev); local
368 struct musbotg_super_softc *sc = device_get_softc(dev); local
[all...]
/freebsd-11-stable/sys/dev/beri/virtio/
H A Dvirtio_block.c111 vtblk_rdwr(struct beri_vtblk_softc *sc, struct iovec *iov, argument
121 vp = sc->vnode;
135 error = VOP_READ(vp, &auio, IO_DIRECT, sc->cred);
140 error = VOP_WRITE(vp, &auio, IO_SYNC, sc->cred);
149 vtblk_proc(struct beri_vtblk_softc *sc, struct vqueue_info *vq) argument
162 n = vq_getchain(sc->beri_mem_offset, vq, iov,
185 err = vtblk_rdwr(sc, tiov + 1, i - 1,
190 strlcpy(iov[1].iov_base, sc->ident,
191 MIN(iov[1].iov_len, sizeof(sc->ident)));
214 close_file(struct beri_vtblk_softc *sc, struc argument
236 open_file(struct beri_vtblk_softc *sc, struct thread *td) argument
275 vtblk_notify(struct beri_vtblk_softc *sc) argument
310 vq_init(struct beri_vtblk_softc *sc) argument
354 struct beri_vtblk_softc *sc; local
370 backend_info(struct beri_vtblk_softc *sc) argument
412 struct beri_vtblk_softc *sc; local
438 struct beri_vtblk_softc *sc; local
501 struct beri_vtblk_softc *sc; local
[all...]
/freebsd-11-stable/sys/dev/age/
H A Dif_age.c132 static void age_rxeof(struct age_softc *sc, struct rx_rdesc *);
212 struct age_softc *sc; local
216 sc = device_get_softc(dev);
218 CSR_WRITE_4(sc, AGE_MDIO, MDIO_OP_EXECUTE | MDIO_OP_READ |
222 v = CSR_READ_4(sc, AGE_MDIO);
228 device_printf(sc->age_dev, "phy read timeout : %d\n", reg);
241 struct age_softc *sc; local
245 sc = device_get_softc(dev);
247 CSR_WRITE_4(sc, AGE_MDIO, MDIO_OP_EXECUTE | MDIO_OP_WRITE |
252 v = CSR_READ_4(sc, AGE_MDI
269 struct age_softc *sc; local
281 struct age_softc *sc; local
300 struct age_softc *sc; local
338 age_get_macaddr(struct age_softc *sc) argument
383 age_phy_reset(struct age_softc *sc) argument
463 struct age_softc *sc; local
682 struct age_softc *sc; local
742 age_sysctl_node(struct age_softc *sc) argument
748 "stats", CTLTYPE_INT | CTLFLAG_RW, sc, 0, sysctl_age_stats, local
817 age_check_boundary(struct age_softc *sc) argument
851 age_dma_alloc(struct age_softc *sc) argument
1192 age_dma_free(struct age_softc *sc) argument
1321 age_setwol(struct age_softc *sc) argument
1455 struct age_softc *sc; local
1470 struct age_softc *sc; local
1487 age_encap(struct age_softc *sc, struct mbuf **m_head) argument
1725 struct age_softc *sc; local
1736 struct age_softc *sc; local
1782 age_watchdog(struct age_softc *sc) argument
1817 struct age_softc *sc; local
1930 age_mac_config(struct age_softc *sc) argument
1968 struct age_softc *sc; local
2016 age_stats_update(struct age_softc *sc) argument
2117 struct age_softc *sc; local
2135 struct age_softc *sc; local
2210 age_txintr(struct age_softc *sc, int tpd_cons) argument
2309 age_rxeof(struct age_softc *sc, struct rx_rdesc *rxrd) argument
2458 age_rxintr(struct age_softc *sc, int rr_prod, int count) argument
2522 struct age_softc *sc; local
2536 age_reset(struct age_softc *sc) argument
2560 struct age_softc *sc; local
2569 age_init_locked(struct age_softc *sc) argument
2851 age_stop(struct age_softc *sc) argument
2928 age_stop_txmac(struct age_softc *sc) argument
2957 age_stop_rxmac(struct age_softc *sc) argument
2986 age_init_tx_ring(struct age_softc *sc) argument
3012 age_init_rx_ring(struct age_softc *sc) argument
3039 age_init_rr_ring(struct age_softc *sc) argument
3056 age_init_cmb_block(struct age_softc *sc) argument
3070 age_init_smb_block(struct age_softc *sc) argument
3084 age_newbuf(struct age_softc *sc, struct age_rxdesc *rxd) argument
3129 age_rxvlan(struct age_softc *sc) argument
3145 age_rxfilter(struct age_softc *sc) argument
3193 struct age_softc *sc; local
[all...]
/freebsd-11-stable/sys/dev/pccard/
H A Dpccard_device.c62 pccard_device_create(struct pccard_softc *sc) argument
66 minor = device_get_unit(sc->dev) << 16;
67 sc->cisdev = make_dev(&pccard_cdevsw, minor, 0, 0, 0666,
68 "pccard%u.cis", device_get_unit(sc->dev));
69 sc->cisdev->si_drv1 = sc;
74 pccard_device_destroy(struct pccard_softc *sc) argument
76 if (sc->cisdev)
77 destroy_dev(sc->cisdev);
115 struct pccard_softc *sc; local
146 struct pccard_softc *sc; local
165 struct pccard_softc *sc; local
[all...]
/freebsd-11-stable/sys/mips/rt305x/
H A Drt305x_gpio.c69 static void rt305x_gpio_pin_configure(struct rt305x_gpio_softc *sc,
100 rt305x_gpio_pin_configure(struct rt305x_gpio_softc *sc, struct gpio_pin *pin, argument
103 GPIO_LOCK(sc);
112 GPIO_BIT_SET(sc, pin->gp_pin, DIR);
116 GPIO_BIT_CLR(sc, pin->gp_pin, DIR);
122 GPIO_BIT_SET(sc, pin->gp_pin, POL);
126 GPIO_BIT_CLR(sc, pin->gp_pin, POL);
131 GPIO_BIT_SET(sc, pin->gp_pin, POL);
135 GPIO_BIT_CLR(sc, pin->gp_pin, POL);
142 GPIO_BIT_SET(sc, pi
165 struct rt305x_gpio_softc *sc; local
183 struct rt305x_gpio_softc *sc = device_get_softc(dev); local
204 struct rt305x_gpio_softc *sc = device_get_softc(dev); local
225 struct rt305x_gpio_softc *sc = device_get_softc(dev); local
247 struct rt305x_gpio_softc *sc = device_get_softc(dev); local
265 struct rt305x_gpio_softc *sc = device_get_softc(dev); local
288 struct rt305x_gpio_softc *sc = device_get_softc(dev); local
310 struct rt305x_gpio_softc *sc = device_get_softc(dev); local
330 struct rt305x_gpio_softc *sc = arg; local
444 struct rt305x_gpio_softc *sc = device_get_softc(dev); local
528 struct rt305x_gpio_softc *sc = device_get_softc(dev); local
551 struct obio_softc *sc = device_get_softc(bus); local
[all...]
/freebsd-11-stable/sys/dev/etherswitch/arswitch/
H A Darswitch_8327.c79 ar8327_vlan_op(struct arswitch_softc *sc, uint32_t op, uint32_t vid, argument
87 if (arswitch_waitreg(sc->sc_dev, AR8327_REG_VTU_FUNC1,
96 err = arswitch_writereg(sc->sc_dev, AR8327_REG_VTU_FUNC0, data);
110 arswitch_writereg(sc->sc_dev, AR8327_REG_VTU_FUNC1, op);
115 if (arswitch_waitreg(sc->sc_dev, AR8327_REG_VTU_FUNC1,
123 ar8327_phy_fixup(struct arswitch_softc *sc, int phy) argument
126 device_printf(sc->sc_dev,
129 sc->chip_rev);
130 switch (sc->chip_rev) {
133 arswitch_writedbg(sc
289 ar8327_fetch_pdata_port(struct arswitch_softc *sc, struct ar8327_port_cfg *pcfg, int port) argument
382 ar8327_fetch_pdata_pad(struct arswitch_softc *sc, struct ar8327_pad_cfg *pc, int pad) argument
473 ar8327_fetch_pdata_sgmii(struct arswitch_softc *sc, struct ar8327_sgmii_cfg *scfg) argument
501 ar8327_fetch_pdata_led(struct arswitch_softc *sc, struct ar8327_led_cfg *lcfg) argument
549 ar8327_init_pdata(struct arswitch_softc *sc) argument
646 ar8327_hw_setup(struct arswitch_softc *sc) argument
677 ar8327_hw_global_setup(struct arswitch_softc *sc) argument
721 ar8327_port_init(struct arswitch_softc *sc, int port) argument
766 ar8327_port_vlan_setup(struct arswitch_softc *sc, etherswitch_port_t *p) argument
790 ar8327_port_vlan_get(struct arswitch_softc *sc, etherswitch_port_t *p) argument
810 ar8327_port_disable_mirror(struct arswitch_softc *sc, int port) argument
824 ar8327_reset_vlans(struct arswitch_softc *sc) argument
923 ar8327_vlan_get_port(struct arswitch_softc *sc, uint32_t *ports, int vid) argument
938 ar8327_vlan_set_port(struct arswitch_softc *sc, uint32_t ports, int vid) argument
957 ar8327_vlan_getvgroup(struct arswitch_softc *sc, etherswitch_vlangroup_t *vg) argument
964 ar8327_vlan_setvgroup(struct arswitch_softc *sc, etherswitch_vlangroup_t *vg) argument
971 ar8327_get_pvid(struct arswitch_softc *sc, int port, int *pvid) argument
990 ar8327_set_pvid(struct arswitch_softc *sc, int port, int pvid) argument
1005 ar8327_atu_flush(struct arswitch_softc *sc) argument
1027 ar8327_flush_dot1q_vlan(struct arswitch_softc *sc) argument
1034 ar8327_purge_dot1q_vlan(struct arswitch_softc *sc, int vid) argument
1041 ar8327_get_dot1q_vlan(struct arswitch_softc *sc, uint32_t *ports, uint32_t *untagged_ports, int vid) argument
1082 ar8327_set_dot1q_vlan(struct arswitch_softc *sc, uint32_t ports, uint32_t untagged_ports, int vid) argument
1119 ar8327_attach(struct arswitch_softc *sc) argument
[all...]
/freebsd-11-stable/sys/dev/vx/
H A Dif_vx_pci.c83 struct vx_softc *sc; local
85 sc = device_get_softc(dev);
86 VX_LOCK(sc);
87 vx_stop(sc);
88 VX_UNLOCK(sc);
128 struct vx_softc *sc; local
131 sc = device_get_softc(dev);
134 sc->vx_res =
137 if (sc->vx_res == NULL)
140 sc
[all...]
/freebsd-11-stable/sys/dev/scd/
H A Dscd_isa.c38 struct scd_softc * sc; local
49 sc = device_get_softc(dev);
50 sc->dev = dev;
51 sc->port_rid = 0;
52 sc->port_type = SYS_RES_IOPORT;
57 error = scd_probe(sc);
63 device_set_desc(dev, sc->data.name);
73 struct scd_softc * sc; local
76 sc = device_get_softc(dev);
79 sc
107 struct scd_softc * sc; local
123 struct scd_softc * sc; local
147 struct scd_softc * sc; local
[all...]
/freebsd-11-stable/sys/mips/atheros/
H A Dar71xx_ehci.c112 ehci_softc_t *sc = &isc->base; local
117 sc->sc_bus.parent = self;
118 sc->sc_bus.devices = sc->sc_devices;
119 sc->sc_bus.devices_max = EHCI_MAX_DEVICES;
120 sc->sc_bus.dma_bits = 32;
123 if (usb_bus_mem_alloc_all(&sc->sc_bus,
128 sc->sc_bus.usbrev = USB_REV_2_0;
133 sc->sc_io_res = bus_alloc_resource_any(self, SYS_RES_MEMORY, &rid, RF_ACTIVE);
134 if (!sc
233 ehci_softc_t *sc = &isc->base; local
[all...]

Completed in 263 milliseconds

<<11121314151617181920>>