/openbmc/linux/block/ |
H A D | early-lookup.c | 46 static int __init devt_from_partuuid(const char *uuid_str, dev_t *devt) in devt_from_partuuid() argument 80 *devt = part_devt(dev_to_disk(dev), in devt_from_partuuid() 83 *devt = dev->devt; in devt_from_partuuid() 112 static int __init devt_from_partlabel(const char *label, dev_t *devt) in devt_from_partlabel() argument 119 *devt = dev->devt; in devt_from_partlabel() 126 dev_t devt = MKDEV(0, 0); in blk_lookup_devt() local 141 devt = MKDEV(MAJOR(dev->devt), in blk_lookup_devt() 142 MINOR(dev->devt) + partno); in blk_lookup_devt() 144 devt = part_devt(disk, partno); in blk_lookup_devt() 145 if (devt) in blk_lookup_devt() [all …]
|
H A D | genhd.c | 163 void (*probe)(dev_t devt); 215 void (*probe)(dev_t devt)) in __register_blkdev() argument 455 ddev->devt = MKDEV(disk->major, disk->first_minor); in device_add_disk() 507 bdev_add(disk->part0, ddev->devt); in device_add_disk() 766 static bool blk_probe_dev(dev_t devt) in blk_probe_dev() argument 768 unsigned int major = MAJOR(devt); in blk_probe_dev() 774 (*n)->probe(devt); in blk_probe_dev() 783 void blk_request_module(dev_t devt) in blk_request_module() argument 787 if (blk_probe_dev(devt)) in blk_request_module() 790 error = request_module("block-major-%d-%d", MAJOR(devt), MINOR(devt)); in blk_request_module() [all …]
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-graphics/directfb/directfb/ |
H A D | 0001-Fix-build-on-32bit-arches-with-64bit-time_t.patch | 34 DFBInputEvent *devt ) 36 devt->flags = DIEF_TIMESTAMP; 37 - devt->timestamp = levt->time; 38 + devt->timestamp.tv_sec = levt->input_event_sec; 39 + devt->timestamp.tv_usec = levt->input_event_usec; 46 …devt->flags = DIEF_TIMESTAMP | (dfb_config->linux_input_touch_abs ? DIEF_AXISABS : DIEF_AXISRE… 47 - devt->timestamp = levt->time; 48 + devt->timestamp.tv_sec = levt->input_event_sec; 49 + devt->timestamp.tv_usec = levt->input_event_usec; 50 devt->type = DIET_AXISMOTION; [all …]
|
/openbmc/linux/fs/fuse/ |
H A D | cuse.c | 78 static struct list_head *cuse_conntbl_head(dev_t devt) in cuse_conntbl_head() argument 80 return &cuse_conntbl[(MAJOR(devt) + MINOR(devt)) % CUSE_CONNTBL_LEN]; in cuse_conntbl_head() 116 dev_t devt = inode->i_cdev->dev; in cuse_open() local 122 list_for_each_entry(pos, cuse_conntbl_head(devt), list) in cuse_open() 123 if (pos->dev->devt == devt) { in cuse_open() 329 dev_t devt; in cuse_process_init_reply() local 348 devt = MKDEV(arg->dev_major, arg->dev_minor); in cuse_process_init_reply() 349 if (!MAJOR(devt)) in cuse_process_init_reply() 350 rc = alloc_chrdev_region(&devt, MINOR(devt), 1, devinfo.name); in cuse_process_init_reply() 352 rc = register_chrdev_region(devt, 1, devinfo.name); in cuse_process_init_reply() [all …]
|
/openbmc/linux/drivers/char/xilinx_hwicap/ |
H A D | xilinx_hwicap.c | 609 dev_t devt; in hwicap_setup() local 637 devt = MKDEV(XHWICAP_MAJOR, XHWICAP_MINOR + id); in hwicap_setup() 664 drvdata->devt = devt; in hwicap_setup() 686 retval = cdev_add(&drvdata->cdev, devt, 1); in hwicap_setup() 692 device_create(&icap_class, dev, devt, NULL, "%s%d", DRIVER_NAME, id); in hwicap_setup() 816 device_destroy(&icap_class, drvdata->devt); in hwicap_drv_remove() 823 probed_devices[MINOR(dev->devt)-XHWICAP_MINOR] = 0; in hwicap_drv_remove() 850 dev_t devt; in hwicap_module_init() local 858 devt = MKDEV(XHWICAP_MAJOR, XHWICAP_MINOR); in hwicap_module_init() 859 retval = register_chrdev_region(devt, in hwicap_module_init() [all …]
|
/openbmc/linux/drivers/dax/ |
H A D | super.c | 405 dev_t devt = *(dev_t *) data; in dax_test() local 407 return inode->i_rdev == devt; in dax_test() 412 dev_t devt = *(dev_t *) data; in dax_set() local 414 inode->i_rdev = devt; in dax_set() 418 static struct dax_device *dax_dev_get(dev_t devt) in dax_dev_get() argument 423 inode = iget5_locked(dax_superblock, hash_32(devt + DAXFS_MAGIC, 31), in dax_dev_get() 424 dax_test, dax_set, &devt); in dax_dev_get() 445 dev_t devt; in alloc_dax() local 455 devt = MKDEV(MAJOR(dax_devt), minor); in alloc_dax() 456 dax_dev = dax_dev_get(devt); in alloc_dax()
|
/openbmc/linux/drivers/net/ |
H A D | macvtap.c | 155 dev_t devt; in macvtap_device_event() local 175 devt = MKDEV(MAJOR(macvtap_major), vlantap->tap.minor); in macvtap_device_event() 176 classdev = device_create(&macvtap_class, &dev->dev, devt, in macvtap_device_event() 192 devt = MKDEV(MAJOR(macvtap_major), vlantap->tap.minor); in macvtap_device_event() 193 device_destroy(&macvtap_class, devt); in macvtap_device_event()
|
/openbmc/linux/drivers/net/ipvlan/ |
H A D | ipvtap.c | 142 dev_t devt; in ipvtap_device_event() local 162 devt = MKDEV(MAJOR(ipvtap_major), vlantap->tap.minor); in ipvtap_device_event() 163 classdev = device_create(&ipvtap_class, &dev->dev, devt, in ipvtap_device_event() 179 devt = MKDEV(MAJOR(ipvtap_major), vlantap->tap.minor); in ipvtap_device_event() 180 device_destroy(&ipvtap_class, devt); in ipvtap_device_event()
|
/openbmc/linux/arch/powerpc/platforms/book3s/ |
H A D | vas-api.c | 47 dev_t devt; member 610 rc = alloc_chrdev_region(&coproc_device.devt, 1, 1, name); in vas_register_coproc_api() 617 MAJOR(coproc_device.devt), MINOR(coproc_device.devt)); in vas_register_coproc_api() 632 devno = MKDEV(MAJOR(coproc_device.devt), 0); in vas_register_coproc_api() 656 unregister_chrdev_region(coproc_device.devt, 1); in vas_register_coproc_api() 665 devno = MKDEV(MAJOR(coproc_device.devt), 0); in vas_unregister_coproc_api() 669 unregister_chrdev_region(coproc_device.devt, 1); in vas_unregister_coproc_api()
|
/openbmc/linux/drivers/fsi/ |
H A D | i2cr-scom.c | 105 ret = fsi_get_new_minor(fsi_dev, fsi_dev_scom, &scom->dev.devt, &didx); in i2cr_scom_probe() 113 fsi_free_minor(scom->dev.devt); in i2cr_scom_probe() 123 fsi_free_minor(scom->dev.devt); in i2cr_scom_remove()
|
/openbmc/linux/sound/usb/ |
H A D | media.c | 76 MAJOR(pcm_dev->devt), in snd_media_stream_init() 77 MINOR(pcm_dev->devt)); in snd_media_stream_init() 180 MAJOR(ctl_dev->devt), in snd_media_mixer_init() 181 MINOR(ctl_dev->devt)); in snd_media_mixer_init()
|
/openbmc/linux/drivers/rpmsg/ |
H A D | rpmsg_ctrl.c | 134 ida_simple_remove(&rpmsg_minor_ida, MINOR(dev->devt)); in rpmsg_ctrldev_release_device() 162 dev->devt = MKDEV(MAJOR(rpmsg_major), ret); in rpmsg_ctrldev_probe() 184 ida_simple_remove(&rpmsg_minor_ida, MINOR(dev->devt)); in rpmsg_ctrldev_probe()
|
/openbmc/linux/drivers/dma/idxd/ |
H A D | cdev.c | 22 dev_t devt; member 521 return MAJOR(ictx[idxd->data->type].devt); in idxd_cdev_get_major() 553 dev->devt = MKDEV(MAJOR(cdev_ctx->devt), minor); in idxd_wq_add_cdev() 677 rc = alloc_chrdev_region(&ictx[i].devt, 0, MINORMASK, in idxd_cdev_register() 687 unregister_chrdev_region(ictx[i].devt, MINORMASK); in idxd_cdev_register() 697 unregister_chrdev_region(ictx[i].devt, MINORMASK); in idxd_cdev_remove()
|
/openbmc/linux/drivers/misc/cxl/ |
H A D | flash.c | 523 dev_t devt; in cxl_guest_add_chardev() local 526 devt = MKDEV(MAJOR(cxl_get_dev()), CXL_CARD_MINOR(adapter)); in cxl_guest_add_chardev() 528 if ((rc = cdev_add(&adapter->guest->cdev, devt, 1))) { in cxl_guest_add_chardev() 534 adapter->dev.devt = devt; in cxl_guest_add_chardev()
|
/openbmc/linux/drivers/remoteproc/ |
H A D | remoteproc_cdev.c | 105 rproc->dev.devt = MKDEV(MAJOR(rproc_major), rproc->index); in rproc_char_device_add() 107 ret = cdev_add(&rproc->cdev, rproc->dev.devt, 1); in rproc_char_device_add()
|
/openbmc/linux/block/partitions/ |
H A D | core.c | 303 dev_t devt = MKDEV(0, 0); in add_partition() local 361 devt = MKDEV(disk->major, disk->first_minor + bdev->bd_partno); in add_partition() 366 devt = MKDEV(BLOCK_EXT_MAJOR, err); in add_partition() 368 pdev->devt = devt; in add_partition() 399 bdev_add(bdev, devt); in add_partition()
|
/openbmc/linux/drivers/char/tpm/ |
H A D | tpm-chip.c | 350 chip->dev.devt = MKDEV(MISC_MAJOR, TPM_MINOR); in tpm_chip_alloc() 352 chip->dev.devt = MKDEV(MAJOR(tpm_devt), chip->dev_num); in tpm_chip_alloc() 421 dev_name(&chip->dev), MAJOR(chip->dev.devt), in tpm_add_char_device() 422 MINOR(chip->dev.devt), rc); in tpm_add_char_device()
|
/openbmc/linux/include/linux/device/ |
H A D | driver.h | 207 dev_t devt) in driver_find_device_by_devt() argument 209 return driver_find_device(drv, NULL, &devt, device_match_devt); in driver_find_device_by_devt()
|
H A D | class.h | 145 dev_t devt) in class_find_device_by_devt() argument 147 return class_find_device(class, NULL, &devt, device_match_devt); in class_find_device_by_devt()
|
H A D | bus.h | 194 dev_t devt) in bus_find_device_by_devt() argument 196 return bus_find_device(bus, NULL, &devt, device_match_devt); in bus_find_device_by_devt()
|
/openbmc/linux/drivers/gpio/ |
H A D | gpiolib-cdev.h | 10 int gpiolib_cdev_register(struct gpio_device *gdev, dev_t devt);
|
/openbmc/linux/drivers/s390/crypto/ |
H A D | zcrypt_api.c | 149 static inline struct zcdn_device *find_zcdndev_by_devt(dev_t devt) in find_zcdndev_by_devt() argument 151 struct device *dev = class_find_device_by_devt(zcrypt_class, devt); in find_zcdndev_by_devt() 360 __func__, MAJOR(dev->devt), MINOR(dev->devt)); in zcdn_device_release() 367 dev_t devt; in zcdn_create() local 386 devt = MKDEV(MAJOR(zcrypt_devt), MINOR(zcrypt_devt) + i); in zcdn_create() 387 zcdndev = find_zcdndev_by_devt(devt); in zcdn_create() 406 zcdndev->device.devt = devt; in zcdn_create() 411 rc = dev_set_name(&zcdndev->device, ZCRYPT_NAME "_%d", (int)MINOR(devt)); in zcdn_create() 423 __func__, MAJOR(devt), MINOR(devt)); in zcdn_create() 460 dev_t devt; in zcdn_destroy_all() local [all …]
|
/openbmc/linux/drivers/spi/ |
H A D | spidev.c | 71 dev_t devt; member 601 if (iter->devt == inode->i_rdev) { in spidev_open() 810 spidev->devt = MKDEV(SPIDEV_MAJOR, minor); in spidev_probe() 811 dev = device_create(spidev_class, &spi->dev, spidev->devt, in spidev_probe() 847 device_destroy(spidev_class, spidev->devt); in spidev_remove() 848 clear_bit(MINOR(spidev->devt), minors); in spidev_remove()
|
/openbmc/linux/drivers/video/fbdev/core/ |
H A D | fbsysfs.c | 476 dev_t devt = MKDEV(FB_MAJOR, node); in fb_device_create() local 479 fb_info->dev = device_create(fb_class, fb_info->device, devt, NULL, "fb%d", node); in fb_device_create() 494 dev_t devt = MKDEV(FB_MAJOR, fb_info->node); in fb_device_destroy() local 500 device_destroy(fb_class, devt); in fb_device_destroy()
|
/openbmc/linux/fs/ |
H A D | char_dev.c | 548 if (dev->devt) { in cdev_device_add() 551 rc = cdev_add(cdev, dev->devt, 1); in cdev_device_add() 557 if (rc && dev->devt) in cdev_device_add() 581 if (dev->devt) in cdev_device_del()
|