/linux-6.6.21/block/ ! |
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 …]
|
D | genhd.c | 163 void (*probe)(dev_t devt); 215 void (*probe)(dev_t devt)) in __register_blkdev() argument 457 ddev->devt = MKDEV(disk->major, disk->first_minor); in device_add_disk() 510 bdev_add(disk->part0, ddev->devt); in device_add_disk() 772 void blk_request_module(dev_t devt) in blk_request_module() argument 774 unsigned int major = MAJOR(devt); in blk_request_module() 780 (*n)->probe(devt); in blk_request_module() 787 if (request_module("block-major-%d-%d", MAJOR(devt), MINOR(devt)) > 0) in blk_request_module() 789 request_module("block-major-%d", MAJOR(devt)); in blk_request_module() 1317 dev_t devt = 0; in part_devt() local [all …]
|
/linux-6.6.21/fs/fuse/ ! |
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 …]
|
/linux-6.6.21/drivers/char/xilinx_hwicap/ ! |
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 …]
|
/linux-6.6.21/drivers/dax/ ! |
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()
|
/linux-6.6.21/drivers/net/ipvlan/ ! |
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()
|
/linux-6.6.21/drivers/net/ ! |
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()
|
/linux-6.6.21/arch/powerpc/platforms/book3s/ ! |
D | vas-api.c | 47 dev_t devt; member 574 rc = alloc_chrdev_region(&coproc_device.devt, 1, 1, name); in vas_register_coproc_api() 581 MAJOR(coproc_device.devt), MINOR(coproc_device.devt)); in vas_register_coproc_api() 596 devno = MKDEV(MAJOR(coproc_device.devt), 0); in vas_register_coproc_api() 620 unregister_chrdev_region(coproc_device.devt, 1); in vas_register_coproc_api() 629 devno = MKDEV(MAJOR(coproc_device.devt), 0); in vas_unregister_coproc_api() 633 unregister_chrdev_region(coproc_device.devt, 1); in vas_unregister_coproc_api()
|
/linux-6.6.21/drivers/fsi/ ! |
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()
|
/linux-6.6.21/sound/usb/ ! |
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()
|
/linux-6.6.21/drivers/pps/ ! |
D | pps.c | 350 dev_t devt; in pps_register_cdev() local 369 devt = MKDEV(MAJOR(pps_devt), pps->id); in pps_register_cdev() 374 err = cdev_add(&pps->cdev, devt, 1); in pps_register_cdev() 380 pps->dev = device_create(pps_class, pps->info.dev, devt, pps, in pps_register_cdev() 410 device_destroy(pps_class, pps->dev->devt); in pps_unregister_cdev()
|
/linux-6.6.21/drivers/dma/idxd/ ! |
D | cdev.c | 22 dev_t devt; member 445 return MAJOR(ictx[idxd->data->type].devt); in idxd_cdev_get_major() 477 dev->devt = MKDEV(MAJOR(cdev_ctx->devt), minor); in idxd_wq_add_cdev() 602 rc = alloc_chrdev_region(&ictx[i].devt, 0, MINORMASK, in idxd_cdev_register() 612 unregister_chrdev_region(ictx[i].devt, MINORMASK); in idxd_cdev_register() 622 unregister_chrdev_region(ictx[i].devt, MINORMASK); in idxd_cdev_remove()
|
/linux-6.6.21/drivers/rpmsg/ ! |
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()
|
/linux-6.6.21/drivers/misc/cxl/ ! |
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()
|
/linux-6.6.21/drivers/remoteproc/ ! |
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()
|
/linux-6.6.21/block/partitions/ ! |
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()
|
/linux-6.6.21/drivers/gpio/ ! |
D | gpiolib-cdev.h | 10 int gpiolib_cdev_register(struct gpio_device *gdev, dev_t devt);
|
/linux-6.6.21/include/linux/device/ ! |
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()
|
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()
|
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()
|
/linux-6.6.21/drivers/char/tpm/ ! |
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()
|
/linux-6.6.21/drivers/spi/ ! |
D | spidev.c | 71 dev_t devt; member 601 if (iter->devt == inode->i_rdev) { in spidev_open() 806 spidev->devt = MKDEV(SPIDEV_MAJOR, minor); in spidev_probe() 807 dev = device_create(spidev_class, &spi->dev, spidev->devt, in spidev_probe() 843 device_destroy(spidev_class, spidev->devt); in spidev_remove() 844 clear_bit(MINOR(spidev->devt), minors); in spidev_remove()
|
/linux-6.6.21/drivers/s390/crypto/ ! |
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 …]
|
/linux-6.6.21/drivers/base/ ! |
D | core.c | 2556 if (MAJOR(dev->devt)) { in dev_uevent() 2563 add_uevent_var(env, "MAJOR=%u", MAJOR(dev->devt)); in dev_uevent() 2564 add_uevent_var(env, "MINOR=%u", MINOR(dev->devt)); in dev_uevent() 2927 return print_dev_t(buf, dev->devt); in dev_show() 3456 format_dev_t(devt_str, dev->devt); in device_create_sys_dev_entry() 3469 format_dev_t(devt_str, dev->devt); in device_remove_sys_dev_entry() 3596 if (MAJOR(dev->devt)) { in device_add() 3662 if (MAJOR(dev->devt)) in device_add() 3798 if (MAJOR(dev->devt)) { in device_del() 4290 dev_t devt, void *drvdata, in device_create_groups_vargs() argument [all …]
|
/linux-6.6.21/drivers/video/fbdev/core/ ! |
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()
|