/freebsd-10.1-release/sys/pc98/cbus/ |
H A D | sctermvar.h | 36 static __inline void sc_term_ins_line(scr_stat *scp, int y, int n, int ch, 38 static __inline void sc_term_del_line(scr_stat *scp, int y, int n, int ch, 40 static __inline void sc_term_ins_char(scr_stat *scp, int n, int ch, 42 static __inline void sc_term_del_char(scr_stat *scp, int n, int ch, 44 static __inline void sc_term_col(scr_stat *scp, int n); 45 static __inline void sc_term_row(scr_stat *scp, int n); 46 static __inline void sc_term_up(scr_stat *scp, int n, int head); 47 static __inline void sc_term_down(scr_stat *scp, int n, int tail); 48 static __inline void sc_term_left(scr_stat *scp, int n); 49 static __inline void sc_term_right(scr_stat *scp, in 64 sc_term_ins_line(scr_stat *scp, int y, int n, int ch, int attr, int tail) argument 78 sc_term_del_line(scr_stat *scp, int y, int n, int ch, int attr, int tail) argument 92 sc_term_ins_char(scr_stat *scp, int n, int ch, int attr) argument 108 sc_term_del_char(scr_stat *scp, int n, int ch, int attr) argument 124 sc_term_col(scr_stat *scp, int n) argument 132 sc_term_row(scr_stat *scp, int n) argument 140 sc_term_up(scr_stat *scp, int n, int head) argument 151 sc_term_down(scr_stat *scp, int n, int tail) argument 164 sc_term_left(scr_stat *scp, int n) argument 172 sc_term_right(scr_stat *scp, int n) argument 180 sc_term_up_scroll(scr_stat *scp, int n, int ch, int attr, int head, int tail) argument 196 sc_term_down_scroll(scr_stat *scp, int n, int ch, int attr, int head, int tail) argument 212 sc_term_clr_eos(scr_stat *scp, int n, int ch, int attr) argument 239 sc_term_clr_eol(scr_stat *scp, int n, int ch, int attr) argument 265 sc_term_tab(scr_stat *scp, int n) argument 284 sc_term_backtab(scr_stat *scp, int n) argument 300 sc_term_respond(scr_stat *scp, u_char *s) argument 306 sc_term_gen_print(scr_stat *scp, u_char **buf, int *len, int attr) argument 416 sc_term_gen_scroll(scr_stat *scp, int ch, int attr) argument [all...] |
H A D | scgdcrndr.c | 61 static void gdc_nop(scr_stat *scp, ...); 94 gdc_nop(scr_stat *scp, ...) argument 101 gdc_txtclear(scr_stat *scp, int c, int attr) argument 103 sc_vtb_clear(&scp->scr, c, attr); 107 gdc_txtborder(scr_stat *scp, int color) argument 109 vidd_set_border(scp->sc->adp, color); 113 gdc_txtdraw(scr_stat *scp, int from, int count, int flip) argument 119 if (from + count > scp->xsize*scp->ysize) 120 count = scp 140 gdc_txtcursor_shape(scr_stat *scp, int base, int height, int blink) argument 150 gdc_txtcursor(scr_stat *scp, int at, int blink, int on, int flip) argument 166 draw_txtmouse(scr_stat *scp, int x, int y) argument 183 remove_txtmouse(scr_stat *scp, int x, int y) argument 188 gdc_txtmouse(scr_stat *scp, int x, int y, int on) argument 203 gdc_grborder(scr_stat *scp, int color) argument [all...] |
H A D | scterm-sck.c | 131 static void scterm_scan_esc(scr_stat *scp, term_stat *tcp, 304 scterm_init(scr_stat *scp, void **softc, int code) argument 356 scterm_term(scr_stat *scp, void **softc) argument 367 scterm_scan_esc(scr_stat *scp, term_stat *tcp, u_char c) argument 393 sc = scp->sc; 438 tcp->saved_xpos = scp->xpos; 439 tcp->saved_ypos = scp->ypos; 444 sc_move_cursor(scp, tcp->saved_xpos, 463 sc_term_up_scroll(scp, 1, sc->scr_map[0x20], 477 sc_change_cursor_shape(scp, 912 scterm_puts(scr_stat *scp, u_char *buf, int len, int kernel) argument 1120 scterm_ioctl(scr_stat *scp, struct tty *tp, u_long cmd, caddr_t data, struct thread *td) argument 1148 scterm_reset(scr_stat *scp, int code) argument 1155 scterm_default_attr(scr_stat *scp, int color, int rev_color) argument 1170 scterm_clear(scr_stat *scp) argument 1180 scterm_notify(scr_stat *scp, int event) argument 1191 scterm_input(scr_stat *scp, int c, struct tty *tp) argument 1197 scterm_fkeystr(scr_stat *scp, int c) argument [all...] |
/freebsd-10.1-release/sys/dev/syscons/ |
H A D | schistory.c | 83 static void history_to_screen(scr_stat *scp); 87 sc_alloc_history_buffer(scr_stat *scp, int lines, int prev_ysize, int wait) argument 91 * SC_HISTORY_SIZE lines or scp->ysize lines, whichever 105 lines = imax(lines, scp->ysize); 108 history = prev_history = scp->history; 109 scp->history = NULL; 121 min_lines = imax(SC_HISTORY_SIZE, scp->ysize); 125 scp->history = prev_history; 138 sc_vtb_init(history, VTB_RINGBUFFER, scp->xsize, lines, 141 sc_vtb_clear(history, scp 188 sc_free_history_buffer(scr_stat *scp, int prev_ysize) argument 210 sc_hist_save(scr_stat *scp) argument 218 sc_hist_restore(scr_stat *scp) argument 237 history_to_screen(scr_stat *scp) argument 254 sc_hist_home(scr_stat *scp) argument 262 sc_hist_end(scr_stat *scp) argument 271 sc_hist_up_line(scr_stat *scp) argument 284 sc_hist_down_line(scr_stat *scp) argument 297 scr_stat *scp; local [all...] |
H A D | scmouse.c | 85 static void set_mouse_pos(scr_stat *scp); 87 static int skip_spc_right(scr_stat *scp, int p); 88 static int skip_spc_left(scr_stat *scp, int p); 89 static void mouse_cut(scr_stat *scp); 90 static void mouse_cut_start(scr_stat *scp); 91 static void mouse_cut_end(scr_stat *scp); 92 static void mouse_cut_word(scr_stat *scp); 93 static void mouse_cut_line(scr_stat *scp); 94 static void mouse_cut_extend(scr_stat *scp); 100 sc_alloc_cut_buffer(scr_stat *scp, in argument 121 sc_mouse_input_button(scr_stat *scp, int button) argument 132 sc_mouse_input(scr_stat *scp, mouse_info_t *mouse) argument 164 sc_mouse_move(scr_stat *scp, int x, int y) argument 183 set_mouse_pos(scr_stat *scp) argument 218 sc_draw_mouse_image(scr_stat *scp) argument 233 sc_remove_mouse_image(scr_stat *scp) argument 266 sc_inside_cutmark(scr_stat *scp, int pos) argument 284 sc_remove_cutmarking(scr_stat *scp) argument 302 scr_stat *scp; local 317 scr_stat *scp; local 347 skip_spc_right(scr_stat *scp, int p) argument 363 skip_spc_left(scr_stat *scp, int p) argument 378 mouse_do_cut(scr_stat *scp, int from, int to) argument 439 mouse_cut(scr_stat *scp) argument 482 mouse_cut_start(scr_stat *scp) argument 518 mouse_cut_end(scr_stat *scp) argument 526 mouse_cut_word(scr_stat *scp) argument 586 mouse_cut_line(scr_stat *scp) argument 603 mouse_cut_extend(scr_stat *scp) argument 642 sc_mouse_paste(scr_stat *scp) argument 655 scr_stat *scp; local [all...] |
H A D | scgfbrndr.c | 65 static void gfb_nop(scr_stat *scp); 142 gfb_nop(scr_stat *scp) argument 149 gfb_clear(scr_stat *scp, int c, int attr) argument 151 vidd_clear(scp->sc->adp); 155 gfb_border(scr_stat *scp, int color) argument 157 vidd_set_border(scp->sc->adp, color); 161 gfb_draw(scr_stat *scp, int from, int count, int flip) argument 168 adp = scp->sc->adp; 174 if (from + count > scp->xsize*scp 227 gfb_cursor_shape(scr_stat *scp, int base, int height, int blink) argument 244 gfb_cursor(scr_stat *scp, int at, int blink, int on, int flip) argument 287 gfb_cursor(scr_stat *scp, int at, int blink, int on, int flip) argument 322 gfb_blink(scr_stat *scp, int at, int flip) argument 337 gfb_mouse(scr_stat *scp, int x, int y, int on) argument [all...] |
H A D | syscons.c | 192 static void sc_puts(scr_stat *scp, u_char *buf, int len, int kernel); 195 static void sccnupdate(scr_stat *scp); 197 static void init_scp(sc_softc_t *sc, int vty, scr_stat *scp); 200 static void scrn_update(scr_stat *scp, int show_cursor); 207 static int set_scrn_saver_mode(scr_stat *scp, int mode, u_char *pal, int border); 208 static int restore_scrn_saver_mode(scr_stat *scp, int changemode); 217 static int vt_proc_alive(scr_stat *scp); 218 static int signal_vt_rel(scr_stat *scp); 219 static int signal_vt_acq(scr_stat *scp); 220 static int finish_vt_rel(scr_stat *scp, in 339 scr_stat *scp = sc_get_stat(tp); local 373 sc_set_vesa_mode(scr_stat *scp, sc_softc_t *sc, int unit) argument 493 scr_stat *scp; local 632 scr_stat *scp; local 673 scr_stat *scp; local 804 scr_stat *scp; local 1654 scr_stat *scp; local 1687 scr_stat *scp; local 1707 scr_stat *scp = sc_console; local 1757 scr_stat *scp; local 1812 sccnupdate(scr_stat *scp) argument 1852 scr_stat *scp; local 1950 scrn_update(scr_stat *scp, int show_cursor) argument 2110 scr_stat *scp; local 2192 set_scrn_saver_mode(scr_stat *scp, int mode, u_char *pal, int border) argument 2230 restore_scrn_saver_mode(scr_stat *scp, int changemode) argument 2562 vt_proc_alive(scr_stat *scp) argument 2579 signal_vt_rel(scr_stat *scp) argument 2592 signal_vt_acq(scr_stat *scp) argument 2607 finish_vt_rel(scr_stat *scp, int release, int *s) argument 2621 finish_vt_acq(scr_stat *scp) argument 2634 scr_stat *scp; local 2681 sc_puts(scr_stat *scp, u_char *buf, int len, int kernel) argument 2706 sc_draw_cursor_image(scr_stat *scp) argument 2718 sc_remove_cursor_image(scr_stat *scp) argument 2729 update_cursor_image(scr_stat *scp) argument 2738 sc_set_cursor_image(scr_stat *scp) argument 2763 change_cursor_shape(scr_stat *scp, int flags, int base, int height) argument 2784 sc_change_cursor_shape(scr_stat *scp, int flags, int base, int height) argument 2846 scr_stat *scp; local 3050 scr_stat *scp; local 3165 sc_clean_up(scr_stat *scp) argument 3185 sc_alloc_scr_buffer(scr_stat *scp, int wait, int discard) argument 3215 scr_stat *scp; local 3238 init_scp(sc_softc_t *sc, int vty, scr_stat *scp) argument 3311 sc_init_emulator(scr_stat *scp, char *name) argument 3379 scr_stat *scp; local 3655 scr_stat *scp; local 3664 update_font(scr_stat *scp) argument 3695 save_kbd_state(scr_stat *scp) argument 3711 update_kbd_state(scr_stat *scp, int new_bits, int mask) argument 3734 update_kbd_leds(scr_stat *scp, int which) argument 3746 set_mode(scr_stat *scp) argument 3775 sc_set_border(scr_stat *scp, int color) argument 3784 sc_load_font(scr_stat *scp, int page, int size, int width, u_char *buf, int base, int count) argument 3796 sc_save_font(scr_stat *scp, int page, int size, int width, u_char *buf, int base, int count) argument 3808 sc_show_font(scr_stat *scp, int page) argument 3815 sc_paste(scr_stat *scp, const u_char *p, int count) argument 3830 sc_respond(scr_stat *scp, const u_char *p, int count, int wakeup) argument 3845 sc_bell(scr_stat *scp, int pitch, int duration) argument 3870 scr_stat *scp = arg; local [all...] |
H A D | scvgarndr.c | 95 static void vga_nop(scr_stat *scp); 174 #define GET_PIXEL(scp, pos, x, w) \ 176 (scp)->sc->adp->va_window + \ 177 (x) * (scp)->xoff + \ 178 (scp)->yoff * (scp)->font_size * (w) + \ 179 (x) * ((pos) % (scp)->xsize) + \ 180 (scp)->font_size * (w) * ((pos) / (scp)->xsize); \ 183 #define DRAW_PIXEL(scp, po 236 vga_nop(scr_stat *scp) argument 243 vga_txtclear(scr_stat *scp, int c, int attr) argument 249 vga_txtborder(scr_stat *scp, int color) argument 255 vga_txtdraw(scr_stat *scp, int from, int count, int flip) argument 278 vga_txtcursor_shape(scr_stat *scp, int base, int height, int blink) argument 292 draw_txtcharcursor(scr_stat *scp, int at, u_short c, u_short a, int flip) argument 350 vga_txtcursor(scr_stat *scp, int at, int blink, int on, int flip) argument 394 vga_txtblink(scr_stat *scp, int at, int flip) argument 403 draw_txtmouse(scr_stat *scp, int x, int y) argument 490 remove_txtmouse(scr_stat *scp, int x, int y) argument 495 vga_txtmouse(scr_stat *scp, int x, int y, int on) argument 510 vga_rndrinit(scr_stat *scp) argument 532 vga_pxlclear_direct(scr_stat *scp, int c, int attr) argument 554 vga_pxlclear_planar(scr_stat *scp, int c, int attr) argument 580 vga_pxlborder_direct(scr_stat *scp, int color) argument 637 vga_pxlborder_planar(scr_stat *scp, int color) argument 673 vga_egadraw(scr_stat *scp, int from, int count, int flip) argument 731 vga_vgadraw_direct(scr_stat *scp, int from, int count, int flip) argument 781 vga_vgadraw_planar(scr_stat *scp, int from, int count, int flip) argument 840 vga_pxlcursor_shape(scr_stat *scp, int base, int height, int blink) argument 852 draw_pxlcursor_direct(scr_stat *scp, int at, int on, int flip) argument 894 draw_pxlcursor_planar(scr_stat *scp, int at, int on, int flip) argument 945 vga_pxlcursor_direct(scr_stat *scp, int at, int blink, int on, int flip) argument 973 vga_pxlcursor_planar(scr_stat *scp, int at, int blink, int on, int flip) argument 1001 vga_pxlblink_direct(scr_stat *scp, int at, int flip) argument 1013 vga_pxlblink_planar(scr_stat *scp, int at, int flip) argument 1027 draw_pxlmouse_planar(scr_stat *scp, int x, int y) argument 1102 remove_pxlmouse_planar(scr_stat *scp, int x, int y) argument 1159 vga_pxlmouse_direct(scr_stat *scp, int x, int y, int on) argument 1261 vga_pxlmouse_planar(scr_stat *scp, int x, int y, int on) argument 1277 vga_grborder(scr_stat *scp, int color) argument [all...] |
H A D | scterm.c | 45 sc_move_cursor(scr_stat *scp, int x, int y) argument 51 if (x >= scp->xsize) 52 x = scp->xsize - 1; 53 if (y >= scp->ysize) 54 y = scp->ysize - 1; 55 scp->xpos = x; 56 scp->ypos = y; 57 scp->cursor_pos = scp->ypos*scp 61 sc_clear_screen(scr_stat *scp) argument [all...] |
H A D | scvidctl.c | 136 sc_set_text_mode(scr_stat *scp, struct tty *tp, int mode, int xsize, int ysize, argument 146 if (vidd_get_info(scp->sc->adp, mode, &info)) 163 if ((scp->sc->fonts_loaded & FONT_8) == 0) 165 font = scp->sc->font_8; 168 if ((scp->sc->fonts_loaded & FONT_14) == 0) 170 font = scp->sc->font_14; 173 if ((scp->sc->fonts_loaded & FONT_16) == 0) 175 font = scp->sc->font_16; 188 if ((error = sc_clean_up(scp))) { 193 if (sc_render_match(scp, sc 245 sc_set_graphics_mode(scr_stat *scp, struct tty *tp, int mode) argument 306 sc_set_pixel_mode(scr_stat *scp, struct tty *tp, int xsize, int ysize, int fontsize, int fontwidth) argument 474 scr_stat *scp; local 865 sc_render_match(scr_stat *scp, char *name, int mode) argument [all...] |
H A D | syscons.h | 116 #define mark_for_update(scp, x) {\ 117 if ((x) < scp->start) scp->start = (x);\ 118 else if ((x) > scp->end) scp->end = (x);\ 120 #define mark_all(scp) {\ 121 scp->start = 0;\ 122 scp->end = scp->xsize * scp [all...] |
H A D | scterm-teken.c | 114 scteken_init(scr_stat *scp, void **softc, int code) argument 132 teken_init(&ts->ts_teken, &scteken_funcs, scp); 140 tp.tp_row = scp->ysize; 141 tp.tp_col = scp->xsize; 144 if (scp->cursor_pos < scp->ysize * scp->xsize) { 146 tp.tp_row = scp->cursor_pos / scp->xsize; 147 tp.tp_col = scp 157 scteken_term(scr_stat *scp, void **softc) argument 170 scteken_puts(scr_stat *scp, u_char *buf, int len, int kernel) argument 191 scteken_ioctl(scr_stat *scp, struct tty *tp, u_long cmd, caddr_t data, struct thread *td) argument 223 scteken_default_attr(scr_stat *scp, int color, int rev_color) argument 233 scteken_clear(scr_stat *scp) argument 242 scteken_input(scr_stat *scp, int c, struct tty *tp) argument 249 scteken_fkeystr(scr_stat *scp, int c) argument 397 scr_stat *scp = arg; local 405 scr_stat *scp = arg; local 550 scr_stat *scp = arg; local 587 scr_stat *scp = arg; local 628 scr_stat *scp = arg; local 699 scr_stat *scp = arg; local 727 scr_stat *scp = arg; local [all...] |
H A D | scvesactl.c | 56 scr_stat *scp; local 59 scp = SC_STAT(tp); 67 if (!(scp->sc->adp->va_flags & V_ADP_MODECHANGE)) 69 return sc_set_text_mode(scp, tp, cmd & 0xff, 0, 0, 0, 0); 77 if (!(scp->sc->adp->va_flags & V_ADP_MODECHANGE)) 80 return sc_set_text_mode(scp, tp, mode, 0, 0, 0, 0); 103 if (!(scp->sc->adp->va_flags & V_ADP_MODECHANGE)) 106 return sc_set_graphics_mode(scp, tp, mode); 109 if (!(scp->sc->adp->va_flags & V_ADP_MODECHANGE)) 117 return sc_set_graphics_mode(scp, t [all...] |
/freebsd-10.1-release/sys/dev/sound/midi/ |
H A D | sequencer.c | 283 * static void seq_midiinput(struct seq_softc * scp, void *md); 285 static void seq_reset(struct seq_softc *scp); 286 static int seq_sync(struct seq_softc *scp); 288 static int seq_processevent(struct seq_softc *scp, u_char *event); 290 static int seq_timing(struct seq_softc *scp, u_char *event); 291 static int seq_local(struct seq_softc *scp, u_char *event); 293 static int seq_chnvoice(struct seq_softc *scp, kobj_t md, u_char *event); 294 static int seq_chncommon(struct seq_softc *scp, kobj_t md, u_char *event); 295 static int seq_sysex(struct seq_softc *scp, kobj_t md, u_char *event); 297 static int seq_fetch_mid(struct seq_softc *scp, in 434 struct seq_softc *scp = arg; local 482 seq_processevent(struct seq_softc *scp, u_char *event) argument 527 struct seq_softc *scp; local 639 struct seq_softc *scp = seqs[unit]; local 737 seq_fetch_mid(struct seq_softc *scp, int unit, kobj_t *md) argument 751 struct seq_softc *scp = i_dev->si_drv1; local 835 struct seq_softc *scp = i_dev->si_drv1; local 873 struct seq_softc *scp = i_dev->si_drv1; local 949 struct seq_softc *scp = i_dev->si_drv1; local 1129 struct seq_softc *scp = i_dev->si_drv1; local 1432 struct seq_softc *scp = i_dev->si_drv1; local 1670 seq_copytoinput(struct seq_softc *scp, u_char *event, int len) argument 1689 seq_chnvoice(struct seq_softc *scp, kobj_t md, u_char *event) argument 1763 seq_chncommon(struct seq_softc *scp, kobj_t md, u_char *event) argument 1840 seq_timing(struct seq_softc *scp, u_char *event) argument 1918 seq_local(struct seq_softc *scp, u_char *event) argument 1938 seq_sysex(struct seq_softc *scp, kobj_t md, u_char *event) argument 1964 seq_reset(struct seq_softc *scp) argument 2011 seq_sync(struct seq_softc *scp) argument [all...] |
/freebsd-10.1-release/sys/dev/sound/isa/ |
H A D | gusc.c | 98 static device_t find_masterdev(sc_p scp); 99 static int alloc_resource(sc_p scp); 100 static int release_resource(sc_p scp); 307 sc_p scp; local 310 scp = device_get_softc(dev); 312 bzero(scp, sizeof(*scp)); 314 scp->dev = dev; 315 if (alloc_resource(scp)) { 316 release_resource(scp); 333 sc_p scp = (sc_p)arg; local 355 sc_p scp; local 394 sc_p scp; local 429 sc_p scp = (sc_p)device_get_softc(dev); local 456 find_masterdev(sc_p scp) argument 481 alloc_resource(sc_p scp) argument 583 release_resource(sc_p scp) argument [all...] |
H A D | sbc.c | 96 static int alloc_resource(struct sbc_softc *scp); 97 static int release_resource(struct sbc_softc *scp); 125 sbc_lockinit(struct sbc_softc *scp) argument 127 scp->lock = snd_mtxcreate(device_get_nameunit(scp->dev), 132 sbc_lockdestroy(struct sbc_softc *scp) argument 134 snd_mtxfree(scp->lock); 138 sbc_lock(struct sbc_softc *scp) argument 140 snd_mtxlock(scp->lock); 144 sbc_lockassert(struct sbc_softc *scp) argument 150 sbc_unlock(struct sbc_softc *scp) argument 348 struct sbc_softc *scp; local 487 struct sbc_softc *scp = device_get_softc(dev); local 521 struct sbc_softc *scp = device_get_softc(dev); local 556 struct sbc_softc *scp = device_get_softc(dev); local 584 struct sbc_softc *scp; local 632 struct sbc_softc *scp; local 663 struct sbc_softc *scp = device_get_softc(bus); local 697 alloc_resource(struct sbc_softc *scp) argument 753 release_resource(struct sbc_softc *scp) argument [all...] |
/freebsd-10.1-release/sys/dev/xe/ |
H A D | if_xe.c | 150 static void xe_init_locked(struct xe_softc *scp); 156 static void xe_txintr(struct xe_softc *scp, uint8_t txst1); 157 static void xe_macintr(struct xe_softc *scp, uint8_t rst0, uint8_t txst0, 159 static void xe_rxintr(struct xe_softc *scp, uint8_t rst0); 163 static void xe_reset(struct xe_softc *scp); 164 static void xe_enable_intr(struct xe_softc *scp); 165 static void xe_disable_intr(struct xe_softc *scp); 166 static void xe_set_multicast(struct xe_softc *scp); 167 static void xe_set_addr(struct xe_softc *scp, uint8_t* addr, unsigned idx); 168 static void xe_mchash(struct xe_softc *scp, cons 231 struct xe_softc *scp = device_get_softc(dev); local 328 struct xe_softc *scp = xscp; local 336 xe_init_locked(struct xe_softc *scp) argument 455 struct xe_softc *scp = ifp->if_softc; local 465 struct xe_softc *scp = ifp->if_softc; local 521 struct xe_softc *scp; local 600 xe_txintr(struct xe_softc *scp, uint8_t txst1) argument 647 xe_macintr(struct xe_softc *scp, uint8_t rst0, uint8_t txst0, uint8_t txst1) argument 719 xe_rxintr(struct xe_softc *scp, uint8_t rst0) argument 853 struct xe_softc *scp = (struct xe_softc *) xscp; local 918 struct xe_softc *scp = arg; local 939 struct xe_softc *scp = ifp->if_softc; local 971 struct xe_softc *scp = ifp->if_softc; local 988 struct xe_softc *scp = xscp; local 1261 xe_reset(struct xe_softc *scp) argument 1289 xe_stop(struct xe_softc *scp) argument 1332 xe_enable_intr(struct xe_softc *scp) argument 1350 xe_disable_intr(struct xe_softc *scp) argument 1366 xe_set_multicast(struct xe_softc *scp) argument 1486 xe_set_addr(struct xe_softc *scp, uint8_t* addr, unsigned idx) argument 1531 xe_mchash(struct xe_softc* scp, const uint8_t *addr) argument 1557 xe_pio_write_packet(struct xe_softc *scp, struct mbuf *mbp) argument 1669 xe_mii_sync(struct xe_softc *scp) argument 1688 xe_mii_init(struct xe_softc *scp) argument 1713 xe_mii_send(struct xe_softc *scp, uint32_t bits, int cnt) argument 1737 xe_mii_readreg(struct xe_softc *scp, struct xe_mii_frame *frame) argument 1826 xe_mii_writereg(struct xe_softc *scp, struct xe_mii_frame *frame) argument 1872 xe_phy_readreg(struct xe_softc *scp, uint16_t reg) argument 1889 xe_phy_writereg(struct xe_softc *scp, uint16_t reg, uint16_t data) argument 1905 xe_mii_dump(struct xe_softc *scp) argument [all...] |
/freebsd-10.1-release/sys/dev/pbio/ |
H A D | pbio.c | 147 pbinb(struct pbio_softc *scp, int off) argument 150 return bus_space_read_1(scp->bst, scp->bsh, off); 154 pboutb(struct pbio_softc *scp, int off, uint8_t val) argument 157 bus_space_write_1(scp->bst, scp->bsh, off, val); 165 struct pbio_softc *scp = device_get_softc(dev); local 173 scp->res = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid, 175 if (scp->res == NULL) 179 scp 250 struct pbio_softc *scp; local 286 struct pbio_softc *scp; local 320 struct pbio_softc *scp; local 336 portval(int port, struct pbio_softc *scp, char *val) argument 375 struct pbio_softc *scp; local 404 struct pbio_softc *scp; local 452 struct pbio_softc *scp; local [all...] |
/freebsd-10.1-release/sys/dev/xen/xenpci/ |
H A D | xenpci.c | 69 xenpci_irq_init(device_t device, struct xenpci_softc *scp) argument 74 scp->res_irq, INTR_MPSAFE|INTR_TYPE_MISC, 76 &scp->intr_cookie); 89 scp->res_irq, 0); 104 struct xenpci_softc *scp = device_get_softc(dev); local 106 if (scp->res_irq != 0) { 108 scp->rid_irq, scp->res_irq); 110 scp->rid_irq, scp 130 struct xenpci_softc *scp = device_get_softc(dev); local 161 xenpci_alloc_space_int(struct xenpci_softc *scp, size_t sz, vm_paddr_t *pa) argument 241 struct xenpci_softc *scp = device_get_softc(dev); local 289 struct xenpci_softc *scp = device_get_softc(dev); local [all...] |
/freebsd-10.1-release/sys/dev/sound/pci/ |
H A D | emu10kx-midi.c | 142 struct emu_midi_softc *scp; local 149 scp = device_get_softc(dev); 150 bzero(scp, sizeof(*scp)); 152 scp->is_emu10k1 = is_emu10k1 ? 1 : 0; 161 struct emu_midi_softc * scp; local 166 scp = device_get_softc(dev); 169 scp->dev = dev; 171 scp->port = midiinfo->port; 172 scp 228 struct emu_midi_softc *scp; local [all...] |
H A D | hdspe-pcm.c | 86 struct sc_pcminfo *scp = ch->parent; local 87 struct sc_info *sc = scp->sc; 115 struct sc_pcminfo *scp = mix_getdevinfo(m); local 116 struct sc_info *sc = scp->sc; 124 if (scp->hc->play) 127 if (scp->hc->rec) 131 pcm_setflags(scp->dev, pcm_getflags(scp->dev) | SD_F_SOFTPCMVOL); 142 struct sc_pcminfo *scp = mix_getdevinfo(m); local 147 device_printf(scp 175 struct sc_pcminfo *scp = ch->parent; local 193 struct sc_pcminfo *scp; local 245 struct sc_pcminfo *scp = ch->parent; local 293 struct sc_pcminfo *scp = ch->parent; local 313 struct sc_pcminfo *scp = devinfo; local 351 struct sc_pcminfo *scp = ch->parent; local 391 struct sc_pcminfo *scp = ch->parent; local 409 struct sc_pcminfo *scp = ch->parent; local 444 struct sc_pcminfo *scp = ch->parent; local 509 struct sc_pcminfo *scp = ch->parent; local 618 hdspe_pcm_intr(struct sc_pcminfo *scp) argument 636 struct sc_pcminfo *scp; local [all...] |
/freebsd-10.1-release/sys/dev/syscons/snake/ |
H A D | snake_saver.c | 70 scr_stat *scp; local 79 scp = sc->cur_scp; 85 sc_vtb_clear(&scp->scr, sc->scr_map[0x20], 88 sc_set_border(scp, 0); 89 dirx = (scp->xpos ? 1 : -1); 90 diry = (scp->ypos ? 91 scp->xsize : -scp->xsize); 93 savs[f] = scp->xpos + scp [all...] |
/freebsd-10.1-release/sys/dev/syscons/star/ |
H A D | star_saver.c | 56 scr_stat *scp; local 69 scp = sc->cur_scp; 86 sc_vtb_clear(&scp->scr, sc->scr_map[0x20], 89 sc_set_border(scp, 0); 93 random() % (scp->xsize*scp->ysize); 98 sc_vtb_putc(&scp->scr, stars[cell][0], 102 stars[cell][0] = random() % (scp->xsize*scp->ysize);
|
/freebsd-10.1-release/share/examples/drivers/ |
H A D | make_device_driver.sh | 217 static int ${1}_attach(device_t device, struct ${1}_softc *scp); 218 static int ${1}_detach(device_t device, struct ${1}_softc *scp); 394 struct ${1}_softc *scp = DEVICE2SOFTC(device); 397 bzero(scp, sizeof(*scp)); 398 scp->device = device; 528 struct ${1}_softc *scp = DEVICE2SOFTC(device); 530 error = ${1}_attach(device, scp); 545 struct ${1}_softc *scp = DEVICE2SOFTC(device); 547 error = ${1}_detach(device, scp); [all...] |
/freebsd-10.1-release/sys/arm/freescale/vybrid/ |
H A D | vf_sai.c | 178 uint32_t (*ih) (struct sc_pcminfo *scp); 190 static int setup_dma(struct sc_pcminfo *scp); 201 struct sc_pcminfo *scp; local 205 scp = mix_getdevinfo(m); 206 sc = scp->sc; 214 pcm_setflags(scp->dev, pcm_getflags(scp->dev) | SD_F_SOFTPCMVOL); 225 struct sc_pcminfo *scp; local 227 scp = mix_getdevinfo(m); 230 device_printf(scp 252 struct sc_pcminfo *scp; local 280 struct sc_pcminfo *scp = ch->parent; local 307 struct sc_pcminfo *scp; local 371 struct sc_pcminfo *scp = ch->parent; local 384 struct sc_pcminfo *scp; local 475 setup_dma(struct sc_pcminfo *scp) argument 517 struct sc_pcminfo *scp = ch->parent; local 547 struct sc_pcminfo *scp; local 606 struct sc_pcminfo *scp; local 690 struct sc_pcminfo *scp; local [all...] |