Home
last modified time | relevance | path

Searched full:count (Results 1 – 25 of 2756) sorted by relevance

12345678910>>...111

/openbmc/bmcweb/test/redfish-core/include/
H A Dfilter_expr_executor_test.cpp45 const nlohmann::json members = R"({"Members": [{"Count": 2}]})"_json; in TEST()
47 filterTrue("Count eq 2", members); in TEST()
48 filterTrue("Count ne 3", members); in TEST()
49 filterTrue("Count gt 1", members); in TEST()
50 filterTrue("Count ge 2", members); in TEST()
51 filterTrue("Count lt 3", members); in TEST()
52 filterTrue("Count le 2", members); in TEST()
55 filterTrue("2 eq Count", members); in TEST()
56 filterTrue("3 ne Count", members); in TEST()
57 filterTrue("3 gt Count", members); in TEST()
[all …]
H A Dfilter_expr_parser_test.cpp27 parse("ProcessorSummary/Count eq 2", in TEST()
28 "unquoted_string(\"ProcessorSummary/Count\") Equals int(2)"); in TEST()
30 "ProcessorSummary/Count ge 2", in TEST()
31 "unquoted_string(\"ProcessorSummary/Count\") Greater Than Or Equal int(2)"); in TEST()
32 parse("ProcessorSummary/Count gt 2", in TEST()
33 "unquoted_string(\"ProcessorSummary/Count\") Greater Than int(2)"); in TEST()
44 "ProcessorSummary/Count eq 2 or ProcessorSummary/Count eq 4", in TEST()
45 …R"((unquoted_string("ProcessorSummary/Count") Equals int(2)) or (unquoted_string("ProcessorSummary… in TEST()
46 parse("not ProcessorSummary/Count eq 2", in TEST()
47 "not(unquoted_string(\"ProcessorSummary/Count\") Equals int(2))"); in TEST()
[all …]
/openbmc/qemu/hw/hyperv/
H A Dhv-balloon-page_range_tree.h17 uint64_t count; member
24 uint64_t endr = range->start + range->count; in page_range_part_before()
29 out->count = end - out->start; in page_range_part_before()
31 out->count = 0; in page_range_part_before()
35 /* return just the part of range after (start, count) */
37 uint64_t start, uint64_t count, in page_range_part_after() argument
40 uint64_t end = range->start + range->count; in page_range_part_after()
41 uint64_t ends = start + count; in page_range_part_after()
45 out->count = end - out->start; in page_range_part_after()
47 out->count = 0; in page_range_part_after()
[all …]
H A Dhv-balloon-page_range_tree.c38 uint64_t start, uint64_t count) in page_range_tree_insert_new() argument
43 assert(count > 0); in page_range_tree_insert_new()
46 range->count = count; in page_range_tree_insert_new()
52 uint64_t start, uint64_t count, in hvb_page_range_tree_insert() argument
60 assert(!SUM_OVERFLOW_U64(start, count)); in hvb_page_range_tree_insert()
61 if (count == 0) { in hvb_page_range_tree_insert()
75 intersection = page_range_intersection_size(range, start, count); in hvb_page_range_tree_insert()
76 joinable = page_range_joinable_right(range, start, count); in hvb_page_range_tree_insert()
88 node = page_range_tree_insert_new(tree, start, count); in hvb_page_range_tree_insert()
101 count += start - range->start; in hvb_page_range_tree_insert()
[all …]
/openbmc/openbmc/poky/meta/recipes-devtools/syslinux/syslinux/
H A D0001-Add-extra-sector-count-from-section-entry-for-EFI-ca.patch4 Subject: [PATCH] Add extra sector count from section entry for EFI catalogue
7 CD-ROM Format Specification [1]. The sector count tooks 2 byte which
8 means max sector count is 0xffff (65535), for 512-byte sector, the
15 This patch extend efi_count, mac_count and count to 4 byte int, if
16 Yocto defines `Selection criteria type = 2', add extra sector count
17 to original sector count as total count; for other situation, still use
18 original sector count as usual
46 -read_efi_catalogue(const uint8_t *buf, uint16_t *count, uint32_t *lba)
47 +read_efi_catalogue(const uint8_t *buf, uint32_t *count, uint32_t *lba)
54 - memcpy(count, buf, 2);
[all …]
/openbmc/qemu/tests/qtest/
H A Dpnv-xive2-nvpg_bar.c39 uint32_t count = 0; in nvpg_backlog_op() local
61 count = qtest_readw(qts, addr + offset); in nvpg_backlog_op()
63 return count; in nvpg_backlog_op()
77 uint32_t count, delta; in test_nvpg_bar() local
108 count = nvpg_backlog_op(qts, READ_x, NVP, nvp_target, i, 0); in test_nvpg_bar()
109 g_assert_cmpuint(count, ==, vp_count[i]); in test_nvpg_bar()
111 count = nvpg_backlog_op(qts, READ_y, NVG, group_target, i, 0); in test_nvpg_bar()
112 g_assert_cmpuint(count, ==, group_count[i]); in test_nvpg_bar()
120 count = nvpg_backlog_op(qts, INCR_LOAD, NVP, nvp_target, vp_priority, 0); in test_nvpg_bar()
121 g_assert_cmpuint(count, ==, vp_count[vp_priority]); in test_nvpg_bar()
[all …]
H A Dnpcm7xx_timer-test.c162 /* Returns the number of nanoseconds to count the given number of cycles. */
163 static int64_t tim_calculate_step(uint32_t count, uint32_t prescale) in tim_calculate_step() argument
165 return (1000000000LL / TIM_REF_HZ) * count * (prescale + 1); in tim_calculate_step()
225 /* Enable the timer with zero initial count, then disable it again. */ in test_oneshot_enable_then_disable()
240 unsigned int count = 256; in test_oneshot_ps5() local
245 tim_write_ticr(td, count); in test_oneshot_ps5()
248 g_assert_cmpuint(tim_read_tdr(td), ==, count); in test_oneshot_ps5()
250 clock_step(tim_calculate_step(count, ps) - 1); in test_oneshot_ps5()
253 g_assert_cmpuint(tim_read_tdr(td), <, count); in test_oneshot_ps5()
259 g_assert_cmpuint(tim_read_tdr(td), ==, count); in test_oneshot_ps5()
[all …]
/openbmc/openbmc-test-automation/lib/
H A Dos_utils_config.robot24 Get Memory Count
25 [Documentation] Get Memory Count.
29 Log ${\n}memory count: ${memory_count} console=yes
32 Verify Memory Count
33 [Documentation] Verify memory count.
35 ${memory_count}= Get Memory Count
36 Log ${\n}memory count: ${memory_count} console=yes
38 ... Error: memory count doesn't match expected count.
40 Get Dimm Count
41 [Documentation] Get DIMM count.
[all …]
/openbmc/phosphor-fan-presence/monitor/
H A Dpower_off_cause.hpp17 * one provides different behavior, for example one may count
18 * missing fans, and another may count nonfunctional fans.
33 * @param[in] count - The number of items that is compared
37 PowerOffCause(size_t count, const std::string& name) : in PowerOffCause() argument
38 _count(count), _name(std::to_string(count) + " " + name) in PowerOffCause()
97 * @param[in] count - The minimum number of fans that must be
100 explicit MissingFanFRUCause(size_t count) : in MissingFanFRUCause() argument
101 PowerOffCause(count, "Missing Fan FRUs") in MissingFanFRUCause()
105 * @brief Returns true if 'count' or more fans are missing
112 size_t count = std::count_if( in satisfied() local
[all …]
/openbmc/openbmc-test-automation/redfish/systems/LogServices/
H A Dtest_post_codes.robot32 Log To Console BIOS POST Codes count: ${post_codes['Members@odata.count']}
33 Should Be True ${post_codes['Members@odata.count']} >= 1 msg=No BIOS POST Codes populated.
50 Log To Console BIOS POST Codes count: ${post_codes['Members@odata.count']}
51 Should Be True ${post_codes['Members@odata.count']} >= 1 msg=No BIOS POST Codes populated.
68 Log To Console BIOS POST Codes count: ${post_codes['Members@odata.count']}
69 Should Be True ${post_codes['Members@odata.count']} == 0
76 ... the boot cycle count of the host system.
80 # Get boot count of current postcode logs.
81 ${initial_boot_count}= Get Boot Count For Last PostCode Entry
84 # Perform host reboot and verify boot count incremented in ID value.
[all …]
/openbmc/u-boot/drivers/misc/
H A Djz4780_efuse.c35 static void jz4780_efuse_read_chunk(size_t addr, size_t count, u8 *buf) in jz4780_efuse_read_chunk() argument
43 ((count - 1) << EFUSE_EFUCTRL_LEN_BIT) | in jz4780_efuse_read_chunk()
53 if ((count % 4) == 0) { in jz4780_efuse_read_chunk()
54 for (i = 0; i < count / 4; i++) { in jz4780_efuse_read_chunk()
60 if (count > 2) in jz4780_efuse_read_chunk()
62 if (count > 1) in jz4780_efuse_read_chunk()
68 static inline int jz4780_efuse_chunk_size(size_t count) in jz4780_efuse_chunk_size() argument
70 if (count >= 32) in jz4780_efuse_chunk_size()
72 else if ((count / 4) > 0) in jz4780_efuse_chunk_size()
73 return (count / 4) * 4; in jz4780_efuse_chunk_size()
[all …]
/openbmc/qemu/util/
H A Dlockcnt.c35 lockcnt->count = 0; in qemu_lockcnt_init()
42 /* *val is the current value of lockcnt->count.
46 * lockcnt->count.
50 * new value of lockcnt->count.
66 *val = qatomic_cmpxchg(&lockcnt->count, expected, new_if_free); in qemu_lockcnt_cmpxchg_or_wait()
86 *val = qatomic_cmpxchg(&lockcnt->count, expected, new); in qemu_lockcnt_cmpxchg_or_wait()
96 qemu_futex_wait(&lockcnt->count, *val); in qemu_lockcnt_cmpxchg_or_wait()
97 *val = qatomic_read(&lockcnt->count); in qemu_lockcnt_cmpxchg_or_wait()
110 qemu_futex_wake_single(&lockcnt->count); in lockcnt_wake()
115 int val = qatomic_read(&lockcnt->count); in qemu_lockcnt_inc()
[all …]
/openbmc/qemu/tests/unit/
H A Dtest-fifo.c27 uint32_t count; in test_fifo8_pop_bufptr_wrap() local
40 buf = fifo8_pop_bufptr(&fifo, 2, &count); in test_fifo8_pop_bufptr_wrap()
44 * buf --^ count = 2 in test_fifo8_pop_bufptr_wrap()
46 g_assert(count == 2); in test_fifo8_pop_bufptr_wrap()
54 buf = fifo8_pop_bufptr(&fifo, 8, &count); in test_fifo8_pop_bufptr_wrap()
58 * buf --^ count = 6 in test_fifo8_pop_bufptr_wrap()
60 g_assert(count == 6); in test_fifo8_pop_bufptr_wrap()
73 uint32_t count; in test_fifo8_pop_bufptr() local
86 buf = fifo8_pop_bufptr(&fifo, 2, &count); in test_fifo8_pop_bufptr()
90 * buf --^ count = 2 in test_fifo8_pop_bufptr()
[all …]
/openbmc/openbmc-test-automation/openpower/
H A Dtest_occ_power.robot18 Verify OCC Object Count
38 ${inventory_count}= Count Object Entries
53 [Documentation] Verify OCC state and count after host reboot.
56 ${occ_count_before}= Count OCC Object Entry
60 ${occ_count_after}= Count OCC Object Entry
65 [Documentation] Verify OCC state and count after BMC reset.
68 ${occ_count_before}= Count OCC Object Entry
71 ${occ_count_after}= Count OCC Object Entry
88 Count OCC Object Entry
90 Count OCC Object Entry
[all …]
/openbmc/openbmc-test-automation/ipmi/
H A Dtest_ipmi_inband_sdr.robot27 # Gets the Total Record Count from SDR Info and the last Record entry number.
28 ${record_count} ${last_record}= Get Record Count And Last Record From SDR
70 # Response Data Count - total records (max - FFh - 255 in decimal).
77 Verify Sensor And SDR Count In Get Device SDR Info Via Inband IPMI
78 [Documentation] Verify Sensor and SDR Count in Get Device SDR Info via inband IPMI.
81 # Get Sensor count and SDR elist all count from IPMI LAN interface.
82 ${sensor_count_lan1} ${SDR_count_lan1}= Get Count for Sensor And SDR Elist All
84 # Get Sensor Count From Get Device SDR Info command.
85 ${sensor_count1}= Get Sensor Count From SDR Info
86 # Compare Get Device SDR Sensor count with Sensor count from lanplus.
[all …]
/openbmc/qemu/tests/qemu-iotests/
H A D246.out23 "count": 0,
31 "count": 0,
39 "count": 0,
47 "count": 0,
63 "count": 0,
71 "count": 0,
79 "count": 0,
100 "count": 0,
108 "count": 0,
116 "count": 0,
[all …]
/openbmc/qemu/tests/qtest/libqos/
H A Dsdhci-cmd.c21 static ssize_t read_fifo(QTestState *qts, uint64_t reg, char *msg, size_t count) in read_fifo() argument
27 while (index < count) { in read_fifo()
28 size = count - index; in read_fifo()
46 size_t count) in write_fifo() argument
52 while (index < count) { in write_fifo()
53 size = count - index; in write_fifo()
67 static void fill_block(QTestState *qts, uint64_t reg, int count) in fill_block() argument
69 while (--count >= 0) { in fill_block()
86 size_t count) in sdhci_read_cmd() argument
88 sdhci_cmd_regs(qts, base_addr, count, 1, 0, in sdhci_read_cmd()
[all …]
/openbmc/qemu/hw/core/
H A Dtrace-events14 …phase_enter_begin(void *obj, const char *objtype, unsigned count, int type) "obj=%p(%s) count=%d t…
16 resettable_phase_enter_end(void *obj, const char *objtype, unsigned count) "obj=%p(%s) count=%d"
17 …_phase_hold_begin(void *obj, const char *objtype, unsigned count, int type) "obj=%p(%s) count=%d t…
19 resettable_phase_hold_end(void *obj, const char *objtype, unsigned count) "obj=%p(%s) count=%d"
20 …_phase_exit_begin(void *obj, const char *objtype, unsigned count, int type) "obj=%p(%s) count=%d t…
22 resettable_phase_exit_end(void *obj, const char *objtype, unsigned count) "obj=%p(%s) count=%d"
/openbmc/openbmc/meta-facebook/meta-yosemite4/recipes-phosphor/gpio/phosphor-gpio-monitor/
H A Drescan-wf-bic5 count=0
23 while [ $count -lt 12 ]; do
33 count=$((count + 1))
36 count=0
37 while [ $count -lt 3 ]; do
52 echo "WF BIC ready (status: $wf_ready), count=$count"
62 echo "WF BIC not ready (status: $wf_ready), count=$count"
63 count=$((count + 1))
/openbmc/bmcweb/docs/
H A DRedfish.md79 - `Members@odata.count`
114 - `Members@odata.count`
129 - `Members@odata.count`
153 - `Members@odata.count`
162 - `Members@odata.count`
187 - `Members@odata.count`
211 - Links/Certificates@odata.count
218 - `Members@odata.count`
261 - `Drives@odata.count`
287 - `Members@odata.count`
[all...]
/openbmc/qemu/include/qemu/
H A Dhbitmap.h111 * @count: Number of bits to set.
115 void hbitmap_set(HBitmap *hb, uint64_t start, uint64_t count);
121 * @count: Number of bits to reset.
124 * @start and @count must be aligned to bitmap granularity. The only exception
125 * is resetting the tail of the bitmap: @count may be equal to hb->orig_size -
126 * @start, in this case @count may be not aligned. The sum of @start + @count is
128 * and @start + @count = ALIGN_UP(hb->orig_size, granularity).
130 void hbitmap_reset(HBitmap *hb, uint64_t start, uint64_t count);
170 * start + count == hb->size)
178 * @count: Number of bits
[all …]
/openbmc/u-boot/arch/powerpc/lib/
H A D_ashrdi3.S24 * R5 has shift count
34 srw r4,r4,r5 # LSW = count > 31 ? 0 : LSW >> count
36 slw r6,r3,r6 # t1 = count > 31 ? 0 : MSW << (32-count)
37 rlwinm r8,r7,0,32 # t3 = (count < 32) ? 32 : 0
38 sraw r7,r3,r7 # t2 = MSW >> (count-32)
40 slw r7,r7,r8 # t2 = (count < 32) ? 0 : t2
41 sraw r3,r3,r5 # MSW = MSW >> count
/openbmc/qemu/target/i386/emulate/
H A Dx86_emu.c762 uint8_t count; in exec_shl() local
767 count = decode->op[1].val; in exec_shl()
768 count &= 0x1f; /* count is masked to 5 bits*/ in exec_shl()
769 if (!count) { in exec_shl()
777 if (count <= 8) { in exec_shl()
778 res = (decode->op[0].val << count); in exec_shl()
779 cf = (decode->op[0].val >> (8 - count)) & 0x1; in exec_shl()
793 if (count <= 16) { in exec_shl()
794 res = (decode->op[0].val << count); in exec_shl()
795 cf = (decode->op[0].val >> (16 - count)) & 0x1; in exec_shl()
[all …]
/openbmc/qemu/tests/functional/
H A Dtest_aarch64_tcg_plugins.py83 m = re.search(br"insns: (?P<count>\d+)", s)
84 if "count" not in m.groupdict():
85 self.fail("Failed to find instruction count")
87 count = int(m.group("count"))
88 self.log.info(f"Counted: {count} instructions")
110 m = re.search(br"insns: (?P<count>\d+)", s)
111 if "count" not in m.groupdict():
112 self.fail("Failed to find instruction count")
114 count = int(m.group("count"))
115 self.log.info(f"Counted: {count} instructions")
/openbmc/u-boot/lib/
H A Dstring.c89 * @count: The maximum number of bytes to copy
93 * @count bytes.
95 char * strncpy(char * dest,const char *src,size_t count) in strncpy() argument
99 while (count-- && (*dest++ = *src++) != '\0') in strncpy()
155 * @count: The maximum numbers of bytes to copy
160 char * strncat(char *dest, const char *src, size_t count) in strncat() argument
164 if (count) { in strncat()
168 if (--count == 0) { in strncat()
203 * @count: The maximum number of bytes to compare
205 int strncmp(const char * cs,const char * ct,size_t count) in strncmp() argument
[all …]

12345678910>>...111