/qemu/block/export/ |
H A D | fuse.c | 97 exp->common.ctx = blk_get_aio_context(exp->common.blk); in fuse_export_drained_end() 141 blk_set_dev_ops(exp->common.blk, &fuse_export_blk_dev_ops, exp); in fuse_export_create() 188 if (exp->writable) { in fuse_export_create() 203 ret = setup_fuse_export(exp, args->mountpoint, exp->allow_other, errp); in fuse_export_create() 268 exp->mounted = true; in setup_fuse_export() 298 ret = fuse_session_receive_buf(exp->fuse_session, &exp->fuse_buf); in read_from_fuse_export() 304 fuse_session_process_buf(exp->fuse_session, &exp->fuse_buf); in read_from_fuse_export() 329 if (exp->mountpoint) { in fuse_export_shutdown() 453 add_resize_perm = !exp->growable && !exp->writable; in fuse_do_truncate() 636 if (!exp->writable) { in fuse_write() [all …]
|
H A D | export.c | 52 BlockExport *exp; in blk_exp_find() local 56 return exp; in blk_exp_find() 191 return exp; in blk_exp_add() 198 if (exp) { in blk_exp_add() 200 g_free(exp); in blk_exp_add() 218 exp->drv->delete(exp); in blk_exp_delete_bh() 222 g_free(exp->id); in blk_exp_delete_bh() 223 g_free(exp); in blk_exp_delete_bh() 253 exp->drv->request_shutdown(exp); in blk_exp_request_shutdown() 266 BlockExport *exp; in blk_exp_has_type() local [all …]
|
H A D | vduse-blk.c | 206 BlockExport *exp = opaque; in vduse_blk_resize() local 207 VduseBlkExport *vblk_exp = container_of(exp, VduseBlkExport, export); in vduse_blk_resize() 239 BlockExport *exp = opaque; in vduse_blk_drained_begin() local 247 BlockExport *exp = opaque; in vduse_blk_drained_end() local 255 BlockExport *exp = opaque; in vduse_blk_drained_poll() local 308 vblk_exp->handler.blk = exp->blk; in vduse_blk_exp_create() 367 aio_set_fd_handler(exp->ctx, vduse_dev_get_fd(vblk_exp->dev), in vduse_blk_exp_create() 372 blk_set_dev_ops(exp->blk, &vduse_block_ops, exp); in vduse_blk_exp_create() 379 blk_set_disable_request_queuing(exp->blk, true); in vduse_blk_exp_create() 390 static void vduse_blk_exp_delete(BlockExport *exp) in vduse_blk_exp_delete() argument [all …]
|
H A D | vhost-user-blk-server.c | 257 static void vu_blk_exp_request_shutdown(BlockExport *exp) in vu_blk_exp_request_shutdown() argument 259 VuBlkExport *vexp = container_of(exp, VuBlkExport, export); in vu_blk_exp_request_shutdown() 317 static int vu_blk_exp_create(BlockExport *exp, BlockExportOptions *opts, in vu_blk_exp_create() argument 320 VuBlkExport *vexp = container_of(exp, VuBlkExport, export); in vu_blk_exp_create() 333 check_block_size(exp->id, "logical-block-size", logical_block_size, in vu_blk_exp_create() 347 vexp->handler.blk = exp->blk; in vu_blk_exp_create() 352 vu_blk_initialize_config(blk_bs(exp->blk), &vexp->blkcfg, in vu_blk_exp_create() 358 blk_set_dev_ops(exp->blk, &vu_blk_dev_ops, vexp); in vu_blk_exp_create() 362 blk_remove_aio_context_notifier(exp->blk, blk_aio_attached, in vu_blk_exp_create() 371 static void vu_blk_exp_delete(BlockExport *exp) in vu_blk_exp_delete() argument [all …]
|
/qemu/hw/pci/ |
H A D | pcie_sriov.c | 37 dev->exp.sriov_cap = offset; in pcie_sriov_pf_init() 38 dev->exp.sriov_pf.num_vfs = 0; in pcie_sriov_pf_init() 40 dev->exp.sriov_pf.vf = NULL; in pcie_sriov_pf_init() 78 dev->exp.sriov_pf.vfname = NULL; in pcie_sriov_pf_exit() 119 type = dev->exp.sriov_vf.pf->exp.sriov_pf.vf_bar_type[region_num]; in pcie_sriov_vf_register_bar() 148 dev->exp.sriov_vf.pf = pf; in register_vf() 215 g_free(dev->exp.sriov_pf.vf); in unregister_vfs() 216 dev->exp.sriov_pf.vf = NULL; in unregister_vfs() 217 dev->exp.sriov_pf.num_vfs = 0; in unregister_vfs() 303 return dev->exp.sriov_vf.pf; in pcie_sriov_get_pf() [all …]
|
H A D | pcie.c | 200 dev->exp.exp_cap = pos; in pcie_cap_init() 238 dev->exp.exp_cap = pos; in pcie_cap_v1_init() 297 uint32_t pos = dev->exp.exp_cap; in pcie_cap_get_type() 305 uint32_t pos = dev->exp.exp_cap; in pcie_cap_get_version() 330 uint32_t pos = dev->exp.exp_cap; in pcie_cap_deverr_init() 351 uint32_t pos = dev->exp.exp_cap; in pcie_cap_lnkctl_init() 403 !dev->exp.hpev_notified) { in hotplug_event_clear() 958 if (!dev->exp.exp_cap) { in pcie_cap_is_arifwd_enabled() 1130 dev->exp.ats_cap = offset; in pcie_ats_init() 1156 dev->exp.acs_cap = offset; in pcie_acs_init() [all …]
|
H A D | pcie_aer.c | 102 dev->exp.aer_cap = offset; in pcie_aer_init() 110 dev->exp.aer_log.log = g_malloc0(sizeof dev->exp.aer_log.log[0] * in pcie_aer_init() 137 if (dev->exp.aer_log.log_max > 0) { in pcie_aer_init() 171 g_free(dev->exp.aer_log.log); in pcie_aer_exit() 177 PCIEAERLog *aer_log = &dev->exp.aer_log; in pcie_aer_update_uncor_status() 316 aer_cap = dev->config + dev->exp.aer_cap; in pcie_aer_msg_root_port() 478 PCIEAERLog *aer_log = &dev->exp.aer_log; in pcie_aer_clear_error() 662 if (dev->exp.aer_cap) { in pcie_aer_inject_error() 664 aer_cap = dev->config + dev->exp.aer_cap; in pcie_aer_inject_error() 740 aer_log_clear_all_err(&dev->exp.aer_log); in pcie_aer_write_config() [all …]
|
H A D | pcie_port.c | 127 parent_obj.parent_obj.exp.aer_log.log_max, 147 if (!d || !pci_is_express(d) || !d->exp.exp_cap) { in pcie_find_port_by_pn() 172 if (!d || !pci_is_express(d) || !d->exp.exp_cap) { in pcie_find_port_first() 192 if (!d || !pci_is_express(d) || !d->exp.exp_cap) { in pcie_count_ds_ports()
|
/qemu/target/hexagon/ |
H A D | fma_emu.c | 239 if (b.exp > a.exp) { in accum_sub() 248 while (a.exp > b.exp) { in accum_sub() 258 while (a.exp > b.exp) { in accum_sub() 261 b = accum_norm_right(b, a.exp - b.exp); in accum_sub() 270 ret.exp = a.exp; in accum_sub() 292 if (b.exp > a.exp) { in accum_add() 301 while (a.exp > b.exp) { in accum_add() 311 while (a.exp > b.exp) { in accum_add() 314 b = accum_norm_right(b, a.exp - b.exp); in accum_add() 322 ret.exp = a.exp; in accum_add() [all …]
|
/qemu/nbd/ |
H A D | server.c | 415 const char *name = exp->name ? exp->name : ""; in nbd_negotiate_send_rep_list() 470 if (exp != client->contexts.exp) { in nbd_check_meta_export() 653 if (!exp) { in nbd_negotiate_handle_info() 751 client->exp = exp; in nbd_negotiate_handle_info() 1686 trace_nbd_blk_aio_detach(exp->name, exp->common.ctx); in blk_aio_detach() 2194 NBDExport *exp = client->exp; in nbd_co_send_sparse_read() local 2568 assert(client->contexts.exp == client->exp); in nbd_co_block_status_payload_read() 2571 request->contexts->exp = client->exp; in nbd_co_block_status_payload_read() 2838 NBDExport *exp = client->exp; in nbd_do_cmd_read() local 2889 NBDExport *exp = client->exp; in nbd_do_cmd_cache() local [all …]
|
/qemu/libdecnumber/dpd/ |
H A D | decimal32.c | 90 uInt comb, exp; /* .. */ in decimal32FromNumber() local 127 exp=0; /* low clamp */ in decimal32FromNumber() 133 exp=DECIMAL32_Ehigh; in decimal32FromNumber() 146 pad=exp-DECIMAL32_Ehigh; in decimal32FromNumber() 166 else comb=((exp>>3) & 0x18) | msd; in decimal32FromNumber() 206 exp=COMBEXP[comb]; /* .. */ in decimal32ToNumber() 208 if (exp==3) { /* is a special */ in decimal32ToNumber() 280 exp=COMBEXP[comb]; /* .. */ in decimal32ToString() 282 if (exp==3) { in decimal32ToString() 295 else exp=(exp<<6)+((sour>>20)&0x3f)-DECIMAL32_Bias; /* unbiased */ in decimal32ToString() [all …]
|
H A D | decimal128.c | 90 uInt comb, exp; /* .. */ in decimal128FromNumber() local 131 exp=0; /* low clamp */ in decimal128FromNumber() 137 exp=DECIMAL128_Ehigh; in decimal128FromNumber() 150 pad=exp-DECIMAL128_Ehigh; in decimal128FromNumber() 163 else comb=((exp>>9) & 0x18) | msd; in decimal128FromNumber() 230 exp=COMBEXP[comb]; /* .. */ in decimal128ToNumber() 232 if (exp==3) { /* is a special */ in decimal128ToNumber() 323 exp=COMBEXP[comb]; /* .. */ in decimal128ToString() 325 if (exp==3) { in decimal128ToString() 339 else exp=(exp<<12)+((sourhi>>14)&0xfff)-DECIMAL128_Bias; /* unbiased */ in decimal128ToString() [all …]
|
H A D | decimal64.c | 96 uInt comb, exp; /* .. */ in decimal64FromNumber() local 135 exp=0; /* low clamp */ in decimal64FromNumber() 141 exp=DECIMAL64_Ehigh; in decimal64FromNumber() 154 pad=exp-DECIMAL64_Ehigh; in decimal64FromNumber() 184 else comb=((exp>>5) & 0x18) | msd; in decimal64FromNumber() 241 exp=COMBEXP[comb]; /* .. */ in decimal64ToNumber() 243 if (exp==3) { /* is a special */ in decimal64ToNumber() 333 exp=COMBEXP[comb]; /* .. */ in decimal64ToString() 335 if (exp==3) { in decimal64ToString() 348 else exp=(exp<<8)+((sourhi>>18)&0xff)-DECIMAL64_Bias; in decimal64ToString() [all …]
|
/qemu/target/alpha/ |
H A D | vax_helper.c | 37 exp = (a.l >> 23) & 0xff; in float32_to_f() 40 if (exp == 255) { in float32_to_f() 43 } else if (exp == 0) { in float32_to_f() 52 if (exp >= 253) { in float32_to_f() 65 uint32_t exp, mant_sig; in f_to_float32() local 76 if (exp < 3) { in f_to_float32() 171 if (exp == 2047) { in float64_to_g() 174 } else if (exp == 0) { in float64_to_g() 183 if (exp >= 2045) { in float64_to_g() 196 uint64_t exp, mant_sig; in g_to_float64() local [all …]
|
H A D | fpu_helper.c | 113 uint32_t exp = (uint32_t)(val >> 52) & 0x7ff; in helper_ieee_input() local 116 if (exp == 0) { in helper_ieee_input() 121 } else if (exp == 0x7ff) { in helper_ieee_input() 131 uint32_t exp = (uint32_t)(val >> 52) & 0x7ff; in helper_ieee_input_cmp() local 134 if (exp == 0) { in helper_ieee_input_cmp() 139 } else if (exp == 0x7ff && frac) { in helper_ieee_input_cmp() 169 uint32_t exp; in float32_to_s_int() local 171 exp = (exp_msb << 10) | exp_low; in float32_to_s_int() 174 exp = 0x7ff; in float32_to_s_int() 178 exp |= 0x380; in float32_to_s_int() [all …]
|
/qemu/fpu/ |
H A D | softfloat-parts-addsub.c.inc | 20 int exp_diff = a->exp - b->exp; 26 a->exp = b->exp; 32 a->exp += 1; 38 int exp_diff = a->exp - b->exp; 45 a->exp = b->exp; 57 a->exp -= shift;
|
H A D | softfloat-parts.c.inc | 196 exp = p->exp + fmt->exp_bias; 250 exp = 0; 301 p->exp = exp; 432 a->exp += b->exp + 1; 543 p_widen.exp = a->exp + b->exp + 1; 554 c_widen.exp = c->exp; 566 a->exp = p_widen.exp; 606 a->exp -= b->exp + frac_div(a, b); 881 a->exp >>= 1; 1433 if (a->exp == b->exp) { [all …]
|
/qemu/include/hw/ppc/ |
H A D | fdt.h | 16 #define _FDT(exp) \ argument 18 int _ret = (exp); \ 21 #exp, fdt_strerror(_ret)); \
|
/qemu/include/fpu/ |
H A D | softfloat-types.h | 103 #define make_floatx80(exp, mant) ((floatx80) { mant, exp }) argument 104 #define make_floatx80_init(exp, mant) { .low = mant, .high = exp } argument
|
/qemu/include/block/ |
H A D | export.h | 85 void blk_exp_ref(BlockExport *exp); 86 void blk_exp_unref(BlockExport *exp); 87 void blk_exp_request_shutdown(BlockExport *exp);
|
/qemu/tests/tcg/hexagon/ |
H A D | hvx_histogram.c | 41 int exp = expect[i]; in check() local 42 if (res != exp) { in check() 44 i, res, exp); in check()
|
/qemu/target/arm/ |
H A D | vfp_helper.c | 618 if (*exp == 0) { in call_recip_estimate() 620 *exp = -1; in call_recip_estimate() 640 *exp = result_exp; in call_recip_estimate() 841 if (*exp == 0) { in recip_sqrt_estimate() 844 *exp -= 1; in recip_sqrt_estimate() 849 if (*exp & 1) { in recip_sqrt_estimate() 858 *exp = (exp_off - *exp) / 2; in recip_sqrt_estimate() 1171 exp = extract32(f, 23, 8); in frint_s() 1174 if (exp < 126 + intsize) { in frint_s() 1178 if (exp == 126 + intsize) { in frint_s() [all …]
|
/qemu/tests/tcg/s390x/ |
H A D | pack.c | 6 char exp[] = {0xaa, 0xaa, 0x00, 0x01, 0x23, 0x4c, 0xaa, 0xaa}; in main() local 15 if (data[i] != exp[i]) { in main()
|
H A D | vcksm.c | 22 S390Vector exp = {.d[0] = 0xdedd7f8eULL, .d[1] = 0ULL}; in main() local 28 assert(memcmp(&v1, &exp, sizeof(v1)) == 0); in main()
|
/qemu/hw/audio/ |
H A D | adlib.c | 68 int64_t exp[2]; member 136 int64_t exp; in timer_handler() local 147 exp = qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL) + interval; in timer_handler() 148 s->exp[n] = exp; in timer_handler()
|