Home
last modified time | relevance | path

Searched full:scr (Results 1 – 25 of 173) sorted by relevance

1234567

/freebsd/usr.bin/vi/
H A Dextern.h2 int cl_waddstr(SCR *, const CHAR_T *, size_t);
3 int cl_addstr(SCR *, const char *, size_t);
4 int cl_attr(SCR *, scr_attr_t, int);
5 int cl_baud(SCR *, u_long *);
6 int cl_bell(SCR *);
7 int cl_clrtoeol(SCR *);
8 int cl_cursor(SCR *, size_t *, size_t *);
9 int cl_deleteln(SCR *);
10 int cl_discard(SCR *, SCR **);
11 int cl_ex_adjust(SCR *, exadj_t);
[all …]
/freebsd/contrib/nvi/common/
H A Doptions_f.c28 * PUBLIC: int f_altwerase(SCR *, OPTION *, char *, u_long *);
31 f_altwerase(SCR *sp, OPTION *op, char *str, u_long *valp) in f_altwerase()
39 * PUBLIC: int f_columns(SCR *, OPTION *, char *, u_long *);
42 f_columns(SCR *sp, OPTION *op, char *str, u_long *valp) in f_columns()
69 * PUBLIC: int f_lines(SCR *, OPTION *, char *, u_long *);
72 f_lines(SCR *sp, OPTION *op, char *str, u_long *valp) in f_lines()
122 * PUBLIC: int f_lisp(SCR *, OPTION *, char *, u_long *);
125 f_lisp(SCR *sp, OPTION *op, char *str, u_long *valp) in f_lisp()
132 * PUBLIC: int f_msgcat(SCR *, OPTION *, char *, u_long *);
135 f_msgcat(SCR *sp, OPTION *op, char *str, u_long *valp) in f_msgcat()
[all …]
H A Dgs.h60 SCR *ccl_sp; /* Colon command-line screen. */
143 int (*scr_addstr)(SCR *, const char *, size_t);
145 int (*scr_waddstr)(SCR *, const CHAR_T *, size_t);
147 int (*scr_attr)(SCR *, scr_attr_t, int);
149 int (*scr_baud)(SCR *, u_long *);
151 int (*scr_bell)(SCR *);
153 void (*scr_busy)(SCR *, const char *, busy_t);
155 int (*scr_child)(SCR *);
157 int (*scr_clrtoeol)(SCR *);
159 int (*scr_cursor)(SCR *, size_t *, size_t *);
[all …]
H A Dscreen.c29 * Do the default initialization of an SCR structure.
31 * PUBLIC: int screen_init(GS *, SCR *, SCR **);
34 screen_init(GS *gp, SCR *orig, SCR **spp) in screen_init()
36 SCR *sp; in screen_init()
40 CALLOC_RET(orig, sp, 1, sizeof(SCR)); in screen_init()
125 * PUBLIC: int screen_end(SCR *);
128 screen_end(SCR *sp) in screen_end()
196 * PUBLIC: SCR *screen_next(SCR *);
198 SCR *
199 screen_next(SCR *sp) in screen_next()
[all …]
H A Dline.c25 static int scr_update(SCR *, recno_t, lnop_t, int);
31 * PUBLIC: int db_eget(SCR *, recno_t, CHAR_T **, size_t *, int *);
34 db_eget(SCR *sp, in db_eget()
74 * PUBLIC: int db_get(SCR *, recno_t, u_int32_t, CHAR_T **, size_t *);
77 db_get(SCR *sp, in db_get()
196 * PUBLIC: int db_delete(SCR *, recno_t);
199 db_delete(SCR *sp, recno_t lno) in db_delete()
250 * PUBLIC: int db_append(SCR *, int, recno_t, CHAR_T *, size_t);
253 db_append(SCR *sp, int update, recno_t lno, CHAR_T *p, size_t len) in db_append()
321 * PUBLIC: int db_insert(SCR *, recno_t, CHAR_T *, size_t);
[all …]
H A Dlog.c62 static int log_cursor1(SCR *, int);
63 static void log_err(SCR *, char *, int);
65 static void log_trace(SCR *, char *, recno_t, u_char *);
67 static int apply_with(int (*)(SCR *, recno_t, CHAR_T *, size_t),
68 SCR *, recno_t, u_char *, size_t);
89 * PUBLIC: int log_init(SCR *, EXF *);
92 log_init(SCR *sp, EXF *ep) in log_init()
123 * PUBLIC: int log_end(SCR *, EXF *);
126 log_end(SCR *sp, EXF *ep) in log_end()
149 * PUBLIC: int log_cursor(SCR *);
[all …]
H A Dconv.c50 raw2int(SCR *sp, const char * str, ssize_t len, CONVWIN *cw, size_t *tolen, in raw2int()
101 default_char2int(SCR *sp, const char * str, ssize_t len, CONVWIN *cw, in default_char2int()
155 fe_char2int(SCR *sp, const char * str, ssize_t len, CONVWIN *cw, size_t *tolen, in fe_char2int()
163 ie_char2int(SCR *sp, const char * str, ssize_t len, CONVWIN *cw, size_t *tolen, in ie_char2int()
171 cs_char2int(SCR *sp, const char * str, ssize_t len, CONVWIN *cw, size_t *tolen, in cs_char2int()
178 int2raw(SCR *sp, const CHAR_T * str, ssize_t len, CONVWIN *cw, size_t *tolen, in int2raw()
197 default_int2char(SCR *sp, const CHAR_T * str, ssize_t len, CONVWIN *cw, in default_int2char()
292 fe_int2char(SCR *sp, const CHAR_T * str, ssize_t len, CONVWIN *cw, in fe_int2char()
300 cs_int2char(SCR *sp, const CHAR_T * str, ssize_t len, CONVWIN *cw, in cs_int2char()
312 * PUBLIC: void conv_init(SCR *, SCR *);
[all …]
H A Dmark.c25 static LMARK *mark_find(SCR *, ARG_CHAR_T);
62 * PUBLIC: int mark_init(SCR *, EXF *);
65 mark_init(SCR *sp, EXF *ep) in mark_init()
81 * PUBLIC: int mark_end(SCR *, EXF *);
84 mark_end(SCR *sp, EXF *ep) in mark_end()
103 * PUBLIC: int mark_get(SCR *, ARG_CHAR_T, MARK *, mtype_t);
106 mark_get(SCR *sp, ARG_CHAR_T key, MARK *mp, mtype_t mtype) in mark_get()
144 * PUBLIC: int mark_set(SCR *, ARG_CHAR_T, MARK *, int);
147 mark_set(SCR *sp, ARG_CHAR_T key, MARK *value, int userset) in mark_set()
185 mark_find(SCR *sp, ARG_CHAR_T key) in mark_find()
[all …]
/freebsd/contrib/nvi/vi/
H A Dv_ex.c26 static int v_ecl(SCR *);
27 static int v_ecl_init(SCR *);
28 static int v_ecl_log(SCR *, TEXT *);
29 static int v_ex_done(SCR *, VICMD *);
30 static int v_exec_ex(SCR *, VICMD *, EXCMD *);
36 * PUBLIC: int v_again(SCR *, VICMD *);
39 v_again(SCR *sp, VICMD *vp) in v_again()
52 * PUBLIC: int v_exmode(SCR *, VICMD *);
55 v_exmode(SCR *sp, VICMD *vp) in v_exmode()
88 * PUBLIC: int v_join(SCR *, VICMD *);
[all …]
H A Dv_scroll.c63 * PUBLIC: int v_lgoto(SCR *, VICMD *);
66 v_lgoto(SCR *sp, VICMD *vp) in v_lgoto()
100 * PUBLIC: int v_home(SCR *, VICMD *);
103 v_home(SCR *sp, VICMD *vp) in v_home()
117 * PUBLIC: int v_middle(SCR *, VICMD *);
120 v_middle(SCR *sp, VICMD *vp) in v_middle()
138 * PUBLIC: int v_bottom(SCR *, VICMD *);
141 v_bottom(SCR *sp, VICMD *vp) in v_bottom()
201 * PUBLIC: int v_up(SCR *, VICMD *);
204 v_up(SCR *sp, VICMD *vp) in v_up()
[all …]
H A Dv_util.c31 * PUBLIC: void v_eof(SCR *, MARK *);
34 v_eof(SCR *sp, MARK *mp) in v_eof()
54 * PUBLIC: void v_eol(SCR *, MARK *);
57 v_eol(SCR *sp, MARK *mp) in v_eol()
77 * PUBLIC: void v_nomove(SCR *);
80 v_nomove(SCR *sp) in v_nomove()
89 * PUBLIC: void v_sof(SCR *, MARK *);
92 v_sof(SCR *sp, MARK *mp) in v_sof()
104 * PUBLIC: void v_sol(SCR *);
107 v_sol(SCR *sp) in v_sol()
[all …]
H A Dv_ch.c24 static void notfound(SCR *, ARG_CHAR_T);
25 static void noprev(SCR *);
31 * PUBLIC: int v_chrepeat(SCR *, VICMD *);
34 v_chrepeat(SCR *sp, VICMD *vp) in v_chrepeat()
60 * PUBLIC: int v_chrrepeat(SCR *, VICMD *);
63 v_chrrepeat(SCR *sp, VICMD *vp) in v_chrrepeat()
99 * PUBLIC: int v_cht(SCR *, VICMD *);
102 v_cht(SCR *sp, VICMD *vp) in v_cht()
130 * PUBLIC: int v_chf(SCR *, VICMD *);
133 v_chf(SCR *sp, VICMD *vp) in v_chf()
[all …]
H A Dvs_split.c28 static SCR *vs_getbg(SCR *, char *);
29 static void vs_insert(SCR *sp, GS *gp);
30 static int vs_join(SCR *, SCR **, jdir_t *);
36 * PUBLIC: int vs_split(SCR *, SCR *, int);
40 SCR *sp, in vs_split()
41 SCR *new, in vs_split()
201 * PUBLIC: int vs_vsplit(SCR *, SCR *);
204 vs_vsplit(SCR *sp, SCR *new) in vs_vsplit()
294 vs_insert(SCR *sp, GS *gp) in vs_insert()
296 SCR *tsp; in vs_insert()
[all …]
H A Dgetc.c39 * PUBLIC: int cs_init(SCR *, VCS *);
42 cs_init(SCR *sp, VCS *csp) in cs_init()
65 * PUBLIC: int cs_next(SCR *, VCS *);
68 cs_next(SCR *sp, VCS *csp) in cs_next()
115 * PUBLIC: int cs_fspace(SCR *, VCS *);
118 cs_fspace(SCR *sp, VCS *csp) in cs_fspace()
135 * PUBLIC: int cs_fblank(SCR *, VCS *);
138 cs_fblank(SCR *sp, VCS *csp) in cs_fblank()
155 * PUBLIC: int cs_prev(SCR *, VCS *);
158 cs_prev(SCR *sp, VCS *csp) in cs_prev()
[all …]
H A Dv_itxt.c56 static u_int32_t set_txt_std(SCR *, VICMD *, u_int32_t);
62 * PUBLIC: int v_iA(SCR *, VICMD *);
65 v_iA(SCR *sp, VICMD *vp) in v_iA()
82 * PUBLIC: int v_ia(SCR *, VICMD *);
85 v_ia(SCR *sp, VICMD *vp) in v_ia()
119 * PUBLIC: int v_iI(SCR *, VICMD *);
122 v_iI(SCR *sp, VICMD *vp) in v_iI()
138 * PUBLIC: int v_ii(SCR *, VICMD *);
141 v_ii(SCR *sp, VICMD *vp) in v_ii()
165 static int io(SCR *, VICMD *, enum which);
[all …]
H A Dv_init.c30 * PUBLIC: int v_screen_copy(SCR *, SCR *);
33 v_screen_copy(SCR *orig, SCR *sp) in v_screen_copy()
78 * PUBLIC: int v_screen_end(SCR *);
81 v_screen_end(SCR *sp) in v_screen_end()
104 * PUBLIC: int v_optchange(SCR *, int, char *, u_long *);
107 v_optchange(SCR *sp, int offset, char *str, u_long *valp) in v_optchange()
/freebsd/contrib/nvi/cl/
H A Dcl_funcs.c32 static void cl_rdiv(SCR *);
35 addstr4(SCR *sp, void *str, size_t len, int wide) in addstr4()
75 * PUBLIC: int cl_waddstr(SCR *, const CHAR_T *, size_t);
78 cl_waddstr(SCR *sp, const CHAR_T *str, size_t len) in cl_waddstr()
87 * PUBLIC: int cl_addstr(SCR *, const char *, size_t);
90 cl_addstr(SCR *sp, const char *str, size_t len) in cl_addstr()
99 * PUBLIC: int cl_attr(SCR *, scr_attr_t, int);
102 cl_attr(SCR *sp, scr_attr_t attribute, int on) in cl_attr()
186 * PUBLIC: int cl_baud(SCR *, u_long *);
189 cl_baud(SCR *sp, u_long *ratep) in cl_baud()
[all …]
/freebsd/contrib/nvi/ex/
H A Dex_print.c25 static int ex_prchars(SCR *,
33 * PUBLIC: int ex_list(SCR *, EXCMD *);
36 ex_list(SCR *sp, EXCMD *cmdp) in ex_list()
51 * PUBLIC: int ex_number(SCR *, EXCMD *);
54 ex_number(SCR *sp, EXCMD *cmdp) in ex_number()
69 * PUBLIC: int ex_pr(SCR *, EXCMD *);
72 ex_pr(SCR *sp, EXCMD *cmdp) in ex_pr()
85 * PUBLIC: int ex_print(SCR *, EXCMD *, MARK *, MARK *, u_int32_t);
88 ex_print(SCR *sp, EXCMD *cmdp, MARK *fp, MARK *tp, u_int32_t flags) in ex_print()
140 * PUBLIC: int ex_ldisplay(SCR *, const CHAR_T *, size_t, size_t, u_int);
[all …]
H A Dex_screen.c29 * PUBLIC: int ex_bg(SCR *, EXCMD *);
32 ex_bg(SCR *sp, EXCMD *cmdp) in ex_bg()
41 * PUBLIC: int ex_fg(SCR *, EXCMD *);
44 ex_fg(SCR *sp, EXCMD *cmdp) in ex_fg()
46 SCR *nsp; in ex_fg()
65 * PUBLIC: int ex_resize(SCR *, EXCMD *);
68 ex_resize(SCR *sp, EXCMD *cmdp) in ex_resize()
94 * PUBLIC: int ex_sdisplay(SCR *);
97 ex_sdisplay(SCR *sp) in ex_sdisplay()
100 SCR *tsp; in ex_sdisplay()
H A Dex_tag.c37 static void ctag_file(SCR *, TAGF *, char *, char **, size_t *);
38 static int ctag_search(SCR *, CHAR_T *, size_t, char *);
39 static int ctag_sfile(SCR *, TAGF *, TAGQ *, char *);
40 static TAGQ *ctag_slist(SCR *, CHAR_T *);
42 static int tag_copy(SCR *, TAG *, TAG **);
43 static int tag_pop(SCR *, TAGQ *, int);
44 static int tagf_copy(SCR *, TAGF *, TAGF **);
45 static int tagf_free(SCR *, TAGF *);
46 static int tagq_copy(SCR *, TAGQ *, TAGQ **);
52 * PUBLIC: int ex_tag_first(SCR *, CHAR_T *);
[all …]
H A Dex_util.c30 * PUBLIC: void ex_cinit(SCR *, EXCMD *, int, int, recno_t, recno_t, int);
33 ex_cinit(SCR *sp, EXCMD *cmdp, int cmd_id, int naddr, recno_t lno1, recno_t lno2, int force) in ex_cinit()
50 * PUBLIC: int ex_getline(SCR *, FILE *, size_t *);
53 ex_getline(SCR *sp, FILE *fp, size_t *lenp) in ex_getline()
90 * PUBLIC: int ex_ncheck(SCR *, int);
93 ex_ncheck(SCR *sp, int force) in ex_ncheck()
119 * PUBLIC: int ex_init(SCR *);
122 ex_init(SCR *sp) in ex_init()
144 * PUBLIC: void ex_wemsg(SCR *, CHAR_T *, exm_t);
147 ex_wemsg(SCR* sp, CHAR_T *p, exm_t which) in ex_wemsg()
[all …]
H A Dex_cscope.c60 static int cscope_add(SCR *, EXCMD *, CHAR_T *);
61 static int cscope_find(SCR *, EXCMD*, CHAR_T *);
62 static int cscope_help(SCR *, EXCMD *, CHAR_T *);
63 static int cscope_kill(SCR *, EXCMD *, CHAR_T *);
64 static int cscope_reset(SCR *, EXCMD *, CHAR_T *);
68 int (*function)(SCR *, EXCMD *, CHAR_T *);
87 static TAGQ *create_cs_cmd(SCR *, char *, size_t *);
88 static int csc_help(SCR *, char *);
89 static void csc_file(SCR *,
91 static int get_paths(SCR *, CSC *);
[all …]
H A Dex_args.c26 static int ex_N_next(SCR *, EXCMD *);
38 * PUBLIC: int ex_next(SCR *, EXCMD *);
41 ex_next(SCR *sp, EXCMD *cmdp) in ex_next()
127 ex_N_next(SCR *sp, EXCMD *cmdp) in ex_N_next()
129 SCR *new; in ex_N_next()
169 * PUBLIC: int ex_prev(SCR *, EXCMD *);
172 ex_prev(SCR *sp, EXCMD *cmdp) in ex_prev()
215 * anyone noticing, but if they do, we'll have to put information into the SCR
218 * PUBLIC: int ex_rew(SCR *, EXCMD *);
221 ex_rew(SCR *sp, EXCMD *cmdp) in ex_rew()
[all …]
H A Dex_init.c29 static enum rc exrc_isok(SCR *, struct stat *, char *, int, int);
31 static int ex_run_file(SCR *, char *);
37 * PUBLIC: int ex_screen_copy(SCR *, SCR *);
40 ex_screen_copy(SCR *orig, SCR *sp) in ex_screen_copy()
73 * PUBLIC: int ex_screen_end(SCR *);
76 ex_screen_end(SCR *sp) in ex_screen_end()
116 * PUBLIC: int ex_optchange(SCR *, int, char *, u_long *);
119 ex_optchange(SCR *sp, int offset, char *str, u_long *valp) in ex_optchange()
133 * PUBLIC: int ex_exrc(SCR *);
136 ex_exrc(SCR *sp) in ex_exrc()
[all …]
/freebsd/sys/dev/ath/ath_hal/ar5212/
H A Dar5212_power.c44 uint32_t scr, val; in ar5212SetPowerModeAwake() local
57 scr = OS_REG_READ(ah, AR_SCR); in ar5212SetPowerModeAwake()
58 if (scr & ~AR_SCR_MASK) { in ar5212SetPowerModeAwake()
60 "%s: bogus SCR 0x%x, PCICFG 0x%x\n", in ar5212SetPowerModeAwake()
61 __func__, scr, OS_REG_READ(ah, AR_PCICFG)); in ar5212SetPowerModeAwake()
62 scr = 0; in ar5212SetPowerModeAwake()
64 scr = (scr &~ AR_SCR_SLE) | AR_SCR_SLE_WAKE; in ar5212SetPowerModeAwake()
65 OS_REG_WRITE(ah, AR_SCR, scr); in ar5212SetPowerModeAwake()
73 OS_REG_WRITE(ah, AR_SCR, scr); in ar5212SetPowerModeAwake()

1234567