/drivers/char/xilinx_hwicap/ |
D | xilinx_hwicap.c | 607 dev_t devt; in hwicap_setup() local 635 devt = MKDEV(XHWICAP_MAJOR, XHWICAP_MINOR + id); in hwicap_setup() 662 drvdata->devt = devt; in hwicap_setup() 684 retval = cdev_add(&drvdata->cdev, devt, 1); in hwicap_setup() 690 device_create(icap_class, dev, devt, NULL, "%s%d", DRIVER_NAME, id); in hwicap_setup() 733 device_destroy(icap_class, drvdata->devt); in hwicap_remove() 740 probed_devices[MINOR(dev->devt)-XHWICAP_MINOR] = 0; in hwicap_remove() 856 dev_t devt; in hwicap_module_init() local 862 devt = MKDEV(XHWICAP_MAJOR, XHWICAP_MINOR); in hwicap_module_init() 863 retval = register_chrdev_region(devt, in hwicap_module_init() [all …]
|
/drivers/dax/ |
D | super.c | 402 dev_t devt = *(dev_t *) data; in dax_test() local 404 return inode->i_rdev == devt; in dax_test() 409 dev_t devt = *(dev_t *) data; in dax_set() local 411 inode->i_rdev = devt; in dax_set() 415 static struct dax_device *dax_dev_get(dev_t devt) in dax_dev_get() argument 420 inode = iget5_locked(dax_superblock, hash_32(devt + DAXFS_MAGIC, 31), in dax_dev_get() 421 dax_test, dax_set, &devt); in dax_dev_get() 442 dev_t devt; in alloc_dax() local 452 devt = MKDEV(MAJOR(dax_devt), minor); in alloc_dax() 453 dax_dev = dax_dev_get(devt); in alloc_dax()
|
/drivers/net/ipvlan/ |
D | ipvtap.c | 143 dev_t devt; in ipvtap_device_event() local 163 devt = MKDEV(MAJOR(ipvtap_major), vlantap->tap.minor); in ipvtap_device_event() 164 classdev = device_create(&ipvtap_class, &dev->dev, devt, in ipvtap_device_event() 180 devt = MKDEV(MAJOR(ipvtap_major), vlantap->tap.minor); in ipvtap_device_event() 181 device_destroy(&ipvtap_class, devt); in ipvtap_device_event()
|
/drivers/net/ |
D | macvtap.c | 156 dev_t devt; in macvtap_device_event() local 176 devt = MKDEV(MAJOR(macvtap_major), vlantap->tap.minor); in macvtap_device_event() 177 classdev = device_create(&macvtap_class, &dev->dev, devt, in macvtap_device_event() 193 devt = MKDEV(MAJOR(macvtap_major), vlantap->tap.minor); in macvtap_device_event() 194 device_destroy(&macvtap_class, devt); in macvtap_device_event()
|
/drivers/dma/idxd/ |
D | cdev.c | 20 dev_t devt; member 241 return MAJOR(ictx[idxd->data->type].devt); in idxd_cdev_get_major() 273 dev->devt = MKDEV(MAJOR(cdev_ctx->devt), minor); in idxd_wq_add_cdev() 386 rc = alloc_chrdev_region(&ictx[i].devt, 0, MINORMASK, in idxd_cdev_register() 396 unregister_chrdev_region(ictx[i].devt, MINORMASK); in idxd_cdev_register() 406 unregister_chrdev_region(ictx[i].devt, MINORMASK); in idxd_cdev_remove()
|
/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()
|
/drivers/cxl/core/ |
D | memdev.c | 255 dev->devt = MKDEV(cxl_mem_major, cxlmd->id); in cxl_memdev_alloc() 371 dev_t devt; in cxl_memdev_init() local 374 rc = alloc_chrdev_region(&devt, 0, CXL_MEM_MAX_DEVS, "cxl"); in cxl_memdev_init() 378 cxl_mem_major = MAJOR(devt); in cxl_memdev_init()
|
/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()
|
D | rpmsg_char.c | 353 ida_simple_remove(&rpmsg_minor_ida, MINOR(eptdev->dev.devt)); in rpmsg_eptdev_release_device() 397 dev->devt = MKDEV(MAJOR(rpmsg_major), ret); in rpmsg_chrdev_eptdev_add() 417 ida_simple_remove(&rpmsg_minor_ida, MINOR(dev->devt)); in rpmsg_chrdev_eptdev_add()
|
/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()
|
D | file.c | 552 CXL_DEVT_IS_CARD(dev->devt)) { in cxl_devnode() 564 static int cxl_add_chardev(struct cxl_afu *afu, dev_t devt, struct cdev *cdev, in cxl_add_chardev() argument 572 rc = cdev_add(cdev, devt, 1); in cxl_add_chardev() 578 dev = device_create(cxl_class, &afu->dev, devt, afu, in cxl_add_chardev()
|
/drivers/mtd/devices/ |
D | block2mtd.c | 246 dev_t devt; in add_device() local 257 devt = name_to_dev_t(devname); in add_device() 258 if (!devt) in add_device() 260 bdev = blkdev_get_by_dev(devt, mode, dev); in add_device()
|
/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()
|
/drivers/spi/ |
D | spidev.c | 70 dev_t devt; member 589 if (iter->devt == inode->i_rdev) { in spidev_open() 790 spidev->devt = MKDEV(SPIDEV_MAJOR, minor); in spidev_probe() 791 dev = device_create(spidev_class, &spi->dev, spidev->devt, in spidev_probe() 827 device_destroy(spidev_class, spidev->devt); in spidev_remove() 828 clear_bit(MINOR(spidev->devt), minors); in spidev_remove()
|
/drivers/char/tpm/ |
D | tpm-chip.c | 347 chip->dev.devt = MKDEV(MISC_MAJOR, TPM_MINOR); in tpm_chip_alloc() 349 chip->dev.devt = MKDEV(MAJOR(tpm_devt), chip->dev_num); in tpm_chip_alloc() 413 dev_name(&chip->dev), MAJOR(chip->dev.devt), in tpm_add_char_device() 414 MINOR(chip->dev.devt), rc); in tpm_add_char_device()
|
/drivers/s390/crypto/ |
D | zcrypt_api.c | 155 static inline struct zcdn_device *find_zcdndev_by_devt(dev_t devt) in find_zcdndev_by_devt() argument 157 struct device *dev = class_find_device_by_devt(zcrypt_class, devt); in find_zcdndev_by_devt() 388 __func__, MAJOR(dev->devt), MINOR(dev->devt)); in zcdn_device_release() 395 dev_t devt; in zcdn_create() local 415 devt = MKDEV(MAJOR(zcrypt_devt), MINOR(zcrypt_devt) + i); in zcdn_create() 416 zcdndev = find_zcdndev_by_devt(devt); in zcdn_create() 435 zcdndev->device.devt = devt; in zcdn_create() 441 ZCRYPT_NAME "_%d", (int)MINOR(devt)); in zcdn_create() 455 __func__, MAJOR(devt), MINOR(devt)); in zcdn_create() 492 dev_t devt; in zcdn_destroy_all() local [all …]
|
/drivers/base/ |
D | core.c | 2549 if (MAJOR(dev->devt)) { in dev_uevent() 2556 add_uevent_var(env, "MAJOR=%u", MAJOR(dev->devt)); in dev_uevent() 2557 add_uevent_var(env, "MINOR=%u", MINOR(dev->devt)); in dev_uevent() 2959 return print_dev_t(buf, dev->devt); in dev_show() 3495 format_dev_t(devt_str, dev->devt); in device_create_sys_dev_entry() 3508 format_dev_t(devt_str, dev->devt); in device_remove_sys_dev_entry() 3633 if (MAJOR(dev->devt)) { in device_add() 3702 if (MAJOR(dev->devt)) in device_add() 3839 if (MAJOR(dev->devt)) { in device_del() 4332 dev_t devt, void *drvdata, in device_create_groups_vargs() argument [all …]
|
/drivers/net/wireless/ath/ath6kl/ |
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);
|
/drivers/gpio/ |
D | gpiolib-cdev.h | 10 int gpiolib_cdev_register(struct gpio_device *gdev, dev_t devt);
|
/drivers/usb/gadget/function/ |
D | f_printer.c | 1070 dev_t devt; in printer_func_bind() local 1127 devt = MKDEV(major, dev->minor); in printer_func_bind() 1128 pdev = device_create(usb_gadget_class, NULL, devt, in printer_func_bind() 1142 ret = cdev_add(&dev->printer_cdev, devt, 1); in printer_func_bind() 1151 device_destroy(usb_gadget_class, devt); in printer_func_bind() 1520 dev_t devt; in gprinter_setup() local 1530 status = alloc_chrdev_region(&devt, 0, count, "USB printer gadget"); in gprinter_setup() 1538 major = MAJOR(devt); in gprinter_setup()
|
/drivers/fpga/ |
D | dfl.c | 76 dev_t devt; member 603 if (MAJOR(dfl_chrdevs[i].devt)) { in dfl_chardev_uinit() 604 unregister_chrdev_region(dfl_chrdevs[i].devt, in dfl_chardev_uinit() 606 dfl_chrdevs[i].devt = MKDEV(0, 0); in dfl_chardev_uinit() 615 ret = alloc_chrdev_region(&dfl_chrdevs[i].devt, 0, in dfl_chardev_init() 633 return MKDEV(MAJOR(dfl_chrdevs[type].devt), id); in dfl_get_devt() 662 return cdev_add(&pdata->cdev, pdev->dev.devt, 1); in dfl_fpga_dev_ops_register() 886 fdev->dev.devt = dfl_get_devt(dfl_devs[type].devt_type, fdev->id); in build_info_create_dev()
|
/drivers/staging/pi433/ |
D | pi433_if.c | 72 dev_t devt; member 1263 device->devt = MKDEV(MAJOR(pi433_dev), device->minor); in pi433_probe() 1266 device->devt, in pi433_probe() 1301 retval = cdev_add(device->cdev, device->devt, 1); in pi433_probe() 1320 device_destroy(pi433_class, device->devt); in pi433_probe() 1347 device_destroy(pi433_class, device->devt); in pi433_remove()
|
/drivers/misc/ocxl/ |
D | file.c | 46 idr_remove(&minors_idr, MINOR(info->dev.devt)); in free_minor() 498 rc = cdev_add(&info->cdev, info->dev.devt, 1); in ocxl_file_make_visible() 531 info->dev.devt = MKDEV(MAJOR(ocxl_dev), minor); in ocxl_file_register_afu()
|
/drivers/platform/chrome/wilco_ec/ |
D | telemetry.c | 386 dev_data->dev.devt = MKDEV(telem_major, minor); in telem_device_probe() 409 ida_simple_remove(&telem_ida, MINOR(dev_data->dev.devt)); in telem_device_remove()
|
/drivers/fsi/ |
D | fsi-scom.c | 555 rc = fsi_get_new_minor(fsi_dev, fsi_dev_scom, &scom->dev.devt, &didx); in scom_probe() 570 fsi_free_minor(scom->dev.devt); in scom_probe() 584 fsi_free_minor(scom->dev.devt); in scom_remove()
|