/freebsd/sys/security/mac/ |
H A D | mac_vfs.c | 84 struct vnode *vp, struct label *intlabel); 137 mac_vnode_init(struct vnode *vp) in mac_vnode_init() argument 141 vp->v_label = mac_vnode_label_alloc(); in mac_vnode_init() 143 vp->v_label = NULL; in mac_vnode_init() 191 mac_vnode_destroy(struct vnode *vp) in mac_vnode_destroy() argument 194 if (vp->v_label != NULL) { in mac_vnode_destroy() 195 mac_vnode_label_free(vp->v_label); in mac_vnode_destroy() 196 vp->v_label = NULL; in mac_vnode_destroy() 229 mac_devfs_update(struct mount *mp, struct devfs_dirent *de, struct vnode *vp) in mac_devfs_update() argument 232 MAC_POLICY_PERFORM_NOSLEEP(devfs_update, mp, de, de->de_label, vp, in mac_devfs_update() [all …]
|
/freebsd/sys/kern/ |
H A D | vnode_if.src | 55 IN struct vnode *vp; 122 %% open vp L L L 126 IN struct vnode *vp; 134 %% close vp L L L 138 IN struct vnode *vp; 145 %% fplookup_vexec vp - - - 150 IN struct vnode *vp; 155 %% fplookup_symlink vp - - - 160 IN struct vnode *vp; 165 %% access vp L L L [all …]
|
H A D | vfs_subr.c | 108 static void delmntque(struct vnode *vp); 112 static int vtryrecycle(struct vnode *vp, bool isvnlru); 115 static void vn_seqc_write_end_free(struct vnode *vp); 118 static void vdropl_recycle(struct vnode *vp); 119 static void vdrop_recycle(struct vnode *vp); 124 static int v_inval_buf_range_locked(struct vnode *vp, struct bufobj *bo, 323 static void vdbatch_dequeue(struct vnode *vp); 433 struct vnode *vp; in sysctl_try_reclaim_vnode() local 455 vp = nd.ni_vp; in sysctl_try_reclaim_vnode() 457 if (VN_IS_DOOMED(vp)) { in sysctl_try_reclaim_vnode() [all …]
|
H A D | vfs_hash.c | 58 vfs_hash_index(struct vnode *vp) in vfs_hash_index() argument 61 return (vp->v_hash + vp->v_mount->mnt_hashseed); in vfs_hash_index() 75 struct vnode *vp; in vfs_hash_get() local 81 LIST_FOREACH(vp, vfs_hash_bucket(mp, hash), v_hashlist) { in vfs_hash_get() 82 if (vp->v_hash != hash) in vfs_hash_get() 84 if (vp->v_mount != mp) in vfs_hash_get() 86 if (fn != NULL && fn(vp, arg)) in vfs_hash_get() 88 vs = vget_prep(vp); in vfs_hash_get() 90 error = vget_finish(vp, flags, vs); in vfs_hash_get() 95 if (vp->v_hash != hash || in vfs_hash_get() [all …]
|
/freebsd/contrib/nvi/vi/ |
H A D | v_left.c | 30 v_left(SCR *sp, VICMD *vp) in v_left() argument 38 if (vp->m_start.cno == 0) { in v_left() 44 cnt = F_ISSET(vp, VC_C1SET) ? vp->count : 1; in v_left() 45 if (vp->m_start.cno > cnt) in v_left() 46 vp->m_stop.cno = vp->m_start.cno - cnt; in v_left() 48 vp->m_stop.cno = 0; in v_left() 55 if (ISMOTION(vp)) in v_left() 56 --vp->m_start.cno; in v_left() 57 vp->m_final = vp->m_stop; in v_left() 68 v_cfirst(SCR *sp, VICMD *vp) in v_cfirst() argument [all …]
|
H A D | v_scroll.c | 66 v_lgoto(SCR *sp, VICMD *vp) in v_lgoto() argument 70 if (F_ISSET(vp, VC_C1SET)) { in v_lgoto() 71 if (!db_exist(sp, vp->count)) { in v_lgoto() 76 if (vp->count == 1) { in v_lgoto() 82 v_eof(sp, &vp->m_start); in v_lgoto() 85 vp->m_stop.lno = vp->count; in v_lgoto() 89 vp->m_stop.lno = nlines ? nlines : 1; in v_lgoto() 91 goto_adjust(vp); in v_lgoto() 103 v_home(SCR *sp, VICMD *vp) in v_home() argument 105 if (vs_sm_position(sp, &vp->m_stop, in v_home() [all …]
|
H A D | v_itxt.c | 65 v_iA(SCR *sp, VICMD *vp) in v_iA() argument 69 if (!db_get(sp, vp->m_start.lno, 0, NULL, &len)) in v_iA() 74 return (v_ia(sp, vp)); in v_iA() 85 v_ia(SCR *sp, VICMD *vp) in v_ia() argument 92 flags = set_txt_std(sp, vp, 0); in v_ia() 94 sp->lno = vp->m_start.lno; in v_ia() 111 return (v_txt(sp, vp, NULL, p, len, in v_ia() 112 0, OOBLNO, F_ISSET(vp, VC_C1SET) ? vp->count : 1, flags)); in v_ia() 122 v_iI(SCR *sp, VICMD *vp) in v_iI() argument 125 if (nonblank(sp, vp->m_start.lno, &sp->cno)) in v_iI() [all …]
|
H A D | v_right.c | 30 v_right(SCR *sp, VICMD *vp) in v_right() argument 35 if (db_eget(sp, vp->m_start.lno, NULL, &len, &isempty)) { in v_right() 56 vp->m_stop.cno = vp->m_start.cno + in v_right() 57 (F_ISSET(vp, VC_C1SET) ? vp->count : 1); in v_right() 58 if (vp->m_start.cno == len - 1 && !ISMOTION(vp)) { in v_right() 62 if (vp->m_stop.cno >= len) { in v_right() 63 vp->m_stop.cno = len - 1; in v_right() 64 vp->m_final = ISMOTION(vp) ? vp->m_start : vp->m_stop; in v_right() 65 } else if (ISMOTION(vp)) { in v_right() 66 --vp->m_stop.cno; in v_right() [all …]
|
H A D | v_xchar.c | 30 v_xchar(SCR *sp, VICMD *vp) in v_xchar() argument 35 if (db_eget(sp, vp->m_start.lno, NULL, &len, &isempty)) { in v_xchar() 54 if (F_ISSET(vp, VC_C1SET)) in v_xchar() 55 vp->m_stop.cno += vp->count - 1; in v_xchar() 56 if (vp->m_stop.cno >= len - 1) { in v_xchar() 57 vp->m_stop.cno = len - 1; in v_xchar() 58 vp->m_final.cno = vp->m_start.cno ? vp->m_start.cno - 1 : 0; in v_xchar() 60 vp->m_final.cno = vp->m_start.cno; in v_xchar() 63 F_ISSET(vp, VC_BUFFER) ? &vp->buffer : NULL, in v_xchar() 64 &vp->m_start, &vp->m_stop, 0)) in v_xchar() [all …]
|
H A D | v_mark.c | 34 v_mark(SCR *sp, VICMD *vp) in v_mark() argument 36 return (mark_set(sp, vp->character, &vp->m_start, 1)); in v_mark() 55 v_bmark(SCR *sp, VICMD *vp) in v_bmark() argument 57 return (mark(sp, vp, 1, BQMARK)); in v_bmark() 69 v_fmark(SCR *sp, VICMD *vp) in v_fmark() argument 71 return (mark(sp, vp, 1, FQMARK)); in v_fmark() 81 v_emark(SCR *sp, VICMD *vp) in v_emark() argument 85 smp = HMAP + vp->ev.e_lno; in v_emark() 90 vp->m_stop.lno = smp->lno; in v_emark() 91 vp->m_stop.cno = in v_emark() [all …]
|
H A D | v_paragraph.c | 68 v_paragraphf(SCR *sp, VICMD *vp) in v_paragraphf() argument 91 if (ISMOTION(vp)) { in v_paragraphf() 92 if (vp->m_start.cno == 0) in v_paragraphf() 93 F_SET(vp, VM_LMODE); in v_paragraphf() 95 vp->m_stop = vp->m_start; in v_paragraphf() 96 vp->m_stop.cno = 0; in v_paragraphf() 97 if (nonblank(sp, vp->m_stop.lno, &vp->m_stop.cno)) in v_paragraphf() 99 if (vp->m_start.cno <= vp->m_stop.cno) in v_paragraphf() 100 F_SET(vp, VM_LMODE); in v_paragraphf() 105 lno = vp->m_start.lno; in v_paragraphf() [all …]
|
H A D | v_ch.c | 34 v_chrepeat(SCR *sp, VICMD *vp) in v_chrepeat() argument 36 vp->character = VIP(sp)->lastckey; in v_chrepeat() 43 return (v_chF(sp, vp)); in v_chrepeat() 45 return (v_chf(sp, vp)); in v_chrepeat() 47 return (v_chT(sp, vp)); in v_chrepeat() 49 return (v_cht(sp, vp)); in v_chrepeat() 63 v_chrrepeat(SCR *sp, VICMD *vp) in v_chrrepeat() argument 68 vp->character = VIP(sp)->lastckey; in v_chrrepeat() 76 rval = v_chf(sp, vp); in v_chrrepeat() 79 rval = v_chF(sp, vp); in v_chrrepeat() [all …]
|
H A D | v_section.c | 61 v_sectionf(SCR *sp, VICMD *vp) in v_sectionf() argument 80 if (ISMOTION(vp)) { in v_sectionf() 81 if (vp->m_start.cno == 0) in v_sectionf() 82 F_SET(vp, VM_LMODE); in v_sectionf() 84 vp->m_stop = vp->m_start; in v_sectionf() 85 vp->m_stop.cno = 0; in v_sectionf() 86 if (nonblank(sp, vp->m_stop.lno, &vp->m_stop.cno)) in v_sectionf() 88 if (vp->m_start.cno <= vp->m_stop.cno) in v_sectionf() 89 F_SET(vp, VM_LMODE); in v_sectionf() 93 cnt = F_ISSET(vp, VC_C1SET) ? vp->count : 1; in v_sectionf() [all …]
|
H A D | vi.c | 65 VICMD cmd = { 0 }, *vp; in vi() local 74 vp = &cmd; in vi() 77 F_SET(vp, VM_RCM_SET); in vi() 104 if (F_ISSET(vp, VM_RCM_SET | VM_RCM_SETFNB | VM_RCM_SETNNB)) { in vi() 128 vp->kp = &vikeys[':']; in vi() 133 memset(vp, 0, sizeof(VICMD)); in vi() 148 switch (v_cmd(sp, DOT, vp, NULL, &comcount, &mapped)) { in vi() 164 if (F_ISSET(vp->kp, V_SECURE) && O_ISSET(sp, O_SECURE)) { in vi() 165 ex_emsg(sp, KEY_NAME(sp, vp->key), EXM_SECURE); in vi() 174 if (F_ISSET(vp, VC_ISDOT) && comcount) in vi() [all …]
|
/freebsd/bin/sh/ |
H A D | var.c | 155 struct var *vp; in initvar() local 159 for (ip = varinit ; (vp = ip->var) != NULL ; ip++) { in initvar() 160 if (find_var(ip->text, &vpp, &vp->name_len) != NULL) in initvar() 162 vp->next = *vpp; in initvar() 163 *vpp = vp; in initvar() 164 vp->text = __DECONST(char *, ip->text); in initvar() 165 vp->flags = ip->flags | VSTRFIXED | VTEXTFIXED; in initvar() 166 vp->func = ip->func; in initvar() 318 struct var *vp, **vpp; in setvareq() local 325 vp = find_var(s, &vpp, &nlen); in setvareq() [all …]
|
/freebsd/sys/sys/ |
H A D | vnode.h | 219 #define VN_KNLIST_EMPTY(vp) ((vp)->v_pollinfo == NULL || \ argument 220 KNLIST_EMPTY(&(vp)->v_pollinfo->vpi_selinfo.si_note)) 222 #define VN_KNOTE(vp, b, a) \ argument 224 if (!VN_KNLIST_EMPTY(vp)) \ 225 KNOTE(&vp->v_pollinfo->vpi_selinfo.si_note, (b), \ 228 #define VN_KNOTE_LOCKED(vp, b) VN_KNOTE(vp, b, KNF_LISTLOCKED) argument 229 #define VN_KNOTE_UNLOCKED(vp, b) VN_KNOTE(vp, b, 0) argument 438 #define VREF(vp) vref(vp) argument 459 #define VI_LOCK(vp) mtx_lock(&(vp)->v_interlock) argument 460 #define VI_LOCK_FLAGS(vp, flags) mtx_lock_flags(&(vp)->v_interlock, (flags)) argument [all …]
|
/freebsd/contrib/tcsh/ |
H A D | sh.exp.c | 184 expr(Char ***vp) in expr() argument 186 return (exp0(vp, 0)); in expr() 190 exp0(Char ***vp, int ignore) in exp0() argument 192 tcsh_number_t p1 = exp1(vp, ignore); in exp0() 194 etraci("exp0 p1", p1, vp); in exp0() 195 while (**vp && eq(**vp, STRor2)) { in exp0() 198 (*vp)++; in exp0() 201 exp0(vp, (ignore & TEXP_IGNORE) || p1) : in exp0() 202 exp1(vp, (ignore & TEXP_IGNORE) || p1); in exp0() 205 etraci("exp0 p1", p1, vp); in exp0() [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | VPIntrinsics.def | 1 //===-- IR/VPIntrinsics.def - Describes llvm.vp.* Intrinsics -*- C++ -*-===// 20 // Register a VP intrinsic and begin its property scope. 21 // All VP intrinsic scopes are top level, ie it is illegal to place a 22 // BEGIN_REGISTER_VP_INTRINSIC within a VP intrinsic scope. 23 // \p VPID The VP intrinsic id. 30 // End the property scope of a VP intrinsic. 35 // Register a new VP SDNode and begin its property scope. 36 // When the SDNode scope is nested within a VP intrinsic scope, it is 37 // implicitly registered as the canonical SDNode for this VP intrinsic. There 38 // is one VP intrinsic that maps directly to one SDNode that goes by the [all …]
|
/freebsd/sys/dev/videomode/ |
H A D | videomode.c | 21 #define VP VID_PVSYNC macro 31 M("640x400x85",640,400,31500,672,736,832,401,404,445,HN|VP), 32 M("720x400x70",720,400,28320,738,846,900,412,414,449,HN|VP), 33 M("720x400x85",720,400,35500,756,828,936,401,404,446,HN|VP), 39 M("800x600x56",800,600,36000,824,896,1024,601,603,625,HP|VP), 40 M("800x600x60",800,600,40000,840,968,1056,601,605,628,HP|VP), 41 M("800x600x72",800,600,50000,856,976,1040,637,643,666,HP|VP), 42 M("800x600x75",800,600,49500,816,896,1056,601,604,625,HP|VP), 43 M("800x600x85",800,600,56250,832,896,1048,601,604,631,HP|VP), 44 M("1024x768x87i",1024,768,44900,1032,1208,1264,768,776,817,HP|VP|I), [all …]
|
/freebsd/sys/ddb/ |
H A D | db_variables.c | 60 struct db_variable *vp; in db_find_variable() local 65 for (vp = db_vars; vp < db_evars; vp++) { in db_find_variable() 66 if (!strcmp(db_tok_string, vp->name)) { in db_find_variable() 67 *varp = vp; in db_find_variable() 71 for (vp = db_regs; vp < db_eregs; vp++) { in db_find_variable() 72 if (!strcmp(db_tok_string, vp->name)) { in db_find_variable() 73 *varp = vp; in db_find_variable() 85 struct db_variable *vp; in db_get_variable() local 87 if (!db_find_variable(&vp)) in db_get_variable() 90 return (db_read_variable(vp, valuep)); in db_get_variable() [all …]
|
/freebsd/contrib/one-true-awk/ |
H A D | tran.c | 297 Awkfloat setfval(Cell *vp, Awkfloat f) /* set float val of a Cell */ in setfval() argument 302 if ((vp->tval & (NUM | STR)) == 0) in setfval() 303 funnyvar(vp, "assign to"); in setfval() 304 if (isfld(vp)) { in setfval() 306 fldno = atoi(vp->nval); in setfval() 310 } else if (&vp->fval == NF) { in setfval() 314 } else if (isrec(vp)) { in setfval() 318 } else if (vp == ofsloc) { in setfval() 322 if (freeable(vp)) in setfval() 323 xfree(vp->sval); /* free any previous string */ in setfval() [all …]
|
/freebsd/sys/security/mac_bsdextended/ |
H A D | ugidfw_vnode.c | 62 ugidfw_vnode_check_access(struct ucred *cred, struct vnode *vp, in ugidfw_vnode_check_access() argument 66 return (ugidfw_check_vp(cred, vp, ugidfw_accmode2mbi(accmode))); in ugidfw_vnode_check_access() 94 ugidfw_vnode_check_deleteacl(struct ucred *cred, struct vnode *vp, in ugidfw_vnode_check_deleteacl() argument 98 return (ugidfw_check_vp(cred, vp, MBI_ADMIN)); in ugidfw_vnode_check_deleteacl() 102 ugidfw_vnode_check_deleteextattr(struct ucred *cred, struct vnode *vp, in ugidfw_vnode_check_deleteextattr() argument 106 return (ugidfw_check_vp(cred, vp, MBI_WRITE)); in ugidfw_vnode_check_deleteextattr() 110 ugidfw_vnode_check_exec(struct ucred *cred, struct vnode *vp, in ugidfw_vnode_check_exec() argument 115 return (ugidfw_check_vp(cred, vp, MBI_READ|MBI_EXEC)); in ugidfw_vnode_check_exec() 119 ugidfw_vnode_check_getacl(struct ucred *cred, struct vnode *vp, in ugidfw_vnode_check_getacl() argument 123 return (ugidfw_check_vp(cred, vp, MBI_STAT)); in ugidfw_vnode_check_getacl() [all …]
|
/freebsd/sys/fs/devfs/ |
H A D | devfs_vnops.c | 239 devfs_usecount_add(struct vnode *vp) in devfs_usecount_add() argument 245 VI_LOCK(vp); in devfs_usecount_add() 246 VNPASS(vp->v_type == VCHR || vp->v_type == VBAD, vp); in devfs_usecount_add() 247 if (VN_IS_DOOMED(vp)) { in devfs_usecount_add() 251 de = vp->v_data; in devfs_usecount_add() 252 dev = vp->v_rdev; in devfs_usecount_add() 258 VI_UNLOCK(vp); in devfs_usecount_add() 263 devfs_usecount_subl(struct vnode *vp) in devfs_usecount_subl() argument 269 ASSERT_VI_LOCKED(vp, __func__); in devfs_usecount_subl() 270 VNPASS(vp->v_type == VCHR || vp->v_type == VBAD, vp); in devfs_usecount_subl() [all …]
|
/freebsd/sys/fs/nullfs/ |
H A D | null_subr.c | 55 #define NULL_NHASH(vp) (&null_node_hashtbl[vfs_hash_index(vp) & null_hash_mask]) argument 97 struct vnode *vp; in null_hashget_locked() local 117 vp = NULLTOV(a); in null_hashget_locked() 118 vref(vp); in null_hashget_locked() 119 return (vp); in null_hashget_locked() 129 struct vnode *vp; in null_hashget() local 136 vp = null_hashget_locked(mp, lowervp); in null_hashget() 139 return (vp); in null_hashget() 166 null_destroy_proto(struct vnode *vp, void *xp) in null_destroy_proto() argument 169 lockmgr(&vp->v_lock, LK_EXCLUSIVE, NULL); in null_destroy_proto() [all …]
|
H A D | null_vnops.c | 232 * We require at least one vp. in null_bypass() 236 panic ("null_bypass: no vp's in map"); in null_bypass() 254 * that aren't. (We must always map first vp or vclean fails.) in null_bypass() 276 * of vrele'ing their vp's. We must account for in null_bypass() 343 * XXX - even though some ops have vpp returned vp's, in null_bypass() 361 struct vnode *lvp, *vp; in null_add_writecount() local 364 vp = ap->a_vp; in null_add_writecount() 365 lvp = NULLVPTOLOWERVP(vp); in null_add_writecount() 366 VI_LOCK(vp); in null_add_writecount() 368 VNASSERT(vp in null_add_writecount() 389 struct vnode *vp, *ldvp, *lvp; null_lookup() local 477 struct vnode *vp, *ldvp; null_open() local 500 struct vnode *vp = ap->a_vp; null_setattr() local 567 struct vnode *vp = ap->a_vp; null_access() local 593 struct vnode *vp = ap->a_vp; null_accessx() local 628 struct vnode *lvp, *vp; null_remove() local 743 struct vnode *vp = ap->a_vp; null_lock() local 816 struct vnode *vp = ap->a_vp; null_unlock() local 839 null_want_recycle(struct vnode * vp) null_want_recycle() argument 867 struct vnode *vp; null_inactive() local 891 struct vnode *vp; null_reclaim() local 937 struct vnode *vp = ap->a_vp; null_print() local 949 struct vnode *vp; null_getwritemount() local 978 struct vnode *vp = ap->a_vp; null_vptocnp() local 1024 struct vnode *lvp, *vp; null_read_pgcache() local 1046 struct vnode *lvp, *vp; null_advlock() local 1073 struct vnode *dvp, *ldvp, *lvp, *vp, *vp1, **vpp; null_vput_pair() local 1133 struct vnode *vp, *vpl; null_getlowvnode() local [all...] |