Home
last modified time | relevance | path

Searched refs:nodename (Results 1 – 25 of 96) sorted by relevance

1234

/Linux-v5.4/drivers/xen/xenbus/
Dxenbus_probe_backend.c59 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 …]
Dxenbus_probe.c147 int err = xenbus_gather(XBT_NIL, xendev->nodename, in xenbus_read_otherend_details()
154 xendev->nodename); in xenbus_read_otherend_details()
162 xendev->nodename); in xenbus_read_otherend_details()
215 DPRINTK("%s", dev->nodename); in xenbus_dev_probe()
231 dev->nodename); in xenbus_dev_probe()
242 dev->nodename); in xenbus_dev_probe()
248 xenbus_dev_error(dev, err, "xenbus_dev_probe on %s", dev->nodename); in xenbus_dev_probe()
259 DPRINTK("%s", dev->nodename); in xenbus_dev_remove()
278 DPRINTK("%s", dev->nodename); in xenbus_dev_shutdown()
283 __func__, dev->nodename, xenbus_strstate(dev->state)); in xenbus_dev_shutdown()
[all …]
Dxenbus_probe_frontend.c36 static int frontend_bus_id(char bus_id[XEN_BUS_ID_SIZE], const char *nodename) in frontend_bus_id() argument
38 nodename = strchr(nodename, '/'); in frontend_bus_id()
39 if (!nodename || strlen(nodename + 1) >= XEN_BUS_ID_SIZE) { in frontend_bus_id()
40 pr_warn("bad frontend %s\n", nodename); in frontend_bus_id()
44 strlcpy(bus_id, nodename + 1, XEN_BUS_ID_SIZE); in frontend_bus_id()
57 char *nodename; in xenbus_probe_frontend() local
66 nodename = kasprintf(GFP_KERNEL, "%s/%s/%s", bus->root, type, name); in xenbus_probe_frontend()
67 if (!nodename) in xenbus_probe_frontend()
70 DPRINTK("%s", nodename); in xenbus_probe_frontend()
72 err = xenbus_probe_node(bus, type, nodename); in xenbus_probe_frontend()
[all …]
Dxenbus.h44 int (*get_bus_id)(char bus_id[XEN_BUS_ID_SIZE], const char *nodename);
114 const char *nodename);
/Linux-v5.4/drivers/xen/xen-pciback/
Dxenbus.c151 if (xenbus_read_driver_state(pdev->xdev->nodename) != in xen_pcibk_attach()
217 err = xenbus_printf(XBT_NIL, pdev->xdev->nodename, str, in xen_pcibk_publish_pci_dev()
310 err = xenbus_scanf(XBT_NIL, pdev->xdev->nodename, in xen_pcibk_publish_pci_root()
325 err = xenbus_scanf(XBT_NIL, pdev->xdev->nodename, in xen_pcibk_publish_pci_root()
349 err = xenbus_printf(XBT_NIL, pdev->xdev->nodename, str, in xen_pcibk_publish_pci_root()
354 err = xenbus_printf(XBT_NIL, pdev->xdev->nodename, in xen_pcibk_publish_pci_root()
376 if (xenbus_read_driver_state(pdev->xdev->nodename) != 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-v5.4/drivers/block/xen-blkback/
Dxenbus.c60 devpath = xenbus_read(XBT_NIL, dev->nodename, "dev", NULL); in blkback_name()
525 err = xenbus_printf(xbt, dev->nodename, "feature-flush-cache", in xen_blkbk_flush_diskcache()
542 if (!xenbus_read_unsigned(dev->nodename, "discard-enable", 1)) in xen_blkbk_discard()
546 err = xenbus_printf(xbt, dev->nodename, in xen_blkbk_discard()
553 err = xenbus_printf(xbt, dev->nodename, in xen_blkbk_discard()
562 err = xenbus_printf(xbt, dev->nodename, in xen_blkbk_discard()
570 err = xenbus_printf(xbt, dev->nodename, "feature-discard", in xen_blkbk_discard()
581 err = xenbus_printf(xbt, dev->nodename, "feature-barrier", in xen_blkbk_barrier()
620 err = xenbus_printf(XBT_NIL, dev->nodename, in xen_blkbk_probe()
626 dev->nodename, err); in xen_blkbk_probe()
[all …]
/Linux-v5.4/include/uapi/linux/
Dutsname.h9 char nodename[9]; member
19 char nodename[65]; member
27 char nodename[__NEW_UTS_LEN + 1]; member
/Linux-v5.4/drivers/net/xen-netback/
Dxenbus.c208 xenbus_rm(XBT_NIL, dev->nodename, "hotplug-status"); in netback_remove()
256 err = xenbus_printf(xbt, dev->nodename, "feature-sg", "%d", sg); in netback_probe()
262 err = xenbus_printf(xbt, dev->nodename, "feature-gso-tcpv4", in netback_probe()
269 err = xenbus_printf(xbt, dev->nodename, "feature-gso-tcpv6", in netback_probe()
277 err = xenbus_printf(xbt, dev->nodename, in netback_probe()
286 err = xenbus_printf(xbt, dev->nodename, in netback_probe()
297 err = xenbus_printf(xbt, dev->nodename, in netback_probe()
305 err = xenbus_printf(xbt, dev->nodename, in netback_probe()
312 err = xenbus_printf(xbt, dev->nodename, in netback_probe()
332 err = xenbus_printf(XBT_NIL, dev->nodename, in netback_probe()
[all …]
/Linux-v5.4/fs/cifs/
Dcifs_dfs_ref.c63 cifs_build_devname(char *nodename, const char *prepath) in cifs_build_devname() argument
71 nodename += strspn(nodename, "\\"); in cifs_build_devname()
72 if (!*nodename) in cifs_build_devname()
76 unclen = strlen(nodename); in cifs_build_devname()
77 pos = nodename + unclen - 1; in cifs_build_devname()
103 memcpy(pos, nodename, unclen); in cifs_build_devname()
/Linux-v5.4/drivers/gpu/drm/xen/
Dxen_drm_front_cfg.c54 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-v5.4/drivers/base/
Ddevtmpfs.c209 static int handle_create(const char *nodename, umode_t mode, kuid_t uid, in handle_create() argument
216 dentry = kern_path_create(AT_FDCWD, nodename, &path, 0); in handle_create()
218 create_path(nodename); in handle_create()
219 dentry = kern_path_create(AT_FDCWD, nodename, &path, 0); in handle_create()
312 static int handle_remove(const char *nodename, struct device *dev) in handle_remove() argument
319 dentry = kern_path_locked(nodename, &parent); in handle_remove()
353 if (deleted && strchr(nodename, '/')) in handle_remove()
354 delete_path(nodename); in handle_remove()
/Linux-v5.4/drivers/macintosh/
Dwindfarm_mpu.h77 char nodename[64]; in wf_get_mpu() local
86 sprintf(nodename, "/u3@0,f8000000/i2c@f8001000/cpuid@a%d", cpu ? 2 : 0); in wf_get_mpu()
87 np = of_find_node_by_path(nodename); in wf_get_mpu()
/Linux-v5.4/fs/lockd/
Dmon.c46 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()
451 encode_nsm_string(xdr, argp->nodename); in encode_my_id()
/Linux-v5.4/drivers/input/misc/
Dxen-kbdfront.c217 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()
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()
/Linux-v5.4/kernel/
Dutsname_sysctl.c99 .data = init_uts_ns.name.nodename,
100 .maxlen = sizeof(init_uts_ns.name.nodename),
/Linux-v5.4/drivers/tty/hvc/
Dhvc_xen.c382 devid = dev->nodename[strlen(dev->nodename) - 1] - '0'; in xencons_connect_backend()
403 ret = xenbus_printf(xbt, dev->nodename, "ring-ref", "%d", ref); in xencons_connect_backend()
406 ret = xenbus_printf(xbt, dev->nodename, "port", "%u", in xencons_connect_backend()
433 devid = dev->nodename[strlen(dev->nodename) - 1] - '0'; in xencons_probe()
/Linux-v5.4/drivers/s390/char/
Dhmcdrv_dev.c95 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-v5.4/drivers/scsi/
Dxen-scsifront.c660 err = xenbus_printf(XBT_NIL, info->dev->nodename, in scsifront_sdev_configure()
678 err = xenbus_printf(XBT_NIL, info->dev->nodename, in scsifront_sdev_destroy()
786 err = xenbus_printf(xbt, dev->nodename, "ring-ref", "%u", in scsifront_init_ring()
793 err = xenbus_printf(xbt, dev->nodename, "event-channel", "%u", in scsifront_init_ring()
929 pr_debug("%s: %s removed\n", __func__, dev->nodename); in scsifront_remove()
950 pr_debug("%s: %s disconnect\n", __func__, dev->nodename); in scsifront_disconnect()
1017 err = xenbus_printf(XBT_NIL, dev->nodename, in scsifront_do_lun_hotplug()
1037 err = xenbus_printf(XBT_NIL, dev->nodename, in scsifront_do_lun_hotplug()
1103 if (xenbus_read_driver_state(dev->nodename) == in scsifront_backend_changed()
/Linux-v5.4/net/9p/
Dtrans_xen.c436 ret = xenbus_printf(xbt, dev->nodename, "version", "%u", 1); in xen_9pfs_front_probe()
439 ret = xenbus_printf(xbt, dev->nodename, "num-rings", "%u", in xen_9pfs_front_probe()
448 ret = xenbus_printf(xbt, dev->nodename, str, "%d", in xen_9pfs_front_probe()
454 ret = xenbus_printf(xbt, dev->nodename, str, "%u", in xen_9pfs_front_probe()
459 priv->tag = xenbus_read(xbt, dev->nodename, "tag", NULL); in xen_9pfs_front_probe()
/Linux-v5.4/sound/xen/
Dxen_snd_front_cfg.c487 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-v5.4/drivers/net/
Dxen-netfront.c1435 dev_dbg(&dev->dev, "%s\n", dev->nodename); in netfront_resume()
1446 macstr = s = xenbus_read(XBT_NIL, dev->nodename, "mac", NULL); in xen_net_read_mac()
1617 devid = strrchr(queue->info->xbdev->nodename, '/') + 1; in xennet_init_queue()
1674 pathsize = strlen(dev->nodename) + 10; in write_queue_xenstore_keys()
1682 dev->nodename, queue->id); in write_queue_xenstore_keys()
1684 path = (char *)dev->nodename; in write_queue_xenstore_keys()
1824 xenbus_dev_fatal(dev, err, "parsing %s/mac", dev->nodename); in talk_to_netback()
1859 err = xenbus_printf(xbt, dev->nodename, in talk_to_netback()
1882 err = xenbus_printf(xbt, dev->nodename, "request-rx-copy", "%u", in talk_to_netback()
1889 err = xenbus_printf(xbt, dev->nodename, "feature-rx-notify", "%d", 1); in talk_to_netback()
[all …]
/Linux-v5.4/tools/power/cpupower/bench/
Dparse.c77 len += strlen(sysdata.nodename) + strlen(sysdata.release); in prepare_output()
88 dirname, sysdata.nodename, sysdata.release, time(NULL)); in prepare_output()
/Linux-v5.4/drivers/nvme/target/
Dfcloop.c978 u64 nodename, portname; in fcloop_delete_local_port() local
982 ret = fcloop_parse_nm_options(dev, &nodename, &portname, buf); in fcloop_delete_local_port()
989 if (tlport->localport->node_name == nodename && in fcloop_delete_local_port()
1170 u64 nodename, portname; in fcloop_delete_remote_port() local
1174 ret = fcloop_parse_nm_options(dev, &nodename, &portname, buf); in fcloop_delete_remote_port()
1181 if (tmpport->node_name == nodename && in fcloop_delete_remote_port()
1265 u64 nodename, portname; in fcloop_delete_target_port() local
1269 ret = fcloop_parse_nm_options(dev, &nodename, &portname, buf); in fcloop_delete_target_port()
1276 if (tmpport->node_name == nodename && in fcloop_delete_target_port()
/Linux-v5.4/drivers/xen/
Dxen-scsiback.c1026 if (xenbus_printf(XBT_NIL, info->dev->nodename, state, in scsiback_do_add_lun()
1032 err = xenbus_printf(XBT_NIL, info->dev->nodename, state, in scsiback_do_add_lun()
1044 if (xenbus_printf(XBT_NIL, info->dev->nodename, state, in scsiback_do_del_lun()
1067 err = xenbus_scanf(XBT_NIL, dev->nodename, state, "%u", &device_state); in scsiback_do_1lun_hotplug()
1073 val = xenbus_read(XBT_NIL, dev->nodename, str, NULL); in scsiback_do_1lun_hotplug()
1075 err = xenbus_printf(XBT_NIL, dev->nodename, state, in scsiback_do_1lun_hotplug()
1087 err = xenbus_scanf(XBT_NIL, dev->nodename, str, "%u:%u:%u:%u", in scsiback_do_1lun_hotplug()
1090 err = xenbus_printf(XBT_NIL, dev->nodename, state, in scsiback_do_1lun_hotplug()
1118 if (xenbus_printf(XBT_NIL, dev->nodename, state, in scsiback_do_1lun_hotplug()
1122 xenbus_printf(XBT_NIL, dev->nodename, state, in scsiback_do_1lun_hotplug()
[all …]
/Linux-v5.4/drivers/char/
Dmisc.c261 if (c->nodename) in misc_devnode()
262 return kstrdup(c->nodename, GFP_KERNEL); in misc_devnode()

1234