Home
last modified time | relevance | path

Searched refs:dv (Results 1 – 25 of 53) sorted by relevance

123

/titanic_50/usr/src/uts/common/fs/devfs/
H A Ddevfs_subr.c140 struct dv_node *dv = (struct dv_node *)buf; in i_dv_node_ctor() local
144 vp = dv->dv_vnode = vn_alloc(flag); in i_dv_node_ctor()
148 vp->v_data = dv; in i_dv_node_ctor()
149 rw_init(&dv->dv_contents, NULL, RW_DEFAULT, NULL); in i_dv_node_ctor()
158 struct dv_node *dv = (struct dv_node *)buf; in i_dv_node_dtor() local
159 struct vnode *vp = DVTOV(dv); in i_dv_node_dtor()
161 rw_destroy(&dv->dv_contents); in i_dv_node_dtor()
283 struct dv_node *dv; in dv_mkroot() local
290 dv = kmem_cache_alloc(dv_node_cache, KM_SLEEP); in dv_mkroot()
291 vp = DVTOV(dv); in dv_mkroot()
[all …]
H A Ddevfs_vnops.c75 struct dv_node *dv = VTODV(*vpp); in devfs_open() local
77 dcmn_err2(("devfs_open %s\n", dv->dv_name)); in devfs_open()
91 struct dv_node *dv = VTODV(vp); in devfs_close() local
93 dcmn_err2(("devfs_close %s\n", dv->dv_name)); in devfs_close()
163 struct dv_node *dv = VTODV(vp); in devfs_getattr() local
171 dcmn_err2(("?devfs_getattr %s\n", dv->dv_name)); in devfs_getattr()
172 ASSERT(dv->dv_attr || dv->dv_attrvp); in devfs_getattr()
180 rw_enter(&dv->dv_contents, RW_READER); in devfs_getattr()
181 if (dv->dv_attr) { in devfs_getattr()
188 *vap = *dv->dv_attr; in devfs_getattr()
[all …]
H A Ddevfs_vfsops.c182 struct dv_node *dv; in devfs_mount() local
211 dv = dv_mkroot(vfsp, devfsdev); in devfs_mount()
212 dv->dv_attrvp = avp; /* attribute root vp */ in devfs_mount()
214 ASSERT(dv == dv->dv_dotdot); in devfs_mount()
218 devfs_data->devfs_root = dv; in devfs_mount()
234 (void) VOP_SETATTR(DVTOV(dv), &va, 0, cr, NULL); in devfs_mount()
/titanic_50/usr/src/uts/common/fs/dev/
H A Dsdev_subr.c160 sdev_prof_free(struct sdev_node *dv) in sdev_prof_free() argument
162 ASSERT(!SDEV_IS_GLOBAL(dv)); in sdev_prof_free()
163 nvlist_free(dv->sdev_prof.dev_name); in sdev_prof_free()
164 nvlist_free(dv->sdev_prof.dev_map); in sdev_prof_free()
165 nvlist_free(dv->sdev_prof.dev_symlink); in sdev_prof_free()
166 nvlist_free(dv->sdev_prof.dev_glob_incdir); in sdev_prof_free()
167 nvlist_free(dv->sdev_prof.dev_glob_excdir); in sdev_prof_free()
168 bzero(&dv->sdev_prof, sizeof (dv->sdev_prof)); in sdev_prof_free()
176 struct sdev_node *dv = (struct sdev_node *)buf; in i_sdev_node_ctor() local
180 vp = dv->sdev_vnode = vn_alloc(flag); in i_sdev_node_ctor()
[all …]
H A Dsdev_netops.c56 devnet_validate(struct sdev_node *dv) in devnet_validate() argument
61 ASSERT(dv->sdev_state == SDEV_READY); in devnet_validate()
63 if (dls_mgmt_get_linkid(dv->sdev_name, &linkid) != 0) in devnet_validate()
65 if (SDEV_IS_GLOBAL(dv)) in devnet_validate()
117 struct sdev_node *dv = NULL; in devnet_lookup() local
150 if ((dv = sdev_cache_lookup(ddv, nm)) != NULL) { in devnet_lookup()
151 ASSERT(dv->sdev_state == SDEV_READY); in devnet_lookup()
152 if (!(dv->sdev_flags & SDEV_ATTR_INVALID)) in devnet_lookup()
166 error = sdev_mknode(ddv, nm, &dv, &vattr, NULL, NULL, cred, SDEV_READY); in devnet_lookup()
172 ASSERT(dv != NULL); in devnet_lookup()
[all …]
H A Dsdev_vtops.c98 devvt_validate(struct sdev_node *dv) in devvt_validate() argument
101 char *nm = dv->sdev_name; in devvt_validate()
104 ASSERT(dv->sdev_state == SDEV_READY); in devvt_validate()
105 ASSERT(RW_LOCK_HELD(&(dv->sdev_dotdot)->sdev_contents)); in devvt_validate()
108 if (dv->sdev_state != SDEV_READY) { in devvt_validate()
110 nm, (void *)dv)); in devvt_validate()
120 rval = (strcmp(link, dv->sdev_symlink) == 0) ? in devvt_validate()
129 rval = (strcmp(link, dv->sdev_symlink) == 0) ? in devvt_validate()
189 struct sdev_node *dv; in devvt_lookup() local
211 dv = VTOSDEV(VTOS(*vpp)->s_realvp); in devvt_lookup()
[all …]
H A Dsdev_ipnetops.c65 devipnet_validate(struct sdev_node *dv) in devipnet_validate() argument
69 dev = ipnet_if_getdev(dv->sdev_name, getzoneid()); in devipnet_validate()
72 if (getminor(SDEVTOV(dv)->v_rdev) != getminor(dev)) in devipnet_validate()
110 struct sdev_node *dv; in devipnet_lookup() local
120 dv = VTOSDEV(VTOS(*vpp)->s_realvp); in devipnet_lookup()
121 ASSERT(VOP_REALVP(SDEVTOV(dv), &rvp, NULL) == ENOSYS); in devipnet_lookup()
124 dv = VTOSDEV(*vpp); in devipnet_lookup()
131 ASSERT(SDEV_HELD(dv)); in devipnet_lookup()
142 struct sdev_node *dv; in devipnet_filldir_entry() local
146 if ((dv = sdev_cache_lookup(ddv, (char *)name)) == NULL) { in devipnet_filldir_entry()
[all …]
H A Dsdev_ptsops.c102 devpts_validate(struct sdev_node *dv) in devpts_validate() argument
108 char *nm = dv->sdev_name; in devpts_validate()
110 ASSERT(dv->sdev_state == SDEV_READY); in devpts_validate()
113 if (dv->sdev_state != SDEV_READY) { in devpts_validate()
115 nm, (void *)dv)); in devpts_validate()
144 ASSERT(dv->sdev_attr); in devpts_validate()
145 if (dv->sdev_attr->va_uid != uid || dv->sdev_attr->va_gid != gid) { in devpts_validate()
146 dv->sdev_attr->va_uid = uid; in devpts_validate()
147 dv->sdev_attr->va_gid = gid; in devpts_validate()
149 dv->sdev_attr->va_atime = now; in devpts_validate()
[all …]
H A Dsdev_comm.c109 sdev_wait4lookup(struct sdev_node *dv, int cmd) in sdev_wait4lookup() argument
118 ASSERT(MUTEX_HELD(&dv->sdev_lookup_lock)); in sdev_wait4lookup()
126 dv->sdev_name, expire - ddi_get_lbolt(), dv->sdev_state)); in sdev_wait4lookup()
128 if (SDEV_IS_LGWAITING(dv)) { in sdev_wait4lookup()
133 rv = cv_reltimedwait_sig(&dv->sdev_lookup_cv, in sdev_wait4lookup()
134 &dv->sdev_lookup_lock, wakeup, TR_CLOCK_TICK); in sdev_wait4lookup()
138 if (dv->sdev_state == SDEV_READY) { in sdev_wait4lookup()
142 dv->sdev_name, rval ? "not " : "", in sdev_wait4lookup()
143 dv->sdev_state)); in sdev_wait4lookup()
148 dv->sdev_name)); in sdev_wait4lookup()
[all …]
H A Dsdev_vnops.c321 struct sdev_node *dv = VTOSDEV(*vpp); in sdev_open() local
322 struct sdev_node *ddv = dv->sdev_dotdot; in sdev_open()
328 if (!SDEV_IS_GLOBAL(dv)) in sdev_open()
339 if (dv->sdev_attrvp == NULL) { in sdev_open()
343 error = VOP_OPEN(&(dv->sdev_attrvp), flag, cred, ct); in sdev_open()
353 struct sdev_node *dv = VTOSDEV(vp); in sdev_close() local
361 if (!SDEV_IS_GLOBAL(dv)) in sdev_close()
368 ASSERT(dv->sdev_attrvp); in sdev_close()
369 return (VOP_CLOSE(dv->sdev_attrvp, flag, count, offset, cred, ct)); in sdev_close()
377 struct sdev_node *dv = (struct sdev_node *)VTOSDEV(vp); in sdev_read() local
[all …]
H A Dsdev_vfsops.c194 struct sdev_node *dv; in sdev_mount() local
280 dv = sdev_data->sdev_root; in sdev_mount()
281 ASSERT(dv == dv->sdev_dotdot); in sdev_mount()
286 sdev_stale(dv); in sdev_mount()
296 sdev_stale_attrvp = dv->sdev_attrvp; in sdev_mount()
297 dv->sdev_attrvp = avp; in sdev_mount()
324 dv = sdev_mkroot(vfsp, devdev, mvp, avp, cr); in sdev_mount()
333 ASSERT(dv == dv->sdev_dotdot); in sdev_mount()
336 sdev_data->sdev_root = dv; in sdev_mount()
348 if (!SDEV_IS_GLOBAL(dv)) { in sdev_mount()
[all …]
H A Dsdev_zvolops.c87 dev_t dv; in devzvol_open_zfs() local
108 if (ldi_get_dev(devzvol_lh, &dv)) in devzvol_open_zfs()
110 devzvol_major = getmajor(dv); in devzvol_open_zfs()
261 devzvol_validate(struct sdev_node *dv) in devzvol_validate() argument
265 char *nm = dv->sdev_name; in devzvol_validate()
268 sdcmn_err13(("validating ('%s' '%s')", dv->sdev_path, nm)); in devzvol_validate()
274 if (dv->sdev_state != SDEV_READY) { in devzvol_validate()
279 if ((strcmp(dv->sdev_path, ZVOL_DIR "/dsk") == 0) || in devzvol_validate()
280 (strcmp(dv->sdev_path, ZVOL_DIR "/rdsk") == 0)) in devzvol_validate()
282 dsname = devzvol_make_dsname(dv->sdev_path, NULL); in devzvol_validate()
[all …]
H A Dsdev_ncache.c655 sdev_lookup_filter(sdev_node_t *dv, char *nm) in sdev_lookup_filter() argument
665 ASSERT(SDEVTOV(dv)->v_type == VDIR); in sdev_lookup_filter()
670 n = strlen(dv->sdev_path) + strlen(nm) + 2; in sdev_lookup_filter()
672 (void) sprintf(path, "%s/%s", dv->sdev_path, nm); in sdev_lookup_filter()
677 dv->sdev_name, nm, curproc->p_user.u_comm)); in sdev_lookup_filter()
681 dv->sdev_name, nm, curproc->p_user.u_comm); in sdev_lookup_filter()
702 sdev_lookup_failed(sdev_node_t *dv, char *nm, int failed_flags) in sdev_lookup_failed() argument
715 if (SDEV_IS_GLOBAL(dv) && !SDEV_IS_DYNAMIC(dv) && in sdev_lookup_failed()
716 !SDEV_IS_NO_NCACHE(dv) && in sdev_lookup_failed()
722 dv, nm, NCN_SRC_CURRENT|NCN_ACTIVE); in sdev_lookup_failed()
[all …]
H A Dsdev_profile.c146 struct sdev_node *dv; in prof_mknode() local
152 if (dv = sdev_cache_lookup(dir, name)) { in prof_mknode()
153 *newdv = dv; in prof_mknode()
158 rv = sdev_nodeinit(dir, name, &dv, NULL); in prof_mknode()
164 sdev_cache_update(dir, &dv, name, SDEV_CACHE_ADD); in prof_mknode()
165 *newdv = dv; in prof_mknode()
177 sdev_cache_update(dir, &dv, name, SDEV_CACHE_DELETE); in prof_mknode()
178 SDEV_RELE(dv); in prof_mknode()
747 struct sdev_node *dv; in apply_dir_pattern() local
760 for (dv = SDEV_FIRST_ENTRY(dir); dv; dv = SDEV_NEXT_ENTRY(dir, dv)) { in apply_dir_pattern()
[all …]
/titanic_50/usr/src/cmd/make/bin/
H A Ddepvar.cc61 Depvar dv; in depvar_add_to_list() local
63 dv = ALLOC(Depvar); in depvar_add_to_list()
64 dv->name = name; in depvar_add_to_list()
65 dv->next = NULL; in depvar_add_to_list()
66 dv->cmdline = cmdline; in depvar_add_to_list()
67 *bpatch = dv; in depvar_add_to_list()
68 bpatch = &dv->next; in depvar_add_to_list()
83 Depvar dv; in depvar_dep_macro_used() local
85 for (dv = depvar_list; dv != NULL; dv = dv->next) { in depvar_dep_macro_used()
86 if (name == dv->name) { in depvar_dep_macro_used()
/titanic_50/usr/src/uts/common/sys/fs/
H A Dsdev_impl.h183 #define SDEV_NEXT_ENTRY(ddv, dv) AVL_NEXT(&(ddv)->sdev_entries, (dv)) argument
219 #define SDEV_IS_GLOBAL(dv) \ argument
220 (dv->sdev_flags & SDEV_GLOBAL)
221 #define SDEV_IS_PERSIST(dv) \ argument
222 (dv->sdev_flags & SDEV_PERSIST)
223 #define SDEV_IS_DYNAMIC(dv) \ argument
224 (dv->sdev_flags & SDEV_DYNAMIC)
225 #define SDEV_IS_NO_NCACHE(dv) \ argument
226 (dv->sdev_flags & SDEV_NO_NCACHE)
227 #define SDEV_IS_LOOKUP(dv) \ argument
[all …]
H A Ddv_node.h101 #define DV_STALE(dv) (dv->dv_devi == NULL) argument
161 #define DV_NEXT_ENTRY(ddv, dv) AVL_NEXT(&(ddv)->dv_entries, (dv)) argument
/titanic_50/usr/src/cmd/cmd-inet/usr.lib/mdnsd/
H A Ddnssec.h57 #define ResetAuthChain(dv) { \ argument
58 (dv)->ac = mDNSNULL; \
59 (dv)->actail = &((dv)->ac); \
62 typedef void DNSSECVerifierCallback (mDNS *const m, DNSSECVerifier *dv, DNSSECStatus status);
123 DNSSECVerifier *dv; // dv for which we are doing the insecure proof member
137 extern mStatus AddRRSetToVerifier(DNSSECVerifier *dv, const ResourceRecord *const rr, RRVerifier *r…
138 extern void VerifySignature(mDNS *const m, DNSSECVerifier *dv, DNSQuestion *q);
139 extern void FreeDNSSECVerifier(mDNS *const m, DNSSECVerifier *dv);
144 extern void ValidateRRSIG(DNSSECVerifier *dv, RRVerifierSet type, const ResourceRecord *const rr);
145 extern void AuthChainLink(DNSSECVerifier *dv, AuthChain *ae);
[all …]
H A Dnsec.h23 extern void WildcardAnswerProof(mDNS *const m, DNSSECVerifier *dv);
24 extern void ValidateWithNSECS(mDNS *const m, DNSSECVerifier *dv, CacheRecord *rr);
27 extern void NameErrorNSECCallback(mDNS *const m, DNSSECVerifier *dv, DNSSECStatus status);
31 extern void NoDataNSECCallback(mDNS *const m, DNSSECVerifier *dv, DNSSECStatus status);
/titanic_50/usr/src/uts/common/avs/ns/nsctl/
H A Dnsc_dev.c147 nsc_devval_t *dv; in _nsc_deinit_dev() local
152 while ((dv = _nsc_devval_top) != NULL) { in _nsc_deinit_dev()
153 while ((vp = dv->dv_values) != NULL) { in _nsc_deinit_dev()
154 dv->dv_values = vp->sv_next; in _nsc_deinit_dev()
158 _nsc_devval_top = dv->dv_next; in _nsc_deinit_dev()
159 nsc_kmem_free(dv, sizeof (*dv)); in _nsc_deinit_dev()
1123 nsc_devval_t *dv; in _nsc_setval() local
1153 dv = dev->nsc_values; in _nsc_setval()
1155 for (dv = _nsc_devval_top; dv != NULL; dv = dv->dv_next) { in _nsc_setval()
1156 if (phash == dv->dv_phash && in _nsc_setval()
[all …]
/titanic_50/usr/src/cmd/man/
H A Dman.c569 char **dv; in get_all_sect() local
588 for (dv = dirv, p = manp->secv; *dv; dv++) { in get_all_sect()
589 if (strcmp(*dv, CONFIG) == 0) { in get_all_sect()
590 free(*dv); in get_all_sect()
595 if ((tmp = strdup(*dv + 3)) == NULL) in get_all_sect()
599 free(*dv); in get_all_sect()
604 if ((prev = strdup(*dv + 3)) == NULL) in get_all_sect()
607 if ((*p = strdup(*dv + 3)) == NULL) in get_all_sect()
619 free(*dv); in get_all_sect()
655 char **dv = NULL; in getdirs() local
[all …]
/titanic_50/usr/src/lib/libbsm/common/
H A Dgetdment.c296 char *dv; in dmap_match_one_dev() local
304 for (dva = dmap->dmap_devarray; (dv = *dva) != NULL; dva++) { in dmap_match_one_dev()
305 if (strstr(dev, dv) != NULL) in dmap_match_one_dev()
336 char *dv; in dmap_matchdev() local
340 for (dva = dmap->dmap_devarray; (dv = *dva) != NULL; dva ++) { in dmap_matchdev()
341 if (strcmp(dv, dev) == 0) in dmap_matchdev()
358 char *dv; in dmap_exact_dev() local
362 dv = dmap->dmap_devname; in dmap_exact_dev()
363 dv += strcspn(dmap->dmap_devname, "0123456789"); in dmap_exact_dev()
364 if (sscanf(dv, "%d", num) != 1) in dmap_exact_dev()
/titanic_50/usr/src/cmd/tip/
H A Detc.remote1 cuab:dv=/dev/cua/b:br#2400
5 :dv=/dev/term/b:br#9600:el=^C^S^Q^U^D:ie=%$:oe=^D:
26 :dv=/dev/cua/b:
30 dv device to use for the tty
38 cu call unit (default is dv)
/titanic_50/usr/src/cmd/mandoc/
H A Dterm.c100 size_t dv; /* temporary for visual pos calculations */ in term_flushln() local
116 dv = p->rmargin > p->offset ? p->rmargin - p->offset : 0; in term_flushln()
117 maxvis = (int)dv > p->overstep ? dv - (size_t)p->overstep : 0; in term_flushln()
120 dv = p->maxrmargin > p->offset ? in term_flushln()
122 bp = (int)dv > p->overstep ? in term_flushln()
123 dv - (size_t)p->overstep : 0; in term_flushln()
225 dv = (i - j) * (*p->width)(p, ' '); in term_flushln()
226 vbl += dv; in term_flushln()
227 vend += dv; in term_flushln()
/titanic_50/usr/src/lib/libm/common/complex/
H A Dcpowf.c57 double dx, dy, du, dv, dt, dc, ds, dp, dq, dr; in cpowf() local
150 dv = (double)v; in cpowf()
162 dr = exp(du * dt - dv * dp * dpi); in cpowf()
163 dq = du * dp + dv * dt * dinvpi; in cpowf()

123