/linux-6.12.1/drivers/xen/xenbus/ |
D | xenbus_probe_backend.c | 59 static int backend_bus_id(char bus_id[XEN_BUS_ID_SIZE], const char *nodename) in backend_bus_id() argument 65 type = strchr(nodename, '/'); in backend_bus_id() 73 devid = strrchr(nodename, '/') + 1; in backend_bus_id() 75 err = xenbus_gather(XBT_NIL, nodename, "frontend-id", "%i", &domid, in backend_bus_id() 117 if (add_uevent_var(env, "XENBUS_PATH=%s", xdev->nodename)) in xenbus_uevent_backend() 138 char *nodename; in xenbus_probe_backend_unit() local 141 nodename = kasprintf(GFP_KERNEL, "%s/%s", dir, name); in xenbus_probe_backend_unit() 142 if (!nodename) in xenbus_probe_backend_unit() 145 DPRINTK("%s\n", nodename); in xenbus_probe_backend_unit() 147 err = xenbus_probe_node(bus, type, nodename); in xenbus_probe_backend_unit() [all …]
|
D | xenbus_probe_frontend.c | 35 static int frontend_bus_id(char bus_id[XEN_BUS_ID_SIZE], const char *nodename) in frontend_bus_id() argument 37 nodename = strchr(nodename, '/'); in frontend_bus_id() 38 if (!nodename || strlen(nodename + 1) >= XEN_BUS_ID_SIZE) { in frontend_bus_id() 39 pr_warn("bad frontend %s\n", nodename); in frontend_bus_id() 43 strscpy(bus_id, nodename + 1, XEN_BUS_ID_SIZE); in frontend_bus_id() 56 char *nodename; in xenbus_probe_frontend() local 65 nodename = kasprintf(GFP_KERNEL, "%s/%s/%s", bus->root, type, name); in xenbus_probe_frontend() 66 if (!nodename) in xenbus_probe_frontend() 69 DPRINTK("%s", nodename); in xenbus_probe_frontend() 71 err = xenbus_probe_node(bus, type, nodename); in xenbus_probe_frontend() [all …]
|
D | xenbus_probe.c | 153 int err = xenbus_gather(XBT_NIL, xendev->nodename, in xenbus_read_otherend_details() 160 xendev->nodename); in xenbus_read_otherend_details() 168 xendev->nodename); in xenbus_read_otherend_details() 279 DPRINTK("%s", dev->nodename); in xenbus_dev_probe() 295 dev->nodename); in xenbus_dev_probe() 315 dev->nodename); in xenbus_dev_probe() 322 dev->nodename); in xenbus_dev_probe() 328 xenbus_dev_error(dev, err, "xenbus_dev_probe on %s", dev->nodename); in xenbus_dev_probe() 338 DPRINTK("%s", dev->nodename); in xenbus_dev_remove() 361 xenbus_read_driver_state(dev->nodename) == XenbusStateClosing) in xenbus_dev_remove() [all …]
|
D | xenbus.h | 44 int (*get_bus_id)(char bus_id[XEN_BUS_ID_SIZE], const char *nodename); 116 const char *nodename);
|
/linux-6.12.1/drivers/xen/xen-pciback/ |
D | xenbus.c | 152 if (xenbus_read_driver_state(pdev->xdev->nodename) != in xen_pcibk_attach() 218 err = xenbus_printf(XBT_NIL, pdev->xdev->nodename, str, in xen_pcibk_publish_pci_dev() 311 err = xenbus_scanf(XBT_NIL, pdev->xdev->nodename, in xen_pcibk_publish_pci_root() 326 err = xenbus_scanf(XBT_NIL, pdev->xdev->nodename, in xen_pcibk_publish_pci_root() 350 err = xenbus_printf(XBT_NIL, pdev->xdev->nodename, str, in xen_pcibk_publish_pci_root() 355 err = xenbus_printf(XBT_NIL, pdev->xdev->nodename, in xen_pcibk_publish_pci_root() 377 if (xenbus_read_driver_state(pdev->xdev->nodename) != state) in xen_pcibk_reconfigure() 380 err = xenbus_scanf(XBT_NIL, pdev->xdev->nodename, "num_devs", "%d", in xen_pcibk_reconfigure() 399 substate = xenbus_read_unsigned(pdev->xdev->nodename, state_str, in xen_pcibk_reconfigure() 414 err = xenbus_scanf(XBT_NIL, pdev->xdev->nodename, in xen_pcibk_reconfigure() [all …]
|
/linux-6.12.1/drivers/block/xen-blkback/ |
D | xenbus.c | 60 devpath = xenbus_read(XBT_NIL, dev->nodename, "dev", NULL); in blkback_name() 558 err = xenbus_printf(xbt, dev->nodename, "feature-flush-cache", in xen_blkbk_flush_diskcache() 574 if (!xenbus_read_unsigned(dev->nodename, "discard-enable", 1)) in xen_blkbk_discard() 578 err = xenbus_printf(xbt, dev->nodename, in xen_blkbk_discard() 585 err = xenbus_printf(xbt, dev->nodename, in xen_blkbk_discard() 594 err = xenbus_printf(xbt, dev->nodename, in xen_blkbk_discard() 602 err = xenbus_printf(xbt, dev->nodename, "feature-discard", in xen_blkbk_discard() 614 err = xenbus_printf(xbt, dev->nodename, "feature-barrier", in xen_blkbk_barrier() 653 err = xenbus_printf(XBT_NIL, dev->nodename, in xen_blkbk_probe() 659 dev->nodename, err); in xen_blkbk_probe() [all …]
|
/linux-6.12.1/fs/smb/client/ |
D | namespace.c | 62 cifs_build_devname(char *nodename, const char *prepath) in cifs_build_devname() argument 70 nodename += strspn(nodename, "\\"); in cifs_build_devname() 71 if (!*nodename) in cifs_build_devname() 75 unclen = strlen(nodename); in cifs_build_devname() 76 pos = nodename + unclen - 1; in cifs_build_devname() 102 memcpy(pos, nodename, unclen); in cifs_build_devname()
|
D | fs_context.c | 348 new_ctx->nodename = NULL; in smb3_fs_context_dup() 369 DUP_CTX_STR(nodename); in smb3_fs_context_dup() 865 if (new_ctx->nodename && in smb3_verify_reconfigure_ctx() 866 (!old_ctx->nodename || strcmp(new_ctx->nodename, old_ctx->nodename))) { in smb3_verify_reconfigure_ctx() 934 STEAL_STRING(cifs_sb, ctx, nodename); in smb3_reconfigure() 1643 char *nodename = utsname()->nodename; in smb3_init_fs_context() local 1650 strscpy(ctx->workstation_name, nodename, sizeof(ctx->workstation_name)); in smb3_init_fs_context() 1658 for (i = 0; i < strnlen(nodename, RFC1001_NAME_LEN); i++) in smb3_init_fs_context() 1659 ctx->source_rfc1001_name[i] = toupper(nodename[i]); in smb3_init_fs_context() 1752 kfree(ctx->nodename); in smb3_cleanup_fs_context_contents() [all …]
|
/linux-6.12.1/drivers/net/xen-netback/ |
D | xenbus.c | 231 err = xenbus_scanf(XBT_NIL, dev->nodename, "handle", "%li", &handle); in backend_create_xenvif() 291 pr_debug("%s -> %s\n", dev->nodename, xenbus_strstate(state)); in backend_switch_state() 476 ratestr = xenbus_read(XBT_NIL, dev->nodename, "rate", NULL); in xen_net_read_rate() 506 macstr = s = xenbus_read(XBT_NIL, dev->nodename, "mac", NULL); in xen_net_read_mac() 550 unsigned maxlen = strlen(dev->nodename) + sizeof("/rate"); in xen_register_credit_watch() 558 snprintf(node, maxlen, "%s/rate", dev->nodename); in xen_register_credit_watch() 669 str = xenbus_read(XBT_NIL, be->dev->nodename, "hotplug-status", &len); in hotplug_status_changed() 748 xenbus_dev_fatal(dev, err, "parsing %s/mac", dev->nodename); in connect() 828 "%s/%s", dev->nodename, "hotplug-status"); in connect() 985 xenbus_rm(XBT_NIL, dev->nodename, "hotplug-status"); in netback_remove() [all …]
|
/linux-6.12.1/include/uapi/linux/ |
D | utsname.h | 9 char nodename[9]; member 19 char nodename[65]; member 27 char nodename[__NEW_UTS_LEN + 1]; member
|
/linux-6.12.1/drivers/gpu/drm/xen/ |
D | xen_drm_front_cfg.c | 54 if (xenbus_read_unsigned(front_info->xb_dev->nodename, in xen_drm_front_cfg_card() 63 xb_dev->nodename, i); in xen_drm_front_cfg_card() 71 xb_dev->nodename); in xen_drm_front_cfg_card()
|
/linux-6.12.1/drivers/base/ |
D | devtmpfs.c | 204 static int handle_create(const char *nodename, umode_t mode, kuid_t uid, in handle_create() argument 211 dentry = kern_path_create(AT_FDCWD, nodename, &path, 0); in handle_create() 213 create_path(nodename); in handle_create() 214 dentry = kern_path_create(AT_FDCWD, nodename, &path, 0); in handle_create() 309 static int handle_remove(const char *nodename, struct device *dev) in handle_remove() argument 316 dentry = kern_path_locked(nodename, &parent); in handle_remove() 351 if (deleted && strchr(nodename, '/')) in handle_remove() 352 delete_path(nodename); in handle_remove()
|
/linux-6.12.1/fs/lockd/ |
D | mon.c | 46 const char *nodename; member 68 static struct rpc_clnt *nsm_create(struct net *net, const char *nodename) in nsm_create() argument 80 .nodename = nodename, in nsm_create() 102 .nodename = host->nodename, in nsm_mon_unmon() 111 clnt = nsm_create(host->net, host->nodename); in nsm_mon_unmon() 454 encode_nsm_string(xdr, argp->nodename); in encode_my_id()
|
/linux-6.12.1/drivers/macintosh/ |
D | windfarm_mpu.h | 79 char nodename[64]; in wf_get_mpu() local 88 sprintf(nodename, "/u3@0,f8000000/i2c@f8001000/cpuid@a%d", cpu ? 2 : 0); in wf_get_mpu() 89 np = of_find_node_by_path(nodename); in wf_get_mpu()
|
/linux-6.12.1/init/ |
D | version.c | 22 size_t bufsize = sizeof(init_uts_ns.name.nodename); in early_hostname() 26 arglen = strscpy(init_uts_ns.name.nodename, arg, bufsize); in early_hostname()
|
/linux-6.12.1/drivers/input/misc/ |
D | xen-kbdfront.c | 217 snprintf(info->phys, sizeof(info->phys), "xenbus/%s", dev->nodename); in xenkbd_probe() 237 ret = xenbus_write(XBT_NIL, dev->nodename, in xenkbd_probe() 286 ret = xenbus_write(XBT_NIL, dev->nodename, in xenkbd_probe() 451 ret = xenbus_printf(xbt, dev->nodename, XENKBD_FIELD_RING_REF, "%lu", in xenkbd_connect_backend() 455 ret = xenbus_printf(xbt, dev->nodename, XENKBD_FIELD_RING_GREF, in xenkbd_connect_backend() 459 ret = xenbus_printf(xbt, dev->nodename, XENKBD_FIELD_EVT_CHANNEL, "%u", in xenkbd_connect_backend()
|
/linux-6.12.1/kernel/ |
D | utsname_sysctl.c | 109 .data = init_uts_ns.name.nodename, 110 .maxlen = sizeof(init_uts_ns.name.nodename),
|
/linux-6.12.1/drivers/s390/char/ |
D | hmcdrv_dev.c | 95 char *nodename = NULL; in hmcdrv_dev_name() local 99 nodename = kasprintf(GFP_KERNEL, "%s", devname); in hmcdrv_dev_name() 106 return nodename; in hmcdrv_dev_name()
|
/linux-6.12.1/drivers/tty/hvc/ |
D | hvc_xen.c | 444 devid = dev->nodename[strlen(dev->nodename) - 1] - '0'; in xencons_connect_backend() 465 ret = xenbus_printf(xbt, dev->nodename, "ring-ref", "%d", ref); in xencons_connect_backend() 468 ret = xenbus_printf(xbt, dev->nodename, "port", "%u", in xencons_connect_backend() 496 devid = dev->nodename[strlen(dev->nodename) - 1] - '0'; in xencons_probe()
|
/linux-6.12.1/drivers/scsi/ |
D | xen-scsifront.c | 747 err = xenbus_printf(XBT_NIL, info->dev->nodename, in scsifront_sdev_configure() 765 err = xenbus_printf(XBT_NIL, info->dev->nodename, in scsifront_sdev_destroy() 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() 1002 pr_debug("%s: %s removed\n", __func__, dev->nodename); in scsifront_remove() 1021 pr_debug("%s: %s disconnect\n", __func__, dev->nodename); in scsifront_disconnect() 1091 err = xenbus_printf(XBT_NIL, dev->nodename, in scsifront_do_lun_hotplug() 1111 err = xenbus_printf(XBT_NIL, dev->nodename, in scsifront_do_lun_hotplug() 1177 if (xenbus_read_driver_state(dev->nodename) == in scsifront_backend_changed()
|
/linux-6.12.1/sound/xen/ |
D | xen_snd_front_cfg.c | 487 if (!xenbus_exists(XBT_NIL, xb_dev->nodename, node)) in xen_snd_front_cfg_card() 496 xb_dev->nodename); in xen_snd_front_cfg_card() 501 cfg_read_pcm_hw(xb_dev->nodename, NULL, &cfg->pcm_hw); in xen_snd_front_cfg_card() 512 &cfg->pcm_hw, xb_dev->nodename, i, stream_cnt); in xen_snd_front_cfg_card()
|
/linux-6.12.1/net/9p/ |
D | trans_xen.c | 431 ret = xenbus_printf(xbt, dev->nodename, "version", "%u", 1); in xen_9pfs_front_init() 434 ret = xenbus_printf(xbt, dev->nodename, "num-rings", "%u", in xen_9pfs_front_init() 444 ret = xenbus_printf(xbt, dev->nodename, str, "%d", in xen_9pfs_front_init() 450 ret = xenbus_printf(xbt, dev->nodename, str, "%u", in xen_9pfs_front_init() 455 priv->tag = xenbus_read(xbt, dev->nodename, "tag", NULL); in xen_9pfs_front_init()
|
/linux-6.12.1/tools/power/cpupower/bench/ |
D | parse.c | 77 len += strlen(sysdata.nodename) + strlen(sysdata.release); in prepare_output() 88 dirname, sysdata.nodename, sysdata.release, time(NULL)); in prepare_output()
|
/linux-6.12.1/drivers/xen/ |
D | xen-scsiback.c | 1052 if (xenbus_printf(XBT_NIL, info->dev->nodename, state, in scsiback_do_add_lun() 1058 err = xenbus_printf(XBT_NIL, info->dev->nodename, state, in scsiback_do_add_lun() 1070 if (xenbus_printf(XBT_NIL, info->dev->nodename, state, in scsiback_do_del_lun() 1093 err = xenbus_scanf(XBT_NIL, dev->nodename, state, "%u", &device_state); in scsiback_do_1lun_hotplug() 1099 val = xenbus_read(XBT_NIL, dev->nodename, str, NULL); in scsiback_do_1lun_hotplug() 1101 err = xenbus_printf(XBT_NIL, dev->nodename, state, in scsiback_do_1lun_hotplug() 1113 err = xenbus_scanf(XBT_NIL, dev->nodename, str, "%u:%u:%u:%u", in scsiback_do_1lun_hotplug() 1116 err = xenbus_printf(XBT_NIL, dev->nodename, state, in scsiback_do_1lun_hotplug() 1144 if (xenbus_printf(XBT_NIL, dev->nodename, state, in scsiback_do_1lun_hotplug() 1148 xenbus_printf(XBT_NIL, dev->nodename, state, in scsiback_do_1lun_hotplug() [all …]
|
/linux-6.12.1/drivers/pci/ |
D | xen-pcifront.c | 770 err = xenbus_printf(trans, pdev->xdev->nodename, in pcifront_publish_info() 773 err = xenbus_printf(trans, pdev->xdev->nodename, in pcifront_publish_info() 776 err = xenbus_printf(trans, pdev->xdev->nodename, in pcifront_publish_info() 859 if (xenbus_read_driver_state(pdev->xdev->nodename) != in pcifront_try_connect() 879 prev_state = xenbus_read_driver_state(pdev->xdev->nodename); in pcifront_try_disconnect() 898 if (xenbus_read_driver_state(pdev->xdev->nodename) == in pcifront_attach_devices() 912 state = xenbus_read_driver_state(pdev->xdev->nodename); in pcifront_detach_devices()
|