Home
last modified time | relevance | path

Searched refs:res (Results 1 – 25 of 737) sorted by relevance

12345678910>>...30

/openbmc/qemu/tests/unit/
H A Dtest-cutils.c303 int res = 999; in test_qemu_strtoi_correct() local
306 err = qemu_strtoi(str, &endptr, 0, &res); in test_qemu_strtoi_correct()
309 g_assert_cmpint(res, ==, 12345); in test_qemu_strtoi_correct()
317 int res = 999; in test_qemu_strtoi_null() local
320 err = qemu_strtoi(NULL, &endptr, 0, &res); in test_qemu_strtoi_null()
323 g_assert_cmpint(res, ==, 0); in test_qemu_strtoi_null()
332 int res = 999; in test_qemu_strtoi_empty() local
335 err = qemu_strtoi(str, &endptr, 0, &res); in test_qemu_strtoi_empty()
338 g_assert_cmpint(res, ==, 0); in test_qemu_strtoi_empty()
347 int res in test_qemu_strtoi_whitespace() local
362 int res = 999; test_qemu_strtoi_invalid() local
377 int res = 999; test_qemu_strtoi_trailing() local
392 int res = 999; test_qemu_strtoi_octal() local
415 int res = 999; test_qemu_strtoi_decimal() local
439 int res = 999; test_qemu_strtoi_hex() local
472 int res = 999; test_qemu_strtoi_max() local
487 int res; test_qemu_strtoi_overflow() local
536 int res = 999; test_qemu_strtoi_min() local
551 int res; test_qemu_strtoi_underflow() local
607 int res; test_qemu_strtoi_negative() local
632 int res = 999; test_qemu_strtoi_negzero() local
645 int res = 999; test_qemu_strtoi_full_correct() local
658 int res = 999; test_qemu_strtoi_full_null() local
671 int res = 999; test_qemu_strtoi_full_empty() local
683 int res = 999; test_qemu_strtoi_full_negative() local
695 int res = 999; test_qemu_strtoi_full_negzero() local
707 int res = 999; test_qemu_strtoi_full_trailing() local
719 int res = 999; test_qemu_strtoi_full_max() local
733 int res = 999; test_qemu_strtoi_full_erange_junk() local
747 unsigned int res = 999; test_qemu_strtoui_correct() local
761 unsigned int res = 999; test_qemu_strtoui_null() local
776 unsigned int res = 999; test_qemu_strtoui_empty() local
791 unsigned int res = 999; test_qemu_strtoui_whitespace() local
806 unsigned int res = 999; test_qemu_strtoui_invalid() local
821 unsigned int res = 999; test_qemu_strtoui_trailing() local
836 unsigned int res = 999; test_qemu_strtoui_octal() local
859 unsigned int res = 999; test_qemu_strtoui_decimal() local
883 unsigned int res = 999; test_qemu_strtoui_hex() local
917 unsigned int res = 999; test_qemu_strtoui_wrap() local
932 unsigned int res = 999; test_qemu_strtoui_max() local
947 unsigned int res; test_qemu_strtoui_overflow() local
1011 unsigned int res; test_qemu_strtoui_underflow() local
1060 unsigned int res = 999; test_qemu_strtoui_negative() local
1075 unsigned int res = 999; test_qemu_strtoui_negzero() local
1088 unsigned int res = 999; test_qemu_strtoui_full_correct() local
1099 unsigned int res = 999; test_qemu_strtoui_full_null() local
1111 unsigned int res = 999; test_qemu_strtoui_full_empty() local
1123 unsigned int res = 999; test_qemu_strtoui_full_negative() local
1134 unsigned int res = 999; test_qemu_strtoui_full_negzero() local
1145 unsigned int res = 999; test_qemu_strtoui_full_trailing() local
1157 unsigned int res = 999; test_qemu_strtoui_full_max() local
1171 unsigned int res = 999; test_qemu_strtoui_full_erange_junk() local
1185 long res = 999; test_qemu_strtol_correct() local
1199 long res = 999; test_qemu_strtol_null() local
1214 long res = 999; test_qemu_strtol_empty() local
1229 long res = 999; test_qemu_strtol_whitespace() local
1244 long res = 999; test_qemu_strtol_invalid() local
1259 long res = 999; test_qemu_strtol_trailing() local
1274 long res = 999; test_qemu_strtol_octal() local
1297 long res = 999; test_qemu_strtol_decimal() local
1321 long res = 999; test_qemu_strtol_hex() local
1354 long res = 999; test_qemu_strtol_max() local
1369 long res; test_qemu_strtol_overflow() local
1413 long res = 999; test_qemu_strtol_min() local
1428 long res; test_qemu_strtol_underflow() local
1472 long res = 999; test_qemu_strtol_negative() local
1487 long res = 999; test_qemu_strtol_negzero() local
1500 long res = 999; test_qemu_strtol_full_correct() local
1513 long res = 999; test_qemu_strtol_full_null() local
1526 long res = 999L; test_qemu_strtol_full_empty() local
1538 long res = 999; test_qemu_strtol_full_negative() local
1550 long res = 999; test_qemu_strtol_full_negzero() local
1562 long res = 999; test_qemu_strtol_full_trailing() local
1574 long res = 999; test_qemu_strtol_full_max() local
1588 long res = 999; test_qemu_strtol_full_erange_junk() local
1602 unsigned long res = 999; test_qemu_strtoul_correct() local
1616 unsigned long res = 999; test_qemu_strtoul_null() local
1631 unsigned long res = 999; test_qemu_strtoul_empty() local
1646 unsigned long res = 999; test_qemu_strtoul_whitespace() local
1661 unsigned long res = 999; test_qemu_strtoul_invalid() local
1676 unsigned long res = 999; test_qemu_strtoul_trailing() local
1691 unsigned long res = 999; test_qemu_strtoul_octal() local
1714 unsigned long res = 999; test_qemu_strtoul_decimal() local
1738 unsigned long res = 999; test_qemu_strtoul_hex() local
1771 unsigned long res = 999; test_qemu_strtoul_wrap() local
1788 unsigned long res = 999; test_qemu_strtoul_max() local
1803 unsigned long res; test_qemu_strtoul_overflow() local
1846 unsigned long res; test_qemu_strtoul_underflow() local
1890 unsigned long res = 999; test_qemu_strtoul_negative() local
1905 unsigned long res = 999; test_qemu_strtoul_negzero() local
1918 unsigned long res = 999; test_qemu_strtoul_full_correct() local
1929 unsigned long res = 999; test_qemu_strtoul_full_null() local
1941 unsigned long res = 999; test_qemu_strtoul_full_empty() local
1953 unsigned long res = 999; test_qemu_strtoul_full_negative() local
1964 unsigned long res = 999; test_qemu_strtoul_full_negzero() local
1975 unsigned long res = 999; test_qemu_strtoul_full_trailing() local
1987 unsigned long res = 999; test_qemu_strtoul_full_max() local
2001 unsigned long res = 999; test_qemu_strtoul_full_erange_junk() local
2015 int64_t res = 999; test_qemu_strtoi64_correct() local
2029 int64_t res = 999; test_qemu_strtoi64_null() local
2044 int64_t res = 999; test_qemu_strtoi64_empty() local
2059 int64_t res = 999; test_qemu_strtoi64_whitespace() local
2074 int64_t res = 999; test_qemu_strtoi64_invalid() local
2089 int64_t res = 999; test_qemu_strtoi64_trailing() local
2104 int64_t res = 999; test_qemu_strtoi64_octal() local
2127 int64_t res = 999; test_qemu_strtoi64_decimal() local
2151 int64_t res = 999; test_qemu_strtoi64_hex() local
2184 int64_t res = 999; test_qemu_strtoi64_max() local
2199 int64_t res; test_qemu_strtoi64_overflow() local
2232 int64_t res = 999; test_qemu_strtoi64_min() local
2247 int64_t res; test_qemu_strtoi64_underflow() local
2280 int64_t res = 999; test_qemu_strtoi64_negative() local
2295 int64_t res = 999; test_qemu_strtoi64_negzero() local
2308 int64_t res = 999; test_qemu_strtoi64_full_correct() local
2319 int64_t res = 999; test_qemu_strtoi64_full_null() local
2331 int64_t res = 999; test_qemu_strtoi64_full_empty() local
2343 int64_t res = 999; test_qemu_strtoi64_full_negative() local
2355 int64_t res = 999; test_qemu_strtoi64_full_negzero() local
2367 int64_t res = 999; test_qemu_strtoi64_full_trailing() local
2380 int64_t res = 999; test_qemu_strtoi64_full_max() local
2394 int64_t res = 999; test_qemu_strtoi64_full_erange_junk() local
2408 uint64_t res = 999; test_qemu_strtou64_correct() local
2422 uint64_t res = 999; test_qemu_strtou64_null() local
2437 uint64_t res = 999; test_qemu_strtou64_empty() local
2452 uint64_t res = 999; test_qemu_strtou64_whitespace() local
2467 uint64_t res = 999; test_qemu_strtou64_invalid() local
2482 uint64_t res = 999; test_qemu_strtou64_trailing() local
2497 uint64_t res = 999; test_qemu_strtou64_octal() local
2520 uint64_t res = 999; test_qemu_strtou64_decimal() local
2544 uint64_t res = 999; test_qemu_strtou64_hex() local
2577 uint64_t res = 999; test_qemu_strtou64_wrap() local
2592 uint64_t res = 999; test_qemu_strtou64_max() local
2607 uint64_t res; test_qemu_strtou64_overflow() local
2639 uint64_t res; test_qemu_strtou64_underflow() local
2672 uint64_t res = 999; test_qemu_strtou64_negative() local
2687 uint64_t res = 999; test_qemu_strtou64_negzero() local
2700 uint64_t res = 999; test_qemu_strtou64_full_correct() local
2711 uint64_t res = 999; test_qemu_strtou64_full_null() local
2723 uint64_t res = 999; test_qemu_strtou64_full_empty() local
2735 uint64_t res = 999; test_qemu_strtou64_full_negative() local
2747 uint64_t res = 999; test_qemu_strtou64_full_negzero() local
2759 uint64_t res = 999; test_qemu_strtou64_full_trailing() local
2771 uint64_t res = 999; test_qemu_strtou64_full_max() local
2785 uint64_t res = 999; test_qemu_strtou64_full_erange_junk() local
2799 double res; test_qemu_strtod_simple() local
2853 double res; test_qemu_strtod_einval() local
2891 double res; test_qemu_strtod_erange() local
2927 double res; test_qemu_strtod_nonfinite() local
2963 double res; test_qemu_strtod_trailing() local
3016 double res; test_qemu_strtod_erange_junk() local
3043 double res; test_qemu_strtod_finite_simple() local
3097 double res; test_qemu_strtod_finite_einval() local
3135 double res; test_qemu_strtod_finite_erange() local
3173 double res; test_qemu_strtod_finite_nonfinite() local
3210 double res; test_qemu_strtod_finite_trailing() local
3266 double res; test_qemu_strtod_finite_erange_junk() local
[all...]
H A Dtest-string-input-visitor.c49 int64_t res = 0, value = -42; in test_visitor_in_int() local
55 visit_type_int(v, NULL, &res, &error_abort); in test_visitor_in_int()
56 g_assert_cmpint(res, ==, value); in test_visitor_in_int()
60 visit_type_int(v, NULL, &res, &err); in test_visitor_in_int()
65 visit_type_int(v, NULL, &res, &err); in test_visitor_in_int()
71 int64List *res = NULL; in check_ilist() local
75 visit_type_int64List(v, NULL, &res, &error_abort); in check_ilist()
76 tail = res; in check_ilist()
84 qapi_free_int64List(res); in check_ilist()
89 uint64List *res = NULL; in check_ulist() local
[all …]
/openbmc/u-boot/board/gdsys/common/
H A Dphy.c123 int res; in process_setupcmd() local
135 res = miiphy_read(bus, addr, reg, &orig_data); in process_setupcmd()
136 if (res) in process_setupcmd()
144 res = miiphy_write(bus, addr, reg, data); in process_setupcmd()
147 res = miiphy_read(bus, addr, reg, &orig_data); in process_setupcmd()
148 if (res) in process_setupcmd()
151 res = -1; in process_setupcmd()
153 orig_data, res ? "FAIL" : "PASS"); in process_setupcmd()
156 res = -1; in process_setupcmd()
158 while ((res != 0) && (get_timer(start) < timeout)) { in process_setupcmd()
[all …]
/openbmc/u-boot/drivers/bios_emulator/x86emu/
H A Dprim_ops.c132 static void set_parity_flag(u32 res) in set_parity_flag() argument
134 CONDITIONAL_SET_FLAG(PARITY(res & 0xFF), F_PF); in set_parity_flag()
137 static void set_szp_flags_8(u8 res) in set_szp_flags_8() argument
139 CONDITIONAL_SET_FLAG(res & 0x80, F_SF); in set_szp_flags_8()
140 CONDITIONAL_SET_FLAG(res == 0, F_ZF); in set_szp_flags_8()
141 set_parity_flag(res); in set_szp_flags_8()
144 static void set_szp_flags_16(u16 res) in set_szp_flags_16() argument
146 CONDITIONAL_SET_FLAG(res & 0x8000, F_SF); in set_szp_flags_16()
147 CONDITIONAL_SET_FLAG(res == 0, F_ZF); in set_szp_flags_16()
148 set_parity_flag(res); in set_szp_flags_16()
[all …]
/openbmc/openbmc/poky/meta/lib/oeqa/selftest/cases/
H A Dsysroot.py48 res = bitbake("sysroot-shebang-test-native -c populate_sysroot", ignore_status=True)
49 self.assertTrue(expected in res.output, msg=res.output)
50 self.assertTrue(res.status != 0)
60 res = bitbake("sysroot-la-test -c populate_sysroot", ignore_status=True)
61 self.assertTrue(expected in res.output, msg=res.output)
62 self.assertTrue('[la]' in res.output, msg=res.output)
63 self.assertTrue(res.status != 0)
65 res = bitbake("sysroot-la-test-native -c populate_sysroot", ignore_status=True)
66 self.assertTrue(expected in res.output, msg=res.output)
67 self.assertTrue('[la]' in res.output, msg=res.output)
[all …]
/openbmc/bmcweb/test/http/
H A Dhttp_response_test.cpp23 void addHeaders(Response& res) in addHeaders() argument
25 res.addHeader("myheader", "myvalue"); in addHeaders()
26 res.keepAlive(true); in addHeaders()
27 res.result(boost::beast::http::status::ok); in addHeaders()
29 void verifyHeaders(Response& res) in verifyHeaders() argument
31 EXPECT_EQ(res.getHeaderValue("myheader"), "myvalue"); in verifyHeaders()
32 EXPECT_EQ(res.keepAlive(), true); in verifyHeaders()
33 EXPECT_EQ(res.result(), boost::beast::http::status::ok); in verifyHeaders()
72 Response res; in TEST() local
73 addHeaders(res); in TEST()
[all …]
/openbmc/u-boot/common/
H A Dsplash_source.c87 int res; in splash_load_raw() local
93 res = splash_storage_read_raw(location, bmp_load_addr, bmp_header_size); in splash_load_raw()
94 if (res < 0) in splash_load_raw()
95 return res; in splash_load_raw()
113 int res; in splash_select_fs_dev() local
117 res = fs_set_blk_dev("mmc", location->devpart, FS_TYPE_ANY); in splash_select_fs_dev()
120 res = fs_set_blk_dev("usb", location->devpart, FS_TYPE_ANY); in splash_select_fs_dev()
123 res = fs_set_blk_dev("sata", location->devpart, FS_TYPE_ANY); in splash_select_fs_dev()
127 res = fs_set_blk_dev("ubi", NULL, FS_TYPE_UBIFS); in splash_select_fs_dev()
129 res = -ENODEV; in splash_select_fs_dev()
[all …]
/openbmc/qemu/hw/display/
H A Dvirtio-gpu-udmabuf.c30 static void virtio_gpu_create_udmabuf(struct virtio_gpu_simple_resource *res) in virtio_gpu_create_udmabuf() argument
43 sizeof(struct udmabuf_create_item) * res->iov_cnt); in virtio_gpu_create_udmabuf()
45 for (i = 0; i < res->iov_cnt; i++) { in virtio_gpu_create_udmabuf()
47 rb = qemu_ram_block_from_host(res->iov[i].iov_base, false, &offset); in virtio_gpu_create_udmabuf()
57 list->list[i].size = res->iov[i].iov_len; in virtio_gpu_create_udmabuf()
60 list->count = res->iov_cnt; in virtio_gpu_create_udmabuf()
63 res->dmabuf_fd = ioctl(udmabuf, UDMABUF_CREATE_LIST, list); in virtio_gpu_create_udmabuf()
64 if (res->dmabuf_fd < 0) { in virtio_gpu_create_udmabuf()
71 static void virtio_gpu_remap_udmabuf(struct virtio_gpu_simple_resource *res) in virtio_gpu_remap_udmabuf() argument
73 res->remapped = mmap(NULL, res->blob_size, PROT_READ, in virtio_gpu_remap_udmabuf()
[all …]
/openbmc/u-boot/include/linux/
H A Dbitops.h114 unsigned int res = (w & 0x55555555) + ((w >> 1) & 0x55555555); in generic_hweight32() local
115 res = (res & 0x33333333) + ((res >> 2) & 0x33333333); in generic_hweight32()
116 res = (res & 0x0F0F0F0F) + ((res >> 4) & 0x0F0F0F0F); in generic_hweight32()
117 res = (res & 0x00FF00FF) + ((res >> 8) & 0x00FF00FF); in generic_hweight32()
118 return (res & 0x0000FFFF) + ((res >> 16) & 0x0000FFFF); in generic_hweight32()
123 unsigned int res = (w & 0x5555) + ((w >> 1) & 0x5555); in generic_hweight16() local
124 res = (res & 0x3333) + ((res >> 2) & 0x3333); in generic_hweight16()
125 res = (res & 0x0F0F) + ((res >> 4) & 0x0F0F); in generic_hweight16()
126 return (res & 0x00FF) + ((res >> 8) & 0x00FF); in generic_hweight16()
131 unsigned int res = (w & 0x55) + ((w >> 1) & 0x55); in generic_hweight8() local
[all …]
/openbmc/bmcweb/redfish-core/src/
H A Derror_messages.cpp69 void success(crow::Response& res) in success() argument
71 addMessageToJsonRoot(res.jsonValue, success()); in success()
86 void generalError(crow::Response& res) in generalError() argument
88 res.result(boost::beast::http::status::internal_server_error); in generalError()
89 addMessageToErrorJson(res.jsonValue, generalError()); in generalError()
104 void created(crow::Response& res) in created() argument
106 res.result(boost::beast::http::status::created); in created()
107 addMessageToJsonRoot(res.jsonValue, created()); in created()
122 void noOperation(crow::Response& res) in noOperation() argument
124 res.result(boost::beast::http::status::bad_request); in noOperation()
[all …]
/openbmc/qemu/tests/tcg/i386/
H A Dtest-i386.h8 #define EXECOP2(size, rsize, res, s1, flags) \ argument
14 : "=q" (res), "=g" (flags)\
15 : "q" (s1), "0" (res), "1" (flags)); \
17 stringify(OP) size, s0, s1, res, iflags, flags & CC_MASK);
19 #define EXECOP1(size, rsize, res, flags) \ argument
25 : "=q" (res), "=g" (flags)\
26 : "0" (res), "1" (flags)); \
28 stringify(OP) size, s0, res, iflags, flags & CC_MASK);
34 long res, flags; in exec_opq() local
35 res = s0; in exec_opq()
[all …]
H A Dtest-i386-shift.h11 #define EXECSHIFT(size, rsize, res, s1, s2, flags) \ argument
17 : "=g" (res), "=g" (flags)\
18 : "r" (s1), "0" (res), "1" (flags));
20 #define EXECSHIFT(size, rsize, res, s1, s2, flags) \ argument
26 : "=q" (res), "=g" (flags)\
27 : "c" (s1), "0" (res), "1" (flags));
33 long res, flags; in exec_opq() local
34 res = s0; in exec_opq()
36 EXECSHIFT("q", "", res, s1, s2, flags); in exec_opq()
41 stringify(OP) "q", s0, s1, res, iflags, flags & CC_MASK); in exec_opq()
[all …]
H A Dtest-i386-muldiv.h4 long res, s1, s0, flags; in glue() local
7 res = s0; in glue()
14 : "=a" (res), "=g" (flags) in glue()
15 : "q" (s1), "0" (res), "1" (flags)); in glue()
17 stringify(OP) "b", s0, s1, res, flags & CC_MASK); in glue()
22 long res, s1, flags, resh; in glue() local
25 res = op0; in glue()
32 : "=a" (res), "=g" (flags), "=d" (resh) in glue()
33 : "q" (s1), "0" (res), "1" (flags), "2" (resh)); in glue()
35 stringify(OP) "w", op0h, op0, s1, resh, res, flags & CC_MASK); in glue()
[all …]
/openbmc/bmcweb/include/
H A Dsecurity_headers.hpp9 inline void addSecurityHeaders(crow::Response& res) in addSecurityHeaders() argument
15 res.addHeader(bf::strict_transport_security, "max-age=31536000; " in addSecurityHeaders()
18 res.addHeader(bf::pragma, "no-cache"); in addSecurityHeaders()
20 if (res.getHeaderValue(bf::cache_control).empty()) in addSecurityHeaders()
22 res.addHeader(bf::cache_control, "no-store, max-age=0"); in addSecurityHeaders()
24 res.addHeader("X-Content-Type-Options", "nosniff"); in addSecurityHeaders()
26 std::string_view contentType = res.getHeaderValue("Content-Type"); in addSecurityHeaders()
29 res.addHeader(bf::x_frame_options, "DENY"); in addSecurityHeaders()
30 res.addHeader("Referrer-Policy", "no-referrer"); in addSecurityHeaders()
31 res.addHeader( in addSecurityHeaders()
[all …]
/openbmc/bmcweb/redfish-core/lib/
H A Dservice_root.hpp37 asyncResp->res.addHeader( in handleServiceRootHead()
45 asyncResp->res.addHeader( in handleServiceRootGetImpl()
50 asyncResp->res.jsonValue["@odata.type"] = in handleServiceRootGetImpl()
52 asyncResp->res.jsonValue["@odata.id"] = "/redfish/v1"; in handleServiceRootGetImpl()
53 asyncResp->res.jsonValue["Id"] = "RootService"; in handleServiceRootGetImpl()
54 asyncResp->res.jsonValue["Name"] = "Root Service"; in handleServiceRootGetImpl()
55 asyncResp->res.jsonValue["RedfishVersion"] = "1.17.0"; in handleServiceRootGetImpl()
56 asyncResp->res.jsonValue["Links"]["Sessions"]["@odata.id"] = in handleServiceRootGetImpl()
58 asyncResp->res.jsonValue["AccountService"]["@odata.id"] = in handleServiceRootGetImpl()
62 asyncResp->res.jsonValue["AggregationService"]["@odata.id"] = in handleServiceRootGetImpl()
[all …]
/openbmc/u-boot/drivers/board/
H A Dgazerbeam.c66 int res; in _read_board_variant_data() local
68 res = uclass_get_device_by_seq(UCLASS_I2C, I2C_BUS_SEQ_NO, &i2c_bus); in _read_board_variant_data()
69 if (res) { in _read_board_variant_data()
71 dev->name, I2C_BUS_SEQ_NO, res); in _read_board_variant_data()
72 return res; in _read_board_variant_data()
141 int res; in _read_hwversion() local
143 res = gpio_request_list_by_name(dev, "ver-gpios", priv->ver_gpios, in _read_hwversion()
146 if (res < 0) { in _read_hwversion()
148 dev->name, res); in _read_hwversion()
152 res = dm_gpio_get_values_as_int(priv->ver_gpios, in _read_hwversion()
[all …]
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-support/xmlsec1/xmlsec1/
H A Drun-ptest13 ./sign1 sign1-tmpl.xml rsakey.pem > sign1-res.xml
14 ./verify1 sign1-res.xml rsapub.pem
19 ./sign2 sign2-doc.xml rsakey.pem > sign2-res.xml
20 ./verify1 sign2-res.xml rsapub.pem
25 ./sign3 sign3-doc.xml rsakey.pem rsacert.pem > sign3-res.xml
26 ./verify3 sign3-res.xml ca2cert.pem cacert.pem
31 ./verify1 sign1-res.xml rsapub.pem
32 ./verify1 sign2-res.xml rsapub.pem
37 ./verify2 sign1-res.xml rsakey.pem
38 ./verify2 sign2-res.xml rsakey.pem
[all …]
/openbmc/u-boot/common/spl/
H A Dspl_ymodem.c39 int res, err; in ymodem_read_fit() local
44 res = xyzModem_stream_read(buf, BUF_SIZE, &err); in ymodem_read_fit()
45 if (res <= 0) in ymodem_read_fit()
48 info->image_read += res; in ymodem_read_fit()
52 res = info->image_read - offset; in ymodem_read_fit()
53 memcpy(addr, &buf[BUF_SIZE - res], res); in ymodem_read_fit()
54 addr = addr + res; in ymodem_read_fit()
58 res = xyzModem_stream_read(buf, BUF_SIZE, &err); in ymodem_read_fit()
59 if (res <= 0) in ymodem_read_fit()
62 memcpy(addr, buf, res); in ymodem_read_fit()
[all …]
/openbmc/u-boot/drivers/misc/
H A Datsha204a-i2c.c177 int res; in atsha204a_recv_resp() local
181 res = atsha204a_recv(dev, p, 4); in atsha204a_recv_resp()
182 if (res) in atsha204a_recv_resp()
183 return res; in atsha204a_recv_resp()
189 res = atsha204a_recv(dev, p + 4, resp->length - 4); in atsha204a_recv_resp()
190 if (res) in atsha204a_recv_resp()
191 return res; in atsha204a_recv_resp()
210 int try, res; in atsha204a_wakeup() local
218 res = atsha204a_send(dev, req, 4); in atsha204a_wakeup()
219 if (res) { in atsha204a_wakeup()
[all …]
/openbmc/bmcweb/features/ibm/
H A Dconfigfile_test.cpp17 crow::Response res; in TEST() local
19 EXPECT_TRUE(isValidConfigFileName("GoodConfigFile", res)); in TEST()
23 crow::Response res; in TEST() local
25 EXPECT_FALSE(isValidConfigFileName("Bad@file", res)); in TEST()
29 crow::Response res; in TEST() local
31 EXPECT_FALSE(isValidConfigFileName("/../../../../../etc/badpath", res)); in TEST()
32 EXPECT_FALSE(isValidConfigFileName("/../../etc/badpath", res)); in TEST()
33 EXPECT_FALSE(isValidConfigFileName("/mydir/configFile", res)); in TEST()
38 crow::Response res; in TEST() local
39 EXPECT_FALSE(isValidConfigFileName("", res)); in TEST()
[all …]
/openbmc/bmcweb/redfish-core/include/
H A Derror_messages.hpp38 void success(crow::Response& res);
50 void generalError(crow::Response& res);
60 void created(crow::Response& res);
71 void noOperation(crow::Response& res);
82 void propertyDuplicate(crow::Response& res, std::string_view arg1);
94 void propertyUnknown(crow::Response& res, std::string_view arg1);
108 void propertyValueTypeError(crow::Response& res, const nlohmann::json& arg1,
123 void propertyValueFormatError(crow::Response& res, const nlohmann::json& arg1,
138 void propertyValueNotInList(crow::Response& res, const nlohmann::json& arg1,
153 void propertyValueOutOfRange(crow::Response& res, const nlohmann::json& arg1,
[all …]
/openbmc/u-boot/drivers/net/phy/
H A Dmv88e61xx.c260 int res; in mv88e61xx_reg_read() local
267 res = mv88e61xx_smi_wait(mdio_bus, smi_addr); in mv88e61xx_reg_read()
268 if (res < 0) in mv88e61xx_reg_read()
269 return res; in mv88e61xx_reg_read()
272 res = mdio_bus->write(mdio_bus, smi_addr, MDIO_DEVAD_NONE, SMI_CMD_REG, in mv88e61xx_reg_read()
274 if (res < 0) in mv88e61xx_reg_read()
275 return res; in mv88e61xx_reg_read()
278 res = mv88e61xx_smi_wait(mdio_bus, smi_addr); in mv88e61xx_reg_read()
279 if (res < 0) in mv88e61xx_reg_read()
280 return res; in mv88e61xx_reg_read()
[all …]
/openbmc/qemu/tests/tcg/hexagon/
H A Dread_write_overlap.c45 uint32_t res; in test_insert() local
47 insert(res, 0x12345678, 8, 1); in test_insert()
48 check32(res, 0x123456f0); in test_insert()
49 insert(res, 0x12345678, 0, 1); in test_insert()
50 check32(res, 0x12345678); in test_insert()
51 insert(res, 0x12345678, 20, 16); in test_insert()
52 check32(res, 0x56785678); in test_insert()
58 uint32_t res; in insert_rp() local
62 : "=r"(res) : "r"(x), "r"(width_offset) : "r7"); in insert_rp()
63 return res; in insert_rp()
[all …]
/openbmc/u-boot/drivers/sysreset/
H A Dsysreset_mpc83xx.c27 int res; in __do_reset() local
44 res = wait_for_bit_be32(&immap->reset.rcer, RCER_CRE, true, in __do_reset()
46 if (res) { in __do_reset()
49 return res; in __do_reset()
97 int res = 0; in print_83xx_arb_event() local
107 res = snprintf(buf, size, in print_83xx_arb_event()
120 res = snprintf(buf, size, in print_83xx_arb_event()
126 return res; in print_83xx_arb_event()
148 int res; in mpc83xx_sysreset_get_status() local
153 res = snprintf(buf, size, "Reset Status:"); in mpc83xx_sysreset_get_status()
[all …]
/openbmc/u-boot/cmd/
H A Dosd.c35 int res; in cmd_osd_set_osd_num() local
37 res = uclass_get_device_by_seq(UCLASS_VIDEO_OSD, osdnum, &osd); in cmd_osd_set_osd_num()
38 if (res) { in cmd_osd_set_osd_num()
39 printf("%s: No OSD %u (err = %d)\n", __func__, osdnum, res); in cmd_osd_set_osd_num()
40 return res; in cmd_osd_set_osd_num()
91 int res; in do_osd_write() local
114 res = hex2bin(buffer, hexstr, buflen); in do_osd_write()
115 if (res) { in do_osd_write()
121 res = video_osd_set_mem(osd_cur, x, y, buffer, buflen, count); in do_osd_write()
122 if (res) { in do_osd_write()
[all …]

12345678910>>...30