/Linux-v6.1/drivers/xen/ |
D | manage.c | 224 struct xenbus_transaction xbt; in shutdown_handler() local 232 err = xenbus_transaction_start(&xbt); in shutdown_handler() 236 str = (char *)xenbus_read(xbt, "control", "shutdown", NULL); in shutdown_handler() 239 xenbus_transaction_end(xbt, 1); in shutdown_handler() 250 xenbus_write(xbt, "control", "shutdown", ""); in shutdown_handler() 252 err = xenbus_transaction_end(xbt, 0); in shutdown_handler() 273 struct xenbus_transaction xbt; in sysrq_handler() local 277 err = xenbus_transaction_start(&xbt); in sysrq_handler() 280 err = xenbus_scanf(xbt, "control", "sysrq", "%c", &sysrq_key); in sysrq_handler() 292 xenbus_transaction_end(xbt, 1); in sysrq_handler() [all …]
|
D | pvcalls-front.c | 1135 struct xenbus_transaction xbt; in pvcalls_front_probe() local 1210 ret = xenbus_transaction_start(&xbt); in pvcalls_front_probe() 1215 ret = xenbus_printf(xbt, dev->nodename, "version", "%u", 1); in pvcalls_front_probe() 1218 ret = xenbus_printf(xbt, dev->nodename, "ring-ref", "%d", bedata->ref); in pvcalls_front_probe() 1221 ret = xenbus_printf(xbt, dev->nodename, "port", "%u", in pvcalls_front_probe() 1225 ret = xenbus_transaction_end(xbt, 0); in pvcalls_front_probe() 1237 xenbus_transaction_end(xbt, 1); in pvcalls_front_probe()
|
D | pvcalls-back.c | 1034 struct xenbus_transaction xbt; in pvcalls_back_probe() local 1039 err = xenbus_transaction_start(&xbt); in pvcalls_back_probe() 1045 err = xenbus_printf(xbt, dev->nodename, "versions", "%s", in pvcalls_back_probe() 1052 err = xenbus_printf(xbt, dev->nodename, "max-page-order", "%u", in pvcalls_back_probe() 1059 err = xenbus_printf(xbt, dev->nodename, "function-calls", in pvcalls_back_probe() 1068 err = xenbus_transaction_end(xbt, abort); in pvcalls_back_probe()
|
/Linux-v6.1/drivers/gpu/drm/xen/ |
D | xen_drm_front_evtchnl.c | 248 static int evtchnl_publish(struct xenbus_transaction xbt, in evtchnl_publish() argument 257 ret = xenbus_printf(xbt, path, node_ring, "%u", evtchnl->gref); in evtchnl_publish() 264 ret = xenbus_printf(xbt, path, node_chnl, "%u", evtchnl->port); in evtchnl_publish() 275 struct xenbus_transaction xbt; in xen_drm_front_evtchnl_publish_all() local 282 ret = xenbus_transaction_start(&xbt); in xen_drm_front_evtchnl_publish_all() 290 ret = evtchnl_publish(xbt, &front_info->evt_pairs[conn].req, in xen_drm_front_evtchnl_publish_all() 297 ret = evtchnl_publish(xbt, &front_info->evt_pairs[conn].evt, in xen_drm_front_evtchnl_publish_all() 305 ret = xenbus_transaction_end(xbt, 0); in xen_drm_front_evtchnl_publish_all() 318 xenbus_transaction_end(xbt, 1); in xen_drm_front_evtchnl_publish_all()
|
/Linux-v6.1/sound/xen/ |
D | xen_snd_front_evtchnl.c | 335 static int evtchnl_publish(struct xenbus_transaction xbt, in evtchnl_publish() argument 344 ret = xenbus_printf(xbt, path, node_ring, "%u", channel->gref); in evtchnl_publish() 351 ret = xenbus_printf(xbt, path, node_chnl, "%u", channel->port); in evtchnl_publish() 363 struct xenbus_transaction xbt; in xen_snd_front_evtchnl_publish_all() local 367 ret = xenbus_transaction_start(&xbt); in xen_snd_front_evtchnl_publish_all() 383 ret = evtchnl_publish(xbt, in xen_snd_front_evtchnl_publish_all() 391 ret = evtchnl_publish(xbt, in xen_snd_front_evtchnl_publish_all() 403 ret = evtchnl_publish(xbt, in xen_snd_front_evtchnl_publish_all() 411 ret = evtchnl_publish(xbt, in xen_snd_front_evtchnl_publish_all() 420 ret = xenbus_transaction_end(xbt, 0); in xen_snd_front_evtchnl_publish_all() [all …]
|
/Linux-v6.1/drivers/block/xen-blkback/ |
D | xenbus.c | 554 int xen_blkbk_flush_diskcache(struct xenbus_transaction xbt, in xen_blkbk_flush_diskcache() argument 560 err = xenbus_printf(xbt, dev->nodename, "feature-flush-cache", in xen_blkbk_flush_diskcache() 568 static void xen_blkbk_discard(struct xenbus_transaction xbt, struct backend_info *be) in xen_blkbk_discard() argument 580 err = xenbus_printf(xbt, dev->nodename, in xen_blkbk_discard() 587 err = xenbus_printf(xbt, dev->nodename, in xen_blkbk_discard() 596 err = xenbus_printf(xbt, dev->nodename, in xen_blkbk_discard() 604 err = xenbus_printf(xbt, dev->nodename, "feature-discard", in xen_blkbk_discard() 610 int xen_blkbk_barrier(struct xenbus_transaction xbt, in xen_blkbk_barrier() argument 616 err = xenbus_printf(xbt, dev->nodename, "feature-barrier", in xen_blkbk_barrier() 888 struct xenbus_transaction xbt; in connect() local [all …]
|
D | blkback.c | 473 struct xenbus_transaction xbt; in xen_vbd_resize() local 483 err = xenbus_transaction_start(&xbt); in xen_vbd_resize() 488 err = xenbus_printf(xbt, dev->nodename, "sectors", "%llu", in xen_vbd_resize() 499 err = xenbus_printf(xbt, dev->nodename, "state", "%d", dev->state); in xen_vbd_resize() 505 err = xenbus_transaction_end(xbt, 0); in xen_vbd_resize() 512 xenbus_transaction_end(xbt, 1); in xen_vbd_resize()
|
D | common.h | 390 int xen_blkbk_flush_diskcache(struct xenbus_transaction xbt, 393 int xen_blkbk_barrier(struct xenbus_transaction xbt,
|
/Linux-v6.1/drivers/char/tpm/ |
D | xen-tpmfront.c | 253 struct xenbus_transaction xbt; in setup_ring() local 275 rv = xenbus_transaction_start(&xbt); in setup_ring() 281 rv = xenbus_printf(xbt, dev->nodename, in setup_ring() 288 rv = xenbus_printf(xbt, dev->nodename, "event-channel", "%u", in setup_ring() 295 rv = xenbus_printf(xbt, dev->nodename, "feature-protocol-v2", "1"); in setup_ring() 301 rv = xenbus_transaction_end(xbt, 0); in setup_ring() 314 xenbus_transaction_end(xbt, 1); in setup_ring()
|
/Linux-v6.1/net/9p/ |
D | trans_xen.c | 378 struct xenbus_transaction xbt; in xen_9pfs_front_probe() local 423 ret = xenbus_transaction_start(&xbt); in xen_9pfs_front_probe() 428 ret = xenbus_printf(xbt, dev->nodename, "version", "%u", 1); in xen_9pfs_front_probe() 431 ret = xenbus_printf(xbt, dev->nodename, "num-rings", "%u", in xen_9pfs_front_probe() 440 ret = xenbus_printf(xbt, dev->nodename, str, "%d", in xen_9pfs_front_probe() 446 ret = xenbus_printf(xbt, dev->nodename, str, "%u", in xen_9pfs_front_probe() 451 priv->tag = xenbus_read(xbt, dev->nodename, "tag", NULL); in xen_9pfs_front_probe() 456 ret = xenbus_transaction_end(xbt, 0); in xen_9pfs_front_probe() 473 xenbus_transaction_end(xbt, 1); in xen_9pfs_front_probe()
|
/Linux-v6.1/drivers/net/xen-netback/ |
D | xenbus.c | 1006 struct xenbus_transaction xbt; in netback_probe() local 1024 err = xenbus_transaction_start(&xbt); in netback_probe() 1030 err = xenbus_printf(xbt, dev->nodename, "feature-sg", "%d", sg); in netback_probe() 1036 err = xenbus_printf(xbt, dev->nodename, "feature-gso-tcpv4", in netback_probe() 1043 err = xenbus_printf(xbt, dev->nodename, "feature-gso-tcpv6", in netback_probe() 1051 err = xenbus_printf(xbt, dev->nodename, in netback_probe() 1060 err = xenbus_printf(xbt, dev->nodename, in netback_probe() 1068 err = xenbus_printf(xbt, dev->nodename, in netback_probe() 1079 err = xenbus_printf(xbt, dev->nodename, in netback_probe() 1087 err = xenbus_printf(xbt, dev->nodename, in netback_probe() [all …]
|
/Linux-v6.1/drivers/input/misc/ |
D | xen-kbdfront.c | 427 struct xenbus_transaction xbt; in xenkbd_connect_backend() local 447 ret = xenbus_transaction_start(&xbt); in xenkbd_connect_backend() 452 ret = xenbus_printf(xbt, dev->nodename, XENKBD_FIELD_RING_REF, "%lu", in xenkbd_connect_backend() 456 ret = xenbus_printf(xbt, dev->nodename, XENKBD_FIELD_RING_GREF, in xenkbd_connect_backend() 460 ret = xenbus_printf(xbt, dev->nodename, XENKBD_FIELD_EVT_CHANNEL, "%u", in xenkbd_connect_backend() 464 ret = xenbus_transaction_end(xbt, 0); in xenkbd_connect_backend() 476 xenbus_transaction_end(xbt, 1); in xenkbd_connect_backend()
|
/Linux-v6.1/drivers/video/fbdev/ |
D | xen-fbfront.c | 579 struct xenbus_transaction xbt; in xenfb_connect_backend() local 592 ret = xenbus_transaction_start(&xbt); in xenfb_connect_backend() 597 ret = xenbus_printf(xbt, dev->nodename, "page-ref", "%lu", in xenfb_connect_backend() 601 ret = xenbus_printf(xbt, dev->nodename, "event-channel", "%u", in xenfb_connect_backend() 605 ret = xenbus_printf(xbt, dev->nodename, "protocol", "%s", in xenfb_connect_backend() 609 ret = xenbus_printf(xbt, dev->nodename, "feature-update", "1"); in xenfb_connect_backend() 612 ret = xenbus_transaction_end(xbt, 0); in xenfb_connect_backend() 625 xenbus_transaction_end(xbt, 1); in xenfb_connect_backend()
|
/Linux-v6.1/drivers/tty/hvc/ |
D | hvc_xen.c | 406 struct xenbus_transaction xbt; in xencons_connect_backend() local 433 ret = xenbus_transaction_start(&xbt); in xencons_connect_backend() 438 ret = xenbus_printf(xbt, dev->nodename, "ring-ref", "%d", ref); in xencons_connect_backend() 441 ret = xenbus_printf(xbt, dev->nodename, "port", "%u", in xencons_connect_backend() 445 ret = xenbus_transaction_end(xbt, 0); in xencons_connect_backend() 457 xenbus_transaction_end(xbt, 1); in xencons_connect_backend()
|
/Linux-v6.1/drivers/net/ |
D | xen-netfront.c | 2074 struct xenbus_transaction *xbt, int write_hierarchical) in write_queue_xenstore_keys() argument 2102 err = xenbus_printf(*xbt, path, "tx-ring-ref", "%u", in write_queue_xenstore_keys() 2109 err = xenbus_printf(*xbt, path, "rx-ring-ref", "%u", in write_queue_xenstore_keys() 2121 err = xenbus_printf(*xbt, path, in write_queue_xenstore_keys() 2129 err = xenbus_printf(*xbt, path, in write_queue_xenstore_keys() 2136 err = xenbus_printf(*xbt, path, in write_queue_xenstore_keys() 2252 struct xenbus_transaction xbt; in talk_to_netback() local 2320 err = xenbus_transaction_start(&xbt); in talk_to_netback() 2329 err = xenbus_printf(xbt, dev->nodename, in talk_to_netback() 2338 err = write_queue_xenstore_keys(&info->queues[0], &xbt, 0); /* flat */ in talk_to_netback() [all …]
|
/Linux-v6.1/drivers/xen/xenbus/ |
D | xenbus_client.c | 218 struct xenbus_transaction xbt; in __xenbus_switch_state() local 228 err = xenbus_transaction_start(&xbt); in __xenbus_switch_state() 234 err = xenbus_scanf(xbt, dev->nodename, "state", "%d", ¤t_state); in __xenbus_switch_state() 238 err = xenbus_printf(xbt, dev->nodename, "state", "%d", state); in __xenbus_switch_state() 246 err = xenbus_transaction_end(xbt, abort); in __xenbus_switch_state()
|
/Linux-v6.1/drivers/block/ |
D | xen-blkfront.c | 1718 static int write_per_ring_nodes(struct xenbus_transaction xbt, in write_per_ring_nodes() argument 1727 err = xenbus_printf(xbt, dir, "ring-ref", "%u", rinfo->ring_ref[0]); in write_per_ring_nodes() 1737 err = xenbus_printf(xbt, dir, ring_ref_name, in write_per_ring_nodes() 1746 err = xenbus_printf(xbt, dir, "event-channel", "%u", rinfo->evtchn); in write_per_ring_nodes() 1755 xenbus_transaction_end(xbt, 1); in write_per_ring_nodes() 1773 struct xenbus_transaction xbt; in talk_to_blkback() local 1803 err = xenbus_transaction_start(&xbt); in talk_to_blkback() 1810 err = xenbus_printf(xbt, dev->nodename, "ring-page-order", "%u", in talk_to_blkback() 1820 err = write_per_ring_nodes(xbt, info->rinfo, dev->nodename); in talk_to_blkback() 1827 err = xenbus_printf(xbt, dev->nodename, "multi-queue-num-queues", "%u", in talk_to_blkback() [all …]
|
/Linux-v6.1/drivers/scsi/ |
D | xen-scsifront.c | 844 struct xenbus_transaction xbt; in scsifront_init_ring() local 855 err = xenbus_transaction_start(&xbt); in scsifront_init_ring() 859 err = xenbus_printf(xbt, dev->nodename, "ring-ref", "%u", in scsifront_init_ring() 866 err = xenbus_printf(xbt, dev->nodename, "event-channel", "%u", in scsifront_init_ring() 874 err = xenbus_transaction_end(xbt, 0); in scsifront_init_ring() 885 xenbus_transaction_end(xbt, 1); in scsifront_init_ring()
|
/Linux-v6.1/drivers/usb/host/ |
D | xen-hcd.c | 1165 struct xenbus_transaction xbt; in xenhcd_talk_to_backend() local 1173 err = xenbus_transaction_start(&xbt); in xenhcd_talk_to_backend() 1179 err = xenbus_printf(xbt, dev->nodename, "urb-ring-ref", "%u", in xenhcd_talk_to_backend() 1186 err = xenbus_printf(xbt, dev->nodename, "conn-ring-ref", "%u", in xenhcd_talk_to_backend() 1193 err = xenbus_printf(xbt, dev->nodename, "event-channel", "%u", in xenhcd_talk_to_backend() 1200 err = xenbus_transaction_end(xbt, 0); in xenhcd_talk_to_backend() 1211 xenbus_transaction_end(xbt, 1); in xenhcd_talk_to_backend()
|
/Linux-v6.1/drivers/xen/xen-pciback/ |
D | pci_stub.c | 666 struct xenbus_transaction xbt; in kill_domain_by_device() local 675 err = xenbus_transaction_start(&xbt); in kill_domain_by_device() 682 xenbus_printf(xbt, nodename, "aerState" , "aerfail"); in kill_domain_by_device() 683 err = xenbus_transaction_end(xbt, 0); in kill_domain_by_device()
|