Home
last modified time | relevance | path

Searched refs:devpath (Results 1 – 25 of 62) sorted by relevance

123

/openbmc/linux/drivers/parisc/
H A Dpdc_stable.c91 struct pdc_module_path devpath; /* device path in parisc representation */ member
141 struct pdc_module_path *devpath; in pdcspath_fetch() local
146 devpath = &entry->devpath; in pdcspath_fetch()
149 entry, devpath, entry->addr); in pdcspath_fetch()
152 if (pdc_stable_read(entry->addr, devpath, sizeof(*devpath)) != PDC_OK) in pdcspath_fetch()
158 entry->dev = hwpath_to_device((struct hardware_path *)devpath); in pdcspath_fetch()
182 struct pdc_module_path *devpath; in pdcspath_store() local
186 devpath = &entry->devpath; in pdcspath_store()
194 device_to_hwpath(entry->dev, (struct hardware_path *)devpath); in pdcspath_store()
199 entry, devpath, entry->addr); in pdcspath_store()
[all …]
/openbmc/qemu/util/
H A Dchardev_open.c62 g_autofree char *devpath = NULL; in open_cdev_robust() local
68 devpath = g_strdup_printf("/dev/char/%u:%u", major(cdev), minor(cdev)); in open_cdev_robust()
69 return open_cdev_internal(devpath, cdev); in open_cdev_robust()
72 int open_cdev(const char *devpath, dev_t cdev) in open_cdev() argument
76 fd = open_cdev_internal(devpath, cdev); in open_cdev()
/openbmc/linux/lib/
H A Dkobject_uevent.c198 const char *msg = NULL, *devpath; in kobject_synth_uevent() local
226 devpath = kobject_get_path(kobj, GFP_KERNEL); in kobject_synth_uevent()
228 devpath ?: "unknown device", in kobject_synth_uevent()
230 kfree(devpath); in kobject_synth_uevent()
281 const char *devpath) in alloc_uevent_skb() argument
289 len = strlen(action_string) + strlen(devpath) + 2; in alloc_uevent_skb()
296 sprintf(scratch, "%s@%s", action_string, devpath); in alloc_uevent_skb()
311 const char *devpath) in uevent_net_broadcast_untagged() argument
326 skb = alloc_uevent_skb(env, action_string, devpath); in uevent_net_broadcast_untagged()
345 const char *devpath) in uevent_net_broadcast_tagged() argument
[all …]
H A Dkobject.c477 const char *devpath = NULL; in kobject_rename() local
490 devpath = kobject_get_path(kobj, GFP_KERNEL); in kobject_rename()
491 if (!devpath) { in kobject_rename()
495 devpath_string = kmalloc(strlen(devpath) + 15, GFP_KERNEL); in kobject_rename()
500 sprintf(devpath_string, "DEVPATH_OLD=%s", devpath); in kobject_rename()
526 kfree(devpath); in kobject_rename()
542 const char *devpath = NULL; in kobject_move() local
556 devpath = kobject_get_path(kobj, GFP_KERNEL); in kobject_move()
557 if (!devpath) { in kobject_move()
561 devpath_string = kmalloc(strlen(devpath) + 15, GFP_KERNEL); in kobject_move()
[all …]
/openbmc/openbmc-tools/adcapp/src/
H A Dadcifc.c46 char devpath[50]; in sys_get_adc_vol() local
55 snprintf(devpath, sizeof(devpath), "/sys/bus/iio/devices/iio:device%d", in sys_get_adc_vol()
57 retval = adc_directory_check(devpath); in sys_get_adc_vol()
62 devpath, argp->channel_num); in sys_get_adc_vol()
/openbmc/phosphor-hwmon/
H A Dmeson.options33 'override-with-devpath',
35 description: 'Only use the devpath of the device even if OFPath exists',
39 'always-use-devpath',
42 description: 'Only use the devpath for all devices.',
H A Dreadd.cpp37 std::string devpath = ""; in main() local
42 app.add_option("-o,--dev-path", devpath, "device path to monitor"); in main()
48 auto path = devpath; in main()
H A Dstart_hwmon.sh.in4 devpath=$2
9 path=$devpath
H A Dmeson.build116 if get_option('always-use-devpath').allowed()
124 'OVERRIDE_WITH_DEVPATH': ' '.join(get_option('override-with-devpath')),
/openbmc/linux/tools/usb/usbip/src/
H A Dusbip_bind.c135 const char *devpath; in bind_device() local
144 devpath = udev_device_get_devpath(dev); in bind_device()
148 if (strstr(devpath, USBIP_VHCI_DRV_NAME)) { in bind_device()
150 devpath, USBIP_VHCI_DRV_NAME); in bind_device()
H A Dusbip_list.c181 const char *devpath; in list_devices() local
205 devpath = udev_device_get_devpath(dev); in list_devices()
206 if (strstr(devpath, USBIP_VHCI_DRV_NAME)) { in list_devices()
208 devpath, USBIP_VHCI_DRV_NAME); in list_devices()
/openbmc/qemu/system/
H A Dbootdevice.c211 char *devpath = NULL, *s = NULL, *d, *bootpath; in get_boot_device_path() local
214 devpath = qdev_get_fw_dev_path(dev); in get_boot_device_path()
215 assert(devpath); in get_boot_device_path()
233 devpath ? devpath : "", in get_boot_device_path()
235 g_free(devpath); in get_boot_device_path()
/openbmc/linux/drivers/media/common/siano/
H A Dsmscoreapi.c410 char devpath[32]; member
427 static struct smscore_registry_entry_t *smscore_find_registry(char *devpath) in smscore_find_registry() argument
437 if (!strncmp(entry->devpath, devpath, sizeof(entry->devpath))) { in smscore_find_registry()
445 strscpy(entry->devpath, devpath, sizeof(entry->devpath)); in smscore_find_registry()
453 int smscore_registry_getmode(char *devpath) in smscore_registry_getmode() argument
457 entry = smscore_find_registry(devpath); in smscore_registry_getmode()
467 static enum sms_device_type_st smscore_registry_gettype(char *devpath) in smscore_registry_gettype() argument
471 entry = smscore_find_registry(devpath); in smscore_registry_gettype()
480 static void smscore_registry_setmode(char *devpath, int mode) in smscore_registry_setmode() argument
484 entry = smscore_find_registry(devpath); in smscore_registry_setmode()
[all …]
/openbmc/linux/drivers/media/usb/siano/
H A Dsmsusb.c450 usb_make_path(dev->udev, params.devpath, sizeof(params.devpath)); in smsusb_init_device()
503 char devpath[32]; in smsusb_probe() local
552 snprintf(devpath, sizeof(devpath), "usb\\%d-%s", in smsusb_probe()
553 udev->bus->busnum, udev->devpath); in smsusb_probe()
555 devpath); in smsusb_probe()
557 udev, smscore_registry_getmode(devpath), in smsusb_probe()
/openbmc/linux/drivers/usb/core/
H A Dusb.c691 dev->devpath[0] = '0'; in usb_alloc_dev()
699 if (parent->devpath[0] == '0') { in usb_alloc_dev()
700 snprintf(dev->devpath, sizeof dev->devpath, in usb_alloc_dev()
705 snprintf(dev->devpath, sizeof dev->devpath, in usb_alloc_dev()
706 "%s.%d", parent->devpath, port1); in usb_alloc_dev()
717 dev_set_name(&dev->dev, "%d-%s", bus->busnum, dev->devpath); in usb_alloc_dev()
/openbmc/linux/fs/pstore/
H A Dblk.c206 const char *devpath) in __register_pstore_blk() argument
212 psblk_file = filp_open(devpath, O_RDWR | O_DSYNC | O_NOATIME | O_EXCL, 0); in __register_pstore_blk()
215 pr_err("failed to open '%s': %d!\n", devpath, ret); in __register_pstore_blk()
220 pr_err("'%s' is not block device!\n", devpath); in __register_pstore_blk()
/openbmc/debug-trigger/
H A Dmain.c537 char devpath[PATH_MAX]; in main() local
544 strncpy(devpath, argv[optind], sizeof(devpath)); in main()
545 devpath[PATH_MAX - 1] = '\0'; in main()
546 devid = basename(devpath); in main()
/openbmc/qemu/hw/core/
H A Dloader.c1068 char devpath[100]; in rom_add_file() local
1113 snprintf(devpath, sizeof(devpath), "/rom@%s", fw_file_name); in rom_add_file()
1116 data = rom_set_mr(rom, OBJECT(fw_cfg), devpath, true); in rom_add_file()
1125 snprintf(devpath, sizeof(devpath), "/rom@%s", file); in rom_add_file()
1127 snprintf(devpath, sizeof(devpath), "/rom@" HWADDR_FMT_plx, addr); in rom_add_file()
1131 add_boot_device_path(bootindex, NULL, devpath); in rom_add_file()
1159 char devpath[100]; in rom_add_blob() local
1163 snprintf(devpath, sizeof(devpath), "/rom@%s", fw_file_name); in rom_add_blob()
1165 snprintf(devpath, sizeof(devpath), "/ram@%s", fw_file_name); in rom_add_blob()
1169 data = rom_set_mr(rom, OBJECT(fw_cfg), devpath, read_only); in rom_add_blob()
/openbmc/linux/Documentation/admin-guide/
H A Dsysfs-rules.rst47 - devpath (``/devices/pci0000:00/0000:00:1d.1/usb2/2-2/2-2:1.0``)
54 - all elements of a devpath must be real directories. Symlinks
57 That way the devpath to the device matches the devpath of the
59 - using or exposing symlink values as elements in a devpath string
64 - a directory name, identical to the last element of the devpath
164 Never depend on a specific parent device position in the devpath,
/openbmc/qemu/include/qemu/
H A Dchardev_open.h15 int open_cdev(const char *devpath, dev_t cdev);
/openbmc/qemu/qga/
H A Dcommands-linux.c37 static int dev_major_minor(const char *devpath, in dev_major_minor() argument
45 if (stat(devpath, &st) < 0) { in dev_major_minor()
46 slog("failed to stat device file '%s': %s", devpath, strerror(errno)); in dev_major_minor()
637 static void build_guest_fsinfo_for_device(char const *devpath,
691 static bool is_disk_virtual(const char *devpath, Error **errp) in is_disk_virtual() argument
693 g_autofree char *syspath = realpath(devpath, NULL); in is_disk_virtual()
696 error_setg_errno(errp, errno, "realpath(\"%s\")", devpath); in is_disk_virtual()
703 static void build_guest_fsinfo_for_device(char const *devpath, in build_guest_fsinfo_for_device() argument
711 syspath = realpath(devpath, NULL); in build_guest_fsinfo_for_device()
714 error_setg_errno(errp, errno, "realpath(\"%s\")", devpath); in build_guest_fsinfo_for_device()
[all …]
/openbmc/phosphor-fan-presence/presence/
H A Djson_parser.cpp299 auto devpath = method["devpath"].get<std::string>(); in getGpio() local
305 fanIndex, physpath, devpath, key); in getGpio()
322 {"DEVPATH", devpath}, in getGpio()
/openbmc/linux/security/apparmor/
H A Dmount.c367 char *buffer, const struct path *devpath, char *devbuffer, in match_mnt() argument
377 AA_BUG(devpath && !devbuffer); in match_mnt()
382 if (devpath) { in match_mnt()
383 error = aa_path_name(devpath, path_flags(profile, devpath), in match_mnt()
/openbmc/openbmc/meta-phosphor/recipes-phosphor/sensors/
H A Dphosphor-hwmon_git.bb18 PACKAGECONFIG[use-dev-path] = "-Dalways-use-devpath=enabled, -Dalways-use-devpath=disabled"
/openbmc/linux/drivers/block/xen-blkback/
H A Dxenbus.c57 char *devpath, *devname; in blkback_name() local
60 devpath = xenbus_read(XBT_NIL, dev->nodename, "dev", NULL); in blkback_name()
61 if (IS_ERR(devpath)) in blkback_name()
62 return PTR_ERR(devpath); in blkback_name()
64 devname = strstr(devpath, "/dev/"); in blkback_name()
68 devname = devpath; in blkback_name()
71 kfree(devpath); in blkback_name()

123