Home
last modified time | relevance | path

Searched refs:valp (Results 1 – 25 of 161) sorted by relevance

1234567

/illumos-gate/usr/src/uts/common/io/sfxge/
H A Dsfxge_gld_v3.c142 *valp = LINK_DUPLEX_UNKNOWN; in sfxge_gld_getstat()
146 *valp = LINK_DUPLEX_HALF; in sfxge_gld_getstat()
150 *valp = LINK_DUPLEX_FULL; in sfxge_gld_getstat()
262 *valp = encp->enc_port; in sfxge_gld_getstat()
270 *valp = oui; in sfxge_gld_getstat()
553 unsigned int size, void *valp) in sfxge_gld_priv_prop_get() argument
615 const void *valp) in sfxge_gld_priv_prop_set() argument
753 unsigned int size, void *valp) in sfxge_gld_getprop() argument
757 uint8_t *v8 = ((uint8_t *)valp); in sfxge_gld_getprop()
858 *((link_state_t *)valp) = (up) ? in sfxge_gld_getprop()
[all …]
/illumos-gate/usr/src/uts/common/io/igc/
H A Digc_gld.c90 *valp = stats->is_mprc.value.ui64; in igc_m_getstat()
129 *valp = stats->is_tor.value.ui64; in igc_m_getstat()
133 *valp = stats->is_tpr.value.ui64; in igc_m_getstat()
170 *valp = stats->is_dc.value.ui64; in igc_m_getstat()
194 *valp = igc->igc_hw.phy.addr; in igc_m_getstat()
200 *valp = igc_link_to_media(igc); in igc_m_getstat()
215 *valp = 1; in igc_m_getstat()
283 *valp = igc->igc_link_duplex; in igc_m_getstat()
286 *valp = 1; in igc_m_getstat()
328 *valp = 0; in igc_m_getstat()
[all …]
/illumos-gate/usr/src/lib/libmlrpc/common/
H A Dndr_process.c697 if (!valp) { in ndr_outer_fixed()
707 if (!valp) { in ndr_outer_fixed()
787 if (!valp) { in ndr_outer_fixed_array()
797 if (!valp) { in ndr_outer_fixed_array()
885 if (!valp) { in ndr_outer_conformant_array()
915 if (!valp) { in ndr_outer_conformant_array()
1017 if (!valp) { in ndr_outer_conformant_construct()
1048 if (!valp) { in ndr_outer_conformant_construct()
1201 if (!valp) { in ndr_outer_string()
1312 if (!valp) { in ndr_outer_string()
[all …]
/illumos-gate/usr/src/uts/common/io/mac/
H A Dmac_ndd.c186 char *valp; in mac_ndd_get_ioctl() local
233 name = valp; in mac_ndd_get_ioctl()
234 valp = (char *)mp1->b_rptr; in mac_ndd_get_ioctl()
309 valp += size_out; in mac_ndd_get_ioctl()
311 *valp++ = '\0'; in mac_ndd_get_ioctl()
348 valp = (char *)mp1->b_rptr; in mac_ndd_set_ioctl()
349 name = valp; in mac_ndd_set_ioctl()
351 while (*valp++) in mac_ndd_set_ioctl()
354 valp = NULL; in mac_ndd_set_ioctl()
356 new_valuep = valp; in mac_ndd_set_ioctl()
[all …]
/illumos-gate/usr/src/cmd/sendmail/libsm/
H A Dfindfp.c283 sm_io_setinfo(fp, what, valp) in sm_io_setinfo() argument
286 void *valp;
288 SM_FILE_T *v = (SM_FILE_T *) valp;
312 fp->f_timeout = *((int *)valp);
356 sm_io_getinfo(fp, what, valp) in sm_io_getinfo() argument
359 void *valp;
368 if (valp == NULL)
386 if (valp == NULL)
391 valp = sm_strdup_x(fp->f_type);
395 if (valp == NULL)
[all …]
H A Dstdio.c303 sm_stdsetinfo(fp, what, valp) in sm_stdsetinfo() argument
306 void *valp;
311 return sm_stdsetmode(fp, (const int *)valp);
335 sm_stdgetinfo(fp, what, valp) in sm_stdgetinfo() argument
338 void *valp;
343 return sm_stdgetmode(fp, (int *)valp);
H A Dstrio.c403 sm_strsetinfo(fp, what, valp) in sm_strsetinfo() argument
406 void *valp;
411 return sm_strsetmode(fp, (int *) valp);
434 sm_strgetinfo(fp, what, valp) in sm_strgetinfo() argument
437 void *valp;
442 return sm_strgetmode(fp, (int *) valp);
H A Dsmstdio.c251 sm_stdiosetinfo(fp, what, valp) in sm_stdiosetinfo() argument
254 void *valp;
280 sm_stdiogetinfo(fp, what, valp) in sm_stdiogetinfo() argument
283 void *valp;
/illumos-gate/usr/src/cmd/audio/utilities/
H A Ddevice_ctl.c145 audio__setval(int fd, unsigned int *valp, unsigned int which) in audio__setval() argument
191 *up = *valp; in audio__setval()
193 *cp = (unsigned char) *valp; in audio__setval()
201 *valp = *up; in audio__setval()
203 *valp = (unsigned)*cp; in audio__setval()
213 audio__setgain(int fd, double *valp, unsigned int which) in audio__setgain() argument
219 if ((*valp < 0.) || (*valp > 1.)) in audio__setgain()
223 x = ((unsigned)(*valp * (AUDIO_MAX_GAIN - AUDIO_MIN_GAIN))) + in audio__setgain()
231 *valp = ((double)(x - AUDIO_MIN_GAIN) / in audio__setgain()
/illumos-gate/usr/src/cmd/pathchk/
H A Dpathchk.c136 checkPathConf(const char *path, int type, long *valp) in checkPathConf() argument
139 *valp = pathconf(path, type); in checkPathConf()
140 if ((*valp == -1) && (errno != 0) && (errno != EACCES)) { in checkPathConf()
147 *valp = _POSIX_PATH_MAX; in checkPathConf()
149 *valp = _POSIX_NAME_MAX; in checkPathConf()
156 *valp); in checkPathConf()
159 return ((*valp == -1) && (errno != 0)); in checkPathConf()
/illumos-gate/usr/src/cmd/rpcsvc/rpc.bootparamd/
H A Dbootparam_ip_route.c65 char *valp; member
177 last_item->valp = (char *)malloc(req->len); in mibget()
185 databuf.buf = last_item->valp; in mibget()
213 if (item->valp) in free_itemlist()
214 free(item->valp); in free_itemlist()
280 mip = (mib2_ip_t *)(void *)item->valp; in get_ip_route()
297 map = (mib2_ipAddrEntry_t *)(void *)item->valp; in get_ip_route()
298 while ((char *)map < item->valp + item->length) { in get_ip_route()
364 (char *)rp < item->valp + item->length; in get_ip_route()
477 map = (mib2_ipAddrEntry_t *)(void *)item->valp; in find_best_server_int()
[all …]
/illumos-gate/usr/src/uts/common/inet/
H A Dnd.c60 char *valp; in nd_getset() local
84 valp = (char *)mp1->b_rptr; in nd_getset()
88 if (mi_strcmp(nde->nde_name, valp) == 0) in nd_getset()
92 while (*valp++) in nd_getset()
94 if (!*valp || valp >= (char *)mp1->b_wptr) in nd_getset()
95 valp = NULL; in nd_getset()
122 if (valp) { in nd_getset()
126 err = (*nde->nde_set_pfi)(q, mp1, valp, in nd_getset()
/illumos-gate/usr/src/lib/libc/port/sys/
H A Deventfd.c59 eventfd_read(int fd, eventfd_t *valp) in eventfd_read() argument
61 ssize_t ret = read(fd, valp, sizeof (*valp)); in eventfd_read()
62 if (ret == -1 || (size_t)ret < sizeof (*valp)) in eventfd_read()
H A Dzone.c85 zone_getattr(zoneid_t zoneid, int attr, void *valp, size_t size) in zone_getattr() argument
91 attr, valp, size); in zone_getattr()
98 zone_setattr(zoneid_t zoneid, int attr, void *valp, size_t size) in zone_setattr() argument
100 return (syscall(SYS_zone, ZONE_SETATTR, zoneid, attr, valp, size)); in zone_setattr()
/illumos-gate/usr/src/lib/libipmi/common/
H A Dipmi_entity.c286 boolean_t *valp) in ipmi_entity_present_sdr() argument
310 *valp = B_FALSE; in ipmi_entity_present_sdr()
338 *valp = B_FALSE; in ipmi_entity_present_sdr()
344 *valp = B_FALSE; in ipmi_entity_present_sdr()
354 *valp = B_FALSE; in ipmi_entity_present_sdr()
361 *valp = (srp->isr_state & mask) != 0; in ipmi_entity_present_sdr()
478 *valp = B_FALSE; in ipmi_entity_present()
519 *valp = B_TRUE; in ipmi_entity_present()
533 if (*valp) in ipmi_entity_present()
549 *valp = B_TRUE; in ipmi_entity_present()
[all …]
/illumos-gate/usr/src/cmd/fm/fminject/common/
H A Dinj_string.c91 inj_strtoll(const char *str, int width, longlong_t *valp) in inj_strtoll() argument
113 if (valp != NULL) in inj_strtoll()
114 *valp = val; in inj_strtoll()
120 inj_strtoull(const char *str, int width, u_longlong_t *valp) in inj_strtoull() argument
141 if (valp != NULL) in inj_strtoull()
142 *valp = val; in inj_strtoull()
/illumos-gate/usr/src/uts/common/io/softmac/
H A Dsoftmac_stat.c226 softmac_get_kstat(kstat_t *ksp, char *name, uint64_t *valp) in softmac_get_kstat() argument
243 *valp = (uint64_t)(knp->value.ui32); in softmac_get_kstat()
248 *valp = knp->value.ui64; in softmac_get_kstat()
254 *valp = (uint64_t)knp->value.ul; in softmac_get_kstat()
262 *valp = LINK_DUPLEX_FULL; in softmac_get_kstat()
264 *valp = LINK_DUPLEX_HALF; in softmac_get_kstat()
266 *valp = LINK_DUPLEX_UNKNOWN; in softmac_get_kstat()
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/netstat/
H A Dnetstat.c123 void *valp; member
1364 item->valp, in mib_item_dup()
1513 diffptr->valp = d; in mib_item_diff()
1677 diffptr->valp = d; in mib_item_diff()
3023 item->valp); in if_report()
3907 item->valp); in group_report()
4129 item->valp); in dce_report()
4229 item->valp); in arp_report()
4321 item->valp); in ndp_report()
6317 sre = item->valp; in sctp_getnext_rem()
[all …]
/illumos-gate/usr/src/uts/common/io/chxge/com/
H A Dcphy.h99 unsigned int *valp) in mdio_read() argument
101 return cphy->mdio_read(cphy->adapter, cphy->addr, mmd, reg, valp); in mdio_read()
111 unsigned int *valp) in simple_mdio_read() argument
113 return mdio_read(cphy, 0, reg, valp); in simple_mdio_read()
/illumos-gate/usr/src/lib/nsswitch/nis/common/
H A Dnis_common.c125 massage_netdb(const char **valp, int *vallenp) in massage_netdb() argument
129 const char *val = *valp; in massage_netdb()
145 *valp = first; in massage_netdb()
150 _nss_nis_ypmatch(domain, map, key, valp, vallenp, ypstatusp) in _nss_nis_ypmatch() argument
154 char **valp;
168 (grrr)key, (int)strlen(key), valp, vallenp, 0);
186 _nss_nis_ypmatch_rsvdport(domain, map, key, valp, vallenp, ypstatusp) in _nss_nis_ypmatch_rsvdport() argument
190 char **valp;
204 (grrr)key, strlen(key), valp, vallenp, 0);
/illumos-gate/usr/src/uts/intel/io/mc-amd/
H A Dmcamd_subr.c296 mcamd_propcode_t code, mcamd_prop_t *valp) in mcamd_get_numprop() argument
314 *valp = *(uint64_t *)((uintptr_t)node + offset); in mcamd_get_numprop()
325 mcamd_prop_t *valp; in mcamd_get_numprops() local
330 valp = va_arg(ap, mcamd_prop_t *); in mcamd_get_numprops()
331 if (!mcamd_get_numprop(hdl, node, code, valp)) in mcamd_get_numprops()
354 mcamd_regcode_t code, uint32_t *valp) in mcamd_get_cfgreg() argument
372 *valp = *(uint32_t *)((uintptr_t)node + offset); in mcamd_get_cfgreg()
383 uint32_t *valp; in mcamd_get_cfgregs() local
388 valp = va_arg(ap, uint32_t *); in mcamd_get_cfgregs()
389 if (!mcamd_get_cfgreg(hdl, node, code, valp)) in mcamd_get_cfgregs()
/illumos-gate/usr/src/uts/common/os/
H A Dcpu_event.c202 cpu_idle_prop_value_t *valp);
829 cpu_idle_prop_value_t *valp; in cpu_idle_prop_allocate_impl() local
837 valp = (cpu_idle_prop_value_t *)P2ROUNDUP(buf, in cpu_idle_prop_allocate_impl()
841 prop->value = valp; in cpu_idle_prop_allocate_impl()
898 cpu_idle_prop_value_t *valp; in cpu_idle_prop_destroy_property() local
916 valp = prop->value; in cpu_idle_prop_destroy_property()
918 prop->value = valp; in cpu_idle_prop_destroy_property()
1012 if (hdl == NULL || valp == NULL) { in cpu_idle_prop_get_value()
1027 *valp = prop->value[idx]; in cpu_idle_prop_get_value()
1113 cpu_idle_prop_value_t *valp) in cpu_idle_prop_update_intr_cnt() argument
[all …]
/illumos-gate/usr/src/common/mdesc/
H A Dmdesc_getpropval.c38 md_get_prop_val(md_t *ptr, mde_cookie_t node, char *namep, uint64_t *valp) in md_get_prop_val() argument
61 *valp = MDE_PROP_VALUE(mdep); in md_get_prop_val()
/illumos-gate/usr/src/cmd/picl/plugins/sun4v/lib/snmp/
H A Dsnmplib.c595 lookup_int(char *prefix, int row, int *valp, int is_vol) in lookup_int() argument
635 *valp = (int)val_arr[0]; in lookup_int()
637 if (nvlist_lookup_int32(mibcache[row], prefix, valp) != 0) { in lookup_int()
649 lookup_str(char *prefix, int row, char **valp, int is_vol) in lookup_str() argument
689 *valp = val_arr[0]; in lookup_str()
691 if (nvlist_lookup_string(mibcache[row], prefix, valp) != 0) { in lookup_str()
730 if (nvlist_lookup_byte_array(mibcache[row], prefix, valp, nelem) != 0) { in lookup_bitstr()
829 *valp = strdup((const char *)(vp->val.str)); in fetch_single_str()
838 uchar_t **valp, uint_t *nelem, int *snmp_syserr) in fetch_single_bitstr() argument
852 if ((*valp = (uchar_t *)calloc(vp->val_len, 1)) == NULL) { in fetch_single_bitstr()
[all …]
/illumos-gate/usr/src/test/nvme-tests/tests/libnvme/
H A Dctrl-disc.c33 uint32_t *valp = arg; in ctrl_disc_count_cb() local
34 *valp = *valp + 1; in ctrl_disc_count_cb()

1234567