Home
last modified time | relevance | path

Searched refs:MIN (Results 1 – 25 of 433) sorted by relevance

12345678910>>...18

/openbmc/qemu/hw/scsi/
H A Desp.c353 int len = MIN(s->cmdfifo_cdb_offset, fifo8_num_used(&s->cmdfifo)); in do_message_phase()
492 len = MIN(len, fifo8_num_free(&s->cmdfifo)); in esp_do_dma()
497 len = MIN(fifo8_num_free(&s->cmdfifo), len); in esp_do_dma()
546 len = MIN(len, fifo8_num_free(&s->cmdfifo)); in esp_do_dma()
552 len = MIN(fifo8_num_free(&s->cmdfifo), len); in esp_do_dma()
582 len = MIN(s->async_len, ESP_FIFO_SZ); in esp_do_dma()
583 len = MIN(len, fifo8_num_used(&s->fifo)); in esp_do_dma()
595 len = MIN(s->async_len, ESP_FIFO_SZ); in esp_do_dma()
596 len = MIN(len, fifo8_num_free(&s->fifo)); in esp_do_dma()
634 len = MIN(len, fifo8_num_free(&s->fifo)); in esp_do_dma()
[all …]
H A Demulation.c17 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 Datomic_template.h180 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 Dtcg-accel-ops-icount.c119 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/openbmc/poky/scripts/contrib/bb-perf/
H A Dbb-matrix-plot.sh91 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/libmctp/
H A Drange.h4 #ifndef MIN
5 #define MIN(a, b) ((a) < (b) ? (a) : (b)) macro
/openbmc/linux/drivers/hwmon/
H A Dadt7475.c27 #define MIN 1 macro
368 if (sattr->nr == MIN) in voltage_store()
373 if (sattr->nr == MIN) in voltage_store()
511 case MIN: in temp_store()
726 data->tach[MIN][sattr->index] = rpm2tach(val); in tach_store()
729 data->tach[MIN][sattr->index]); in tach_store()
804 case MIN: in pwm_store()
1085 static SENSOR_DEVICE_ATTR_2_RW(in0_min, voltage, MIN, 0);
1089 static SENSOR_DEVICE_ATTR_2_RW(in1_min, voltage, MIN, 1);
1093 static SENSOR_DEVICE_ATTR_2_RW(in2_min, voltage, MIN, 2);
[all …]
/openbmc/qemu/nbd/
H A Dcommon.c31 buffer = sizeof(small) >= size ? small : g_malloc(MIN(65536, size)); in nbd_drop()
33 ssize_t count = MIN(65536, size); in nbd_drop()
34 ret = nbd_read(ioc, buffer, MIN(65536, size), NULL, errp); in nbd_drop()
/openbmc/qemu/block/
H A Dqed-cluster.c36 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/pc-bios/s390-ccw/
H A Ds390-ccw.h35 #ifndef MIN
36 #define MIN(a, b) (((a) < (b)) ? (a) : (b)) macro
40 ((b) == 0 ? (a) : (MIN(a, b))))
/openbmc/qemu/hw/display/
H A Dbcm2835_fb.c224 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/ui/
H A Dvnc-enc-hextile.c59 MIN(16, x + w - i), MIN(16, y + h - j), in vnc_hextile_send_framebuffer_update()
/openbmc/linux/include/linux/
H A Dunicode.h14 #define UNICODE_AGE(MAJ, MIN, REV) \ argument
16 ((unsigned int)(MIN) << UNICODE_MIN_SHIFT) | \
/openbmc/qemu/audio/
H A Daudio.c512 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/disas/
H A Dcapstone.c157 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/include/ui/
H A Drect.h39 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/linux/lib/zstd/common/
H A Dzstd_internal.h47 #undef MIN
49 #define MIN(a,b) ((a)<(b) ? (a) : (b)) macro
51 #define BOUNDED(min,val,max) (MAX(min,MIN(val,max)))
249 size_t const length = MIN(dstCapacity, srcSize); in ZSTD_limitCopy()
/openbmc/qemu/target/hppa/
H A Dop_helper.c373 fr = MIN(fr, INT16_MAX); in HELPER()
389 fr = MIN(fr, UINT16_MAX); in HELPER()
419 fr = MIN(fr, INT16_MAX); in HELPER()
435 fr = MIN(fr, UINT16_MAX); in HELPER()
451 fr = MIN(fr, INT16_MAX); in HELPER()
467 fr = MIN(fr, INT16_MAX); in HELPER()
/openbmc/qemu/target/s390x/tcg/
H A Dvec_string_helper.c122 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/hw/rtc/
H A Dls7a_rtc.c46 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()
/openbmc/linux/arch/um/drivers/
H A Dmconsole_user.c74 #define MIN(a,b) ((a)<(b) ? (a):(b)) macro
93 len = MIN(sizeof(req->request.data) - 1, in mconsole_get_request()
143 len = MIN(total, MCONSOLE_MAX_DATA - 1); in mconsole_reply_len()
/openbmc/qemu/hw/remote/
H A Dproxy-memory-listener.c127 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/crypto/
H A Divgen-essiv.c57 salt, MIN(nhash, nsalt), in qcrypto_ivgen_essiv_init()
81 memcpy(data, (uint8_t *)&sector, MIN(sizeof(sector), ndata)); in qcrypto_ivgen_essiv_calculate()
/openbmc/qemu/util/
H A Diov.c32 size_t len = MIN(iov[i].iov_len - offset, bytes - done); in iov_from_buf_full()
51 size_t len = MIN(iov[i].iov_len - offset, bytes - done); in iov_to_buf_full()
70 size_t len = MIN(iov[i].iov_len - offset, bytes - done); in iov_memset()
272 len = MIN(bytes, iov[i].iov_len - offset); in iov_copy()
343 size_t len = MIN(src_iov[i].iov_len - soffset, sbytes - done); in qemu_iovec_concat_iov()
444 size_t len = MIN(iov->iov_len - current_offset, bytes); in qemu_iovec_is_zero()
608 buf += cur->iov_len - MIN(rewind, cur->iov_len); in qemu_iovec_clone()
/openbmc/qemu/target/arm/tcg/
H A Dhelper-a64.c1091 setsize = MIN(setsize, page_limit(toaddr)); in set_step()
1101 setsize = MIN(setsize, mtesize); in set_step()
1143 setsize = MIN(setsize, page_limit(toaddr)); in set_step_tags()
1277 stagesetsize = MIN(setsize, page_limit(toaddr)); in do_setp()
1452 copysize = MIN(copysize, page_limit(toaddr)); in copy_step()
1453 copysize = MIN(copysize, page_limit(fromaddr)); in copy_step()
1464 copysize = MIN(copysize, mtesize); in copy_step()
1473 copysize = MIN(copysize, mtesize); in copy_step()
1525 copysize = MIN(copysize, page_limit_rev(toaddr)); in copy_step_rev()
1526 copysize = MIN(copysize, page_limit_rev(fromaddr)); in copy_step_rev()
[all …]

12345678910>>...18