Lines Matching defs:device
10 * parameters. One device will be created for each parameter. Syntax:
12 * virtio_uml.device=<socket>:<virtio_id>[:<platform_id>]
15 * <virtio_id> := virtio device id (as in virtio_ids.h)
16 * <platform_id> := (optional) platform device id
19 * virtio_uml.device=/var/uml.socket:1
139 * to a device (e.g. a net device) and need to handle a simulation
1107 static void virtio_uml_release_dev(struct device *d)
1150 * We can't remove the device from the devicetree so the only thing we
1156 /* Platform device */
1179 ret = of_property_read_u32(np, "virtio-device-id",
1207 vu_dev->vdev.id.device = pdata->virtio_device_id;
1252 /* Command line device list */
1254 static void vu_cmdline_release_dev(struct device *d)
1258 static struct device vu_cmdline_parent = {
1266 static int vu_unregister_cmdline_device(struct device *dev, void *data)
1290 static int vu_cmdline_set(const char *device, const struct kernel_param *kp)
1292 const char *ids = strchr(device, ':');
1299 if (!ids || ids == device)
1312 pr_err("Failed to register parent device!\n");
1319 socket_path = kmemdup_nul(device, ids - device, GFP_KERNEL);
1326 pr_info("Registering device virtio-uml.%d id=%d at %s\n",
1347 static int vu_cmdline_get_device(struct device *dev, void *data)
1373 device_param_cb(device, &vu_cmdline_param_ops, NULL, S_IRUSR);
1375 "virtio_uml.device=<socket>:<virtio_id>[:<platform_id>]\n"
1376 " Configure a virtio device over a vhost-user socket.\n"
1377 " See virtio_ids.h for a list of possible virtio device id values.\n"