/qemu/tests/tcg/arm/ |
H A D | fcvt.c | 123 print_single_number(i, input); in convert_single_to_half() 148 print_single_number(i, input); in convert_single_to_double() 170 print_single_number(i, input); in convert_single_to_integer() 173 output = input; in convert_single_to_integer() 245 output = input; in convert_double_to_half() 292 output = input; in convert_double_to_integer() 333 print_half_number(i, input); in convert_half_to_double() 336 output = input; in convert_half_to_double() 356 print_half_number(i, input); in convert_half_to_single() 378 print_half_number(i, input); in convert_half_to_integer() [all …]
|
/qemu/tests/unit/ |
H A D | test-base64.c | 28 const char input[] = in test_base64_good() local 35 uint8_t *actual = qbase64_decode(input, in test_base64_good() 47 static void test_base64_bad(const char *input, in test_base64_bad() argument 52 uint8_t *actual = qbase64_decode(input, in test_base64_bad() 67 const char input[] = in test_base64_embedded_nul() local 71 test_base64_bad(input, G_N_ELEMENTS(input) - 1); in test_base64_embedded_nul() 77 const char input[] = in test_base64_not_nul_terminated() local 83 test_base64_bad(input, G_N_ELEMENTS(input) - 2); in test_base64_not_nul_terminated() 91 const char input[] = in test_base64_invalid_chars() local 95 test_base64_bad(input, strlen(input)); in test_base64_invalid_chars()
|
H A D | io-channel-helpers.c | 30 char *input; member 79 data->input = g_new0(char, data->len); in qio_channel_test_new() 84 memset(data->input + i, (i / CHUNK_LEN), CHUNK_LEN); in qio_channel_test_new() 93 data->inputv[i].iov_base = data->input + offset; in qio_channel_test_new() 151 g_assert_cmpint(memcmp(test->input, in qio_channel_test_validate() 157 g_free(test->input); in qio_channel_test_validate()
|
/qemu/docs/system/devices/ |
H A D | vhost-user-input.rst | 3 QEMU vhost-user-input - Input emulation 6 This document describes the setup and usage of the Virtio input device. 7 The Virtio input device is a paravirtualized device for input events. 12 The vhost-user-input device implementation was designed to work with a daemon 13 polling on input devices and passes input events to the guest. 15 QEMU provides a backend implementation in contrib/vhost-user-input. 20 Virtio input requires a guest Linux kernel built with the 30 host# vhost-user-input --socket-path=input.sock \ 31 --evdev-path=/dev/input/event17 40 -chardev socket,path=/tmp/input.sock,id=mouse0 \ [all …]
|
/qemu/tests/tcg/multiarch/ |
H A D | float_convd.c | 38 static void print_input(double input) in print_input() argument 40 char *in_fmt = fmt_f64(input); in print_input() 45 static void convert_double_to_single(double input) in convert_double_to_single() argument 52 output = input; in convert_double_to_single() 95 double input = get_f64(j); in CONVERT_DOUBLE_TO_INT() local 96 print_input(input); in CONVERT_DOUBLE_TO_INT() 97 convert_double_to_single(input); in CONVERT_DOUBLE_TO_INT() 98 convert_double_to_int32(input); in CONVERT_DOUBLE_TO_INT() 99 convert_double_to_int64(input); in CONVERT_DOUBLE_TO_INT() 100 convert_double_to_uint32(input); in CONVERT_DOUBLE_TO_INT() [all …]
|
H A D | float_convs.c | 38 static void print_input(float input) in print_input() argument 40 char *in_fmt = fmt_f32(input); in print_input() 45 static void convert_single_to_double(float input) in convert_single_to_double() argument 52 output = input; in convert_single_to_double() 95 float input = get_f32(j); in CONVERT_SINGLE_TO_INT() local 96 print_input(input); in CONVERT_SINGLE_TO_INT() 98 convert_single_to_double(input); in CONVERT_SINGLE_TO_INT() 99 convert_single_to_int32(input); in CONVERT_SINGLE_TO_INT() 100 convert_single_to_int64(input); in CONVERT_SINGLE_TO_INT() 101 convert_single_to_uint32(input); in CONVERT_SINGLE_TO_INT() [all …]
|
/qemu/tests/qtest/ |
H A D | npcm7xx_adc-test.c | 153 g_assert_cmpuint(input, <=, ref); in adc_calculate_output() 154 output = (input * (MAX_RESULT + 1)) / ref; in adc_calculate_output() 208 uint32_t index, input, output, expected_output; in test_convert_internal() local 214 input = input_list[i]; in test_convert_internal() 243 input = input_list[i]; in test_convert_external() 268 uint32_t index, input, output, expected_output; in test_interrupt() local 272 input = input_list[1]; in test_interrupt() 276 adc_write_input(qts, adc, index, input); in test_interrupt() 327 uint32_t input; in test_calibrate() local 333 input = input_list[i]; in test_calibrate() [all …]
|
/qemu/hw/input/ |
H A D | ads7846.c | 25 int input[8]; member 77 s->output = s->input[(value >> 4) & 7]; in ads7846_transfer() 106 s->input[1] = ADS_XPOS(x, y); in ads7846_ts_event() 107 s->input[3] = ADS_Z1POS(x, y); in ads7846_ts_event() 108 s->input[4] = ADS_Z2POS(x, y); in ads7846_ts_event() 109 s->input[5] = ADS_YPOS(x, y); in ads7846_ts_event() 135 VMSTATE_INT32_ARRAY(input, ADS7846State, 8), 150 s->input[0] = ADS_TEMP0; /* TEMP0 */ in ads7846_realize() 151 s->input[2] = ADS_VBAT; /* VBAT */ in ads7846_realize() 152 s->input[6] = ADS_VAUX; /* VAUX */ in ads7846_realize() [all …]
|
/qemu/tests/qemu-iotests/ |
H A D | 178.out.qcow2 | 35 == Empty qcow2 input image (human) == 44 == qcow2 input image with data (human) == 76 == qcow2 input image and LUKS encryption == 101 == Empty raw input image (human) == 109 == raw input image with data (human) == 130 == raw input image and LUKS encryption == 180 == Empty qcow2 input image (json) == 191 == qcow2 input image with data (json) == 262 == Empty raw input image (json) == 272 == raw input image with data (json) == [all …]
|
H A D | 178.out.raw | 36 == Empty raw input image (human) == 44 == raw input image with data (human) == 60 == raw input image and preallocation (human) == 67 == Fully-allocated raw input image (human) == 108 == Empty raw input image (json) == 118 == raw input image with data (json) == 138 == raw input image and preallocation (json) == 147 == Fully-allocated raw input image (json) ==
|
/qemu/util/ |
H A D | base64.c | 28 uint8_t *qbase64_decode(const char *input, in qbase64_decode() argument 37 if (input[in_len] != '\0') { in qbase64_decode() 43 if (memchr(input, '\0', in_len) != NULL) { in qbase64_decode() 51 in_len = strlen(input); in qbase64_decode() 54 if (strspn(input, base64_valid_chars) != in_len) { in qbase64_decode() 59 return g_base64_decode(input, out_len); in qbase64_decode()
|
/qemu/crypto/ |
H A D | secret_common.c | 32 const uint8_t *input, in qcrypto_secret_decrypt() argument 127 static void qcrypto_secret_decode(const uint8_t *input, in qcrypto_secret_decode() argument 133 *output = qbase64_decode((const gchar *)input, in qcrypto_secret_decode() 148 uint8_t *input = NULL; in qcrypto_secret_complete() local 166 qcrypto_secret_decrypt(secret, input, inputlen, in qcrypto_secret_complete() 168 g_free(input); in qcrypto_secret_complete() 173 input = output; in qcrypto_secret_complete() 177 qcrypto_secret_decode(input, inputlen, in qcrypto_secret_complete() 179 g_free(input); in qcrypto_secret_complete() 184 input = output; in qcrypto_secret_complete() [all …]
|
/qemu/target/xtensa/ |
H A D | xtensa-semi.c | 152 } input; member 162 return sizeof(p->input.buffer) - p->input.offset; in sim_console_can_read() 169 size_t copy = sizeof(p->input.buffer) - p->input.offset; in sim_console_read() 174 memcpy(p->input.buffer + p->input.offset, buf, copy); in sim_console_read() 175 p->input.offset += copy; in sim_console_read() 229 if (sim_console->input.offset) { in HELPER() 230 io_done = sim_console->input.offset; in HELPER() 235 memmove(sim_console->input.buffer, in HELPER() 236 sim_console->input.buffer + io_done, in HELPER() 238 sim_console->input.offset -= io_done; in HELPER() [all …]
|
/qemu/tests/tcg/mips/user/ase/dsp/ |
H A D | test_dsp_r2_absq_s_qb.c | 6 int input, result, dsp; in main() local 9 input = 0x701BA35E; in main() 15 : "r"(input) in main() 20 input = 0x801BA35E; in main() 27 : "r"(input) in main()
|
/qemu/qapi/ |
H A D | compat.json | 11 # Policy for handling "funny" input. 52 # @deprecated-input: how to handle deprecated input (default 'accept') 57 # @unstable-input: how to handle unstable input (default 'accept') 66 'data': { '*deprecated-input': 'CompatPolicyInput', 68 '*unstable-input': 'CompatPolicyInput',
|
/qemu/tests/tcg/hexagon/ |
H A D | reg_mut.c | 26 #define WRITE_REG_NOCLOBBER(output, reg_name, input) \ argument 30 : "r"(input) \ 33 #define WRITE_REG_ENCODED(output, reg_name, input, encoding) \ argument 38 : "r"(input) \ 41 #define WRITE_REG_PAIR_ENCODED(output, reg_name, input, encoding) \ argument 46 : "r"(input) \
|
/qemu/trace/ |
H A D | meson.build | 20 input: trace_events_file, 26 input: trace_events_file, 32 input: trace_events_file, 42 input: trace_events_file, 47 input: trace_dtrace, 53 input: trace_dtrace, 64 input: trace_events_files, 73 input: trace_events_files, 78 input: trace_events_files,
|
/qemu/ui/ |
H A D | meson.build | 11 'input-keymap.c', 12 'input-legacy.c', 13 'input-barrier.c', 14 'input.c', 30 system_ss.add(files('input-linux.c', 'udmabuf.c')) 81 input: 'dbus-display1.xml', 87 input: xml, 130 'sdl2-input.c', 142 'spice-input.c', 177 output = 'input-keymap-@0@-to-@1@.c.inc'.format(e[0], e[1]) [all …]
|
/qemu/hw/gpio/ |
H A D | pcf8574.c | 44 uint8_t input; /* external electrical line state */ member 54 s->input = MAKE_64BIT_MASK(0, PORTS_COUNT); in pcf8574_reset() 61 return s->input & s->output; in pcf8574_line_state() 110 VMSTATE_UINT8(input, PCF8574State), 122 s->input |= (1 << line); in pcf8574_gpio_set() 124 s->input &= ~(1 << line); in pcf8574_gpio_set()
|
/qemu/qobject/ |
H A D | json-streamer.c | 31 void json_message_process_token(JSONLexer *lexer, GString *input, in json_message_process_token() argument 53 error_setg(&err, "JSON parse error, stray '%s'", input->str); in json_message_process_token() 69 if (parser->token_size + input->len + 1 > MAX_TOKEN_SIZE) { in json_message_process_token() 82 token = json_token(type, x, y, input); in json_message_process_token() 83 parser->token_size += input->len; in json_message_process_token()
|
/qemu/docs/system/ |
H A D | barrier.rst | 19 This protocol is enabled by adding an input-barrier object to QEMU. 23 input-barrier,id=<object-id>,name=<guest display name> 30 -object input-barrier,id=barrier0,name=VM-1 40 by removing and re-adding the input-barrier object, for instance 44 (qemu) object_add input-barrier,id=barrier0,name=VM-1
|
/qemu/hw/adc/ |
H A D | max111x.c | 74 measure = s->input[chan] - s->com; in max111x_write() 76 measure = s->input[chan] - s->input[chan ^ 1]; in max111x_write() 106 VMSTATE_ARRAY_INT32_UNSAFE(input, MAX111xState, inputs, 117 s->input[line] = value; in max111x_input_set() 149 s->input[i] = s->reset_input[i]; in max111x_reset()
|
H A D | npcm7xx_adc.c | 56 static uint32_t npcm7xx_adc_convert(uint32_t input, uint32_t ref) in npcm7xx_adc_convert() argument 60 result = input * (NPCM7XX_ADC_MAX_RESULT + 1) / ref; in npcm7xx_adc_convert() 97 uint32_t input = NPCM7XX_ADC_CON_MUX(s->con); in npcm7xx_adc_convert_done() local 101 if (input >= NPCM7XX_ADC_NUM_INPUTS) { in npcm7xx_adc_convert_done() 103 __func__, input); in npcm7xx_adc_convert_done() 106 s->data = npcm7xx_adc_convert(s->adci[input], ref); in npcm7xx_adc_convert_done()
|
/qemu/plugins/ |
H A D | meson.build | 6 input: files('qemu-plugins.symbols'), 24 input: files('qemu-plugins.symbols'), 30 input: win32_plugin_def, 32 command: [dlltool, '--input-def', '@INPUT@',
|
/qemu/target/hexagon/ |
H A D | meson.build | 104 # Generate the input to the QEMU decodetree.py script 176 input: normal_decode_generated, 185 input: hvx_decode_generated, 194 input: subinsn_a_decode_generated, 203 input: subinsn_l1_decode_generated, 212 input: subinsn_l2_decode_generated, 221 input: subinsn_s1_decode_generated, 230 input: subinsn_s2_decode_generated, 286 input: idef_parser_input_generated, 329 input: idef_generated_tcg[0], [all …]
|