/drivers/base/ |
D | map.c | 36 unsigned int n = MAJOR(dev + range - 1) - MAJOR(dev) + 1; in kobj_map() 37 unsigned int index = MAJOR(dev); in kobj_map() 70 unsigned int n = MAJOR(dev + range - 1) - MAJOR(dev) + 1; in kobj_unmap() 71 unsigned int index = MAJOR(dev); in kobj_unmap() 103 for (p = domain->probes[MAJOR(dev) % 255]; p; p = p->next) { in kobj_lookup()
|
/drivers/pps/ |
D | pps.c | 369 devt = MKDEV(MAJOR(pps_devt), pps->id); in pps_register_cdev() 377 pps->info.name, MAJOR(pps_devt), pps->id); in pps_register_cdev() 391 MAJOR(pps_devt), pps->id); in pps_register_cdev()
|
/drivers/net/ipvlan/ |
D | ipvtap.c | 162 devt = MKDEV(MAJOR(ipvtap_major), vlantap->tap.minor); in ipvtap_device_event() 179 devt = MKDEV(MAJOR(ipvtap_major), vlantap->tap.minor); in ipvtap_device_event()
|
/drivers/net/ |
D | macvtap.c | 175 devt = MKDEV(MAJOR(macvtap_major), vlantap->tap.minor); in macvtap_device_event() 192 devt = MKDEV(MAJOR(macvtap_major), vlantap->tap.minor); in macvtap_device_event()
|
D | tap.c | 421 tap_major = tap_get_major(MAJOR(major)); in tap_get_minor() 448 tap_major = tap_get_major(MAJOR(major)); in tap_free_minor() 1350 tap_major->major = MAJOR(major); in tap_list_add() 1398 if (tap_major->major == MAJOR(major)) { in tap_destroy_cdev()
|
/drivers/misc/cxl/ |
D | file.c | 31 #define CXL_AFU_MKDEV_D(afu) MKDEV(MAJOR(cxl_dev), CXL_AFU_MINOR_D(afu)) 32 #define CXL_AFU_MKDEV_M(afu) MKDEV(MAJOR(cxl_dev), CXL_AFU_MINOR_M(afu)) 33 #define CXL_AFU_MKDEV_S(afu) MKDEV(MAJOR(cxl_dev), CXL_AFU_MINOR_S(afu)) 679 pr_devel("CXL device allocated, MAJOR %i\n", MAJOR(cxl_dev)); in cxl_file_init()
|
/drivers/staging/fieldbus/ |
D | dev_core.c | 273 devno = MKDEV(MAJOR(fieldbus_devt), fb->id); in __fieldbus_dev_register() 279 fb->id, MAJOR(fieldbus_devt), fb->id); in __fieldbus_dev_register()
|
/drivers/md/ |
D | dm-audit.c | 73 int dev_major = MAJOR(bio->bi_bdev->bd_dev); in dm_audit_log_bio()
|
D | md-autodetect.c | 205 .major = MAJOR(devices[i]), in md_setup_drive()
|
/drivers/char/ |
D | scx200_gpio.c | 103 major = MAJOR(devid); in scx200_gpio_init()
|
/drivers/rtc/ |
D | class.c | 419 MAJOR(rtc->dev.devt), rtc->id); in __devm_rtc_register_device() 422 MAJOR(rtc->dev.devt), rtc->id); in __devm_rtc_register_device()
|
/drivers/infiniband/hw/hfi1/ |
D | device.c | 44 const dev_t dev = MKDEV(MAJOR(hfi1_dev), minor); in hfi1_cdev_init()
|
/drivers/staging/pi433/ |
D | pi433_if.c | 1261 device->devt = MKDEV(MAJOR(pi433_dev), device->minor); in pi433_probe() 1275 MAJOR(pi433_dev), in pi433_probe() 1403 unregister_chrdev(MAJOR(pi433_dev), in pi433_init() 1413 unregister_chrdev(MAJOR(pi433_dev), in pi433_init() 1426 unregister_chrdev(MAJOR(pi433_dev), pi433_spi_driver.driver.name); in pi433_exit()
|
/drivers/mtd/ |
D | mtdsuper.c | 157 if (MAJOR(dev) == MTD_BLOCK_MAJOR) in get_tree_mtd()
|
/drivers/remoteproc/ |
D | remoteproc_cdev.c | 105 rproc->dev.devt = MKDEV(MAJOR(rproc_major), rproc->index); in rproc_char_device_add()
|
/drivers/android/ |
D | binderfs.c | 157 MKDEV(MAJOR(binderfs_dev), minor)); in binderfs_binder_device_create() 177 req->major = MAJOR(binderfs_dev); in binderfs_binder_device_create() 436 MKDEV(MAJOR(binderfs_dev), minor)); in binderfs_binder_ctl_create()
|
/drivers/char/tpm/ |
D | tpm-chip.c | 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()
|
D | tpm2-space.c | 618 chip->devs.devt = MKDEV(MAJOR(tpm_devt), chip->dev_num + TPM_NUM_DEVICES); in tpm_devs_add() 630 dev_name(&chip->devs), MAJOR(chip->devs.devt), in tpm_devs_add()
|
/drivers/mtd/ubi/ |
D | build.c | 298 if (ubi && MAJOR(ubi->cdev.dev) == major) { in ubi_get_by_major() 327 if (ubi && MAJOR(ubi->cdev.dev) == major) { in ubi_major2num() 459 dbg_gen("%s major is %u", ubi->ubi_name, MAJOR(dev)); in uif_init() 1170 if (MAJOR(stat.rdev) != MTD_CHAR_MAJOR || !S_ISCHR(stat.mode)) in open_mtd_by_chdev()
|
/drivers/counter/ |
D | counter-core.c | 110 dev->devt = MKDEV(MAJOR(counter_devt), dev->id); in counter_alloc()
|
/drivers/vfio/ |
D | device_cdev.c | 14 device->device.devt = MKDEV(MAJOR(device_devt), device->index); in vfio_init_device_cdev()
|
/drivers/tty/ |
D | tty_audit.c | 77 MAJOR(dev), MINOR(dev)); in tty_audit_log()
|
/drivers/char/xillybus/ |
D | xillybus_class.c | 89 unit->major = MAJOR(mdev); in xillybus_init_chrdev()
|
/drivers/rpmsg/ |
D | rpmsg_ctrl.c | 162 dev->devt = MKDEV(MAJOR(rpmsg_major), ret); in rpmsg_ctrldev_probe()
|
/drivers/misc/mei/ |
D | main.c | 1226 devno = MKDEV(MAJOR(mei_devt), dev->minor); in mei_register() 1234 MAJOR(mei_devt), dev->minor); in mei_register() 1244 MAJOR(mei_devt), dev->minor); in mei_register()
|