| /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 | 183 void (*probe)(dev_t devt); 235 void (*probe)(dev_t devt)) in __register_blkdev() argument 414 bdev_add(disk->part0, ddev->devt); in add_disk_final() 495 ddev->devt = MKDEV(disk->major, disk->first_minor); in __add_disk() 876 static bool blk_probe_dev(dev_t devt) in blk_probe_dev() argument 878 unsigned int major = MAJOR(devt); in blk_probe_dev() 884 (*n)->probe(devt); in blk_probe_dev() 893 void blk_request_module(dev_t devt) in blk_request_module() argument 897 if (blk_probe_dev(devt)) in blk_request_module() 900 error = request_module("block-major-%d-%d", MAJOR(devt), MINOR(devt)); in blk_request_module() [all …]
|
| /linux/fs/fuse/ |
| H A D | cuse.c | 79 static struct list_head *cuse_conntbl_head(dev_t devt) in cuse_conntbl_head() argument 81 return &cuse_conntbl[(MAJOR(devt) + MINOR(devt)) % CUSE_CONNTBL_LEN]; in cuse_conntbl_head() 117 dev_t devt = inode->i_cdev->dev; in cuse_open() local 123 list_for_each_entry(pos, cuse_conntbl_head(devt), list) in cuse_open() 124 if (pos->dev->devt == devt) { in cuse_open() 334 dev_t devt; in cuse_process_init_reply() local 353 devt = MKDEV(arg->dev_major, arg->dev_minor); in cuse_process_init_reply() 354 if (!MAJOR(devt)) in cuse_process_init_reply() 355 rc = alloc_chrdev_region(&devt, MINOR(devt), 1, devinfo.name); in cuse_process_init_reply() 357 rc = register_chrdev_region(devt, 1, devinfo.name); in cuse_process_init_reply() [all …]
|
| /linux/drivers/char/xilinx_hwicap/ |
| H A D | xilinx_hwicap.c | 603 dev_t devt; in hwicap_setup() local 632 devt = MKDEV(XHWICAP_MAJOR, XHWICAP_MINOR + id); in hwicap_setup() 647 drvdata->devt = devt; in hwicap_setup() 657 retval = cdev_add(&drvdata->cdev, devt, 1); in hwicap_setup() 663 device_create(&icap_class, dev, devt, NULL, "%s%d", DRIVER_NAME, id); in hwicap_setup() 723 device_destroy(&icap_class, drvdata->devt); in hwicap_drv_remove() 727 probed_devices[MINOR(dev->devt)-XHWICAP_MINOR] = 0; in hwicap_drv_remove() 750 dev_t devt; in hwicap_module_init() local 758 devt = MKDEV(XHWICAP_MAJOR, XHWICAP_MINOR); in hwicap_module_init() 759 retval = register_chrdev_region(devt, in hwicap_module_init() [all …]
|
| /linux/drivers/dax/ |
| H A D | super.c | 411 dev_t devt = *(dev_t *) data; in dax_test() local 413 return inode->i_rdev == devt; in dax_test() 418 dev_t devt = *(dev_t *) data; in dax_set() local 420 inode->i_rdev = devt; in dax_set() 424 static struct dax_device *dax_dev_get(dev_t devt) in dax_dev_get() argument 429 inode = iget5_locked(dax_superblock, hash_32(devt + DAXFS_MAGIC, 31), in dax_dev_get() 430 dax_test, dax_set, &devt); in dax_dev_get() 451 dev_t devt; in alloc_dax() local 469 devt = MKDEV(MAJOR(dax_devt), minor); in alloc_dax() 470 dax_dev = dax_dev_get(devt); in alloc_dax()
|
| /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()
|
| /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()
|
| /linux/arch/powerpc/platforms/book3s/ |
| H A D | vas-api.c | 47 dev_t devt; member 613 rc = alloc_chrdev_region(&coproc_device.devt, 1, 1, name); in vas_register_coproc_api() 620 MAJOR(coproc_device.devt), MINOR(coproc_device.devt)); in vas_register_coproc_api() 635 devno = MKDEV(MAJOR(coproc_device.devt), 0); in vas_register_coproc_api() 659 unregister_chrdev_region(coproc_device.devt, 1); in vas_register_coproc_api() 668 devno = MKDEV(MAJOR(coproc_device.devt), 0); in vas_unregister_coproc_api() 672 unregister_chrdev_region(coproc_device.devt, 1); in vas_unregister_coproc_api()
|
| /linux/drivers/pps/generators/ |
| H A D | pps_gen.c | 163 dev_t devt; in pps_gen_register_cdev() local 175 devt = MKDEV(MAJOR(pps_gen_devt), pps_gen->id); in pps_gen_register_cdev() 180 err = cdev_add(&pps_gen->cdev, devt, 1); in pps_gen_register_cdev() 186 pps_gen->dev = device_create(pps_gen_class, pps_gen->info->parent, devt, in pps_gen_register_cdev() 210 device_destroy(pps_gen_class, pps_gen->dev->devt); in pps_gen_unregister_cdev()
|
| /linux/drivers/infiniband/core/ |
| H A D | ucaps.c | 71 static int get_ucap_from_devt(dev_t devt, u64 *idx_mask) in get_ucap_from_devt() argument 74 if (ucaps_list[type] && ucaps_list[type]->dev.devt == devt) { in get_ucap_from_devt() 171 ucap->dev.devt = MKDEV(MAJOR(ucaps_base_dev), type); in ib_create_ucap()
|
| /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()
|
| /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() 178 MAJOR(ctl_dev->devt), in snd_media_mixer_init() 179 MINOR(ctl_dev->devt)); in snd_media_mixer_init()
|
| /linux/drivers/dma/idxd/ |
| H A D | cdev.c | 22 dev_t devt; member 525 return MAJOR(ictx[idxd->data->type].devt); in idxd_cdev_get_major() 557 dev->devt = MKDEV(MAJOR(cdev_ctx->devt), minor); in idxd_wq_add_cdev() 693 rc = alloc_chrdev_region(&ictx[i].devt, 0, MINORMASK, in idxd_cdev_register() 703 unregister_chrdev_region(ictx[i].devt, MINORMASK); in idxd_cdev_register() 713 unregister_chrdev_region(ictx[i].devt, MINORMASK); in idxd_cdev_remove()
|
| /linux/drivers/rpmsg/ |
| H A D | rpmsg_ctrl.c | 134 ida_free(&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_free(&rpmsg_minor_ida, MINOR(dev->devt)); in rpmsg_ctrldev_probe()
|
| /linux/block/partitions/ |
| H A D | core.c | 298 dev_t devt = MKDEV(0, 0); in add_partition() local 348 devt = MKDEV(disk->major, disk->first_minor + bdev_partno(bdev)); in add_partition() 353 devt = MKDEV(BLOCK_EXT_MAJOR, err); in add_partition() 355 pdev->devt = devt; in add_partition() 389 bdev_add(bdev, devt); in add_partition()
|
| /linux/drivers/s390/crypto/ |
| H A D | zcrypt_api.c | 150 static inline struct zcdn_device *find_zcdndev_by_devt(dev_t devt) in find_zcdndev_by_devt() argument 152 struct device *dev = class_find_device_by_devt(&zcrypt_class, devt); in find_zcdndev_by_devt() 361 __func__, MAJOR(dev->devt), MINOR(dev->devt)); in zcdn_device_release() 368 dev_t devt; in zcdn_create() local 387 devt = MKDEV(MAJOR(zcrypt_devt), MINOR(zcrypt_devt) + i); in zcdn_create() 388 zcdndev = find_zcdndev_by_devt(devt); in zcdn_create() 407 zcdndev->device.devt = devt; in zcdn_create() 412 rc = dev_set_name(&zcdndev->device, ZCRYPT_NAME "_%d", (int)MINOR(devt)); in zcdn_create() 424 __func__, MAJOR(devt), MINOR(devt)); in zcdn_create() 461 dev_t devt; in zcdn_destroy_all() local [all …]
|
| /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()
|
| /linux/drivers/spi/ |
| H A D | spidev.c | 71 dev_t devt; member 577 if (iter->devt == inode->i_rdev) { in spidev_open() 798 spidev->devt = MKDEV(SPIDEV_MAJOR, minor); in spidev_probe() 799 dev = device_create(&spidev_class, &spi->dev, spidev->devt, in spidev_probe() 835 device_destroy(&spidev_class, spidev->devt); in spidev_remove() 836 clear_bit(MINOR(spidev->devt), minors); in spidev_remove()
|
| /linux/drivers/char/tpm/ |
| H A D | tpm-chip.c | 325 chip->dev.devt = MKDEV(MISC_MAJOR, TPM_MINOR); in tpm_chip_alloc() 327 chip->dev.devt = MKDEV(MAJOR(tpm_devt), chip->dev_num); in tpm_chip_alloc() 396 dev_name(&chip->dev), MAJOR(chip->dev.devt), in tpm_add_char_device() 397 MINOR(chip->dev.devt), rc); in tpm_add_char_device()
|
| /linux/include/linux/device/ |
| H A D | driver.h | 216 dev_t devt) in driver_find_device_by_devt() argument 218 return driver_find_device(drv, NULL, &devt, device_match_devt); in driver_find_device_by_devt()
|
| H A D | class.h | 141 dev_t devt) in class_find_device_by_devt() argument 143 return class_find_device(class, NULL, &devt, device_match_devt); in class_find_device_by_devt()
|
| H A D | bus.h | 207 dev_t devt) in bus_find_device_by_devt() argument 209 return bus_find_device(bus, NULL, &devt, device_match_devt); in bus_find_device_by_devt()
|
| /linux/drivers/video/fbdev/core/ |
| H A D | fbsysfs.c | 457 dev_t devt = MKDEV(FB_MAJOR, node); in fb_device_create() local 460 fb_info->dev = device_create_with_groups(fb_class, fb_info->device, devt, fb_info, in fb_device_create() 474 dev_t devt = MKDEV(FB_MAJOR, fb_info->node); in fb_device_destroy() local 479 device_destroy(fb_class, devt); in fb_device_destroy()
|
| /linux/fs/ |
| H A D | char_dev.c | 545 if (dev->devt) { in cdev_device_add() 548 rc = cdev_add(cdev, dev->devt, 1); in cdev_device_add() 554 if (rc && dev->devt) in cdev_device_add() 578 if (dev->devt) in cdev_device_del()
|
| /linux/drivers/net/wireless/ath/ath6kl/ |
| H A D | core.h | 934 void ath6kl_ready_event(void *devt, u8 *datap, u32 sw_ver, u32 abi_ver, 936 int ath6kl_control_tx(void *devt, struct sk_buff *skb, 951 void ath6kl_txpwr_rx_evt(void *devt, u8 tx_pwr); 954 void ath6kl_indicate_tx_activity(void *devt, u8 traffic_class, bool active); 955 enum htc_endpoint_id ath6kl_ac2_endpoint_id(void *devt, u8 ac);
|