/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_libc.cpp | 36 void *res = nullptr; in internal_memrchr() local 40 return res; in internal_memrchr() 161 if (!res) in internal_strchrnul() 163 return res; in internal_strchrnul() 167 const char *res = nullptr; in internal_strrchr() local 169 if (s[i] == c) res = s + i; in internal_strrchr() 171 return const_cast<char *>(res); in internal_strrchr() 259 u64 res = 0; in internal_simple_strtoll() local 270 res = (res <= UINT64_MAX / 10) ? res * 10 : UINT64_MAX; in internal_simple_strtoll() 272 res = (res <= UINT64_MAX - digit) ? res + digit : UINT64_MAX; in internal_simple_strtoll() [all …]
|
H A D | sanitizer_bvgraph.h | 51 uptr res = 0; in addEdges() local 56 if (res < max_added_edges) in addEdges() 57 added_edges[res++] = node; in addEdges() 59 return res; in addEdges() 77 bool res = 0; in removeEdgesTo() local 80 res = true; in removeEdgesTo() 82 return res; in removeEdgesTo() 87 bool res = false; in removeEdgesFrom() local 93 res = true; in removeEdgesFrom() 96 return res; in removeEdgesFrom() [all …]
|
/freebsd/lib/libgssapi/ |
H A D | gss_mech_switch.c | 58 char *res; in _gss_string_to_oid() local 86 res = NULL; in _gss_string_to_oid() 115 if (res) in _gss_string_to_oid() 118 if (res) { in _gss_string_to_oid() 119 *res += number; in _gss_string_to_oid() 120 res++; in _gss_string_to_oid() 135 if (res) { in _gss_string_to_oid() 140 *res |= 0x80; in _gss_string_to_oid() 141 res++; in _gss_string_to_oid() 148 if (!res) { in _gss_string_to_oid() [all …]
|
/freebsd/contrib/unbound/validator/ |
H A D | val_secalgo.c | 832 if(res == 1) { in verify_canonrrset() 1387 SECStatus res; in verify_canonrrset() local 1562 res); in secalgo_nsec3_hash() 1757 int res = 0; in _verify_nettle_dsa() local 1833 if (!res) in _verify_nettle_dsa() 1848 int res = 0; in _verify_nettle_rsa() local 1912 if (!res) { in _verify_nettle_rsa() 1924 int res = 0; in _verify_nettle_ecdsa() local 1978 if (!res) in _verify_nettle_ecdsa() 1990 int res = 0; in _verify_nettle_ed25519() local [all …]
|
/freebsd/sys/i386/include/ |
H A D | atomic.h | 196 u_char res; in atomic_testandset_int() local 206 return (res); in atomic_testandset_int() 212 u_char res; in atomic_testandclear_int() local 222 return (res); in atomic_testandclear_int() 318 u_char res; in atomic_cmpset_64_i386() local 340 return (res); in atomic_cmpset_64_i386() 359 uint64_t res; in atomic_load_acq_64_i386() local 372 return (res); in atomic_load_acq_64_i386() 397 uint64_t res; in atomic_swap_64_i386() local 419 u_char res; in atomic_cmpset_64_i586() local [all …]
|
/freebsd/sys/dev/acpica/ |
H A D | acpi_package.c | 45 acpi_PkgInt(ACPI_OBJECT *res, int idx, UINT64 *dst) in acpi_PkgInt() argument 49 obj = &res->Package.Elements[idx]; in acpi_PkgInt() 58 acpi_PkgInt32(ACPI_OBJECT *res, int idx, uint32_t *dst) in acpi_PkgInt32() argument 63 error = acpi_PkgInt(res, idx, &tmp); in acpi_PkgInt32() 71 acpi_PkgInt16(ACPI_OBJECT *res, int idx, uint16_t *dst) in acpi_PkgInt16() argument 76 error = acpi_PkgInt(res, idx, &tmp); in acpi_PkgInt16() 84 acpi_PkgStr(ACPI_OBJECT *res, int idx, void *dst, size_t size) in acpi_PkgStr() argument 90 obj = &res->Package.Elements[idx]; in acpi_PkgStr() 122 obj = &res->Package.Elements[idx]; in acpi_PkgGas() 133 acpi_PkgFFH_IntelCpu(ACPI_OBJECT *res, int idx, int *vendor, int *class, in acpi_PkgFFH_IntelCpu() argument [all …]
|
/freebsd/sys/dev/adlink/ |
H A D | adlink.c | 105 struct resource *res[3]; member 136 u = bus_read_4(sc->res[0], 0x38); in adlink_intr() 145 u = bus_read_4(sc->res[1], 0x18); in adlink_intr() 282 bus_write_4(sc->res[1], 0x00, 1); in adlink_ioctl() 288 bus_write_4(sc->res[1], 0x08, 0); in adlink_ioctl() 291 bus_write_4(sc->res[1], 0x0c, 0); in adlink_ioctl() 294 bus_write_4(sc->res[1], 0x10, 0); in adlink_ioctl() 297 bus_write_4(sc->res[1], 0x18, 3); in adlink_ioctl() 300 bus_write_4(sc->res[1], 0x20, 2); in adlink_ioctl() 310 u = bus_read_4(sc->res[0], 0x3c); in adlink_ioctl() [all …]
|
/freebsd/contrib/wpa/src/common/ |
H A D | dragonfly.c | 61 int res; in dragonfly_get_random_qr_qnr() local 69 res = crypto_bignum_legendre(tmp, prime); in dragonfly_get_random_qr_qnr() 70 if (res == 1 && !(*qr)) in dragonfly_get_random_qr_qnr() 72 else if (res == -1 && !(*qnr)) in dragonfly_get_random_qr_qnr() 114 int check, res = -1; in dragonfly_is_quadratic_residue_blind() local 166 if (res == -2) { in dragonfly_is_quadratic_residue_blind() 167 res = -1; in dragonfly_is_quadratic_residue_blind() 172 mask = const_time_eq(res, check); in dragonfly_is_quadratic_residue_blind() 173 res = const_time_select_int(mask, 1, 0); in dragonfly_is_quadratic_residue_blind() 178 return res; in dragonfly_is_quadratic_residue_blind() [all …]
|
/freebsd/tools/test/stress2/misc/ |
H A D | syzkaller54.sh | 138 return res; 160 return res; 247 intptr_t res = 0; 251 if (res != -1) 252 r[0] = res; 259 if (res != -1) 260 r[1] = res; 270 if (res != -1) 271 r[2] = res; 275 if (res != -1) [all …]
|
/freebsd/usr.sbin/rpc.lockd/ |
H A D | lockd.c | 630 res->ai_family); in create_service() 683 free(res->ai_addr); in create_service() 684 free(res); in create_service() 686 freeaddrinfo(res); in create_service() 708 free(res->ai_addr); in create_service() 709 free(res); in create_service() 711 freeaddrinfo(res); in create_service() 712 res = NULL; in create_service() 801 &res)) != 0) { in complete_service() 808 memcpy(servaddr.buf, res->ai_addr, res->ai_addrlen); in complete_service() [all …]
|
/freebsd/sys/dev/cardbus/ |
H A D | cardbus_cis.c | 430 if (res == CIS_CONFIG_SPACE) in cardbus_read_tuple() 439 struct resource *res) in cardbus_read_tuple_finish() argument 451 struct resource *res; in cardbus_read_tuple_init() local 482 if (res == NULL) { in cardbus_read_tuple_init() 488 rman_get_start(res))); in cardbus_read_tuple_init() 501 romsig = bus_read_2(res, in cardbus_read_tuple_init() 508 res); in cardbus_read_tuple_init() 545 res); in cardbus_read_tuple_init() 557 return (res); in cardbus_read_tuple_init() 588 struct resource *res; in cardbus_parse_cis() local [all …]
|
/freebsd/contrib/tcsh/ |
H A D | tw.comp.c | 272 if (res != NULL) in tw_result() 273 xfree(res), res = NULL; in tw_result() 345 (void) strip(res); in tw_result() 352 (void) strip(res); in tw_result() 371 xfree(res), res = NULL; in tw_result() 389 (void) strip(res); in tw_result() 407 Char *res; in tw_dollar() local 431 *result = res; in tw_dollar() 435 xfree(res); in tw_dollar() 523 int cmd, res; in tw_complete() local [all …]
|
/freebsd/sys/powerpc/pseries/ |
H A D | platform_chrp.c | 213 int i, idx, len, lasz, lmsz, res; in parse_drconf_memory() local 227 if (res == -1) in parse_drconf_memory() 252 if (res == -1) in parse_drconf_memory() 321 int res; in chrp_timebase_freq() local 387 int res; in get_cpu_reg() local 389 res = OF_getproplen(cpu, "reg"); in get_cpu_reg() 390 if (res != sizeof(cell_t)) in get_cpu_reg() 392 OF_getencprop(cpu, "reg", reg, res); in get_cpu_reg() 420 if (res != res2 || res != sizeof(cell_t)) in chrp_cpuref_init() 458 if (res > 0) { in chrp_cpuref_init() [all …]
|
/freebsd/sys/i386/bios/ |
H A D | smapi.c | 57 #define RES2HDR(res) ((struct smapi_bios_header *)rman_get_virtual(res)) argument 63 struct resource * res; member 166 struct resource *res; in smapi_probe() local 173 if (res == NULL) { in smapi_probe() 179 if (smapi_header_cksum(RES2HDR(res))) { in smapi_probe() 186 if (res) in smapi_probe() 187 bus_release_resource(dev, SYS_RES_MEMORY, rid, res); in smapi_probe() 205 if (sc->res == NULL) { in smapi_attach() 256 if (sc->res) in smapi_attach() 257 bus_release_resource(dev, SYS_RES_MEMORY, sc->rid, sc->res); in smapi_attach() [all …]
|
/freebsd/contrib/bmake/ |
H A D | str.c | 213 res.words = NULL; in Substring_Words() 214 res.len = 0; in Substring_Words() 215 res.freeIt = NULL; in Substring_Words() 216 return res; in Substring_Words() 318 return res; in Str_Match() 339 res.matched = neg; in Str_Match() 340 return res; in Str_Match() 382 res.matched = true; in Str_Match() 383 return res; in Str_Match() 394 return res; in Str_Match() [all …]
|
/freebsd/sys/dev/altera/pio/ |
H A D | pio.c | 57 #define READ4(_sc, _reg) bus_read_4((_sc)->res[0], _reg) 58 #define READ2(_sc, _reg) bus_read_2((_sc)->res[0], _reg) 59 #define READ1(_sc, _reg) bus_read_1((_sc)->res[0], _reg) 60 #define WRITE4(_sc, _reg, _val) bus_write_4((_sc)->res[0], _reg, _val) 61 #define WRITE2(_sc, _reg, _val) bus_write_2((_sc)->res[0], _reg, _val) 65 struct resource *res[2]; member 86 if (bus_setup_intr(sc->dev, sc->res[1], INTR_TYPE_BIO | INTR_MPSAFE, in pio_setup_irq() 102 bus_teardown_intr(sc->dev, sc->res[1], sc->ih); in pio_teardown_irq() 169 if (bus_alloc_resources(dev, pio_spec, sc->res)) { in pio_attach() 175 sc->bst = rman_get_bustag(sc->res[0]); in pio_attach() [all …]
|
/freebsd/crypto/openssl/crypto/evp/ |
H A D | e_aes_cbc_hmac_sha1.c | 106 size_t res; in sha1_update() local 109 res = SHA_CBLOCK - res; in sha1_update() 110 if (len < res) in sha1_update() 113 ptr += res; in sha1_update() 114 len -= res; in sha1_update() 118 len -= res; in sha1_update() 130 if (res) in sha1_update() 716 res = 0 - ((0 - res) >> (sizeof(res) * 8 - 1)); in aesni_cbc_hmac_sha1_cipher() 722 res = 0 - ((0 - res) >> (sizeof(res) * 8 - 1)); in aesni_cbc_hmac_sha1_cipher() 726 pad = (pad & ~res) | (maxpad & res); in aesni_cbc_hmac_sha1_cipher() [all …]
|
/freebsd/contrib/ldns/drill/ |
H A D | drill.c | 110 ldns_resolver *res = NULL; in main() local 613 res = ldns_resolver_new(); in main() 614 if (!res || strlen(serv) <= 0) { in main() 647 res, in main() 663 ldns_resolver_set_port(res, qport); in main() 666 ldns_resolver_set_debug(res, true); in main() 740 do_trace(res, qname, type, clas); in main() 877 axfr_rr = ldns_axfr_next(res); in main() 881 ldns_axfr_last_pkt(res)); in main() 889 axfr_rr = ldns_axfr_next(res); in main() [all …]
|
/freebsd/usr.sbin/rpc.statd/ |
H A D | procs.c | 114 static sm_stat_res res; in sm_stat_1_svc() local 122 res.res_stat = stat_fail; in sm_stat_1_svc() 141 return (&res); in sm_stat_1_svc() 155 static sm_stat_res res; in sm_mon_1_svc() local 163 res.res_stat = stat_fail; in sm_mon_1_svc() 185 return (&res); in sm_mon_1_svc() 211 return (&res); in sm_mon_1_svc() 263 static sm_stat res; in sm_unmon_1_svc() local 288 return (&res); in sm_unmon_1_svc() 301 static sm_stat res; in sm_unmon_all_1_svc() local [all …]
|
/freebsd/contrib/libcbor/test/ |
H A D | string_test.c | 14 struct cbor_load_result res; variable 19 string = cbor_load(empty_string_data, 1, &res); in test_empty_string() 25 assert_true(res.read == 1); in test_empty_string() 42 assert_true(res.read == 13); in test_short_string() 60 assert_true(res.read == 16); in test_short_multibyte_string() 93 assert_true(res.read == 152); in test_int8_string() 127 assert_true(res.read == 153); in test_int16_string() 160 assert_true(res.read == 155); in test_int32_string() 194 assert_true(res.read == 159); in test_int64_string() 212 assert_true(res.read == 5); in test_short_indef_string() [all …]
|
/freebsd/crypto/openssl/crypto/ffc/ |
H A D | ffc_params_generate.c | 194 int *res) in generate_p() argument 307 *res |= FFC_CHECK_P_NOT_PRIME; in generate_p() 534 *res = 0; in ossl_ffc_params_FIPS186_4_gen_verify() 564 *res = FFC_CHECK_BAD_LN_PAIR; in ossl_ffc_params_FIPS186_4_gen_verify() 594 *res = FFC_CHECK_INVALID_PQ; in ossl_ffc_params_FIPS186_4_gen_verify() 688 *res = FFC_CHECK_Q_MISMATCH; in ossl_ffc_params_FIPS186_4_gen_verify() 750 *res = FFC_CHECK_INVALID_G; in ossl_ffc_params_FIPS186_4_gen_verify() 755 *res = FFC_CHECK_G_MISMATCH; in ossl_ffc_params_FIPS186_4_gen_verify() 829 *res = 0; in ossl_ffc_params_FIPS186_2_gen_verify() 855 *res = FFC_CHECK_BAD_LN_PAIR; in ossl_ffc_params_FIPS186_2_gen_verify() [all …]
|
/freebsd/tools/tools/kttcp/ |
H A D | kttcp.c | 111 struct addrinfo hints, *addr, *res; in main() local 206 for (res = addr; res != NULL; res = res->ai_next) { in main() 207 s = socket(res->ai_family, res->ai_socktype, res->ai_protocol); in main() 211 if (res == NULL) in main() 217 if (connect(s, res->ai_addr, res->ai_addrlen) < 0) in main() 220 getnameinfo(res->ai_addr, res->ai_addrlen, in main() 233 if (bind(s, res->ai_addr, res->ai_addrlen) < 0) in main()
|
/freebsd/sys/arm/allwinner/ |
H A D | aw_usb3phy.c | 87 struct resource * res; member 106 #define RD4(res, o) bus_read_4(res, (o)) argument 107 #define WR4(res, o, v) bus_write_4(res, (o), (v)) argument 129 WR4(sc->res, USB3PHY_PHY_EXTERNAL_CONTROL, val); in awusb3phy_phy_enable() 131 val = RD4(sc->res, USB3PHY_PIPE_CLOCK_CONTROL); in awusb3phy_phy_enable() 135 WR4(sc->res, USB3PHY_PIPE_CLOCK_CONTROL, val); in awusb3phy_phy_enable() 137 val = RD4(sc->res, USB3PHY_APP); in awusb3phy_phy_enable() 141 WR4(sc->res, USB3PHY_APP, val); in awusb3phy_phy_enable() 143 WR4(sc->res, USB3PHY_PHY_TUNE_LOW, PTL_MAGIC); in awusb3phy_phy_enable() 145 val = RD4(sc->res, USB3PHY_PHY_TUNE_HIGH); in awusb3phy_phy_enable() [all …]
|
/freebsd/sys/compat/linuxkpi/common/src/ |
H A D | linux_interrupt.c | 42 struct resource *res; member 93 bus_teardown_intr(dev->bsddev, irqe->res, irqe->tag); in lkpi_irq_release() 94 if (irqe->res != NULL) in lkpi_irq_release() 96 rman_get_rid(irqe->res), irqe->res); in lkpi_irq_release() 117 struct resource *res; in lkpi_request_irq() local 134 if (res == NULL) in lkpi_request_irq() 142 irqe->res = res; in lkpi_request_irq() 148 error = bus_setup_intr(dev->bsddev, res, INTR_TYPE_NET | INTR_MPSAFE, in lkpi_request_irq() 159 bus_release_resource(dev->bsddev, SYS_RES_IRQ, rid, irqe->res); in lkpi_request_irq() 196 bus_teardown_intr(dev->bsddev, irqe->res, irqe->tag); in lkpi_disable_irq() [all …]
|
/freebsd/lib/libthr/thread/ |
H A D | thr_malloc.c | 90 void *res; in __thr_calloc() local 94 res = __crt_calloc(num, size); in __thr_calloc() 96 return (res); in __thr_calloc() 114 void *res; in __thr_malloc() local 118 res = __crt_malloc(nbytes); in __thr_malloc() 120 return (res); in __thr_malloc() 127 void *res; in __thr_realloc() local 131 res = __crt_realloc(cp, nbytes); in __thr_realloc() 133 return (res); in __thr_realloc()
|