Home
last modified time | relevance | path

Searched refs:cookie (Results 1 – 25 of 30) sorted by relevance

12

/qemu/block/
H A Daccounting.c110 cookie->bytes = bytes; in block_acct_start()
111 cookie->start_time_ns = qemu_clock_get_ns(clock_type); in block_acct_start()
112 cookie->type = type; in block_acct_start()
214 assert(cookie->type < BLOCK_MAX_IOTYPE); in block_account_one_io()
216 if (cookie->type == BLOCK_ACCT_NONE) { in block_account_one_io()
222 stats->failed_ops[cookie->type]++; in block_account_one_io()
224 stats->nr_bytes[cookie->type] += cookie->bytes; in block_account_one_io()
225 stats->nr_ops[cookie->type]++; in block_account_one_io()
241 cookie->type = BLOCK_ACCT_NONE; in block_account_one_io()
246 block_account_one_io(stats, cookie, false); in block_acct_done()
[all …]
H A Dnbd.c53 #define COOKIE_TO_INDEX(cookie) ((cookie) - 1) argument
428 if (s->reply.cookie == cookie) { in nbd_receive_replies()
433 if (s->reply.cookie != 0) { in nbd_receive_replies()
461 assert(s->reply.cookie == 0); in nbd_receive_replies()
477 ind2 = COOKIE_TO_INDEX(s->reply.cookie); in nbd_receive_replies()
483 if (s->reply.cookie == cookie) { in nbd_receive_replies()
529 request->cookie = INDEX_TO_COOKIE(i); in nbd_co_send_request()
857 int i = COOKIE_TO_INDEX(cookie); in nbd_co_do_receive_one_chunk()
873 assert(s->reply.cookie == cookie); in nbd_co_do_receive_one_chunk()
957 s->reply.cookie = 0; in nbd_co_receive_one_chunk()
[all …]
H A Dcurl.c116 char *cookie; member
476 if (s->cookie) { in curl_init_state()
687 const char *cookie; in curl_open() local
740 cookie = qemu_opt_get(opts, CURL_BLOCK_OPT_COOKIE); in curl_open()
743 if (cookie && cookie_secret) { in curl_open()
750 s->cookie = qcrypto_secret_lookup_as_utf8(cookie_secret, errp); in curl_open()
751 if (!s->cookie) { in curl_open()
755 s->cookie = g_strdup(cookie); in curl_open()
880 g_free(s->cookie); in curl_open()
988 g_free(s->cookie); in curl_close()
[all …]
/qemu/nbd/
H A Dtrace-events34 …uint64_t cookie, uint16_t flags, uint16_t type, const char *name) "Sending request to server: { .f…
35 …int32_t error, const char *errname, uint64_t cookie) "Got simple reply: { .error = %" PRId32 " (%s…
36 …t char *name, uint64_t cookie, uint32_t length) "Got reply chunk header: { flags = 0x%" PRIx16 ", …
67 nbd_co_send_simple_reply(uint64_t cookie, uint32_t error, const char *errname, uint64_t len) "Send …
68 nbd_co_send_chunk_done(uint64_t cookie) "Send structured reply done: cookie = %" PRIu64
69 …d_co_send_chunk_read(uint64_t cookie, uint64_t offset, void *data, uint64_t size) "Send structured…
70 …bd_co_send_chunk_read_hole(uint64_t cookie, uint64_t offset, uint64_t size) "Send structured read …
71 …co_send_extents(uint64_t cookie, unsigned int extents, uint32_t id, uint64_t length, int last) "Se…
72 …d_co_send_chunk_error(uint64_t cookie, int err, const char *errname, const char *msg) "Send struct…
74 nbd_co_receive_request_decode_type(uint64_t cookie, uint16_t type, const char *name) "Decoding type…
[all …]
H A Dserver.c1524 request->cookie = ldq_be_p(buf + 8); in nbd_receive_request()
2042 uint64_t cookie) in set_be_simple_reply() argument
2046 stq_be_p(&reply->cookie, cookie); in set_be_simple_reply()
2068 trace_nbd_co_send_simple_reply(request->cookie, nbd_err, in nbd_co_send_simple_reply()
2070 set_be_simple_reply(&reply, nbd_err, request->cookie); in nbd_co_send_simple_reply()
2101 stq_be_p(&chunk->cookie, request->cookie); in set_be_chunk()
2111 stq_be_p(&chunk->cookie, request->cookie); in set_be_chunk()
2125 trace_nbd_co_send_chunk_done(request->cookie); in nbd_co_send_chunk_done()
2172 trace_nbd_co_send_chunk_error(request->cookie, nbd_err, in nbd_co_send_chunk_error()
2224 trace_nbd_co_send_chunk_read_hole(request->cookie, in nbd_co_send_sparse_read()
[all …]
H A Dclient.c1382 trace_nbd_send_request(request->from, request->len, request->cookie, in nbd_send_request()
1388 stq_be_p(buf + 8, request->cookie); in nbd_send_request()
1423 reply->cookie = be64_to_cpu(reply->cookie); in nbd_receive_simple_reply()
1457 chunk->structured.cookie = be64_to_cpu(chunk->structured.cookie); in nbd_receive_reply_chunk_header()
1561 reply->cookie); in nbd_receive_reply()
1578 reply->structured.cookie, in nbd_receive_reply()
/qemu/include/block/
H A Dnbd.h74 uint64_t cookie; member
86 uint64_t cookie; member
94 uint64_t cookie; /* request handle */ member
102 uint64_t cookie; /* request handle */ member
119 uint64_t cookie; member
122 QEMU_BUILD_BUG_ON(offsetof(NBDReply, simple.cookie) !=
123 offsetof(NBDReply, cookie));
124 QEMU_BUILD_BUG_ON(offsetof(NBDReply, structured.cookie) !=
125 offsetof(NBDReply, cookie));
126 QEMU_BUILD_BUG_ON(offsetof(NBDReply, extended.cookie) !=
[all …]
H A Daccounting.h110 void block_acct_start(BlockAcctStats *stats, BlockAcctCookie *cookie,
112 void block_acct_done(BlockAcctStats *stats, BlockAcctCookie *cookie);
113 void block_acct_failed(BlockAcctStats *stats, BlockAcctCookie *cookie);
/qemu/hw/display/
H A Dqxl-render.c178 QXLCookie *cookie; in qxl_render_update() local
193 cookie = qxl_cookie_new(QXL_COOKIE_TYPE_RENDER_UPDATE_AREA, in qxl_render_update()
195 qxl_set_rect_to_surface(qxl, &cookie->u.render.area); in qxl_render_update()
196 qxl_spice_update_area(qxl, 0, &cookie->u.render.area, NULL, in qxl_render_update()
197 0, 1 /* clear_dirty_region */, QXL_ASYNC, cookie); in qxl_render_update()
209 void qxl_render_update_area_done(PCIQXLDevice *qxl, QXLCookie *cookie) in qxl_render_update_area_done() argument
212 trace_qxl_render_update_area_done(cookie); in qxl_render_update_area_done()
216 g_free(cookie); in qxl_render_update_area_done()
H A Dqxl.c160 assert(cookie != NULL); in qxl_spice_update_area()
179 QXLCookie *cookie; in qxl_spice_destroy_surface_wait() local
185 cookie->u.surface_id = id; in qxl_spice_destroy_surface_wait()
889 if (!cookie) { in interface_async_complete_io()
893 if (cookie && current_async != cookie->io) { in interface_async_complete_io()
969 switch (cookie->type) { in interface_async_complete()
972 g_free(cookie); in interface_async_complete()
982 g_free(cookie); in interface_async_complete()
1700 QXLCookie *cookie = NULL; local
1723 cookie->u.area = update;
[all …]
H A Dqxl.h176 qxl_async_io async, QXLCookie *cookie);
192 void qxl_render_update_area_done(PCIQXLDevice *qxl, QXLCookie *cookie);
H A Dtrace-events65 …nterface_async_complete_io(int qid, uint32_t current_async, void *cookie) "%d current=%d cookie=%p"
121 qxl_render_update_area_done(void *cookie) "%p"
/qemu/ui/
H A Dspice-display.c57 QXLCookie *cookie; in qxl_cookie_new() local
59 cookie = g_malloc0(sizeof(*cookie)); in qxl_cookie_new()
60 cookie->type = type; in qxl_cookie_new()
61 cookie->io = io; in qxl_cookie_new()
62 return cookie; in qxl_cookie_new()
637 switch (cookie->type) { in interface_async_complete()
656 g_free(cookie); in interface_async_complete()
798 QXLCookie *cookie; in qemu_spice_gl_monitor_config() local
809 cookie->u.data = config; in qemu_spice_gl_monitor_config()
846 uint64_t cookie; in spice_gl_refresh() local
[all …]
/qemu/net/
H A Dl2tpv3.c130 bool cookie; member
193 if (s->cookie) { in l2tpv3_form_header()
309 uint64_t cookie; in l2tpv3_verify_header() local
320 if (s->cookie) { in l2tpv3_verify_header()
322 cookie = ldq_be_p(buf + s->cookie_offset); in l2tpv3_verify_header()
324 cookie = ldl_be_p(buf + s->cookie_offset) & 0xffffffffULL; in l2tpv3_verify_header()
326 if (cookie != s->rx_cookie) { in l2tpv3_verify_header()
556 s->cookie = true; in net_init_l2tpv3()
563 s->cookie = false; in net_init_l2tpv3()
600 if (s->cookie) { in net_init_l2tpv3()
/qemu/pc-bios/s390-ccw/
H A Dvirtio.c65 static long virtio_notify(SubChannelId schid, int vq_idx, long cookie) in virtio_notify() argument
68 vq_idx, cookie); in virtio_notify()
130 vr->cookie = 0; in vring_init()
137 vr->cookie = virtio_notify(vr->schid, vr->id, vr->cookie); in vring_notify()
138 return vr->cookie >= 0; in vring_notify()
H A Dvirtio.h107 long cookie; member
/qemu/hw/net/rocker/
H A Drocker_of_dpa.c130 uint64_t cookie; member
363 g_hash_table_remove(of_dpa->flow_tbl, &flow->cookie); in of_dpa_flow_del()
366 static OfDpaFlow *of_dpa_flow_alloc(uint64_t cookie) in of_dpa_flow_alloc() argument
373 flow->cookie = cookie; in of_dpa_flow_alloc()
1856 OfDpaFlow *flow = of_dpa_flow_find(of_dpa, cookie); in of_dpa_cmd_flow_add()
1863 flow = of_dpa_flow_alloc(cookie); in of_dpa_cmd_flow_add()
1877 OfDpaFlow *flow = of_dpa_flow_find(of_dpa, cookie); in of_dpa_cmd_flow_mod()
1888 OfDpaFlow *flow = of_dpa_flow_find(of_dpa, cookie); in of_dpa_cmd_flow_del()
1934 uint64_t cookie; in of_dpa_flow_cmd() local
1948 return of_dpa_cmd_flow_del(of_dpa, cookie); in of_dpa_flow_cmd()
[all …]
H A Drocker_hw.h128 uint64_t cookie; member
/qemu/qapi/
H A Drocker.json213 # @cookie: flow unique cookie ID
226 'data': { 'cookie': 'uint64', 'hits': 'uint64', 'key': 'RockerOfDpaFlowKey',
H A Dnet.json314 # @txcookie: 32 or 64 bit transmit cookie
316 # @rxcookie: 32 or 64 bit receive cookie
/qemu/system/
H A Ddma-helpers.c317 void dma_acct_start(BlockBackend *blk, BlockAcctCookie *cookie, in dma_acct_start() argument
320 block_acct_start(blk_get_stats(blk), cookie, sg->size, type); in dma_acct_start()
/qemu/docs/system/
H A Ddevice-url-syntax.rst.inc171 ``cookie``
172 Send this cookie (it can also be a list of cookies separated by
/qemu/include/sysemu/
H A Ddma.h309 void dma_acct_start(BlockBackend *blk, BlockAcctCookie *cookie,
/qemu/
H A Dqemu-io-cmds.c1708 BlockAcctCookie cookie; in aio_flush_f() local
1709 block_acct_start(blk_get_stats(blk), &cookie, 0, BLOCK_ACCT_FLUSH); in aio_flush_f()
1711 block_acct_done(blk_get_stats(blk), &cookie); in aio_flush_f()
/qemu/linux-user/
H A Dfd-trans.c1727 ev->cookie = tswap32(ev->cookie); in host_to_target_data_inotify()

12