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.c115 sfxge_gld_getstat(void *arg, unsigned int id, uint64_t *valp) in sfxge_gld_getstat() argument
132 *valp = (uint64_t)speed * 1000000ull; in sfxge_gld_getstat()
142 *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()
161 *valp = sfxge_phy_dfl_cap_test64(sp, EFX_PHY_CAP_40000FDX); in sfxge_gld_getstat()
164 *valp = sfxge_phy_dfl_cap_test64(sp, EFX_PHY_CAP_10000FDX); in sfxge_gld_getstat()
167 *valp = sfxge_phy_dfl_cap_test64(sp, EFX_PHY_CAP_1000FDX); in sfxge_gld_getstat()
170 *valp = sfxge_phy_dfl_cap_test64(sp, EFX_PHY_CAP_1000HDX); in sfxge_gld_getstat()
173 *valp = sfxge_phy_dfl_cap_test64(sp, EFX_PHY_CAP_100FDX); in sfxge_gld_getstat()
[all …]
/illumos-gate/usr/src/uts/common/io/igc/
H A Digc_gld.c73 igc_m_getstat(void *drv, uint_t stat, uint64_t *valp) in igc_m_getstat() argument
86 *valp = (uint64_t)igc->igc_link_speed * 1000000; in igc_m_getstat()
90 *valp = stats->is_mprc.value.ui64; in igc_m_getstat()
94 *valp = stats->is_bprc.value.ui64; in igc_m_getstat()
98 *valp = stats->is_mptc.value.ui64; in igc_m_getstat()
102 *valp = stats->is_bptc.value.ui64; in igc_m_getstat()
106 *valp = stats->is_rnbc.value.ui64; in igc_m_getstat()
113 *valp = stats->is_crcerrs.value.ui64 + in igc_m_getstat()
120 *valp = stats->is_ecol.value.ui64 + in igc_m_getstat()
125 *valp = stats->is_colc.value.ui64; in igc_m_getstat()
[all …]
/illumos-gate/usr/src/lib/libmlrpc/common/
H A Dndr_process.c657 char *valp = NULL; in ndr_outer_fixed() local
696 valp = outer_ref->datum; in ndr_outer_fixed()
697 if (!valp) { in ndr_outer_fixed()
702 assert(valp == *outer_ref->backptr); in ndr_outer_fixed()
706 valp = NDS_MALLOC(nds, n_alloc, outer_ref); in ndr_outer_fixed()
707 if (!valp) { in ndr_outer_fixed()
712 *outer_ref->backptr = valp; in ndr_outer_fixed()
713 outer_ref->datum = valp; in ndr_outer_fixed()
747 char *valp = NULL; in ndr_outer_fixed_array() local
786 valp = outer_ref->datum; in ndr_outer_fixed_array()
[all …]
/illumos-gate/usr/src/uts/common/io/mac/
H A Dmac_ndd.c186 char *valp; in mac_ndd_get_ioctl() local
199 valp = (char *)mp->b_cont->b_rptr; in mac_ndd_get_ioctl()
204 if (strcmp(valp, "?") == 0) { in mac_ndd_get_ioctl()
233 name = valp; in mac_ndd_get_ioctl()
234 valp = (char *)mp1->b_rptr; in mac_ndd_get_ioctl()
293 (void) snprintf(valp, avail, "%d", new_value); in mac_ndd_get_ioctl()
309 valp += size_out; in mac_ndd_get_ioctl()
310 *valp++ = '\0'; /* need \0\0 */ in mac_ndd_get_ioctl()
311 *valp++ = '\0'; in mac_ndd_get_ioctl()
312 mp1->b_wptr = (uchar_t *)valp; in mac_ndd_get_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);
323 return (*fp->f_setinfo)(fp, what, valp);
356 sm_io_getinfo(fp, what, valp) in sm_io_getinfo() argument
359 void *valp;
361 SM_FILE_T *v = (SM_FILE_T *) valp;
368 if (valp == NULL)
386 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()
363 for (rp = (mib2_ipRouteEntry_t *)(void *)item->valp; in get_ip_route()
364 (char *)rp < item->valp + item->length; in get_ip_route()
[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()
399 ipmi_entity_present(ipmi_handle_t *ihp, ipmi_entity_t *ep, boolean_t *valp) in ipmi_entity_present() argument
478 *valp = B_FALSE; in ipmi_entity_present()
485 *valp = (srp->isr_state & mask) != 0; in ipmi_entity_present()
519 *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
1249 last_item->valp = malloc((int)req->len); in mibget()
1250 if (last_item->valp == NULL) in mibget()
1259 databuf.buf = (char *)last_item->valp; in mibget()
1295 if (lastitem->valp != NULL) in mibfree()
1296 free(lastitem->valp); in mibfree()
1357 (localp[c]).valp = (uintptr_t *)malloc( in mib_item_dup()
1359 if ((localp[c]).valp == NULL) { in mib_item_dup()
1363 (void) memcpy((localp[c]).valp, in mib_item_dup()
1364 item->valp, in mib_item_dup()
[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
834 sz = sizeof (*valp) * CPU_IDLE_VALUE_GROUP_SIZE * max_ncpus; in cpu_idle_prop_allocate_impl()
837 valp = (cpu_idle_prop_value_t *)P2ROUNDUP(buf, in cpu_idle_prop_allocate_impl()
840 for (i = 0; i < CPU_IDLE_VALUE_GROUP_SIZE; i++, prop++, valp++) { 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()
1006 cpu_idle_callback_context_t ctx, cpu_idle_prop_value_t *valp) in cpu_idle_prop_get_value() 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()
703 lookup_bitstr(char *prefix, int row, uchar_t **valp, uint_t *nelem, int is_vol) in lookup_bitstr() argument
730 if (nvlist_lookup_byte_array(mibcache[row], prefix, valp, nelem) != 0) { in lookup_bitstr()
814 fetch_single_str(struct picl_snmphdl *smd, char *prefix, int row, char **valp, in fetch_single_str() argument
829 *valp = strdup((const char *)(vp->val.str)); in fetch_single_str()
[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