/openbmc/qemu/include/qemu/ |
H A D | range.h | 31 struct Range { struct 34 * A non-empty range has @lob <= @upb. 35 * An empty range has @lob == @upb + 1. 41 static inline void range_invariant(const Range *range) in range_invariant() argument 43 assert(range->lob <= range->upb || range->lob == range->upb + 1); in range_invariant() 46 /* Compound literal encoding the empty range */ 47 #define range_empty ((Range){ .lob = 1, .upb = 0 }) 49 /* Is @range empty? */ 50 static inline bool range_is_empty(const Range *range) in range_is_empty() argument 52 range_invariant(range); in range_is_empty() [all …]
|
H A D | iova-tree.h | 31 #define IOVA_ERR_OVERLAP (-2) /* IOVA range overlapped */ 58 * Inserts a GPA range to the GPA->IOVA tree. If there are overlapped 80 * Insert an iova range to the tree. If there is overlapped 90 * @tree: the iova tree to remove range from 91 * @map: the map range to remove 93 * Remove mappings from the tree that are covered by the map range 94 * provided. The range does not need to be exactly what has inserted, 95 * all the mappings that are included in the provided range will be 107 * mapping range specified. Only the first found mapping will be 125 * mapping range specified. Only the first found mapping will be [all …]
|
/openbmc/qemu/hw/hyperv/ |
H A D | hv-balloon-page_range_tree.c | 41 PageRange *range = g_malloc(sizeof(*range)); in page_range_tree_insert_new() local 45 *key = range->start = start; in page_range_tree_insert_new() 46 range->count = count; in page_range_tree_insert_new() 48 return g_tree_insert_node(tree.t, key, range); in page_range_tree_insert_new() 58 PageRange *range; in hvb_page_range_tree_insert() local 73 range = g_tree_node_value(node); in hvb_page_range_tree_insert() 74 assert(range); 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() 83 * already has a higher key (the start of its range). in hvb_page_range_tree_insert() [all …]
|
H A D | hv-balloon-page_range_tree.h | 20 /* return just the part of range before (start) */ 21 static inline void page_range_part_before(const PageRange *range, in page_range_part_before() argument 24 uint64_t endr = range->start + range->count; in page_range_part_before() 27 out->start = range->start; in page_range_part_before() 35 /* return just the part of range after (start, count) */ 36 static inline void page_range_part_after(const PageRange *range, in page_range_part_after() argument 40 uint64_t end = range->start + range->count; in page_range_part_after() 43 out->start = MAX(range->start, ends); in page_range_part_after() 51 static inline void page_range_intersect(const PageRange *range, in page_range_intersect() argument 55 uint64_t end1 = range->start + range->count; in page_range_intersect() [all …]
|
H A D | hv-balloon-our_range_memslots.h | 21 /* "our range" means the memory range owned by this driver (for hot-adding) */ 23 PageRange range; member 37 return our_range->range.start + our_range->added; in our_range_get_remaining_start() 42 return our_range->range.count - our_range->added - our_range->unusable_tail; in our_range_get_remaining_size() 49 our_range->unusable_tail = our_range->range.count - our_range->added; in our_range_mark_remaining_unusable() 88 OurRange range; member 90 /* Memslots covering our range */
|
H A D | hv-balloon.c | 190 return balloon->our_range->range.added; in hv_balloon_total_our_ram() 368 PageRange range; in hv_balloon_unballoon_posting() local 393 bret = hvb_page_range_tree_pop(dtree, &range, MIN(balloon->unballoon_diff, in hv_balloon_unballoon_posting() 398 *dctr -= range.count; in hv_balloon_unballoon_posting() 399 balloon->unballoon_diff -= range.count; in hv_balloon_unballoon_posting() 402 ur->range_array[0].finfo.start_page = range.start; in hv_balloon_unballoon_posting() 403 ur->range_array[0].finfo.page_cnt = range.count; in hv_balloon_unballoon_posting() 407 range.count, range.start, in hv_balloon_unballoon_posting() 453 our_range->range.start, in hv_balloon_our_range_ensure() 454 our_range->range.count) || in hv_balloon_our_range_ensure() [all …]
|
/openbmc/u-boot/drivers/core/ |
H A D | regmap.c | 42 struct regmap_range *range; in regmap_init_mem_platdata() local 49 for (range = map->ranges; count > 0; reg += 2, range++, count--) { in regmap_init_mem_platdata() 50 range->start = *reg; in regmap_init_mem_platdata() 51 range->size = reg[1]; in regmap_init_mem_platdata() 60 * init_range() - Initialize a single range of a regmap 62 * @range: Pointer to a regmap_range structure that will be initialized 65 * @index: The index of the range to initialize 68 * (the 'addr' part, and the 'length' part), and initialize the range in 73 static int init_range(ofnode node, struct regmap_range *range, int addr_len, in init_range() argument 85 debug("%s: Could not read resource of range %d (ret = %d)\n", in init_range() [all …]
|
/openbmc/qemu/util/ |
H A D | range.c | 21 #include "qemu/range.h" 23 int range_compare(Range *a, Range *b) in range_compare() 38 GList *range_list_insert(GList *list, Range *data) in range_list_insert() 73 Range *new = g_new0(Range, 1); in append_new_range() 83 Range *r, *rn; in range_inverse_array() 94 r = (Range *)l->data; in range_inverse_array() 96 /* first range lob is greater than min, insert a first range */ in range_inverse_array() 101 /* insert a range in between each original range until we reach high */ in range_inverse_array() 103 r = (Range *)l->data; in range_inverse_array() 104 rn = (Range *)l->next->data; in range_inverse_array() [all …]
|
H A D | userfaultfd.c | 148 * uffd_register_memory: register memory range via UFFD-IO 153 * @addr: base address of memory range 154 * @length: length of memory range 163 uffd_register.range.start = (uintptr_t) addr; in uffd_register_memory() 164 uffd_register.range.len = length; in uffd_register_memory() 179 * uffd_unregister_memory: un-register memory range with UFFD-IO 184 * @addr: base address of memory range 185 * @length: length of memory range 203 * uffd_change_protection: protect/un-protect memory range for writes via UFFD-IO 208 * @addr: base address of memory range [all …]
|
H A D | reserved-region.c | 21 #include "qemu/range.h" 27 Range *r = ®->range; in resv_region_list_insert() 28 Range *range_iter; in resv_region_list_insert() 33 range_iter = &resv_iter->range; in resv_region_list_insert() 35 /* Skip all list elements strictly less than range to add */ in resv_region_list_insert() 42 /* new range contains current item, simply remove this latter */ in resv_region_list_insert() 66 * the new range is in the middle of an existing one, in resv_region_list_insert() 73 range_set_bounds(&new_reg->range, in resv_region_list_insert() 82 } else { /* intersection on the upper range */ in resv_region_list_insert()
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-benchmark/lmbench/lmbench/ |
H A D | fix-lmbench-memory-check-failure.patch | 41 @@ -197,6 +197,12 @@ The bigger the range, the more accurate the results, but larger sizes 147 size_t range; 162 + range = MEMORY_SIZE_1MB; 164 + range = MEMORY_SIZE_8MB; 168 + if (size < range) { 173 + //Touch range of memory, get the average time (usec) of operating each memory page on this system 175 + touchRange(where, range, pagesize); 178 + if ((time_each_page = sum * pagesize / range) < 1) 183 - range = 1024 * 1024; 185 - touchRange(where, range, pagesize); [all …]
|
/openbmc/u-boot/arch/powerpc/cpu/mpc85xx/ |
H A D | portals.c | 31 u32 *range; in fdt_portal() local 35 range = fdt_getprop_w(blob, off, "ranges", &len); in fdt_portal() 36 if (range == NULL) { in fdt_portal() 41 range[0] = 0; in fdt_portal() 43 range[1] = addr >> 32; in fdt_portal() 44 range[2] = addr & 0xffffffff; in fdt_portal() 45 range[3] = size; in fdt_portal() 47 range[1] = addr & 0xffffffff; in fdt_portal() 48 range[2] = size; in fdt_portal() 50 fdt_setprop_inplace(blob, off, "ranges", range, len); in fdt_portal()
|
/openbmc/qemu/include/user/ |
H A D | page-protection.h | 24 * @start: first byte of range 25 * @last: last byte of range 39 * @start: first byte of range 40 * @len: length of range 51 * @start: first byte of range 52 * @last: last byte of range 55 * Return true if the entire range [@start, @last] is unmapped. 63 * @min: first byte of search range 64 * @max: last byte of search range 68 * If there is a range [x, x+@len) within [@min, @max] such that [all …]
|
/openbmc/hiomapd/vpnor/ |
H A D | README.md | 35 7. A read of a valid access range that maps into the backing file will render 37 8. A read of a valid access range that does not map into the backing file will 39 9. A read of an invalid access range will appear erased 40 10. A write to a valid access range that maps into the backing file will update 42 11. A write to a valid access range that does not map into the backing file will 44 12. A write to a valid access range may fail if the range is not marked as 46 the write window intersecting the read-only range. 47 13. A write of an invalid access range will return an error. The error should be 49 invalid range.
|
/openbmc/u-boot/drivers/led/ |
H A D | Kconfig | 118 range LED_STATUS_OFF LED_STATUS_ON 128 range 2 10 133 Values range: 2 - 10 153 range LED_STATUS_OFF LED_STATUS_ON 163 range 2 10 168 Values range: 2 - 10 188 range LED_STATUS_OFF LED_STATUS_ON 198 range 2 10 203 Values range: 2 - 10 223 range LED_STATUS_OFF LED_STATUS_ON [all …]
|
/openbmc/phosphor-mboxd/vpnor/ |
H A D | README.md | 39 7. A read of a valid access range that maps into the backing file will render 41 8. A read of a valid access range that does not map into the backing file will 43 9. A read of an invalid access range will appear erased 44 10. A write to a valid access range that maps into the backing file will update 46 11. A write to a valid access range that does not map into the backing file 48 12. A write to a valid access range may fail if the range is not marked as 50 the write window intersecting the read-only range. 51 13. A write of an invalid access range will return an error. The error should 53 the invalid range.
|
/openbmc/u-boot/arch/arm/dts/ |
H A D | sama5d2.dtsi | 98 atmel,clk-input-range = <12000000 12000000>; 99 #atmel,pll-clk-output-range-cells = <4>; 140 atmel,clk-output-range = <124000000 166000000>; 245 atmel,clk-output-range = <0 83000000>; 251 atmel,clk-output-range = <0 83000000>; 267 atmel,clk-output-range = <0 83000000>; 274 atmel,clk-output-range = <0 83000000>; 280 atmel,clk-output-range = <0 83000000>; 286 atmel,clk-output-range = <0 83000000>; 292 atmel,clk-output-range = <0 83000000>; [all …]
|
H A D | hi3798cv200.dtsi | 183 pinctrl-single,gpio-range = < 184 &range 0 8 2 /* GPIO 0 */ 185 &range 8 1 0 /* GPIO 1 */ 186 &range 9 4 2 187 &range 13 1 0 188 &range 14 1 1 189 &range 15 1 0 190 &range 16 5 0 /* GPIO 2 */ 191 &range 21 3 1 192 &range 24 4 1 /* GPIO 3 */ [all …]
|
/openbmc/u-boot/drivers/pinctrl/mediatek/ |
H A D | pinctrl-mtk-common.h | 10 #define MTK_RANGE(_a) { .range = (_a), .nranges = ARRAY_SIZE(_a), } 78 * struct mtk_pin_field_calc - the structure that holds the range providing 80 * @s_pin: the start pin within the range 81 * @e_pin: the end pin within the range 82 * @s_addr: the start address for the range 84 * within the range 85 * @s_bit: the start bit for the first register within the range 87 * the range 107 * @range: the start address for the range 108 * @nranges: the number of items in the range [all …]
|
/openbmc/u-boot/drivers/power/regulator/ |
H A D | sandbox.c | 22 #define RANGE(_min, _max, _step) { \ macro 29 * struct output_range - helper structure type to define the range of output 42 /* BUCK: 1,2 - voltage range */ 44 RANGE(OUT_BUCK1_UV_MIN, OUT_BUCK1_UV_MAX, OUT_BUCK1_UV_STEP), 45 RANGE(OUT_BUCK2_UV_MIN, OUT_BUCK2_UV_MAX, OUT_BUCK2_UV_STEP), 48 /* BUCK: 1 - current range */ 50 RANGE(OUT_BUCK1_UA_MIN, OUT_BUCK1_UA_MAX, OUT_BUCK1_UA_STEP), 60 /* LDO: 1,2 - voltage range */ 62 RANGE(OUT_LDO1_UV_MIN, OUT_LDO1_UV_MAX, OUT_LDO1_UV_STEP), 63 RANGE(OUT_LDO2_UV_MIN, OUT_LDO2_UV_MAX, OUT_LDO2_UV_STEP), [all …]
|
/openbmc/u-boot/include/ |
H A D | regmap.h | 66 * struct regmap_range - a register map range 160 * regmap_raw_write_range() - Write a value of specified length to a range of a 164 * @range_num: Number of the range in the regmap to write to 175 * regmap_raw_read_range() - Read a value of specified length from a range of a 179 * @range_num: Number of the range in the regmap to write to 191 * regmap_range_set() - Set a value in a regmap range described by a struct 193 * @range: Range of the regmap in which a value should be set 194 * @type: Structure type that describes the memory layout of the regmap range 196 * range 197 * @val: Value which should be written to the regmap range [all …]
|
/openbmc/bmcweb/redfish-core/include/registries/ |
H A D | environmental_message_registry.hpp | 177 …g is no longer below the lower critical threshold but is still outside of normal operating range.", 178 …ing of %2 L/min is now above the %3 lower critical threshold but remains outside of normal range.", 191 …ding is no longer below the lower fatal threshold but is still outside of normal operating range.", 192 …eading of %2 L/min is now above the %3 lower fatal threshold but remains outside of normal range.", 289 …g is no longer above the upper critical threshold but is still outside of normal operating range.", 290 …ing of %2 L/min is now below the %3 upper critical threshold but remains outside of normal range.", 303 …ding is no longer above the upper fatal threshold but is still outside of normal operating range.", 304 …eading of %2 L/min is now below the %3 upper fatal threshold but remains outside of normal range.", 369 "Indicates that a flow rate reading is now within normal operating range.", 370 "Flow rate '%1' reading of %2 L/min is within normal operating range.", [all …]
|
H A D | power_message_registry.hpp | 105 …g is no longer below the lower critical threshold but is still outside of normal operating range.", 106 …g of %2 amperes is now above the %3 lower critical threshold but remains outside of normal range.", 119 …ding is no longer below the lower fatal threshold but is still outside of normal operating range.", 120 …ding of %2 amperes is now above the %3 lower fatal threshold but remains outside of normal range.", 217 …g is no longer above the upper critical threshold but is still outside of normal operating range.", 218 …g of %2 amperes is now below the %3 upper critical threshold but remains outside of normal range.", 231 …ding is no longer above the upper fatal threshold but is still outside of normal operating range.", 232 …ding of %2 amperes is now below the %3 upper fatal threshold but remains outside of normal range.", 271 "Indicates that a current reading is now within normal operating range.", 272 "Current '%1' reading of %2 amperes is within normal operating range.", [all …]
|
/openbmc/qemu/tests/bench/ |
H A D | atomic_add-bench.c | 22 static unsigned int range = 1024; variable 32 " -r = range (will be rounded up to pow2)"; 42 * This is faster than rand_r(), and gives us a wider range (RAND_MAX is only 66 index = info->r & (range - 1); in thread_func() 101 counts = qemu_memalign(64, sizeof(*counts) * range); in create_threads() 102 memset(counts, 0, sizeof(*counts) * range); in create_threads() 103 for (i = 0; i < range; i++) { in create_threads() 121 printf(" ops' range: %u\n", range); in pr_params() 130 for (i = 0; i < range; i++) { in pr_stats() 167 range = pow2ceil(atoi(optarg)); in parse_args()
|
/openbmc/u-boot/drivers/clk/sifive/ |
H A D | wrpll-cln28hpc.c | 19 * the CLN28HPC variant of the Analog Bits Wide Range PLL. The 30 * - Analog Bits "Wide Range PLL Datasheet", version 2015.10.01 82 * Select the value to be presented to the PLL RANGE input signals, based 85 * range selection. 87 * Return: The RANGE value to be presented to the PLL configuration inputs, 92 u8 range; in __wrpll_calc_filter_range() local 96 WARN(1, "%s: post-divider reference freq out of range: %lu", in __wrpll_calc_filter_range() 102 range = 1; in __wrpll_calc_filter_range() 104 range = 2; in __wrpll_calc_filter_range() 106 range = 3; in __wrpll_calc_filter_range() [all …]
|