| /openbmc/qemu/hw/block/ |
| H A D | cdrom.c | 43 uint8_t *q; in cdrom_read_toc() local 48 q = buf + 2; in cdrom_read_toc() 49 *q++ = 1; /* first session */ in cdrom_read_toc() 50 *q++ = 1; /* last session */ in cdrom_read_toc() 52 *q++ = 0; /* reserved */ in cdrom_read_toc() 53 *q++ = 0x14; /* ADR, control */ in cdrom_read_toc() 54 *q++ = 1; /* track number */ in cdrom_read_toc() 55 *q++ = 0; /* reserved */ in cdrom_read_toc() 57 *q++ = 0; /* reserved */ in cdrom_read_toc() 58 lba_to_msf(q, 0); in cdrom_read_toc() [all …]
|
| /openbmc/qemu/migration/ |
| H A D | multifd-qatzip.c | 54 QatzipData *q; in qatzip_send_setup() local 59 q = g_new0(QatzipData, 1); in qatzip_send_setup() 60 p->compress_data = q; in qatzip_send_setup() 68 ret = qzInit(&q->sess, true); in qatzip_send_setup() 82 ret = qzSetupSessionDeflate(&q->sess, ¶ms); in qatzip_send_setup() 93 q->in_len = MULTIFD_PACKET_SIZE; in qatzip_send_setup() 100 q->in_buf = qzMalloc(q->in_len, 0, PINNED_MEM); in qatzip_send_setup() 101 if (!q->in_buf) { in qatzip_send_setup() 102 q->in_buf = qzMalloc(q->in_len, 0, COMMON_MEM); in qatzip_send_setup() 103 if (!q->in_buf) { in qatzip_send_setup() [all …]
|
| /openbmc/qemu/hw/usb/ |
| H A D | hcd-ehci.c | 122 static int ehci_state_executing(EHCIQueue *q); 123 static int ehci_state_writeback(EHCIQueue *q); 124 static int ehci_state_advqueue(EHCIQueue *q); 301 static void ehci_trace_qh(EHCIQueue *q, hwaddr addr, EHCIqh *qh) in ehci_trace_qh() argument 304 trace_usb_ehci_qh_ptrs(q, addr, qh->next, in ehci_trace_qh() 319 static void ehci_trace_qtd(EHCIQueue *q, hwaddr addr, EHCIqtd *qtd) in ehci_trace_qtd() argument 322 trace_usb_ehci_qtd_ptrs(q, addr, qtd->next, qtd->altnext); in ehci_trace_qtd() 431 static bool ehci_verify_qh(EHCIQueue *q, EHCIqh *qh) in ehci_verify_qh() argument 435 if ((devaddr != get_field(q->qh.epchar, QH_EPCHAR_DEVADDR)) || in ehci_verify_qh() 436 (endp != get_field(q->qh.epchar, QH_EPCHAR_EP)) || in ehci_verify_qh() [all …]
|
| /openbmc/u-boot/fs/jffs2/ |
| H A D | mergesort.c | 15 struct b_node *p, *q, *e, **tail; in sort_list() local 23 for (p = q = list->listHead; p; p = q) { in sort_list() 25 for (psize = 0; q && psize < k; psize++) in sort_list() 26 q = q->next; in sort_list() 30 while (psize || (qsize && q)) { in sort_list() 33 ((qsize && q) && in sort_list() 34 list->listCompare(p, q))) { in sort_list() 36 e = q; in sort_list() 37 q = q->next; in sort_list()
|
| H A D | compr_rubin.c | 54 register unsigned long q; in rubin_do_decompress() local 65 q = 0; in rubin_do_decompress() 78 while ((q & UPPER_BIT_RUBIN) || ((p + q) <= UPPER_BIT_RUBIN)) { in rubin_do_decompress() 79 q &= ~UPPER_BIT_RUBIN; in rubin_do_decompress() 80 q <<= 1; in rubin_do_decompress() 99 if (rec_q < q + i0) { in rubin_do_decompress() 105 q += i0; in rubin_do_decompress()
|
| /openbmc/qemu/tcg/arm/ |
| H A D | tcg-target-con-set.h | 15 C_O0_I2(q, q) 17 C_O0_I3(q, q, q) 18 C_O0_I3(Q, p, q) 20 C_O0_I4(Q, p, q, q) 21 C_O1_I1(r, q) 27 C_O1_I2(r, q, q) 45 C_O2_I1(e, p, q) 46 C_O2_I2(e, p, q, q)
|
| /openbmc/qemu/tests/tcg/s390x/ |
| H A D | div.c | 8 int32_t b = 101, q, r; in test_dr() local 14 q = r1; in test_dr() 16 assert(q == -41); in test_dr() 24 uint32_t b = 101, q, r; in test_dlr() local 30 q = r1; in test_dlr() 32 assert(q == 42); in test_dlr() 40 int64_t b = 101, q, r; in test_dsgr() local 46 q = r1; in test_dsgr() 48 assert(q == -41); in test_dsgr() 56 uint64_t b = 101, q, r; in test_dlgr() local [all …]
|
| /openbmc/qemu/tests/tcg/riscv64/ |
| H A D | test-div.c | 5 long x, y, q, r; member 17 unsigned long x, y, q, r; member 34 long q, r; in main() local 38 : "=&r" (q), "=r" (r) in main() 41 assert(q == test_s[i].q); in main() 46 unsigned long q, r; in main() local 50 : "=&r" (q), "=r" (r) in main() 53 assert(q == test_u[i].q); in main()
|
| /openbmc/qemu/tcg/ |
| H A D | perf.c | 75 static const char *pretty_symbol(const struct debuginfo_query *q, size_t *len) in pretty_symbol() argument 80 if (!q->symbol) { in pretty_symbol() 81 tmp = snprintf(buf, sizeof(buf), "guest-0x%"PRIx64, q->address); in pretty_symbol() 88 if (!q->offset) { in pretty_symbol() 90 *len = strlen(q->symbol) + 1; in pretty_symbol() 92 return q->symbol; in pretty_symbol() 95 tmp = snprintf(buf, sizeof(buf), "%s+0x%"PRIx64, q->symbol, q->offset); in pretty_symbol() 103 const struct debuginfo_query *q) in write_perfmap_entry() argument 110 host_pc, host_size, pretty_symbol(q, NULL)); in write_perfmap_entry() 246 const struct debuginfo_query *q, in write_jr_code_debug_info() argument [all …]
|
| H A D | debuginfo.c | 49 void debuginfo_query(struct debuginfo_query *q, size_t n) in debuginfo_query() argument 64 dwfl_module = dwfl_addrmodule(dwfl, q[i].address); in debuginfo_query() 69 if (q[i].flags & DEBUGINFO_SYMBOL) { in debuginfo_query() 70 symbol = dwfl_module_addrinfo(dwfl_module, q[i].address, in debuginfo_query() 74 q[i].symbol = symbol; in debuginfo_query() 75 q[i].offset = dwfl_offset; in debuginfo_query() 79 if (q[i].flags & DEBUGINFO_LINE) { in debuginfo_query() 80 dwfl_line = dwfl_module_getsrc(dwfl_module, q[i].address); in debuginfo_query() 84 q[i].file = file; in debuginfo_query() 85 q[i].line = line; in debuginfo_query()
|
| /openbmc/qemu/hw/arm/ |
| H A D | smmuv3-internal.h | 222 #define Q_BASE(q) ((q)->base & SMMU_BASE_ADDR_MASK) argument 223 #define WRAP_MASK(q) (1 << (q)->log2size) argument 224 #define INDEX_MASK(q) (((1 << (q)->log2size)) - 1) argument 225 #define WRAP_INDEX_MASK(q) ((1 << ((q)->log2size + 1)) - 1) argument 227 #define Q_CONS(q) ((q)->cons & INDEX_MASK(q)) argument 228 #define Q_PROD(q) ((q)->prod & INDEX_MASK(q)) argument 230 #define Q_CONS_ENTRY(q) (Q_BASE(q) + (q)->entry_size * Q_CONS(q)) argument 231 #define Q_PROD_ENTRY(q) (Q_BASE(q) + (q)->entry_size * Q_PROD(q)) argument 233 #define Q_CONS_WRAP(q) (((q)->cons & WRAP_MASK(q)) >> (q)->log2size) argument 234 #define Q_PROD_WRAP(q) (((q)->prod & WRAP_MASK(q)) >> (q)->log2size) argument [all …]
|
| /openbmc/qemu/hw/input/ |
| H A D | ps2.c | 148 PS2Queue *q = &s->queue; in ps2_reset_queue() local 150 q->rptr = 0; in ps2_reset_queue() 151 q->wptr = 0; in ps2_reset_queue() 152 q->cwptr = -1; in ps2_reset_queue() 153 q->count = 0; in ps2_reset_queue() 163 PS2Queue *q = &s->queue; in ps2_queue_noirq() local 165 if (q->count >= PS2_QUEUE_SIZE) { in ps2_queue_noirq() 169 q->data[q->wptr] = b; in ps2_queue_noirq() 170 if (++q->wptr == PS2_BUFFER_SIZE) { in ps2_queue_noirq() 171 q->wptr = 0; in ps2_queue_noirq() [all …]
|
| /openbmc/u-boot/scripts/basic/ |
| H A D | fixdep.c | 225 const char *p, *q; in parse_config_file() local 240 for (q = p; q < map + len; q++) { in parse_config_file() 241 if (!(isalnum(*q) || *q == '_')) in parse_config_file() 247 if (!memcmp(q - 7, "_MODULE", 7)) in parse_config_file() 248 q -= 7; in parse_config_file() 249 if (q - p < 0) in parse_config_file() 259 if ((q - p == 10 && !memcmp(p, "IS_ENABLED(", 11)) || in parse_config_file() 260 (q - p == 10 && !memcmp(p, "IS_BUILTIN(", 11)) || in parse_config_file() 261 (q - p == 9 && !memcmp(p, "IS_MODULE(", 10)) || in parse_config_file() 262 (q - p == 3 && !memcmp(p, "VAL(", 4))) { in parse_config_file() [all …]
|
| /openbmc/qemu/target/arm/tcg/ |
| H A D | neon-shared.decode | 43 VCMLA 1111 110 rot:2 . 1 . .... .... 1000 . q:1 . 0 .... \ 46 VCADD 1111 110 rot:1 1 . 0 . .... .... 1000 . q:1 . 0 .... \ 49 VSDOT 1111 110 00 . 10 .... .... 1101 . q:1 . 0 .... \ 51 VUDOT 1111 110 00 . 10 .... .... 1101 . q:1 . 1 .... \ 53 VUSDOT 1111 110 01 . 10 .... .... 1101 . q:1 . 0 .... \ 55 VDOT_b16 1111 110 00 . 00 .... .... 1101 . q:1 . 0 .... \ 60 vm=%vm_sp vn=%vn_sp vd=%vd_dp q=0 62 vm=%vm_dp vn=%vn_dp vd=%vd_dp q=1 73 VFMA_b16 1111 110 0 0.11 .... .... 1000 . q:1 . 1 .... \ 76 VCMLA_scalar 1111 1110 0 . rot:2 .... .... 1000 . q:1 index:1 0 vm:4 \ [all …]
|
| H A D | neon-dp.decode | 40 &3same vm vn vd q size 42 @3same .... ... . . . size:2 .... .... .... . q:1 . . .... \ 46 &3same vm=%vm_dp vn=%vn_dp vd=%vd_dp q=0 54 @3same_fp .... ... . . . . . .... .... .... . q:1 . . .... \ 57 &3same vm=%vm_dp vn=%vn_dp vd=%vd_dp q=0 size=%3same_fp_size 67 @3same_logic .... ... . . . .. .... .... .... . q:1 .. .... \ 100 @3same_rev .... ... . . . size:2 .... .... .... . q:1 . . .... \ 149 &3same vm=%vm_dp vn=%vn_dp vd=%vd_dp size=0 q=1 189 &2reg_shift vm vd q shift size 197 @2reg_shr_d .... ... . . . ...... .... .... 1 q:1 . . .... \ [all …]
|
| /openbmc/qemu/target/i386/tcg/ |
| H A D | int_helper.c | 35 unsigned int num, den, q, r; in helper_divb_AL() local 42 q = (num / den); in helper_divb_AL() 43 if (q > 0xff) { in helper_divb_AL() 46 q &= 0xff; in helper_divb_AL() 48 env->regs[R_EAX] = (env->regs[R_EAX] & ~0xffff) | (r << 8) | q; in helper_divb_AL() 53 int num, den, q, r; in helper_idivb_AL() local 60 q = (num / den); in helper_idivb_AL() 61 if (q != (int8_t)q) { in helper_idivb_AL() 64 q &= 0xff; in helper_idivb_AL() 66 env->regs[R_EAX] = (env->regs[R_EAX] & ~0xffff) | (r << 8) | q; in helper_idivb_AL() [all …]
|
| /openbmc/qemu/util/ |
| H A D | int128.c | 39 static Int128 divrem128(Int128 u, Int128 v, Int128 *q) in divrem128() argument 50 *q = int128_make128(lo, hi); in divrem128() 81 *q = qq; in divrem128() 90 Int128 q; in int128_divu() local 91 divrem128(a, b, &q); in int128_divu() 92 return q; in int128_divu() 97 Int128 q; in int128_remu() local 98 return divrem128(a, b, &q); in int128_remu() 103 Int128 q; in int128_divs() local 115 divrem128(a, b, &q); in int128_divs() [all …]
|
| /openbmc/qemu/bsd-user/freebsd/ |
| H A D | os-proc.c | 39 char **q; in freebsd_exec_common() local 70 for (gp = guest_argp, q = argp; gp; gp += sizeof(abi_ulong), q++) { in freebsd_exec_common() 78 *q = lock_user_string(addr); in freebsd_exec_common() 79 if (*q == NULL) { in freebsd_exec_common() 83 total_size += strlen(*q) + 1; in freebsd_exec_common() 85 *q++ = NULL; in freebsd_exec_common() 87 for (gp = guest_envp, q = envp; gp; gp += sizeof(abi_ulong), q++) { in freebsd_exec_common() 95 *q = lock_user_string(addr); in freebsd_exec_common() 96 if (*q == NULL) { in freebsd_exec_common() 100 total_size += strlen(*q) + 1; in freebsd_exec_common() [all …]
|
| /openbmc/qemu/tests/qemu-iotests/ |
| H A D | 271.out | 8 write -q -P PATTERN 0 1k 10 write -q -P PATTERN 3k 512 12 write -q -P PATTERN 5k 1k 14 write -q -P PATTERN 6k 2k 16 write -q -P PATTERN 8k 6k 18 write -q -P PATTERN 15k 4k 20 write -q -P PATTERN 32k 1k 22 write -q -P PATTERN 63k 4k 25 write -q -z 2k 2k 27 write -q -z 0 64k [all …]
|
| /openbmc/qemu/tests/tcg/multiarch/ |
| H A D | prot-none.c | 12 void break_here(void *q) in break_here() argument 19 void *p, *q; in main() local 25 q = p + pagesize - 1; in main() 26 strcpy(q, "42"); in main() 31 break_here(q); in main() 36 assert(strcmp(q, "24") == 0); in main()
|
| /openbmc/u-boot/lib/ |
| H A D | vsprintf.c | 51 static char *put_dec_trunc(char *buf, unsigned q) in put_dec_trunc() argument 54 d1 = (q>>4) & 0xf; in put_dec_trunc() 55 d2 = (q>>8) & 0xf; in put_dec_trunc() 56 d3 = (q>>12); in put_dec_trunc() 58 d0 = 6*(d3 + d2 + d1) + (q & 0xf); in put_dec_trunc() 59 q = (d0 * 0xcd) >> 11; in put_dec_trunc() 60 d0 = d0 - 10*q; in put_dec_trunc() 62 d1 = q + 9*d3 + 5*d2 + d1; in put_dec_trunc() 64 q = (d1 * 0xcd) >> 11; in put_dec_trunc() 65 d1 = d1 - 10*q; in put_dec_trunc() [all …]
|
| H A D | tiny-printf.c | 88 static char *put_dec_trunc(char *buf, unsigned int q) in put_dec_trunc() argument 91 d1 = (q >> 4) & 0xf; in put_dec_trunc() 92 d2 = (q >> 8) & 0xf; in put_dec_trunc() 93 d3 = (q >> 12); in put_dec_trunc() 95 d0 = 6 * (d3 + d2 + d1) + (q & 0xf); in put_dec_trunc() 96 q = (d0 * 0xcd) >> 11; in put_dec_trunc() 97 d0 = d0 - 10 * q; in put_dec_trunc() 99 d1 = q + 9 * d3 + 5 * d2 + d1; in put_dec_trunc() 101 q = (d1 * 0xcd) >> 11; in put_dec_trunc() 102 d1 = d1 - 10 * q; in put_dec_trunc() [all …]
|
| /openbmc/qemu/hw/m68k/ |
| H A D | next-kbd.c | 104 KBDQueue *q = &s->queue; in kbd_read_long() local 112 if (q->count > 0) { in kbd_read_long() 113 key = q->data[q->rptr]; in kbd_read_long() 114 if (++q->rptr == KBD_QUEUE_SIZE) { in kbd_read_long() 115 q->rptr = 0; in kbd_read_long() 118 q->count--; in kbd_read_long() 225 KBDQueue *q = &s->queue; in nextkbd_put_keycode() local 227 if (q->count >= KBD_QUEUE_SIZE) { in nextkbd_put_keycode() 231 q->data[q->wptr] = keycode; in nextkbd_put_keycode() 232 if (++q->wptr == KBD_QUEUE_SIZE) { in nextkbd_put_keycode() [all …]
|
| /openbmc/qemu/target/riscv/ |
| H A D | m128_helper.c | 29 Int128 q; in HELPER() local 35 q = int128_divu(int128_make128(ul, uh), int128_make128(vl, vh)); in HELPER() 36 ql = int128_getlo(q); in HELPER() 37 qh = int128_gethi(q); in HELPER() 69 Int128 q; in HELPER() local 80 q = int128_divs(int128_make128(ul, uh), int128_make128(vl, vh)); in HELPER() 81 ql = int128_getlo(q); in HELPER() 82 qh = int128_gethi(q); in HELPER()
|
| /openbmc/openbmc/meta-raspberrypi/dynamic-layers/multimedia-layer/recipes-multimedia/libcamera-apps/libcamera-apps/ |
| H A D | 0002-Revert-Support-compressed-pixel-formats-when-saving-.patch | 133 -static uint16_t dequantize(uint16_t q, int qmode) 138 - return (q < 320) ? 16 * q : 32 * (q - 160); 141 - return 64 * q; 144 - return 128 * q; 147 - return (q < 94) ? 256 * q : std::min(0xFFFF, 512 * (q - 47)); 153 - int q[4]; 164 - q[1] = field0; 165 - q[2] = field1 + 384; 169 - q[1] = (field1 >= 64) ? field0 : field0 + 64 - field1; 170 - q[2] = (field1 >= 64) ? field0 + field1 - 64 : field0; [all …]
|