Home
last modified time | relevance | path

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

123456789

/netbsd-src/external/bsd/nvi/dist/common/
H A Doptions_f.c41 f_altwerase(SCR *sp, OPTION *op, const char *str, u_long *valp) in f_altwerase() argument
43 if (*valp) in f_altwerase()
52 f_columns(SCR *sp, OPTION *op, const char *str, u_long *valp) in f_columns() argument
55 if (*valp < MINIMUM_SCREEN_COLS) { in f_columns()
70 if (*valp > MAXIMUM_SCREEN_COLS) { in f_columns()
82 f_lines(SCR *sp, OPTION *op, const char *str, u_long *valp) in f_lines() argument
85 if (*valp < MINIMUM_SCREEN_ROWS) { in f_lines()
100 if (*valp > MAXIMUM_SCREEN_ROWS) { in f_lines()
110 o_set(sp, O_LINES, 0, NULL, *valp); in f_lines()
111 if (*valp == 1) { in f_lines()
[all …]
H A Dutil.c169 nget_uslong(SCR *sp, u_long *valp, const CHAR_T *p, CHAR_T **endp, int base) in nget_uslong() argument
172 *valp = STRTOUL(p, endp, base); in nget_uslong()
175 if (errno == ERANGE && *valp == ULONG_MAX) in nget_uslong()
187 nget_slong(SCR *sp, long int *valp, const CHAR_T *p, CHAR_T **endp, int base) in nget_slong() argument
190 *valp = STRTOL(p, endp, base); in nget_slong()
194 if (*valp == LONG_MAX) in nget_slong()
196 if (*valp == LONG_MIN) in nget_slong()
/netbsd-src/crypto/external/bsd/openssh/dist/
H A Dsshbuf-getput-basic.c46 sshbuf_get_u64(struct sshbuf *buf, u_int64_t *valp) in sshbuf_get_u64() argument
53 if (valp != NULL) in sshbuf_get_u64()
54 *valp = PEEK_U64(p); in sshbuf_get_u64()
59 sshbuf_get_u32(struct sshbuf *buf, u_int32_t *valp) in sshbuf_get_u32() argument
66 if (valp != NULL) in sshbuf_get_u32()
67 *valp = PEEK_U32(p); in sshbuf_get_u32()
72 sshbuf_get_u16(struct sshbuf *buf, u_int16_t *valp) in sshbuf_get_u16() argument
79 if (valp != NULL) in sshbuf_get_u16()
80 *valp = PEEK_U16(p); in sshbuf_get_u16()
85 sshbuf_get_u8(struct sshbuf *buf, u_char *valp) in sshbuf_get_u8() argument
[all …]
/netbsd-src/sbin/wsconsctl/
H A Dutil.c233 if (field_tab[i].valp == addr) in int2name()
290 (void)printf("%u", *((unsigned int *) f->valp)); in pr_field()
293 (void)printf("%d", *((int *) f->valp)); in pr_field()
296 (void)printf("\"%s\"", *((char **) f->valp)); in pr_field()
299 pr_bitfield(*((unsigned int *) f->valp)); in pr_field()
302 p = int2name(*((unsigned int *) f->valp), 1, in pr_field()
307 p = int2name(*((unsigned int *) f->valp), 1, in pr_field()
312 p = int2name(*((unsigned int *) f->valp), 1, in pr_field()
317 p = int2name(KB_ENCODING(*((unsigned int *) f->valp)), 1, in pr_field()
321 flags = KB_VARIANT(*((unsigned int *) f->valp)); in pr_field()
[all...]
/netbsd-src/external/gpl3/binutils/dist/bfd/
H A Dxtensa-modules.c3501 Operand_soffsetx4_decode (uint32 *valp) in Operand_soffsetx4_decode() argument
3504 offset_0 = *valp & 0x3ffff; in Operand_soffsetx4_decode()
3506 *valp = soffsetx4_0; in Operand_soffsetx4_decode()
3511 Operand_soffsetx4_encode (uint32 *valp) in Operand_soffsetx4_encode() argument
3514 soffsetx4_0 = *valp; in Operand_soffsetx4_encode()
3516 *valp = offset_0; in Operand_soffsetx4_encode()
3521 Operand_soffsetx4_ator (uint32 *valp, uint32 pc) in Operand_soffsetx4_ator() argument
3523 *valp -= (pc & ~0x3); in Operand_soffsetx4_ator()
3528 Operand_soffsetx4_rtoa (uint32 *valp, uint32 pc) in Operand_soffsetx4_rtoa() argument
3530 *valp += (pc & ~0x3); in Operand_soffsetx4_rtoa()
[all …]
/netbsd-src/external/gpl3/binutils.old/dist/bfd/
H A Dxtensa-modules.c3501 Operand_soffsetx4_decode (uint32 *valp) in Operand_soffsetx4_decode() argument
3504 offset_0 = *valp & 0x3ffff; in Operand_soffsetx4_decode()
3506 *valp = soffsetx4_0; in Operand_soffsetx4_decode()
3511 Operand_soffsetx4_encode (uint32 *valp) in Operand_soffsetx4_encode() argument
3514 soffsetx4_0 = *valp; in Operand_soffsetx4_encode()
3516 *valp = offset_0; in Operand_soffsetx4_encode()
3521 Operand_soffsetx4_ator (uint32 *valp, uint32 pc) in Operand_soffsetx4_ator() argument
3523 *valp -= (pc & ~0x3); in Operand_soffsetx4_ator()
3528 Operand_soffsetx4_rtoa (uint32 *valp, uint32 pc) in Operand_soffsetx4_rtoa() argument
3530 *valp += (pc & ~0x3); in Operand_soffsetx4_rtoa()
[all …]
H A Dxtensa-isa.c934 const xtensa_insnbuf slotbuf, uint32 *valp) in xtensa_operand_get_field() argument
963 *valp = (*get_fn) (slotbuf); in xtensa_operand_get_field()
1007 uint32 *valp) in xtensa_operand_encode() argument
1050 (*set_fn) (tmpbuf, *valp); in xtensa_operand_encode()
1051 return ((*get_fn) (tmpbuf) != *valp); in xtensa_operand_encode()
1065 orig_val = *valp; in xtensa_operand_encode()
1066 if ((*intop->encode) (valp) in xtensa_operand_encode()
1067 || (test_val = *valp, (*intop->decode) (&test_val)) in xtensa_operand_encode()
1071 sprintf (xtisa_error_msg, "cannot encode operand value 0x%08x", *valp); in xtensa_operand_encode()
1081 uint32 *valp) in xtensa_operand_decode() argument
[all …]
/netbsd-src/sys/dev/i2c/
H A Dzl10353.c139 zl10353_read(struct zl10353 *zl, uint8_t reg, uint8_t *valp) in zl10353_read() argument
147 rv = iic_exec(zl->zl_i2c, op, zl->zl_i2c_addr, &reg, 1, valp, 1, 0); in zl10353_read()
422 zl10353_get_guard(fe_guard_interval_t fg, uint16_t *valp) in zl10353_get_guard() argument
428 *valp |= ZL10353_TPS_GUARD_1_4; in zl10353_get_guard()
432 *valp |= ZL10353_TPS_GUARD_1_8; in zl10353_get_guard()
436 *valp |= ZL10353_TPS_GUARD_1_16; in zl10353_get_guard()
440 *valp |= ZL10353_TPS_GUARD_1_32; in zl10353_get_guard()
444 *valp |= ZL10353_TPS_GUARD_AUTO; in zl10353_get_guard()
455 zl10353_get_mode(fe_transmit_mode_t fm, uint16_t *valp) in zl10353_get_mode() argument
461 *valp |= ZL10353_TPS_MODE_2K; in zl10353_get_mode()
[all …]
H A Di2c_exec.c328 uint8_t *valp, int flags) in iic_smbus_read_byte() argument
332 valp, 1, flags)); in iic_smbus_read_byte()
342 uint16_t *valp, int flags) in iic_smbus_read_word() argument
346 (uint8_t *)valp, 2, flags)); in iic_smbus_read_word()
355 iic_smbus_receive_byte(i2c_tag_t tag, i2c_addr_t addr, uint8_t *valp, in iic_smbus_receive_byte() argument
360 valp, 1, flags)); in iic_smbus_receive_byte()
/netbsd-src/external/bsd/elftoolchain/dist/libdwarf/
H A Ddwarf_attrval.c34 dwarf_attrval_flag(Dwarf_Die die, Dwarf_Half attr, Dwarf_Bool *valp, Dwarf_Error *err) in dwarf_attrval_flag() argument
41 if (die == NULL || valp == NULL) { in dwarf_attrval_flag()
46 *valp = 0; in dwarf_attrval_flag()
56 *valp = (Dwarf_Bool) (!!at->u[0].u64); in dwarf_attrval_flag()
102 dwarf_attrval_signed(Dwarf_Die die, Dwarf_Half attr, Dwarf_Signed *valp, Dwarf_Error *err) in dwarf_attrval_signed() argument
109 if (die == NULL || valp == NULL) { in dwarf_attrval_signed()
114 *valp = 0; in dwarf_attrval_signed()
123 *valp = (int8_t) at->u[0].s64; in dwarf_attrval_signed()
126 *valp = (int16_t) at->u[0].s64; in dwarf_attrval_signed()
129 *valp = (int32_t) at->u[0].s64; in dwarf_attrval_signed()
[all …]
/netbsd-src/sys/arch/atari/stand/binpatch/
H A Dbinpatch.c121 void *valp; in main() local
248 valp = mappedfile + valoff; in main()
257 uval8 = *(uint8_t *)valp; in main()
258 sval8 = *(int8_t *)valp; in main()
265 uval16 = *(uint16_t *)valp; in main()
266 sval16 = *(int16_t *)valp; in main()
273 uval32 = *(uint32_t *)valp; in main()
274 sval32 = *(int32_t *)valp; in main()
281 uval64 = *(uint64_t *)valp; in main()
282 sval64 = *(int64_t *)valp; in main()
[all …]
/netbsd-src/sys/arch/usermode/usermode/
H A Dcopy.c90 _ufetch_8(const uint8_t *uaddr, uint8_t *valp) in _ufetch_8() argument
92 *valp = *uaddr; in _ufetch_8()
97 _ufetch_16(const uint16_t *uaddr, uint16_t *valp) in _ufetch_16() argument
99 *valp = *uaddr; in _ufetch_16()
104 _ufetch_32(const uint32_t *uaddr, uint32_t *valp) in _ufetch_32() argument
106 *valp = *uaddr; in _ufetch_32()
112 _ufetch_64(const uint64_t *uaddr, uint64_t *valp) in _ufetch_64() argument
114 *valp = *uaddr; in _ufetch_64()
/netbsd-src/usr.bin/audio/ctl/
H A Dctl.c73 void *valp; member
175 printf("%s", (const char*)p->valp); in prfield()
178 printf("%d", *(const int*)p->valp); in prfield()
181 printf("%u", *(const u_int*)p->valp); in prfield()
184 printf("0x%x", *(const u_int*)p->valp); in prfield()
187 printf("%u", *(const u_char*)p->valp); in prfield()
190 printf("%lu", *(const u_long*)p->valp); in prfield()
193 v = *(const u_int*)p->valp; in prfield()
206 v = *(u_int*)p->valp; in prfield()
214 v = *(u_int*)p->valp; in prfield()
[all …]
/netbsd-src/sys/arch/riscv/riscv/
H A Dtrap.c669 fetch_user_data(const void *uaddr, void *valp, size_t size) in fetch_user_data()
684 *(uint8_t *)valp = *(volatile const uint8_t *)uaddr; in fetch_user_data()
687 *(uint16_t *)valp = *(volatile const uint16_t *)uaddr; in fetch_user_data()
690 *(uint32_t *)valp = *(volatile const uint32_t *)uaddr; in fetch_user_data()
694 *(uint64_t *)valp = *(volatile const uint64_t *)uaddr; in fetch_user_data()
708 _ufetch_8(const uint8_t *uaddr, uint8_t *valp) in _ufetch_8()
710 return fetch_user_data(uaddr, valp, sizeof(*valp));
714 _ufetch_16(const uint16_t *uaddr, uint16_t *valp) in _ufetch_16()
716 return fetch_user_data(uaddr, valp, sizeo in _ufetch_16()
667 fetch_user_data(const void * uaddr,void * valp,size_t size) fetch_user_data() argument
706 _ufetch_8(const uint8_t * uaddr,uint8_t * valp) _ufetch_8() argument
712 _ufetch_16(const uint16_t * uaddr,uint16_t * valp) _ufetch_16() argument
718 _ufetch_32(const uint32_t * uaddr,uint32_t * valp) _ufetch_32() argument
725 _ufetch_64(const uint64_t * uaddr,uint64_t * valp) _ufetch_64() argument
732 store_user_data(void * uaddr,const void * valp,size_t size) store_user_data() argument
[all...]
H A Ddb_machdep.c97 db_rw_ddbreg(const struct db_variable *vp, db_expr_t *valp, int rw) in db_rw_ddbreg()
103 *valp = *(const uint32_t *)addr; in db_rw_ddbreg()
105 *(uint32_t *)addr = *valp; in db_rw_ddbreg()
109 *valp = *(const register_t *)addr;
111 *(register_t *)addr = *valp;
89 db_rw_ddbreg(const struct db_variable * vp,db_expr_t * valp,int rw) db_rw_ddbreg() argument
/netbsd-src/external/bsd/pcc/dist/pcc/f77/fcom/
H A Ddata.c51 dataval(repp, valp) in dataval() argument
52 register struct bigblock *repp, *valp; in dataval()
70 if( ! ISCONST(valp) )
86 setdata(p, valp, elen, vlen);
91 frexpr(valp);
233 LOCAL void setdata(varp, valp, elen, vlen) in setdata() argument
236 struct bigblock *valp;
260 valtype = valp->vtype;
276 con.ci = valp->b_const.fconst.ci;
277 else consconv(type, &con, valtype, &valp->b_const.fconst);
[all …]
/netbsd-src/sys/fs/nfs/common/
H A Dnfsclstate.h341 uint8_t *valp; in nfsfldi_stripeindex() local
345 valp = (uint8_t *)&ndi->nfsdi_data[ndi->nfsdi_addrcnt]; in nfsfldi_stripeindex()
346 valp += pos; in nfsfldi_stripeindex()
347 return ((int)*valp); in nfsfldi_stripeindex()
356 uint8_t *valp; in nfsfldi_setstripeindex() local
360 valp = (uint8_t *)&ndi->nfsdi_data[ndi->nfsdi_addrcnt]; in nfsfldi_setstripeindex()
361 valp += pos; in nfsfldi_setstripeindex()
362 *valp = val; in nfsfldi_setstripeindex()
/netbsd-src/usr.bin/unifdef/
H A Dunifdef.c728 eval_unary(const struct ops *ops, int *valp, const char **cpp) in eval_unary() argument
738 if (eval_unary(ops, valp, &cp) == LT_IF) in eval_unary()
740 *valp = !*valp; in eval_unary()
744 if (eval_table(eval_ops, valp, &cp) == LT_IF) in eval_unary()
751 *valp = strtol(cp, &ep, 0); in eval_unary()
762 *valp = (value[sym] != NULL); in eval_unary()
774 *valp = 0; in eval_unary()
776 *valp = strtol(value[sym], &ep, 0); in eval_unary()
788 debug("eval%td = %d", ops - eval_ops, *valp); in eval_unary()
789 return (*valp ? LT_TRUE : LT_FALSE); in eval_unary()
[all …]
/netbsd-src/crypto/external/bsd/openssl/dist/test/testutil/
H A Dtestutil_init.c115 char *valp = val; in setup_trace() local
118 for (valp = val; (item = strtok(valp, ",")) != NULL; valp = NULL) { in setup_trace()
/netbsd-src/external/gpl3/binutils/dist/gprof/
H A Dgmon_io.c100 gmon_io_read_32 (FILE *ifp, unsigned int *valp) in gmon_io_read_32() argument
106 *valp = bfd_get_32 (core_bfd, buf); in gmon_io_read_32()
111 gmon_io_read_64 (FILE *ifp, uint64_t *valp) in gmon_io_read_64() argument
117 *valp = bfd_get_64 (core_bfd, buf); in gmon_io_read_64()
122 gmon_io_read_vma (FILE *ifp, bfd_vma *valp) in gmon_io_read_vma() argument
133 *valp = (int) val32; in gmon_io_read_vma()
135 *valp = val32; in gmon_io_read_vma()
142 *valp = (int64_t) val64; in gmon_io_read_vma()
144 *valp = val64; in gmon_io_read_vma()
/netbsd-src/external/gpl3/binutils.old/dist/gprof/
H A Dgmon_io.c100 gmon_io_read_32 (FILE *ifp, unsigned int *valp) in gmon_io_read_32() argument
106 *valp = bfd_get_32 (core_bfd, buf); in gmon_io_read_32()
111 gmon_io_read_64 (FILE *ifp, uint64_t *valp) in gmon_io_read_64() argument
117 *valp = bfd_get_64 (core_bfd, buf); in gmon_io_read_64()
122 gmon_io_read_vma (FILE *ifp, bfd_vma *valp) in gmon_io_read_vma() argument
133 *valp = (int) val32; in gmon_io_read_vma()
135 *valp = val32; in gmon_io_read_vma()
142 *valp = (int64_t) val64; in gmon_io_read_vma()
144 *valp = val64; in gmon_io_read_vma()
/netbsd-src/usr.bin/mixerctl/
H A Dmixerctl.c54 mixer_ctrl_t *valp; member
93 m = p->valp; in prfield()
157 m = p->valp; in rdfield()
223 m = p->valp; in incfield()
295 val = *p->valp; in wrarg()
301 if (ioctl(fd, AUDIO_MIXER_WRITE, p->valp) == -1) in wrarg()
304 *p->valp = val; in wrarg()
306 if (ioctl(fd, AUDIO_MIXER_READ, p->valp) == -1) in wrarg()
410 rfields[i].valp = &values[i]; in main()
/netbsd-src/sys/arch/powerpc/booke/
H A Dcopyin.c204 _ufetch_8(const uint8_t *vusaddr, uint8_t *valp) in _ufetch_8() argument
214 *valp = copyin_byte(vusaddr, mfmsr() | PSL_DS); in _ufetch_8()
222 _ufetch_16(const uint16_t *vusaddr, uint16_t *valp) in _ufetch_16() argument
232 *valp = copyin_halfword(vusaddr, mfmsr() | PSL_DS); in _ufetch_16()
240 _ufetch_32(const uint32_t *vusaddr, uint32_t *valp) in _ufetch_32() argument
250 *valp = copyin_word(vusaddr, mfmsr() | PSL_DS); in _ufetch_32()
/netbsd-src/sys/kern/
H A Dsubr_copy.c700 ufetch_8(const uint8_t *uaddr, uint8_t *valp) in ufetch_8() argument
705 return _ufetch_8(uaddr, valp); in ufetch_8()
709 ufetch_16(const uint16_t *uaddr, uint16_t *valp) in ufetch_16() argument
714 return _ufetch_16(uaddr, valp); in ufetch_16()
718 ufetch_32(const uint32_t *uaddr, uint32_t *valp) in ufetch_32() argument
723 return _ufetch_32(uaddr, valp); in ufetch_32()
728 ufetch_64(const uint64_t *uaddr, uint64_t *valp) in ufetch_64() argument
733 return _ufetch_64(uaddr, valp); in ufetch_64()
H A Dsubr_msan.c1002 kmsan__ufetch_8(const uint8_t *uaddr, uint8_t *valp) in kmsan__ufetch_8() argument
1005 kmsan_check_arg(sizeof(uaddr) + sizeof(valp), "ufetch_8():args"); in kmsan__ufetch_8()
1006 _ret = _ufetch_8(uaddr, valp); in kmsan__ufetch_8()
1008 kmsan_shadow_fill(valp, KMSAN_STATE_INITED, sizeof(*valp)); in kmsan__ufetch_8()
1016 kmsan__ufetch_16(const uint16_t *uaddr, uint16_t *valp) in kmsan__ufetch_16() argument
1019 kmsan_check_arg(sizeof(uaddr) + sizeof(valp), "ufetch_16():args"); in kmsan__ufetch_16()
1020 _ret = _ufetch_16(uaddr, valp); in kmsan__ufetch_16()
1022 kmsan_shadow_fill(valp, KMSAN_STATE_INITED, sizeof(*valp)); in kmsan__ufetch_16()
1030 kmsan__ufetch_32(const uint32_t *uaddr, uint32_t *valp) in kmsan__ufetch_32() argument
1033 kmsan_check_arg(sizeof(uaddr) + sizeof(valp), "ufetch_32():args"); in kmsan__ufetch_32()
[all …]

123456789