Home
last modified time | relevance | path

Searched refs:uv (Results 1 – 25 of 83) sorted by relevance

1234

/freebsd/sys/contrib/openzfs/module/lua/
H A Dlfunc.c38 UpVal *uv = &luaC_newobj(L, LUA_TUPVAL, sizeof(UpVal), NULL, 0)->uv; in luaF_newupval() local
39 uv->v = &uv->u.value; in luaF_newupval()
40 setnilvalue(uv->v); in luaF_newupval()
41 return uv; in luaF_newupval()
49 UpVal *uv; in luaF_findupval() local
62 uv = &luaC_newobj(L, LUA_TUPVAL, sizeof(UpVal), pp, 0)->uv; in luaF_findupval()
63 uv->v = level; /* current value lives in the stack */ in luaF_findupval()
64 uv->u.l.prev = &g->uvhead; /* double link it in `uvhead' list */ in luaF_findupval()
65 uv->u.l.next = g->uvhead.u.l.next; in luaF_findupval()
66 uv->u.l.next->u.l.prev = uv; in luaF_findupval()
[all …]
H A Dlgc.c188 void luaC_checkupvalcolor (global_State *g, UpVal *uv) { in luaC_checkupvalcolor() argument
189 GCObject *o = obj2gco(uv); in luaC_checkupvalcolor()
195 markvalue(g, uv->v); in luaC_checkupvalcolor()
258 UpVal *uv = gco2uv(o); in reallymarkobject() local
259 markvalue(g, uv->v); in reallymarkobject()
260 if (uv->v != &uv->u.value) /* open? */ in reallymarkobject()
323 UpVal *uv; in remarkupvals() local
324 for (uv = g->uvhead.u.l.next; uv != &g->uvhead; uv = uv->u.l.next) { in remarkupvals()
325 if (isgray(obj2gco(uv))) in remarkupvals()
326 markvalue(g, uv->v); in remarkupvals()
H A Dlstate.h193 struct UpVal uv; member
205 #define gco2u(o) (&rawgco2u(o)->uv)
212 #define gco2uv(o) check_exp((o)->gch.tt == LUA_TUPVAL, &((o)->uv))
/freebsd/contrib/lua/src/
H A Dlfunc.c52 UpVal *uv = gco2upv(o); in luaF_initupvals() local
53 uv->v.p = &uv->u.value; /* make it closed */ in luaF_initupvals()
54 setnilvalue(uv->v.p); in luaF_initupvals()
55 cl->upvals[i] = uv; in luaF_initupvals()
56 luaC_objbarrier(L, cl, uv); in luaF_initupvals()
67 UpVal *uv = gco2upv(o); in newupval() local
69 uv->v.p = s2v(level); /* current value lives in the stack */ in newupval()
70 uv->u.open.next = next; /* link it to list of open upvalues */ in newupval()
71 uv->u.open.previous = prev; in newupval()
73 next->u.open.previous = &uv->u.open.next; in newupval()
[all …]
H A Dlgc.c305 UpVal *uv = gco2upv(o); in reallymarkobject() local
306 if (upisopen(uv)) in reallymarkobject()
307 set2gray(uv); /* open upvalues are kept gray */ in reallymarkobject()
309 set2black(uv); /* closed upvalues are visited here */ in reallymarkobject()
310 markvalue(g, uv->v.p); /* mark its content */ in reallymarkobject()
376 UpVal *uv; in remarkupvals() local
380 for (uv = thread->openupval; uv != NULL; uv = uv->u.open.next) { in remarkupvals()
381 lua_assert(getage(uv) <= getage(thread)); in remarkupvals()
383 if (!iswhite(uv)) { /* upvalue already visited? */ in remarkupvals()
384 lua_assert(upisopen(uv) && isgray(uv)); in remarkupvals()
[all …]
/freebsd/lib/msun/src/
H A De_hypotl.c21 union IEEEl2bits uv; \
23 uv.e = v; \
24 h = uv.bits.manh; \
25 l = uv.bits.manl; \
98 union IEEEl2bits uv; in hypotl() local
99 uv.e = t1; uv.bits.manl = 0; t1 = uv.e; in hypotl()
105 union IEEEl2bits uv; in hypotl() local
106 uv.e = y1; uv.bits.manl = 0; y1 = uv.e; in hypotl()
109 uv.e = t1; uv.bits.manl = 0; t1 = uv.e; in hypotl()
/freebsd/sys/contrib/openzfs/module/unicode/
H A Du8_textprep.c461 do_case_conv(int uv, uchar_t *u8s, uchar_t *s, int sz, boolean_t is_it_toupper) in do_case_conv() argument
505 b1 = u8_common_b1_tbl[uv][b1]; in do_case_conv()
509 b2 = u8_case_common_b2_tbl[uv][b1][b2]; in do_case_conv()
514 b3_tbl = u8_toupper_b3_tbl[uv][b2][b3].tbl_id; in do_case_conv()
518 start_id = u8_toupper_b4_tbl[uv][b3_tbl][b4]; in do_case_conv()
519 end_id = u8_toupper_b4_tbl[uv][b3_tbl][b4 + 1]; in do_case_conv()
525 b3_base = u8_toupper_b3_tbl[uv][b2][b3].base; in do_case_conv()
528 u8s[i++] = u8_toupper_final_tbl[uv][b3_base + start_id]; in do_case_conv()
531 b3_tbl = u8_tolower_b3_tbl[uv][b2][b3].tbl_id; in do_case_conv()
535 start_id = u8_tolower_b4_tbl[uv][b3_tbl][b4]; in do_case_conv()
[all …]
/freebsd/stand/efi/libefi/
H A Defienv.c38 CHAR16 *uv; in efi_getenv() local
43 uv = NULL; in efi_getenv()
44 if (utf8_to_ucs2(v, &uv, &ul) != 0) in efi_getenv()
47 rv = RS->GetVariable(uv, g, &attr, &dl, data); in efi_getenv()
50 free(uv); in efi_getenv()
75 CHAR16 *uv; in efi_setenv() local
78 uv = NULL; in efi_setenv()
79 if (utf8_to_ucs2(varname, &uv, &ul) != 0) in efi_setenv()
82 rv = RS->SetVariable(uv, guid, attr, len, data); in efi_setenv()
83 free(uv); in efi_setenv()
/freebsd/sys/arm64/nvidia/tegra210/
H A Dtegra210_cpufreq.c181 int uv, scale, min_uvolt, max_uvolt, step_uvolt; in freq_to_voltage() local
199 uv = DIV_ROUND_CLOSEST(ent->c2 * sc->speedo_value, scale); in freq_to_voltage()
200 uv = DIV_ROUND_CLOSEST((uv + ent->c1) * sc->speedo_value, scale) + in freq_to_voltage()
204 uv = ROUND_UP(uv, step_uvolt); in freq_to_voltage()
209 if (uv < min_uvolt) in freq_to_voltage()
210 uv = min_uvolt; in freq_to_voltage()
211 if (uv > max_uvolt) in freq_to_voltage()
212 uv = max_uvolt; in freq_to_voltage()
213 return (uv); in freq_to_voltage()
/freebsd/sys/contrib/device-tree/src/arm/
H A Dcros-adc-thermistors.dtsi15 pullup-uv = <1800000>;
22 pullup-uv = <1800000>;
29 pullup-uv = <1800000>;
36 pullup-uv = <1800000>;
/freebsd/sys/arm/nvidia/tegra124/
H A Dtegra124_cpufreq.c224 int uv, scale, min_uvolt, max_uvolt, step_uvolt; in freq_to_voltage() local
241 uv = DIV_ROUND_CLOSEST(ent->c2 * sc->speedo_value, scale); in freq_to_voltage()
242 uv = DIV_ROUND_CLOSEST((uv + ent->c1) * sc->speedo_value, scale) + in freq_to_voltage()
246 uv = ROUND_UP(uv, step_uvolt); in freq_to_voltage()
251 if (uv < min_uvolt) in freq_to_voltage()
252 uv = min_uvolt; in freq_to_voltage()
253 if (uv > max_uvolt) in freq_to_voltage()
254 uv = max_uvolt; in freq_to_voltage()
255 return (uv); in freq_to_voltage()
/freebsd/contrib/netbsd-tests/lib/libc/
H A Dt_convfp.c113 unsigned long uv; in ATF_TC_BODY() local
116 uv = (unsigned long)nv; in ATF_TC_BODY()
118 ATF_CHECK_EQ_MSG(uv, 5, in ATF_TC_BODY()
119 "%.3f casted to unsigned long is %lu", nv, uv); in ATF_TC_BODY()
/freebsd/contrib/libfido2/examples/
H A Dcred.c47 bool rk, bool uv, int ext, int cred_protect, const char *key_out, in verify_cred() argument
86 if (uv && (r = fido_cred_set_uv(cred, FIDO_OPT_TRUE)) != FIDO_OK) in verify_cred()
153 bool uv = false; in main()
234 uv = true; in main()
289 if (uv && (r = fido_cred_set_uv(cred, FIDO_OPT_TRUE)) != FIDO_OK) in main()
312 /* when verifying, pin implies uv */
314 uv = true;
318 fido_cred_attstmt_len(cred), rk, uv, ext, fido_cred_prot(cred),
147 bool uv = false; main() local
H A Dassert.c43 const unsigned char *sig_ptr, size_t sig_len, bool up, bool uv, int ext, in verify_assert() argument
155 if (uv && (r = fido_assert_set_uv(assert, FIDO_OPT_TRUE)) != FIDO_OK) in verify_assert()
179 bool uv = false; in main() local
256 uv = true; in main()
301 if (uv && (r = fido_assert_set_uv(assert, FIDO_OPT_TRUE)) != FIDO_OK) in main()
325 uv = true; in main()
329 fido_assert_sig_len(assert, 0), up, uv, ext, argv[0]); in main()
/freebsd/contrib/libfido2/src/
H A Dassert.c89 fido_opt_t uv = assert->uv; in fido_dev_get_assert_tx()
131 if (pin != NULL || (uv == FIDO_OPT_TRUE && in fido_dev_get_assert_tx()
138 uv = FIDO_OPT_OMIT; in fido_dev_get_assert_tx()
142 if (assert->up != FIDO_OPT_OMIT || uv != FIDO_OPT_OMIT) in fido_dev_get_assert_tx()
143 if ((argv[4] = cbor_encode_assert_opt(assert->up, uv)) == NULL) { in fido_dev_get_assert_tx()
333 if (pin != NULL || (assert->uv == FIDO_OPT_TRUE && in fido_dev_get_assert()
358 fido_check_flags(uint8_t flags, fido_opt_t up, fido_opt_t uv) in fido_check_flags()
361 fido_log_debug("%s: up=%d, uv=%d", __func__, up, uv); in fido_check_flags()
85 fido_opt_t uv = assert->uv; fido_dev_get_assert_tx() local
354 fido_check_flags(uint8_t flags,fido_opt_t up,fido_opt_t uv) fido_check_flags() argument
702 fido_assert_set_options(fido_assert_t * assert,bool up,bool uv) fido_assert_set_options() argument
719 fido_assert_set_uv(fido_assert_t * assert,fido_opt_t uv) fido_assert_set_uv() argument
[all...]
H A Dcred.c56 fido_opt_t uv = cred->uv; in fido_dev_make_cred_tx() local
99 if (pin != NULL || (uv == FIDO_OPT_TRUE && in fido_dev_make_cred_tx()
110 uv = FIDO_OPT_OMIT; in fido_dev_make_cred_tx()
114 if (cred->rk != FIDO_OPT_OMIT || uv != FIDO_OPT_OMIT) in fido_dev_make_cred_tx()
115 if ((argv[6] = cbor_encode_cred_opt(cred->rk, uv)) == NULL) { in fido_dev_make_cred_tx()
365 cred->uv) < 0) { in fido_cred_verify()
454 cred->uv) < 0) { in fido_cred_verify_self()
573 cred->uv = FIDO_OPT_OMIT; in fido_cred_reset_tx()
898 fido_cred_set_options(fido_cred_t *cred, bool rk, bool uv) in fido_cred_set_options() argument
901 cred->uv = uv ? FIDO_OPT_TRUE : FIDO_OPT_FALSE; in fido_cred_set_options()
[all …]
/freebsd/contrib/libfido2/tools/
H A Dtoken.c508 int uv = 0; in token_set() local
549 uv = 1; in token_set()
577 if (ea || uv) in token_set()
587 if (uv) in token_set()
598 if (uv) in token_set()
682 int uv = 0; in token_delete() local
704 uv = 1; in token_delete()
718 if (uv) in token_delete()
725 if (uv == 0) in token_delete()
H A Dassert_get.c21 fido_opt_t uv; member
66 else if (!strcmp(key, "uv")) in parse_toggle()
67 k = &opt->uv; in parse_toggle()
111 fprintf(stderr, "uv=%s\n", opt2str(opt->uv)); in prepare_assert()
127 if ((r = fido_assert_set_uv(assert, opt->uv)) != FIDO_OK) in prepare_assert()
227 opt.up = opt.uv = opt.pin = FIDO_OPT_OMIT; in assert_get()
259 /* -v implies both pin and uv for historical reasons */ in assert_get()
261 opt.uv = FIDO_OPT_TRUE; in assert_get()
/freebsd/crypto/libecc/src/sig/
H A Dfuzzing_ecdsa.c281 nn e, sinv, uv, r_prime; in ecdsa_verify_raw() local
291 e.magic = sinv.magic = uv.magic = r_prime.magic = WORD(0); in ecdsa_verify_raw()
371 ret = nn_mod_mul(&uv, &e, &sinv, q); EG(ret, err); in ecdsa_verify_raw()
372 dbg_nn_print("u = (s^-1)e mod q", &uv); in ecdsa_verify_raw()
373 ret = prj_pt_mul(&uG, &uv, G); EG(ret, err); in ecdsa_verify_raw()
376 ret = nn_mod_mul(&uv, r, &sinv, q); EG(ret, err); in ecdsa_verify_raw()
377 dbg_nn_print("v = (s^-1)r mod q", &uv); in ecdsa_verify_raw()
378 ret = prj_pt_mul(&vY, &uv, Y); EG(ret, err); in ecdsa_verify_raw()
399 nn_uninit(&uv); in ecdsa_verify_raw()
H A Dfuzzing_ecgdsa.c257 nn tmp, e, r_prime, rinv, uv, *r, *s; in ecgdsa_verify_raw() local
268 tmp.magic = e.magic = r_prime.magic = rinv.magic = uv.magic = WORD(0); in ecgdsa_verify_raw()
333 ret = nn_mod(&uv, &tmp, q); EG(ret, err); /* (r^-1 * e) mod q */ in ecgdsa_verify_raw()
334 ret = prj_pt_mul(&uG, &uv, G); EG(ret, err); in ecgdsa_verify_raw()
338 ret = nn_mod(&uv, &tmp, q); EG(ret, err); /* (r^-1 * s) mod q */ in ecgdsa_verify_raw()
339 ret = prj_pt_mul(&vY, &uv, Y); EG(ret, err); in ecgdsa_verify_raw()
357 nn_uninit(&uv); in ecgdsa_verify_raw()
/freebsd/sys/dev/iicbus/pmic/rockchip/
H A Drk8xx_regulators.c111 rk8xx_regnode_reg_to_voltage(struct rk8xx_reg_sc *sc, uint8_t val, int *uv) in rk8xx_regnode_reg_to_voltage() argument
125 *uv = sc->def->voltage_min2 + in rk8xx_regnode_reg_to_voltage()
129 *uv = sc->def->voltage_max2; in rk8xx_regnode_reg_to_voltage()
134 *uv = sc->def->voltage_min + val * sc->def->voltage_step; in rk8xx_regnode_reg_to_voltage()
136 *uv = sc->def->voltage_max; in rk8xx_regnode_reg_to_voltage()
140 *uv = sc->def->voltage_min + val * sc->def->voltage_step; in rk8xx_regnode_reg_to_voltage()
142 *uv = sc->def->voltage_min + in rk8xx_regnode_reg_to_voltage()
/freebsd/contrib/libfido2/fuzz/
H A Dfuzz_assert.c37 uint8_t uv; member
82 if (unpack_byte(v[0], &p->uv) < 0 || in unpack()
122 (argv[0] = pack_byte(p->uv)) == NULL || in pack()
207 const char *rp_id, int ext, uint8_t up, uint8_t uv, const char *pin, in get_assert() argument
226 if (uv & 1) in get_assert()
255 const unsigned char *sig_ptr, size_t sig_len, uint8_t up, uint8_t uv, in verify_assert() argument
276 if (uv & 1) in verify_assert()
457 get_assert(assert, p->opt, &p->cdh, p->rp_id, p->ext, p->up, p->uv, in test()
469 fido_assert_sig_len(assert, i), p->up, p->uv, p->ext, pk); in test()
507 mutate_byte(&p->uv); in mutate()
[all...]
H A Dfuzz_cred.c39 uint8_t uv; member
91 unpack_byte(v[3], &p->uv) < 0 || in unpack()
133 (argv[3] = pack_byte(p->uv)) == NULL || in pack()
217 int ext, uint8_t rk, uint8_t uv, const char *pin, uint8_t excl_count, in make_cred() argument
247 if (uv & 1) in make_cred()
273 size_t authdata_raw_len, int ext, uint8_t rk, uint8_t uv, in verify_cred() argument
307 if (uv & 1) in verify_cred()
377 p->rk, p->uv, p->pin, p->excl_count, &p->excl_cred); in test_cred()
384 fido_cred_authdata_raw_len(cred), p->ext, p->rk, p->uv, in test_cred()
456 mutate_byte(&p->uv); in mutate()
/freebsd/sys/contrib/device-tree/Bindings/hwmon/
H A Dntc_thermistor.txt23 - "pullup-uv" Pull up voltage in micro volts
40 pullup-uv = <1800000>;
/freebsd/contrib/netbsd-tests/lib/libc/gen/
H A Dt_vis.c138 char uv[10]; in ATF_TC_BODY() local
141 ATF_REQUIRE(strunvis(uv, ed[i].e) == ed[i].error); in ATF_TC_BODY()
143 ATF_REQUIRE(memcmp(ed[i].d, uv, ed[i].error) == 0); in ATF_TC_BODY()

1234