Home
last modified time | relevance | path

Searched refs:vp (Results 1 – 25 of 448) sorted by relevance

12345678910>>...18

/NextBSD/contrib/nvi/vi/
HDv_left.c34 v_left(SCR *sp, VICMD *vp) in v_left() argument
42 if (vp->m_start.cno == 0) { in v_left()
48 cnt = F_ISSET(vp, VC_C1SET) ? vp->count : 1; in v_left()
49 if (vp->m_start.cno > cnt) in v_left()
50 vp->m_stop.cno = vp->m_start.cno - cnt; in v_left()
52 vp->m_stop.cno = 0; in v_left()
59 if (ISMOTION(vp)) in v_left()
60 --vp->m_start.cno; in v_left()
61 vp->m_final = vp->m_stop; in v_left()
72 v_cfirst(SCR *sp, VICMD *vp) in v_cfirst() argument
[all …]
HDv_scroll.c70 v_lgoto(SCR *sp, VICMD *vp) in v_lgoto() argument
74 if (F_ISSET(vp, VC_C1SET)) { in v_lgoto()
75 if (!db_exist(sp, vp->count)) { in v_lgoto()
80 if (vp->count == 1) { in v_lgoto()
86 v_eof(sp, &vp->m_start); in v_lgoto()
89 vp->m_stop.lno = vp->count; in v_lgoto()
93 vp->m_stop.lno = nlines ? nlines : 1; in v_lgoto()
95 goto_adjust(vp); in v_lgoto()
107 v_home(SCR *sp, VICMD *vp) in v_home() argument
109 if (vs_sm_position(sp, &vp->m_stop, in v_home()
[all …]
HDv_itxt.c69 v_iA(SCR *sp, VICMD *vp) in v_iA() argument
73 if (!db_get(sp, vp->m_start.lno, 0, NULL, &len)) in v_iA()
78 return (v_ia(sp, vp)); in v_iA()
89 v_ia(SCR *sp, VICMD *vp) in v_ia() argument
96 flags = set_txt_std(sp, vp, 0); in v_ia()
98 sp->lno = vp->m_start.lno; in v_ia()
115 return (v_txt(sp, vp, NULL, p, len, in v_ia()
116 0, OOBLNO, F_ISSET(vp, VC_C1SET) ? vp->count : 1, flags)); in v_ia()
126 v_iI(SCR *sp, VICMD *vp) in v_iI() argument
129 if (nonblank(sp, vp->m_start.lno, &sp->cno)) in v_iI()
[all …]
HDv_mark.c38 v_mark(SCR *sp, VICMD *vp) in v_mark() argument
40 return (mark_set(sp, vp->character, &vp->m_start, 1)); in v_mark()
59 v_bmark(SCR *sp, VICMD *vp) in v_bmark() argument
61 return (mark(sp, vp, 1, BQMARK)); in v_bmark()
73 v_fmark(SCR *sp, VICMD *vp) in v_fmark() argument
75 return (mark(sp, vp, 1, FQMARK)); in v_fmark()
85 v_emark(SCR *sp, VICMD *vp) in v_emark() argument
89 smp = HMAP + vp->ev.e_lno; in v_emark()
94 vp->m_stop.lno = smp->lno; in v_emark()
95 vp->m_stop.cno = in v_emark()
[all …]
HDv_right.c34 v_right(SCR *sp, VICMD *vp) in v_right() argument
39 if (db_eget(sp, vp->m_start.lno, NULL, &len, &isempty)) { in v_right()
60 vp->m_stop.cno = vp->m_start.cno + in v_right()
61 (F_ISSET(vp, VC_C1SET) ? vp->count : 1); in v_right()
62 if (vp->m_start.cno == len - 1 && !ISMOTION(vp)) { in v_right()
66 if (vp->m_stop.cno >= len) { in v_right()
67 vp->m_stop.cno = len - 1; in v_right()
68 vp->m_final = ISMOTION(vp) ? vp->m_start : vp->m_stop; in v_right()
69 } else if (ISMOTION(vp)) { in v_right()
70 --vp->m_stop.cno; in v_right()
[all …]
HDv_section.c65 v_sectionf(SCR *sp, VICMD *vp) in v_sectionf() argument
84 if (ISMOTION(vp)) in v_sectionf()
85 if (vp->m_start.cno == 0) in v_sectionf()
86 F_SET(vp, VM_LMODE); in v_sectionf()
88 vp->m_stop = vp->m_start; in v_sectionf()
89 vp->m_stop.cno = 0; in v_sectionf()
90 if (nonblank(sp, vp->m_stop.lno, &vp->m_stop.cno)) in v_sectionf()
92 if (vp->m_start.cno <= vp->m_stop.cno) in v_sectionf()
93 F_SET(vp, VM_LMODE); in v_sectionf()
96 cnt = F_ISSET(vp, VC_C1SET) ? vp->count : 1; in v_sectionf()
[all …]
HDv_paragraph.c67 v_paragraphf(SCR *sp, VICMD *vp) in v_paragraphf() argument
90 if (ISMOTION(vp)) in v_paragraphf()
91 if (vp->m_start.cno == 0) in v_paragraphf()
92 F_SET(vp, VM_LMODE); in v_paragraphf()
94 vp->m_stop = vp->m_start; in v_paragraphf()
95 vp->m_stop.cno = 0; in v_paragraphf()
96 if (nonblank(sp, vp->m_stop.lno, &vp->m_stop.cno)) in v_paragraphf()
98 if (vp->m_start.cno <= vp->m_stop.cno) in v_paragraphf()
99 F_SET(vp, VM_LMODE); in v_paragraphf()
103 lno = vp->m_start.lno; in v_paragraphf()
[all …]
HDv_search.c41 v_searchb(SCR *sp, VICMD *vp) in v_searchb() argument
43 return (v_exaddr(sp, vp, BACKWARD)); in v_searchb()
53 v_searchf(SCR *sp, VICMD *vp) in v_searchf() argument
55 return (v_exaddr(sp, vp, FORWARD)); in v_searchf()
63 v_exaddr(SCR *sp, VICMD *vp, dir_t dir) in v_exaddr() argument
82 if (F_ISSET(vp, VC_ISDOT)) in v_exaddr()
83 return (v_search(sp, vp, in v_exaddr()
87 if (v_tcmd(sp, vp, dir == BACKWARD ? CH_BSEARCH : CH_FSEARCH, in v_exaddr()
104 vp->m_stop.lno = sp->lno; in v_exaddr()
105 vp->m_stop.cno = sp->cno; in v_exaddr()
[all …]
HDv_ch.c38 v_chrepeat(SCR *sp, VICMD *vp) in v_chrepeat() argument
40 vp->character = VIP(sp)->lastckey; in v_chrepeat()
47 return (v_chF(sp, vp)); in v_chrepeat()
49 return (v_chf(sp, vp)); in v_chrepeat()
51 return (v_chT(sp, vp)); in v_chrepeat()
53 return (v_cht(sp, vp)); in v_chrepeat()
67 v_chrrepeat(SCR *sp, VICMD *vp) in v_chrrepeat() argument
72 vp->character = VIP(sp)->lastckey; in v_chrrepeat()
80 rval = v_chf(sp, vp); in v_chrrepeat()
83 rval = v_chF(sp, vp); in v_chrrepeat()
[all …]
HDv_xchar.c34 v_xchar(SCR *sp, VICMD *vp) in v_xchar() argument
39 if (db_eget(sp, vp->m_start.lno, NULL, &len, &isempty)) { in v_xchar()
58 if (F_ISSET(vp, VC_C1SET)) in v_xchar()
59 vp->m_stop.cno += vp->count - 1; in v_xchar()
60 if (vp->m_stop.cno >= len - 1) { in v_xchar()
61 vp->m_stop.cno = len - 1; in v_xchar()
62 vp->m_final.cno = vp->m_start.cno ? vp->m_start.cno - 1 : 0; in v_xchar()
64 vp->m_final.cno = vp->m_start.cno; in v_xchar()
67 F_ISSET(vp, VC_BUFFER) ? &vp->buffer : NULL, in v_xchar()
68 &vp->m_start, &vp->m_stop, 0)) in v_xchar()
[all …]
HDv_word.c80 v_wordW(SCR *sp, VICMD *vp) in v_wordW() argument
82 return (fword(sp, vp, BIGWORD)); in v_wordW()
92 v_wordw(SCR *sp, VICMD *vp) in v_wordw() argument
94 return (fword(sp, vp, LITTLEWORD)); in v_wordw()
102 fword(SCR *sp, VICMD *vp, enum which type) in fword() argument
108 cnt = F_ISSET(vp, VC_C1SET) ? vp->count : 1; in fword()
109 cs.cs_lno = vp->m_start.lno; in fword()
110 cs.cs_cno = vp->m_start.cno; in fword()
122 if (ISMOTION(vp) && cs.cs_flags != CS_EMP && cnt == 1) { in fword()
123 if (ISCMD(vp->rkp, 'c')) in fword()
[all …]
HDvi.c69 VICMD cmd = { 0 }, *vp; in vi() local
78 vp = &cmd; in vi()
81 F_SET(vp, VM_RCM_SET); in vi()
108 if (F_ISSET(vp, VM_RCM_SET | VM_RCM_SETFNB | VM_RCM_SETNNB)) { in vi()
132 vp->kp = &vikeys[':']; in vi()
137 memset(vp, 0, sizeof(VICMD)); in vi()
152 switch (v_cmd(sp, DOT, vp, NULL, &comcount, &mapped)) { in vi()
168 if (F_ISSET(vp->kp, V_SECURE) && O_ISSET(sp, O_SECURE)) { in vi()
169 ex_emsg(sp, KEY_NAME(sp, vp->key), EXM_SECURE); in vi()
178 if (F_ISSET(vp, VC_ISDOT) && comcount) in vi()
[all …]
HDv_sentence.c55 v_sentencef(SCR *sp, VICMD *vp) in v_sentencef() argument
62 cs.cs_lno = vp->m_start.lno; in v_sentencef()
63 cs.cs_cno = vp->m_start.cno; in v_sentencef()
67 cnt = F_ISSET(vp, VC_C1SET) ? vp->count : 1; in v_sentencef()
79 if (vp->m_start.lno != cs.cs_lno || in v_sentencef()
80 vp->m_start.cno != cs.cs_cno) in v_sentencef()
148 if (vp->m_start.lno == cs.cs_lno && vp->m_start.cno == cs.cs_cno) { in v_sentencef()
153 okret: vp->m_stop.lno = cs.cs_lno; in v_sentencef()
154 vp->m_stop.cno = cs.cs_cno; in v_sentencef()
169 if (ISMOTION(vp)) { in v_sentencef()
[all …]
HDv_put.c36 v_Put(SCR *sp, VICMD *vp) in v_Put() argument
40 if (F_ISSET(vp, VC_ISDOT)) in v_Put()
41 inc_buf(sp, vp); in v_Put()
48 for (cnt = F_ISSET(vp, VC_C1SET) ? vp->count : 1; cnt--;) { in v_Put()
50 F_ISSET(vp, VC_BUFFER) ? &vp->buffer : NULL, in v_Put()
51 &vp->m_start, &vp->m_final, 0)) in v_Put()
53 vp->m_start = vp->m_final; in v_Put()
67 v_put(SCR *sp, VICMD *vp) in v_put() argument
71 if (F_ISSET(vp, VC_ISDOT)) in v_put()
72 inc_buf(sp, vp); in v_put()
[all …]
/NextBSD/sys/security/mac/
HDmac_vfs.c86 struct vnode *vp, struct label *intlabel);
139 mac_vnode_init(struct vnode *vp) in mac_vnode_init() argument
143 vp->v_label = mac_vnode_label_alloc(); in mac_vnode_init()
145 vp->v_label = NULL; in mac_vnode_init()
193 mac_vnode_destroy(struct vnode *vp) in mac_vnode_destroy() argument
196 if (vp->v_label != NULL) { in mac_vnode_destroy()
197 mac_vnode_label_free(vp->v_label); in mac_vnode_destroy()
198 vp->v_label = NULL; in mac_vnode_destroy()
231 mac_devfs_update(struct mount *mp, struct devfs_dirent *de, struct vnode *vp) in mac_devfs_update() argument
234 MAC_POLICY_PERFORM_NOSLEEP(devfs_update, mp, de, de->de_label, vp, in mac_devfs_update()
[all …]
/NextBSD/contrib/gdb/gdb/
HDxcoffsolib.c41 struct vmap *vp = vmap; in xcoff_solib_address() local
45 if (vp == NULL) in xcoff_solib_address()
47 for (vp = vp->nxt; vp; vp = vp->nxt) in xcoff_solib_address()
48 if (vp->tstart <= addr && addr < vp->tend) in xcoff_solib_address()
52 vp->name, in xcoff_solib_address()
53 *vp->member ? "(" : "", in xcoff_solib_address()
54 vp->member, in xcoff_solib_address()
55 *vp->member ? ")" : ""); in xcoff_solib_address()
67 struct vmap *vp = vmap; in solib_info() local
73 if (vp == NULL || vp->nxt == NULL) in solib_info()
[all …]
/NextBSD/sys/kern/
HDvfs_subr.c100 static void delmntque(struct vnode *vp);
104 static int vtryrecycle(struct vnode *vp);
356 struct vnode *vp; in vnode_init() local
359 vp = mem; in vnode_init()
360 bzero(vp, size); in vnode_init()
364 vp->v_vnlock = &vp->v_lock; in vnode_init()
365 mtx_init(&vp->v_interlock, "vnode interlock", NULL, MTX_DEF); in vnode_init()
369 lockinit(vp->v_vnlock, PVFS, "vnode", VLKTIMEOUT, in vnode_init()
374 bo = &vp->v_bufobj; in vnode_init()
375 bo->__bo_vnode = vp; in vnode_init()
[all …]
/NextBSD/bin/sh/
HDvar.c159 struct var *vp; in initvar() local
163 for (ip = varinit ; (vp = ip->var) != NULL ; ip++) { in initvar()
164 if (find_var(ip->text, &vpp, &vp->name_len) != NULL) in initvar()
166 vp->next = *vpp; in initvar()
167 *vpp = vp; in initvar()
168 vp->text = __DECONST(char *, ip->text); in initvar()
169 vp->flags = ip->flags | VSTRFIXED | VTEXTFIXED; in initvar()
170 vp->func = ip->func; in initvar()
321 struct var *vp, **vpp; in setvareq() local
328 vp = find_var(s, &vpp, &nlen); in setvareq()
[all …]
/NextBSD/sys/sys/
HDvnode.h216 #define VN_KNLIST_EMPTY(vp) ((vp)->v_pollinfo == NULL || \ argument
217 KNLIST_EMPTY(&(vp)->v_pollinfo->vpi_selinfo.si_note))
219 #define VN_KNOTE(vp, b, a) \ argument
221 if (!VN_KNLIST_EMPTY(vp)) \
222 KNOTE(&vp->v_pollinfo->vpi_selinfo.si_note, (b), \
225 #define VN_KNOTE_LOCKED(vp, b) VN_KNOTE(vp, b, KNF_LISTLOCKED) argument
226 #define VN_KNOTE_UNLOCKED(vp, b) VN_KNOTE(vp, b, 0) argument
408 #define VREF(vp) vref(vp) argument
428 #define VI_LOCK(vp) mtx_lock(&(vp)->v_interlock) argument
429 #define VI_LOCK_FLAGS(vp, flags) mtx_lock_flags(&(vp)->v_interlock, (flags)) argument
[all …]
/NextBSD/contrib/tcsh/
HDsh.exp.c187 expr(Char ***vp) in expr() argument
189 return (exp0(vp, 0)); in expr()
193 exp0(Char ***vp, int ignore) in exp0() argument
195 tcsh_number_t p1 = exp1(vp, ignore); in exp0()
197 etraci("exp0 p1", p1, vp); in exp0()
198 while (**vp && eq(**vp, STRor2)) { in exp0()
201 (*vp)++; in exp0()
204 exp0(vp, (ignore & TEXP_IGNORE) || p1) : in exp0()
205 exp1(vp, (ignore & TEXP_IGNORE) || p1); in exp0()
208 etraci("exp0 p1", p1, vp); in exp0()
[all …]
/NextBSD/contrib/one-true-awk/
HDtran.c281 Awkfloat setfval(Cell *vp, Awkfloat f) /* set float val of a Cell */ in setfval() argument
285 if ((vp->tval & (NUM | STR)) == 0) in setfval()
286 funnyvar(vp, "assign to"); in setfval()
287 if (isfld(vp)) { in setfval()
289 fldno = atoi(vp->nval); in setfval()
293 } else if (isrec(vp)) { in setfval()
297 if (freeable(vp)) in setfval()
298 xfree(vp->sval); /* free any previous string */ in setfval()
299 vp->tval &= ~STR; /* mark string invalid */ in setfval()
300 vp->tval |= NUM; /* mark number ok */ in setfval()
[all …]
/NextBSD/sys/fs/nullfs/
HDnull_vnops.c335 struct vnode *lvp, *vp; in null_add_writecount() local
338 vp = ap->a_vp; in null_add_writecount()
339 lvp = NULLVPTOLOWERVP(vp); in null_add_writecount()
340 KASSERT(vp->v_writecount + ap->a_inc >= 0, ("wrong writecount inc")); in null_add_writecount()
341 if (vp->v_writecount > 0 && vp->v_writecount + ap->a_inc == 0) in null_add_writecount()
343 else if (vp->v_writecount == 0 && vp->v_writecount + ap->a_inc > 0) in null_add_writecount()
348 vp->v_writecount += ap->a_inc; in null_add_writecount()
363 struct vnode *vp, *ldvp, *lvp; in null_lookup() local
376 vp = lvp = NULL; in null_lookup()
427 error = null_nodeget(mp, lvp, &vp); in null_lookup()
[all …]
/NextBSD/sys/security/mac_bsdextended/
HDugidfw_vnode.c64 ugidfw_vnode_check_access(struct ucred *cred, struct vnode *vp, in ugidfw_vnode_check_access() argument
68 return (ugidfw_check_vp(cred, vp, ugidfw_accmode2mbi(accmode))); in ugidfw_vnode_check_access()
96 ugidfw_vnode_check_deleteacl(struct ucred *cred, struct vnode *vp, in ugidfw_vnode_check_deleteacl() argument
100 return (ugidfw_check_vp(cred, vp, MBI_ADMIN)); in ugidfw_vnode_check_deleteacl()
104 ugidfw_vnode_check_deleteextattr(struct ucred *cred, struct vnode *vp, in ugidfw_vnode_check_deleteextattr() argument
108 return (ugidfw_check_vp(cred, vp, MBI_WRITE)); in ugidfw_vnode_check_deleteextattr()
112 ugidfw_vnode_check_exec(struct ucred *cred, struct vnode *vp, in ugidfw_vnode_check_exec() argument
117 return (ugidfw_check_vp(cred, vp, MBI_READ|MBI_EXEC)); in ugidfw_vnode_check_exec()
121 ugidfw_vnode_check_getacl(struct ucred *cred, struct vnode *vp, in ugidfw_vnode_check_getacl() argument
125 return (ugidfw_check_vp(cred, vp, MBI_STAT)); in ugidfw_vnode_check_getacl()
[all …]
/NextBSD/sys/ddb/
HDdb_variables.c62 struct db_variable *vp; in db_find_variable() local
67 for (vp = db_vars; vp < db_evars; vp++) { in db_find_variable()
68 if (!strcmp(db_tok_string, vp->name)) { in db_find_variable()
69 *varp = vp; in db_find_variable()
73 for (vp = db_regs; vp < db_eregs; vp++) { in db_find_variable()
74 if (!strcmp(db_tok_string, vp->name)) { in db_find_variable()
75 *varp = vp; in db_find_variable()
87 struct db_variable *vp; in db_get_variable() local
89 if (!db_find_variable(&vp)) in db_get_variable()
92 return (db_read_variable(vp, valuep)); in db_get_variable()
[all …]
/NextBSD/sys/dev/vxge/vxgehal/
HDvxgehal-doorbells.c54 __hal_vpath_handle_t *vp = (__hal_vpath_handle_t *) vpath_handle; in __hal_non_offload_db_post() local
58 hldev = (__hal_device_t *) vp->vpath->hldev; in __hal_non_offload_db_post()
68 db_ptr = &vp->vpath->nofl_db->control_0; in __hal_non_offload_db_post()
70 vxge_os_pio_mem_write64(vp->vpath->hldev->header.pdev, in __hal_non_offload_db_post()
71 vp->vpath->hldev->header.regh0, in __hal_non_offload_db_post()
77 vxge_os_pio_mem_write64(vp->vpath->hldev->header.pdev, in __hal_non_offload_db_post()
78 vp->vpath->hldev->header.regh0, in __hal_non_offload_db_post()
99 __hal_vpath_handle_t *vp = (__hal_vpath_handle_t *) vpath_handle; in __hal_non_offload_db_reset() local
103 hldev = (__hal_device_t *) vp->vpath->hldev; in __hal_non_offload_db_reset()
111 vxge_os_pio_mem_write64(vp->vpath->hldev->header.pdev, in __hal_non_offload_db_reset()
[all …]

12345678910>>...18