Home
last modified time | relevance | path

Searched full:scp (Results 1 – 25 of 152) sorted by relevance

1234567

/freebsd/sys/dev/syscons/
H A Dsctermvar.h34 static __inline void sc_term_ins_line(scr_stat *scp, int y, int n, int ch,
36 static __inline void sc_term_del_line(scr_stat *scp, int y, int n, int ch,
38 static __inline void sc_term_ins_char(scr_stat *scp, int n, int ch,
40 static __inline void sc_term_del_char(scr_stat *scp, int n, int ch,
42 static __inline void sc_term_col(scr_stat *scp, int n);
43 static __inline void sc_term_row(scr_stat *scp, int n);
44 static __inline void sc_term_up(scr_stat *scp, int n, int head);
45 static __inline void sc_term_down(scr_stat *scp, int n, int tail);
46 static __inline void sc_term_left(scr_stat *scp, int n);
47 static __inline void sc_term_right(scr_stat *scp, int n);
[all …]
H A Dscmouse.c85 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, int wait) in sc_alloc_cut_buffer() argument
[all …]
H A Dscvgarndr.c95 static void vga_nop(scr_stat *scp);
288 #define GET_PIXEL(scp, pos, x, w) \ argument
290 (scp)->sc->adp->va_window + \
291 (x) * (scp)->xoff + \
292 (scp)->yoff * (scp)->font_size * (w) + \
293 (x) * ((pos) % (scp)->xsize) + \
294 (scp)->font_size * (w) * ((pos) / (scp)->xsize); \
297 #define DRAW_PIXEL(scp, pos, color) do { \ argument
298 switch ((scp)->sc->adp->va_info.vi_depth) { \
312 if ((scp)->sc->adp->va_info.vi_pixel_fsizes[1] == 5) \
[all …]
H A Dsyscons.c196 static void sc_puts(scr_stat *scp, u_char *buf, int len);
199 static void sccnupdate(scr_stat *scp);
201 static void init_scp(sc_softc_t *sc, int vty, scr_stat *scp);
204 static void scrn_update(scr_stat *scp, int show_cursor);
212 scr_stat *scp, int mode, u_char *pal, int border);
213 static int restore_scrn_saver_mode(scr_stat *scp, int changemode);
222 static int vt_proc_alive(scr_stat *scp);
223 static int signal_vt_rel(scr_stat *scp);
224 static int signal_vt_acq(scr_stat *scp);
225 static int finish_vt_rel(scr_stat *scp, int release, int *s);
[all …]
H A Dscvidctl.c135 sc_set_text_mode(scr_stat *scp, struct tty *tp, int mode, int xsize, int ysize, in sc_set_text_mode() argument
147 if (vidd_get_info(scp->sc->adp, mode, &info)) in sc_set_text_mode()
164 if ((scp->sc->fonts_loaded & FONT_8) == 0) in sc_set_text_mode()
166 font = scp->sc->font_8; in sc_set_text_mode()
169 if ((scp->sc->fonts_loaded & FONT_14) == 0) in sc_set_text_mode()
171 font = scp->sc->font_14; in sc_set_text_mode()
174 if ((scp->sc->fonts_loaded & FONT_16) == 0) in sc_set_text_mode()
176 font = scp->sc->font_16; in sc_set_text_mode()
189 if ((error = sc_clean_up(scp))) { in sc_set_text_mode()
194 if (sc_render_match(scp, scp->sc->adp->va_name, 0) == NULL) { in sc_set_text_mode()
[all …]
H A Dschistory.c82 static void history_to_screen(scr_stat *scp);
86 sc_alloc_history_buffer(scr_stat *scp, int lines, int prev_ysize, int wait) in sc_alloc_history_buffer() argument
90 * SC_HISTORY_SIZE lines or scp->ysize lines, whichever in sc_alloc_history_buffer()
104 lines = imax(lines, scp->ysize); in sc_alloc_history_buffer()
107 history = prev_history = scp->history; in sc_alloc_history_buffer()
108 scp->history = NULL; in sc_alloc_history_buffer()
120 min_lines = imax(SC_HISTORY_SIZE, scp->ysize); in sc_alloc_history_buffer()
124 scp->history = prev_history; in sc_alloc_history_buffer()
137 sc_vtb_init(history, VTB_RINGBUFFER, scp->xsize, lines, in sc_alloc_history_buffer()
140 sc_vtb_clear(history, scp->sc->scr_map[0x20], in sc_alloc_history_buffer()
[all …]
H A Dscgfbrndr.c64 static void gfb_nop(scr_stat *scp);
114 gfb_nop(scr_stat *scp) in gfb_nop() argument
121 gfb_clear(scr_stat *scp, int c, int attr) in gfb_clear() argument
123 vidd_clear(scp->sc->adp); in gfb_clear()
127 gfb_border(scr_stat *scp, int color) in gfb_border() argument
129 vidd_set_border(scp->sc->adp, color); in gfb_border()
133 gfb_draw(scr_stat *scp, int from, int count, int flip) in gfb_draw() argument
140 adp = scp->sc->adp; in gfb_draw()
146 if (from + count > scp->xsize*scp->ysize) { in gfb_draw()
168 (u_int16_t *)sc_vtb_pointer(&scp->vtb, from), count); in gfb_draw()
[all …]
H A Dsyscons.h101 #define mark_for_update(scp, x) {\ argument
102 if ((x) < scp->start) scp->start = (x);\
103 else if ((x) > scp->end) scp->end = (x);\
105 #define mark_all(scp) {\ argument
106 scp->start = 0;\
107 scp->end = scp->xsize * scp->ysize - 1;\
110 /* vty status flags (scp->status) */
371 typedef int sc_term_init_t(scr_stat *scp, void **tcp, int code);
374 typedef int sc_term_term_t(scr_stat *scp, void **tcp);
375 typedef void sc_term_puts_t(scr_stat *scp, u_char *buf, int len);
[all …]
H A Dscterm-teken.c117 scteken_init(scr_stat *scp, void **softc, int code) in scteken_init() argument
136 teken_init(&ts->ts_teken, &scteken_funcs, scp); in scteken_init()
145 scteken_sync_internal(scp, ts); in scteken_init()
153 scteken_term(scr_stat *scp, void **softc) in scteken_term() argument
166 scteken_puts(scr_stat *scp, u_char *buf, int len) in scteken_puts() argument
168 teken_stat *ts = scp->ts; in scteken_puts()
170 scp->sc->write_in_progress++; in scteken_puts()
172 scp->sc->write_in_progress--; in scteken_puts()
176 scteken_ioctl(scr_stat *scp, struct tty *tp, u_long cmd, caddr_t data, in scteken_ioctl() argument
179 teken_stat *ts = scp->ts; in scteken_ioctl()
[all …]
H A Dscterm-sc.c114 static void scterm_scan_esc(scr_stat *scp, term_stat *tcp,
119 scterm_init(scr_stat *scp, void **softc, int code) in scterm_init() argument
167 scterm_term(scr_stat *scp, void **softc) in scterm_term() argument
178 scterm_scan_esc(scr_stat *scp, term_stat *tcp, u_char c) in scterm_scan_esc() argument
204 sc = scp->sc; in scterm_scan_esc()
208 tcp->saved_xpos = scp->xpos; in scterm_scan_esc()
209 tcp->saved_ypos = scp->ypos; in scterm_scan_esc()
214 sc_move_cursor(scp, tcp->saved_xpos, in scterm_scan_esc()
227 sc_term_up_scroll(scp, 1, sc->scr_map[0x20], in scterm_scan_esc()
241 sc_change_cursor_shape(scp, in scterm_scan_esc()
[all …]
H A Dscterm.c45 sc_move_cursor(scr_stat *scp, int x, int y) in sc_move_cursor() argument
51 if (x >= scp->xsize) in sc_move_cursor()
52 x = scp->xsize - 1; in sc_move_cursor()
53 if (y >= scp->ysize) in sc_move_cursor()
54 y = scp->ysize - 1; in sc_move_cursor()
55 scp->xpos = x; in sc_move_cursor()
56 scp->ypos = y; in sc_move_cursor()
57 scp->cursor_pos = scp->ypos*scp->xsize + scp->xpos; in sc_move_cursor()
61 sc_clear_screen(scr_stat *scp) in sc_clear_screen() argument
63 (*scp->tsw->te_clear)(scp); in sc_clear_screen()
[all …]
/freebsd/sys/dev/sound/midi/
H A Dsequencer.c280 * static void seq_midiinput(struct seq_softc * scp, void *md);
282 static void seq_reset(struct seq_softc *scp);
283 static int seq_sync(struct seq_softc *scp);
285 static int seq_processevent(struct seq_softc *scp, u_char *event);
287 static int seq_timing(struct seq_softc *scp, u_char *event);
288 static int seq_local(struct seq_softc *scp, u_char *event);
290 static int seq_chnvoice(struct seq_softc *scp, kobj_t md, u_char *event);
291 static int seq_chncommon(struct seq_softc *scp, kobj_t md, u_char *event);
292 static int seq_sysex(struct seq_softc *scp, kobj_t md, u_char *event);
294 static int seq_fetch_mid(struct seq_softc *scp, in
433 struct seq_softc *scp = arg; seq_eventthread() local
476 seq_processevent(struct seq_softc * scp,u_char * event) seq_processevent() argument
521 struct seq_softc *scp; seq_addunit() local
629 struct seq_softc *scp = seqs[unit]; seq_delunit() local
727 seq_fetch_mid(struct seq_softc * scp,int unit,kobj_t * md) seq_fetch_mid() argument
741 struct seq_softc *scp = i_dev->si_drv1; mseq_open() local
825 struct seq_softc *scp = i_dev->si_drv1; mseq_close() local
863 struct seq_softc *scp = i_dev->si_drv1; mseq_read() local
941 struct seq_softc *scp = i_dev->si_drv1; mseq_write() local
1129 struct seq_softc *scp = i_dev->si_drv1; mseq_ioctl() local
1432 struct seq_softc *scp = i_dev->si_drv1; mseq_poll() local
1670 seq_copytoinput(struct seq_softc * scp,u_char * event,int len) seq_copytoinput() argument
1689 seq_chnvoice(struct seq_softc * scp,kobj_t md,u_char * event) seq_chnvoice() argument
1763 seq_chncommon(struct seq_softc * scp,kobj_t md,u_char * event) seq_chncommon() argument
1839 seq_timing(struct seq_softc * scp,u_char * event) seq_timing() argument
1917 seq_local(struct seq_softc * scp,u_char * event) seq_local() argument
1937 seq_sysex(struct seq_softc * scp,kobj_t md,u_char * event) seq_sysex() argument
1963 seq_reset(struct seq_softc * scp) seq_reset() argument
2010 seq_sync(struct seq_softc * scp) seq_sync() argument
[all...]
/freebsd/sys/dev/sound/pci/
H A Dcsamidi.c83 csamidi_readio(struct csa_midi_softc *scp, u_long offset)
86 return bus_space_read_4(rman_get_bustag(scp->io), rman_get_bushandle(scp->io), offset) & 0xffffffff; in csamidi_readio()
92 csamidi_writeio(struct csa_midi_softc *scp, u_long offset, u_int32_t data)
95 bus_space_write_4(rman_get_bustag(scp->io), rman_get_bushandle(scp->io), offset, data); in csamidi_writeio()
101 struct csa_midi_softc *scp = (struct csa_midi_softc *)arg; in csamidi_midi_intr()
103 if (scp->mpu_intr) in csamidi_midi_intr()
104 (scp->mpu_intr)(scp in csamidi_midi_intr()
84 csamidi_readio(struct csa_midi_softc * scp,u_long offset) csamidi_readio() argument
93 csamidi_writeio(struct csa_midi_softc * scp,u_long offset,u_int32_t data) csamidi_writeio() argument
102 struct csa_midi_softc *scp = (struct csa_midi_softc *)arg; csamidi_midi_intr() local
111 struct csa_midi_softc *scp = cookie; csamidi_mread() local
138 struct csa_midi_softc *scp = cookie; csamidi_mwrite() local
174 struct csa_midi_softc *scp = cookie; csamidi_muninit() local
201 struct csa_midi_softc *scp; midicsa_attach() local
244 struct csa_midi_softc *scp; midicsa_detach() local
[all...]
H A Demu10kx-midi.c140 struct emu_midi_softc *scp; in emu_midi_probe()
147 scp = device_get_softc(dev); in emu_midi_probe()
148 bzero(scp, sizeof(*scp)); in emu_midi_probe()
150 scp->is_emu10k1 = is_emu10k1 ? 1 : 0; in emu_midi_probe()
159 struct emu_midi_softc * scp; in emu_midi_attach()
164 scp = device_get_softc(dev); in emu_midi_attach()
167 scp->dev = dev; in emu_midi_attach()
169 scp->port = midiinfo->port; in emu_midi_attach()
170 scp in emu_midi_attach()
141 struct emu_midi_softc *scp; emu_midi_probe() local
160 struct emu_midi_softc * scp; emu_midi_attach() local
226 struct emu_midi_softc *scp; emu_midi_detach() local
[all...]
H A Dhdspe-pcm.c235 struct sc_pcminfo *scp; in hdspe_hw_mixer() local
239 scp = ch->parent; in hdspe_hw_mixer()
240 sc = scp->sc; in hdspe_hw_mixer()
291 struct sc_pcminfo *scp; in hdspemixer_init() local
295 scp = mix_getdevinfo(m); in hdspemixer_init()
296 sc = scp->sc; in hdspemixer_init()
302 if (hdspe_channel_play_ports(scp->hc)) in hdspemixer_init()
305 if (hdspe_channel_rec_ports(scp->hc)) in hdspemixer_init()
309 pcm_setflags(scp->dev, pcm_getflags(scp->dev) | SD_F_SOFTPCMVOL); in hdspemixer_init()
320 struct sc_pcminfo *scp; in hdspemixer_set() local
[all …]
H A Dhdsp-pcm.c216 struct sc_pcminfo *scp; in hdsp_hw_mixer() local
221 scp = ch->parent; in hdsp_hw_mixer()
222 sc = scp->sc; in hdsp_hw_mixer()
307 struct sc_pcminfo *scp; in hdspmixer_init() local
311 scp = mix_getdevinfo(m); in hdspmixer_init()
312 sc = scp->sc; in hdspmixer_init()
318 if (hdsp_channel_play_ports(scp->hc)) in hdspmixer_init()
321 if (hdsp_channel_rec_ports(scp->hc)) in hdspmixer_init()
325 pcm_setflags(scp->dev, pcm_getflags(scp->dev) | SD_F_SOFTPCMVOL); in hdspmixer_init()
336 struct sc_pcminfo *scp; in hdspmixer_set() local
[all …]
/freebsd/sys/dev/pbio/
H A Dpbio.c138 pbinb(struct pbio_softc *scp, int off) in pbinb() argument
141 return (bus_read_1(scp->res, off)); in pbinb()
145 pboutb(struct pbio_softc *scp, int off, uint8_t val) in pboutb() argument
148 bus_write_1(scp->res, off, val); in pboutb()
155 struct pbio_softc *scp = device_get_softc(dev); in pbioprobe() local
163 scp->res = bus_alloc_resource_anywhere(dev, SYS_RES_IOPORT, &rid, in pbioprobe()
165 if (scp->res == NULL) in pbioprobe()
175 pboutb(scp, PBIO_CFG, 0x80); in pbioprobe()
177 rman_get_start(scp->res), pbinb(scp, PBIO_CFG)); in pbioprobe()
178 pboutb(scp, PBIO_PORTA, 0xa5); in pbioprobe()
[all …]
/freebsd/crypto/openssh/regress/
H A Dscp-uri.sh1 # $OpenBSD: scp-uri.sh,v 1.5 2023/01/13 04:47:34 dtucker Exp $
4 tid="scp-uri"
15 cp ${SRC}/scp-ssh-wrapper.sh ${OBJ}/scp-ssh-wrapper.scp
16 chmod 755 ${OBJ}/scp-ssh-wrapper.scp
17 export SCP # used in scp-ssh-wrapper.scp
28 for mode in scp sftp ; do
30 if test $mode = scp ; then
31 scpopts="-O -q -S ${OBJ}/scp-ssh-wrapper.scp"
37 $SCP $scpopts ${DATA} "scp://${USER}@somehost:${PORT}/${COPY}" || fail "copy failed"
42 $SCP $scpopts "scp://${USER}@somehost:${PORT}/${DATA}" ${COPY} || fail "copy failed"
[all …]
H A Dscp.sh1 # $OpenBSD: scp.sh,v 1.19 2023/09/08 05:50:57 djm Exp $
4 tid="scp"
16 if ! diff -N ${SRC}/scp.sh ${SRC}/scp.sh 2>/dev/null; then
23 cp ${SRC}/scp-ssh-wrapper.sh ${OBJ}/scp-ssh-wrapper.scp
24 chmod 755 ${OBJ}/scp-ssh-wrapper.scp
25 export SCP # used in scp-ssh-wrapper.scp
44 for mode in scp sftp ; do
46 if test $mode = scp ; then
47 scpopts="-O -q -S ${OBJ}/scp-ssh-wrapper.scp"
54 $SCP $scpopts ${DATA} ${COPY} || fail "copy failed"
[all …]
H A Dscp3.sh13 cp ${SRC}/scp-ssh-wrapper.sh ${OBJ}/scp-ssh-wrapper.scp
14 chmod 755 ${OBJ}/scp-ssh-wrapper.scp
15 export SCP # used in scp-ssh-wrapper.scp
34 for mode in scp sftp ; do
37 if test $mode = scp ; then
45 $SCP $scpopts -3 hostA:${DATA} hostB:${COPY} || fail "copy failed"
51 $SCP $scpopts -3 hostA:${COPY} hostB:${DIR} || fail "copy failed"
56 $SCP $scpopts -3r hostA:${DIR} hostB:${DIR2} || fail "copy failed"
64 $SCP $scpopts -3 hostA:${DATA} hostA:${COPY} hostB:${COPY2}
69 rm -f ${OBJ}/scp-ssh-wrapper.exe
/freebsd/share/examples/drivers/
H A Dmake_device_driver.sh209 static int ${1}_attach(device_t device, struct ${1}_softc *scp);
210 static int ${1}_detach(device_t device, struct ${1}_softc *scp);
386 struct ${1}_softc *scp = DEVICE2SOFTC(device);
389 bzero(scp, sizeof(*scp));
390 scp->device = device;
520 struct ${1}_softc *scp = DEVICE2SOFTC(device);
522 error = ${1}_attach(device, scp);
537 struct ${1}_softc *scp = DEVICE2SOFTC(device);
539 error = ${1}_detach(device, scp);
613 struct ${1}_softc *scp = DEVICE2SOFTC(device);
[all …]
/freebsd/sys/contrib/device-tree/Bindings/remoteproc/
H A Dmtk,scp.yaml4 $id: http://devicetree.org/schemas/remoteproc/mtk,scp.yaml#
7 title: Mediatek SCP
19 - mediatek,mt8183-scp
20 - mediatek,mt8186-scp
21 - mediatek,mt8188-scp
22 - mediatek,mt8192-scp
23 - mediatek,mt8195-scp
24 - mediatek,mt8195-scp-dual
54 initializing SCP.
80 local SCP SRA
[all...]
/freebsd/sys/dev/xen/xenpci/
H A Dxenpci.c53 xenpci_irq_init(device_t device, struct xenpci_softc *scp) in xenpci_irq_init() argument
58 scp->res_irq, INTR_MPSAFE|INTR_TYPE_MISC, in xenpci_irq_init()
60 &scp->intr_cookie); in xenpci_irq_init()
73 scp->res_irq, 0); in xenpci_irq_init()
88 struct xenpci_softc *scp = device_get_softc(dev); in xenpci_deallocate_resources() local
90 if (scp->res_irq != 0) { in xenpci_deallocate_resources()
92 scp->rid_irq, scp->res_irq); in xenpci_deallocate_resources()
94 scp->rid_irq, scp->res_irq); in xenpci_deallocate_resources()
95 scp->res_irq = 0; in xenpci_deallocate_resources()
107 struct xenpci_softc *scp = device_get_softc(dev); in xenpci_allocate_resources() local
[all …]
/freebsd/sys/arm/freescale/imx/
H A Dimx6_ssi.c209 uint32_t (*ih)(struct sc_pcminfo *scp);
221 static int setup_dma(struct sc_pcminfo *scp);
232 struct sc_pcminfo *scp; in ssimixer_init() local
236 scp = mix_getdevinfo(m); in ssimixer_init()
237 sc = scp->sc; in ssimixer_init()
246 pcm_setflags(scp->dev, pcm_getflags(scp->dev) | SD_F_SOFTPCMVOL); in ssimixer_init()
257 struct sc_pcminfo *scp; in ssimixer_set() local
259 scp = mix_getdevinfo(m); in ssimixer_set()
264 device_printf(scp->dev, "ssimixer_set() %d %d\n", in ssimixer_set()
286 struct sc_pcminfo *scp; in ssichan_init() local
[all …]
/freebsd/sys/arm/freescale/vybrid/
H A Dvf_sai.c174 uint32_t (*ih) (struct sc_pcminfo *scp);
186 static int setup_dma(struct sc_pcminfo *scp);
197 struct sc_pcminfo *scp; in saimixer_init() local
201 scp = mix_getdevinfo(m); in saimixer_init()
202 sc = scp->sc; in saimixer_init()
210 pcm_setflags(scp->dev, pcm_getflags(scp->dev) | SD_F_SOFTPCMVOL); in saimixer_init()
222 struct sc_pcminfo *scp; in saimixer_set()
224 scp = mix_getdevinfo(m); in saimixer_set()
226 device_printf(scp->dev, "saimixer_set() %d %d\n", in saimixer_set()
248 struct sc_pcminfo *scp; in saichan_init() local
[all …]

1234567