Home
last modified time | relevance | path

Searched refs:pv (Results 1 – 25 of 57) sorted by relevance

123

/titanic_41/usr/src/lib/libpool/common/
H A Dpool_value.c67 pool_value_get_uint64(const pool_value_t *pv, uint64_t *result) in pool_value_get_uint64() argument
69 if (pv->pv_class != POC_UINT) { in pool_value_get_uint64()
73 *result = pv->pv_u.u; in pool_value_get_uint64()
82 pool_value_get_int64(const pool_value_t *pv, int64_t *result) in pool_value_get_int64() argument
84 if (pv->pv_class != POC_INT) { in pool_value_get_int64()
88 *result = pv->pv_u.i; in pool_value_get_int64()
98 pool_value_get_double(const pool_value_t *pv, double *result) in pool_value_get_double() argument
100 if (pv->pv_class != POC_DOUBLE) { in pool_value_get_double()
104 *result = pv->pv_u.d; in pool_value_get_double()
113 pool_value_get_bool(const pool_value_t *pv, uchar_t *result) in pool_value_get_bool() argument
[all …]
/titanic_41/usr/src/lib/fm/topo/libtopo/common/
H A Dtopo_prop.c121 prop_method_get(tnode_t *node, topo_propval_t *pv, topo_propmethod_t *pm, in prop_method_get() argument
129 if (topo_hdl_nvalloc(pv->tp_hdl, &args, NV_UNIQUE_NAME) < 0 || in prop_method_get()
145 topo_prop_hold(pv); in prop_method_get()
150 topo_prop_rele(pv); in prop_method_get()
154 topo_prop_rele(pv); in prop_method_get()
160 if (ret != 0 || strcmp(name, pv->tp_name) != 0) in prop_method_get()
164 if (ret != 0 || type != pv->tp_type) in prop_method_get()
168 if (pv->tp_val != NULL) in prop_method_get()
169 nvlist_free(pv->tp_val); in prop_method_get()
170 pv->tp_val = nvl; in prop_method_get()
[all …]
H A Dtopo_2xml.c106 topo_propval_t *pv) in txml_print_prop() argument
112 switch (pv->tp_type) { in txml_print_prop()
115 if (topo_prop_get_int32(node, pgname, pv->tp_name, &val, in txml_print_prop()
126 if (topo_prop_get_uint32(node, pgname, pv->tp_name, in txml_print_prop()
137 if (topo_prop_get_int64(node, pgname, pv->tp_name, &val, in txml_print_prop()
149 if (topo_prop_get_uint64(node, pgname, pv->tp_name, in txml_print_prop()
160 if (topo_prop_get_string(node, pgname, pv->tp_name, in txml_print_prop()
169 if (topo_prop_get_fmri(node, pgname, pv->tp_name, &val, in txml_print_prop()
188 pv->tp_name, &val, &nelem, &err) != 0) in txml_print_prop()
216 begin_end_element(fp, Propval, Name, pv->tp_name, Type, tbuf, in txml_print_prop()
[all …]
/titanic_41/usr/src/cmd/pools/poold/com/sun/solaris/service/pools/
H A DPoolInternal.java133 final static native int pool_value_get_uint64(long pv, long result); in pool_value_get_uint64() argument
134 final static native int pool_value_get_int64(long pv, long result); in pool_value_get_int64() argument
135 final static native int pool_value_get_double(long pv, long result); in pool_value_get_double() argument
136 final static native int pool_value_get_bool(long pv, long result); in pool_value_get_bool() argument
137 final static native int pool_value_get_string(long pv, long result); in pool_value_get_string() argument
138 final static native int pool_value_get_type(long pv); in pool_value_get_type() argument
139 final static native void pool_value_set_uint64(long pv, long val); in pool_value_set_uint64() argument
140 final static native void pool_value_set_int64(long pv, long val); in pool_value_set_int64() argument
141 final static native void pool_value_set_double(long pv, double val); in pool_value_set_double() argument
142 final static native void pool_value_set_bool(long pv, short val); in pool_value_set_bool() argument
[all …]
/titanic_41/usr/src/cmd/csh/
H A Dsh.exec.c54 tchar *dp, **pv, **av; in doexec() local
119 pv = justabs; in doexec()
121 pv = v->vec; in doexec()
134 if (!slash && pv[0][0] == '/' && havhash) { in doexec()
141 if (pv[0][0] == 0 || eq(pv[0], S_DOT /* "." */)) { in doexec()
144 dp = strspl(*pv, sav); in doexec()
158 pv++; in doexec()
160 } while (*pv); in doexec()
373 tchar **pv; in dohash() local
393 for (pv = v->vec; *pv; pv++, i++) { in dohash()
[all …]
H A Dsh.sem.c60 int pv[2]; local
327 execute(t->t_dcar, wanttty, pipein, pv);
332 execute(t->t_dcdr, wanttty, pv, pipeout);
493 mypipe(int *pv) in mypipe() argument
499 if (pipe(pv) < 0) in mypipe()
501 setfd(pv[0]); in mypipe()
502 setfd(pv[1]); in mypipe()
504 pv[0] = dmove(pv[0], -1); in mypipe()
505 pv[1] = dmove(pv[1], -1); in mypipe()
506 if (pv[0] >= 0 && pv[1] >= 0) in mypipe()
H A Dsh.dir.c225 tchar **pv; in dfollow() local
229 pv = justabs; in dfollow()
231 pv = c->vec; in dfollow()
246 if (pv[0][0] == '/') { in dfollow()
253 fullpath = strspl(*pv, slashcp); in dfollow()
272 for (dp = buf, p = *pv; *dp++ = *p++; ) in dfollow()
285 pv++; in dfollow()
287 } while (*pv); in dfollow()
/titanic_41/usr/src/lib/libc/port/regex/
H A Dwordexp.c109 int pv[2]; /* pipe from shell stdout */ in wordexp() local
266 if (pipe(pv) < 0) { in wordexp()
280 error = posix_spawn_file_actions_adddup2(&fact, pv[1], 1); in wordexp()
281 if (error == 0 && pv[0] != 1) in wordexp()
282 error = posix_spawn_file_actions_addclose(&fact, pv[0]); in wordexp()
283 if (error == 0 && pv[1] != 1) in wordexp()
284 error = posix_spawn_file_actions_addclose(&fact, pv[1]); in wordexp()
294 (void) close(pv[1]); in wordexp()
296 (void) close(pv[0]); in wordexp()
301 if ((fp = fdopen(pv[0], "rF")) == NULL) { in wordexp()
[all …]
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/
H A Din.rexecd.c172 int pv[2], cc; in doit() local
367 (void) pipe(pv); in doit()
380 (void) close(f); (void) close(pv[1]); in doit()
383 FD_SET(pv[0], &readfrom); in doit()
384 (void) ioctl(pv[0], FIONBIO, (char *)&one); in doit()
388 if (select(MAXFD(s, pv[0])+1, &ready, NULL, in doit()
399 if (FD_ISSET(pv[0], &ready)) { in doit()
400 cc = read(pv[0], buf, sizeof (buf)); in doit()
403 FD_CLR(pv[0], &readfrom); in doit()
408 FD_ISSET(pv[0], &readfrom)); in doit()
[all …]
/titanic_41/usr/src/uts/sparc/v9/syscall/
H A Dinstall_utrap.c40 utrap_handler_t *ov, *nv, *pv, *sv, *tmp; in install_utrap() local
86 pv = sv = kmem_zalloc((UT_PRECISE_MAXTRAPS+1) * in install_utrap()
90 kmem_free(pv, (UT_PRECISE_MAXTRAPS+1) * in install_utrap()
153 utrap_handler_t *ov, *nvp, *pv, *sv, *tmp; in sparc_utrap_install() local
230 pv = sv = kmem_zalloc((UT_PRECISE_MAXTRAPS+1) * in sparc_utrap_install()
234 kmem_free(pv, (UT_PRECISE_MAXTRAPS+1) * in sparc_utrap_install()
/titanic_41/usr/src/cmd/pools/poolstat/
H A Dpoolstat.c505 double pv; in bigno_f() local
515 pv = v; in bigno_f()
519 pv = (double)v / KILO; in bigno_f()
522 pv = (double)v / KILO; in bigno_f()
525 pv = (double)v / KILO; in bigno_f()
528 pv = (double)v / MEGA; in bigno_f()
531 pv = (double)v / MEGA; in bigno_f()
534 pv = (double)v / MEGA; in bigno_f()
537 pv = (double)v / GIGA; in bigno_f()
540 pv = (double)v / GIGA; in bigno_f()
[all …]
/titanic_41/usr/src/cmd/format/
H A Dadd_definition.c316 struct dk_map2 *pv; local
319 struct dkl_partition *pv; local
338 pv = part->vtoc.v_part;
340 for (i = 0; i < NDKMAP; i++, pp++, pv++, dv++) {
344 if (pv->p_tag != dv->p_tag ||
345 pv->p_flag != dv->p_flag) {
347 (int)pv->p_tag);
352 (int)pv->p_flag);
/titanic_41/usr/src/lib/libshell/common/sh/
H A Dargs.c782 static int arg_pipe(register int pv[]) in arg_pipe() argument
785 if(pipe(fd)<0 || (pv[0]=fd[0])<0 || (pv[1]=fd[1])<0) in arg_pipe()
787 pv[0] = sh_iomovefd(pv[0]); in arg_pipe()
788 pv[1] = sh_iomovefd(pv[1]); in arg_pipe()
789 sh.fdstatus[pv[0]] = IONOSEEK|IOREAD; in arg_pipe()
790 sh.fdstatus[pv[1]] = IONOSEEK|IOWRITE; in arg_pipe()
791 sh_subsavefd(pv[0]); in arg_pipe()
792 sh_subsavefd(pv[1]); in arg_pipe()
801 int monitor, fd, pv[2]; in sh_argprocsub() local
807 sh_pipe(pv); in sh_argprocsub()
[all …]
H A Dsuid_exec.c367 int pv[2]; in setids() local
395 if(pipe(pv) < 0) in setids()
400 close(pv[1]); in setids()
407 read(pv[0],pv,1); /* wait for clone to close pipe */ in setids()
447 close(pv[0]); in setids()
449 if(pv[1] != FDSYNC) in setids()
452 if(fcntl(pv[1],F_DUPFD,FDSYNC) != FDSYNC) in setids()
/titanic_41/usr/src/cmd/pools/pooladm/
H A Dpooladm.c75 pool_value_t *pv; in config_print() local
82 if ((pv = pool_value_alloc()) == NULL || in config_print()
84 pv) == POC_INVAL || in config_print()
85 pool_value_get_string(pv, &tgt) != PO_SUCCESS) in config_print()
92 pool_value_free(pv); in config_print()
/titanic_41/usr/src/cmd/pools/poolcfg/
H A Dpoolcfg.y781 pool_value_t *pv = NULL; in parser_conf_info() local
791 if ((pv = pool_value_alloc()) == NULL) in parser_conf_info()
794 if (pool_get_property(conf, pe, "system.name", pv) == in parser_conf_info()
796 pool_value_get_string(pv, &tgt) != PO_SUCCESS) in parser_conf_info()
804 if (pv != NULL) { in parser_conf_info()
805 pool_value_free(pv); in parser_conf_info()
934 pool_value_t *pv; in parser_rename() local
936 if ((pv = pool_value_alloc()) == NULL) { in parser_rename()
940 pool_value_set_string(pv, cmd->cmd_tgt2); in parser_rename()
941 if (pool_put_property(conf, pe, name, pv) != 0) in parser_rename()
[all …]
/titanic_41/usr/src/cmd/mdb/common/modules/dtrace/
H A Ddof.c834 dof_provider_t pv; in dof_sect_provider() local
844 if (mdb_vread(&pv, sz, addr + sec->dofs_offset) != sz) { in dof_sect_provider()
849 sz = dofs[pv.dofpv_strtab].dofs_size; in dof_sect_provider()
852 dofs[pv.dofpv_strtab].dofs_offset) != sz) { in dof_sect_provider()
858 strtab + pv.dofpv_name); in dof_sect_provider()
860 sz = dofs[pv.dofpv_prargs].dofs_size; in dof_sect_provider()
864 dofs[pv.dofpv_prargs].dofs_offset) != sz) { in dof_sect_provider()
870 sz = dofs[pv.dofpv_proffs].dofs_size; in dof_sect_provider()
872 if (mdb_vread(offs, sz, addr + dofs[pv.dofpv_proffs].dofs_offset) in dof_sect_provider()
880 pv.dofpv_prenoffs == 0) { in dof_sect_provider()
[all …]
/titanic_41/usr/src/uts/common/io/scsi/adapters/scsi_vhci/fops/
H A Dsym_hds.c150 unsigned char pv; in hds_sym_device_probe() local
171 pv = ASYM_ACTIVE_ACTIVE; in hds_sym_device_probe()
178 pv = SYM_ACTIVE_ACTIVE; in hds_sym_device_probe()
193 *ctprivp = kmem_alloc(sizeof (pv), in hds_sym_device_probe()
197 *((unsigned char *)*ctprivp) = pv; in hds_sym_device_probe()
/titanic_41/usr/src/lib/librstp/common/
H A Dstpm.c182 register void* pv; in STP_stpm_delete() local
187 pv = (void*) stater->next; in STP_stpm_delete()
189 this->machines = stater = (STATE_MACH_T*) pv; in STP_stpm_delete()
193 pv = (void*) port->next; in STP_stpm_delete()
195 this->ports = port = (PORT_T*) pv; in STP_stpm_delete()
/titanic_41/usr/src/cmd/avs/dsstat/
H A Dcommon.c181 uint32_t *pv, *cv; in kstat_delta() local
183 pv = kstat_value(pksp, name); in kstat_delta()
186 return (u32_delta(*pv, *cv)); in kstat_delta()
/titanic_41/usr/src/cmd/sh/
H A Dmacro.c497 int pv[2]; in comsubst() local
504 chkpipe(pv); in comsubst()
505 savpipe = pv[OTPIPE]; in comsubst()
506 initf(pv[INPIPE]); /* read from pipe */ in comsubst()
507 execute(t, XEC_NOSTOP, (int)(flags & errflg), 0, pv); in comsubst()
508 close(pv[OTPIPE]); in comsubst()
H A Dxec.c378 int pv[2]; local
380 chkpipe(pv);
381 if (execute(lstptr(t)->lstlef, xflags & XEC_NOSTOP, errorflg, pf1, pv) == 0)
382 execute(lstptr(t)->lstrit, xflags, errorflg, pv, pf2);
384 closepipe(pv);
H A Dio.c120 chkpipe(int *pv) in chkpipe() argument
122 if (pipe(pv) < 0 || pv[INPIPE] < 0 || pv[OTPIPE] < 0) in chkpipe()
/titanic_41/usr/src/cmd/cmd-inet/usr.bin/pppd/
H A Dccp.c938 u_char *p0, *nakp, *rejp, *pv; local
964 pv = p;
989 pv = nakp;
1004 res = ccp_test(f->unit, pv, CILEN_DEFLATE, 1);
1012 BCOPY(pv, nakp, CILEN_DEFLATE);
1013 pv = nakp;
1018 pv[2] = DEFLATE_MAKE_OPT(nb);
1047 pv = nakp;
1061 res = ccp_test(f->unit, pv, CILEN_BSD_COMPRESS, 1);
1069 BCOPY(pv, nakp, CILEN_BSD_COMPRESS);
[all …]
/titanic_41/usr/src/uts/sun4u/starcat/io/
H A Dfcgp2.c225 struct gfc_ops_v *pv; in gp2_fc_ops() local
235 for (pv = gp2_shared_pov; pv->svc_name != NULL; ++pv) in gp2_fc_ops()
236 if (strcmp(pv->svc_name, name) == 0) in gp2_fc_ops()
237 return (pv->f(ap, rp, cp)); in gp2_fc_ops()
241 for (pv = gp2_pov; pv->svc_name != NULL; ++pv) in gp2_fc_ops()
242 if (strcmp(pv->svc_name, name) == 0) in gp2_fc_ops()
243 return (pv->f(ap, rp, cp)); in gp2_fc_ops()

123