| /openbmc/libmctp/ |
| H A D | range.h | 4 #ifndef MIN 5 #define MIN(a, b) ((a) < (b) ? (a) : (b)) macro
|
| /openbmc/openbmc/poky/scripts/contrib/bb-perf/ |
| H A D | bb-matrix-plot.sh | 91 MIN=$(tail -n +2 "$DATFILE" | cut -d ' ' -f 1 | sed 's/^0*//' | sort -n | uniq | head -n1) 93 BB_CNT=$[${MAX} - $MIN + 1] 94 MIN=$(tail -n +2 "$DATFILE" | cut -d ' ' -f 2 | sed 's/^0*//' | sort -n | uniq | head -n1) 96 PM_CNT=$[${MAX} - $MIN + 1]
|
| /openbmc/qemu/hw/scsi/ |
| H A D | esp.c | 353 int len = MIN(s->cmdfifo_cdb_offset, fifo8_num_used(&s->cmdfifo)); in do_message_phase() 494 len = MIN(len, fifo8_num_free(&s->cmdfifo)); in esp_do_dma() 501 len = MIN(fifo8_num_free(&s->cmdfifo), len); in esp_do_dma() 550 len = MIN(len, fifo8_num_free(&s->cmdfifo)); in esp_do_dma() 558 len = MIN(fifo8_num_free(&s->cmdfifo), len); in esp_do_dma() 590 len = MIN(s->async_len, ESP_FIFO_SZ); in esp_do_dma() 591 len = MIN(len, fifo8_num_used(&s->fifo)); in esp_do_dma() 603 len = MIN(s->async_len, ESP_FIFO_SZ); in esp_do_dma() 604 len = MIN(len, fifo8_num_free(&s->fifo)); in esp_do_dma() 644 len = MIN(len, fifo8_num_free(&s->fifo)); in esp_do_dma() [all …]
|
| H A D | emulation.c | 17 stw_be_p(outbuf + 2, MIN(bl->min_io_size, bl->max_io_sectors)); in scsi_emulate_block_limits() 23 stl_be_p(outbuf + 8, MIN(bl->opt_io_size, bl->max_io_sectors)); in scsi_emulate_block_limits()
|
| /openbmc/qemu/accel/tcg/ |
| H A D | atomic_template.h | 180 GEN_ATOMIC_HELPER_FN(fetch_smin, MIN, SDATA_TYPE, old) 181 GEN_ATOMIC_HELPER_FN(fetch_umin, MIN, DATA_TYPE, old) 185 GEN_ATOMIC_HELPER_FN(smin_fetch, MIN, SDATA_TYPE, new) 186 GEN_ATOMIC_HELPER_FN(umin_fetch, MIN, DATA_TYPE, new) 302 GEN_ATOMIC_HELPER_FN(fetch_smin, MIN, SDATA_TYPE, old) 303 GEN_ATOMIC_HELPER_FN(fetch_umin, MIN, DATA_TYPE, old) 307 GEN_ATOMIC_HELPER_FN(smin_fetch, MIN, SDATA_TYPE, new) 308 GEN_ATOMIC_HELPER_FN(umin_fetch, MIN, DATA_TYPE, new)
|
| H A D | tcg-accel-ops-icount.c | 119 cpu->icount_budget = MIN(icount_get_limit(), cpu_budget); in icount_prepare_for_run() 120 insns_left = MIN(0xffff, cpu->icount_budget); in icount_prepare_for_run()
|
| /openbmc/qemu/block/ |
| H A D | qed-cluster.c | 36 unsigned int end = MIN(index + n, s->table_nelems); in qed_count_contiguous_clusters() 104 *len = MIN(*len, (((pos >> s->l1_shift) + 1) << s->l1_shift) - pos); in qed_find_cluster() 136 *len = MIN(*len, in qed_find_cluster()
|
| /openbmc/qemu/nbd/ |
| H A D | common.c | 34 buffer = sizeof(small) >= size ? small : g_malloc(MIN(65536, size)); in nbd_drop() 36 ssize_t count = MIN(65536, size); in nbd_drop() 37 ret = nbd_read(ioc, buffer, MIN(65536, size), NULL, errp); in nbd_drop()
|
| /openbmc/qemu/pc-bios/s390-ccw/ |
| H A D | s390-ccw.h | 35 #ifndef MIN 36 #define MIN(a, b) (((a) < (b)) ? (a) : (b)) macro 40 ((b) == 0 ? (a) : (MIN(a, b))))
|
| /openbmc/qemu/rust/qemu-api/src/ |
| H A D | bitops.rs | 32 const MIN: Self; constant 81 const MIN: Self = <$type>::MIN; constant
|
| /openbmc/qemu/ui/ |
| H A D | vnc-enc-hextile.c | 59 MIN(16, x + w - i), MIN(16, y + h - j), in vnc_hextile_send_framebuffer_update()
|
| /openbmc/qemu/target/arm/tcg/ |
| H A D | vec_internal.h | 226 #define do_ssat_b(val) MIN(MAX(val, INT8_MIN), INT8_MAX) 227 #define do_ssat_h(val) MIN(MAX(val, INT16_MIN), INT16_MAX) 228 #define do_ssat_s(val) MIN(MAX(val, INT32_MIN), INT32_MAX) 229 #define do_usat_b(val) MIN(MAX(val, 0), UINT8_MAX) 230 #define do_usat_h(val) MIN(MAX(val, 0), UINT16_MAX) 231 #define do_usat_s(val) MIN(MAX(val, 0), UINT32_MAX)
|
| H A D | helper-a64.c | 953 setsize = MIN(setsize, page_limit(toaddr)); in set_step() 963 setsize = MIN(setsize, mtesize); in set_step() 1005 setsize = MIN(setsize, page_limit(toaddr)); in set_step_tags() 1139 stagesetsize = MIN(setsize, page_limit(toaddr)); in do_setp() 1313 copysize = MIN(copysize, page_limit(toaddr)); in copy_step() 1314 copysize = MIN(copysize, page_limit(fromaddr)); in copy_step() 1325 copysize = MIN(copysize, mtesize); in copy_step() 1334 copysize = MIN(copysize, mtesize); in copy_step() 1386 copysize = MIN(copysize, page_limit_rev(toaddr)); in copy_step_rev() 1387 copysize = MIN(copysize, page_limit_rev(fromaddr)); in copy_step_rev() [all …]
|
| /openbmc/qemu/include/ui/ |
| H A D | rect.h | 39 x2 = MIN(a->x + a->width, b->x + b->width); in qemu_rect_intersect() 40 y2 = MIN(a->y + a->height, b->y + b->height); in qemu_rect_intersect()
|
| /openbmc/qemu/hw/display/ |
| H A D | bcm2835_fb.c | 224 config->xres = MIN(config->xres, XRES_MAX); in bcm2835_fb_validate_config() 225 config->xres_virtual = MIN(config->xres_virtual, XRES_MAX); in bcm2835_fb_validate_config() 226 config->yres = MIN(config->yres, YRES_MAX); in bcm2835_fb_validate_config() 227 config->yres_virtual = MIN(config->yres_virtual, YRES_MAX); in bcm2835_fb_validate_config() 248 config->xoffset = MIN(config->xoffset, in bcm2835_fb_validate_config() 250 config->yoffset = MIN(config->yoffset, in bcm2835_fb_validate_config()
|
| /openbmc/qemu/disas/ |
| H A D | capstone.c | 157 cap_dump_insn_units(info, insn, 0, MIN(n, split)); in cap_dump_insn() 172 cap_dump_insn_units(info, insn, i, MIN(n, i + split)); in cap_dump_insn() 191 size_t tsize = MIN(sizeof(cap_buf) - csize, size); in cap_disas_target() 290 size_t tsize = MIN(sizeof(cap_buf) - csize, epc - pc); in cap_disas_monitor()
|
| /openbmc/qemu/crypto/ |
| H A D | ivgen-essiv.c | 57 salt, MIN(nhash, nsalt), in qcrypto_ivgen_essiv_init() 81 memcpy(data, (uint8_t *)§or, MIN(sizeof(sector), ndata)); in qcrypto_ivgen_essiv_calculate()
|
| /openbmc/qemu/audio/ |
| H A D | audio.c | 512 m = MIN (m, sw->total_hw_samples_acquired); in audio_pcm_hw_find_min_in() 535 size_t proc = MIN(samples, conv_buf->size - conv_buf->pos); in audio_pcm_hw_conv_in() 562 frames_in = MIN(frames_in_max, hw->conv_buf.size - rpos); in audio_pcm_sw_resample_in() 596 frames_out_max = MIN(buf_len / sw->info.bytes_per_frame, in audio_pcm_sw_read() 621 m = MIN (m, sw->total_hw_samples_mixed); in audio_pcm_hw_find_min_out() 667 size_t samples_to_clip = MIN(len, samples_till_end_of_buf); in audio_pcm_hw_clip_out() 695 frames_out = MIN(frames_out_max, hw->mix_buf.size - wpos); in audio_pcm_sw_resample_out() 735 frames_out_max = MIN(dead, hw_free); in audio_pcm_sw_write() 737 fe_max = MIN(buf_len / sw->info.bytes_per_frame + sw->resample_buf.pos, in audio_pcm_sw_write() 739 frames_in_max = MIN(sw_max, fe_max); in audio_pcm_sw_write() [all …]
|
| /openbmc/qemu/hw/remote/ |
| H A D | proxy-memory-listener.c | 127 MIN(prev_gpa_start, mrs_gpa); in try_merge() 129 MIN(prev_host_start, mrs_host) - in try_merge() 131 prev_sec->size = int128_make64(max_end - MIN(prev_host_start, in try_merge()
|
| /openbmc/qemu/target/hppa/ |
| H A D | op_helper.c | 376 fr = MIN(fr, INT16_MAX); in HELPER() 392 fr = MIN(fr, UINT16_MAX); in HELPER() 422 fr = MIN(fr, INT16_MAX); in HELPER() 438 fr = MIN(fr, UINT16_MAX); in HELPER() 454 fr = MIN(fr, INT16_MAX); in HELPER() 470 fr = MIN(fr, INT16_MAX); in HELPER()
|
| /openbmc/qemu/target/s390x/tcg/ |
| H A D | vec_string_helper.c | 122 s390_vec_write_element64(v1, 0, MIN(first_equal, first_zero)); in vfae() 185 s390_vec_write_element64(v1, 0, MIN(first_equal, first_zero)); in vfee() 252 s390_vec_write_element64(v1, 0, MIN(first_inequal, first_zero)); in vfene() 393 first_match = MIN(cur_byte, first_match); in vstrc() 406 s390_vec_write_element64(v1, 0, MIN(first_match, first_zero)); in vstrc() 485 substr_elen = MIN(substr_elen, nelem); in vstrs() 513 i = MIN(nelem, k + substr_elen); in vstrs()
|
| /openbmc/qemu/tests/qtest/libqos/ |
| H A D | malloc-pc.c | 27 alloc_init(s, flags, 1 << 20, MIN(ram_size, 0xE0000000), ALLOC_PAGE_SIZE); in pc_alloc_init()
|
| /openbmc/qemu/hw/hyperv/ |
| H A D | hv-balloon-page_range_tree.h | 25 uint64_t end = MIN(endr, start); in page_range_part_before() 57 uint64_t end = MIN(end1, end2); in page_range_intersect()
|
| /openbmc/qemu/util/ |
| H A D | range.c | 98 out = append_new_range(out, low, MIN(range_lob(r) - 1, high)); in range_inverse_array() 110 MIN(range_lob(rn) - 1, high)); in range_inverse_array()
|
| /openbmc/qemu/hw/rtc/ |
| H A D | ls7a_rtc.c | 46 FIELD(TOY, MIN, 10, 6) 54 FIELD(TOY_MATCH, MIN, 6, 6) 120 val = FIELD_DP32(val, TOY, MIN, tm->tm_min); in toy_time_to_val_mon() 129 tm->tm_min = FIELD_EX32(val, TOY_MATCH, MIN); in toymatch_val_to_time() 287 tm.tm_min = FIELD_EX32(val, TOY, MIN); in ls7a_rtc_write()
|