Home
last modified time | relevance | path

Searched refs:MAJOR (Results 1 – 25 of 100) sorted by relevance

1234

/drivers/base/
Dmap.c36 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/
Dpps.c369 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/
Dipvtap.c162 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/
Dmacvtap.c175 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()
Dtap.c421 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/
Dfile.c31 #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/
Ddev_core.c273 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/
Ddm-audit.c73 int dev_major = MAJOR(bio->bi_bdev->bd_dev); in dm_audit_log_bio()
Dmd-autodetect.c205 .major = MAJOR(devices[i]), in md_setup_drive()
/drivers/char/
Dscx200_gpio.c103 major = MAJOR(devid); in scx200_gpio_init()
/drivers/rtc/
Dclass.c419 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/
Ddevice.c44 const dev_t dev = MKDEV(MAJOR(hfi1_dev), minor); in hfi1_cdev_init()
/drivers/staging/pi433/
Dpi433_if.c1261 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/
Dmtdsuper.c157 if (MAJOR(dev) == MTD_BLOCK_MAJOR) in get_tree_mtd()
/drivers/remoteproc/
Dremoteproc_cdev.c105 rproc->dev.devt = MKDEV(MAJOR(rproc_major), rproc->index); in rproc_char_device_add()
/drivers/android/
Dbinderfs.c157 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/
Dtpm-chip.c352 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()
Dtpm2-space.c618 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/
Dbuild.c298 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/
Dcounter-core.c110 dev->devt = MKDEV(MAJOR(counter_devt), dev->id); in counter_alloc()
/drivers/vfio/
Ddevice_cdev.c14 device->device.devt = MKDEV(MAJOR(device_devt), device->index); in vfio_init_device_cdev()
/drivers/tty/
Dtty_audit.c77 MAJOR(dev), MINOR(dev)); in tty_audit_log()
/drivers/char/xillybus/
Dxillybus_class.c89 unit->major = MAJOR(mdev); in xillybus_init_chrdev()
/drivers/rpmsg/
Drpmsg_ctrl.c162 dev->devt = MKDEV(MAJOR(rpmsg_major), ret); in rpmsg_ctrldev_probe()
/drivers/misc/mei/
Dmain.c1226 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()

1234