Home
last modified time | relevance | path

Searched refs:devt (Results 1 – 25 of 77) sorted by relevance

1234

/drivers/char/xilinx_hwicap/
Dxilinx_hwicap.c607 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 …]
Dxilinx_hwicap.h54 dev_t devt; member
/drivers/dax/
Dsuper.c410 dev_t devt = *(dev_t *) data; in dax_test() local
412 return inode->i_rdev == devt; in dax_test()
417 dev_t devt = *(dev_t *) data; in dax_set() local
419 inode->i_rdev = devt; in dax_set()
423 static struct dax_device *dax_dev_get(dev_t devt) in dax_dev_get() argument
428 inode = iget5_locked(dax_superblock, hash_32(devt + DAXFS_MAGIC, 31), in dax_dev_get()
429 dax_test, dax_set, &devt); in dax_dev_get()
471 dev_t devt; in alloc_dax() local
482 devt = MKDEV(MAJOR(dax_devt), minor); in alloc_dax()
483 dax_dev = dax_dev_get(devt); in alloc_dax()
/drivers/net/
Dmacvtap.c149 dev_t devt; in macvtap_device_event() local
169 devt = MKDEV(MAJOR(macvtap_major), vlantap->tap.minor); in macvtap_device_event()
170 classdev = device_create(&macvtap_class, &dev->dev, devt, in macvtap_device_event()
186 devt = MKDEV(MAJOR(macvtap_major), vlantap->tap.minor); in macvtap_device_event()
187 device_destroy(&macvtap_class, devt); in macvtap_device_event()
/drivers/net/ipvlan/
Dipvtap.c142 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()
/drivers/char/tpm/
Dtpm-chip.c228 chip->dev.devt = MKDEV(MISC_MAJOR, TPM_MINOR); in tpm_chip_alloc()
230 chip->dev.devt = MKDEV(MAJOR(tpm_devt), chip->dev_num); in tpm_chip_alloc()
232 chip->devs.devt = in tpm_chip_alloc()
308 dev_name(&chip->dev), MAJOR(chip->dev.devt), in tpm_add_char_device()
309 MINOR(chip->dev.devt), rc); in tpm_add_char_device()
318 dev_name(&chip->devs), MAJOR(chip->devs.devt), in tpm_add_char_device()
319 MINOR(chip->devs.devt), rc); in tpm_add_char_device()
Dtpm_vtpm_proxy.c580 vtpm_new_dev->major = MAJOR(proxy_dev->chip->dev.devt); in vtpm_proxy_create_device()
581 vtpm_new_dev->minor = MINOR(proxy_dev->chip->dev.devt); in vtpm_proxy_create_device()
/drivers/rpmsg/
Drpmsg_char.c338 ida_simple_remove(&rpmsg_minor_ida, MINOR(eptdev->dev.devt)); in rpmsg_eptdev_release_device()
376 dev->devt = MKDEV(MAJOR(rpmsg_major), ret); in rpmsg_eptdev_create()
384 ret = cdev_add(&eptdev->cdev, dev->devt, 1); in rpmsg_eptdev_create()
402 ida_simple_remove(&rpmsg_minor_ida, MINOR(dev->devt)); in rpmsg_eptdev_create()
463 ida_simple_remove(&rpmsg_minor_ida, MINOR(dev->devt)); in rpmsg_ctrldev_release_device()
491 dev->devt = MKDEV(MAJOR(rpmsg_major), ret); in rpmsg_chrdev_probe()
499 ret = cdev_add(&ctrldev->cdev, dev->devt, 1); in rpmsg_chrdev_probe()
519 ida_simple_remove(&rpmsg_minor_ida, MINOR(dev->devt)); in rpmsg_chrdev_probe()
/drivers/base/
Dcore.c891 if (MAJOR(dev->devt)) { in dev_uevent()
898 add_uevent_var(env, "MAJOR=%u", MAJOR(dev->devt)); in dev_uevent()
899 add_uevent_var(env, "MINOR=%u", MINOR(dev->devt)); in dev_uevent()
1250 return print_dev_t(buf, dev->devt); in dev_show()
1763 format_dev_t(devt_str, dev->devt); in device_create_sys_dev_entry()
1776 format_dev_t(devt_str, dev->devt); in device_remove_sys_dev_entry()
1897 if (MAJOR(dev->devt)) { in device_add()
1939 if (MAJOR(dev->devt)) in device_add()
2047 if (MAJOR(dev->devt)) { in device_del()
2485 dev_t devt, void *drvdata, in device_create_groups_vargs() argument
[all …]
Ddevtmpfs.c211 err = vfs_mknod(d_inode(path.dentry), dentry, mode, dev->devt); in handle_create()
292 if (stat->rdev != dev->devt) in dev_mynode()
/drivers/pps/
Dpps.c364 dev_t devt; in pps_register_cdev() local
383 devt = MKDEV(MAJOR(pps_devt), pps->id); in pps_register_cdev()
388 err = cdev_add(&pps->cdev, devt, 1); in pps_register_cdev()
394 pps->dev = device_create(pps_class, pps->info.dev, devt, pps, in pps_register_cdev()
424 device_destroy(pps_class, pps->dev->devt); in pps_unregister_cdev()
/drivers/misc/cxl/
Dflash.c528 dev_t devt; in cxl_guest_add_chardev() local
531 devt = MKDEV(MAJOR(cxl_get_dev()), CXL_CARD_MINOR(adapter)); in cxl_guest_add_chardev()
533 if ((rc = cdev_add(&adapter->guest->cdev, devt, 1))) { in cxl_guest_add_chardev()
539 adapter->dev.devt = devt; in cxl_guest_add_chardev()
Dfile.c525 CXL_DEVT_IS_CARD(dev->devt)) { in cxl_devnode()
537 static int cxl_add_chardev(struct cxl_afu *afu, dev_t devt, struct cdev *cdev, in cxl_add_chardev() argument
545 if ((rc = cdev_add(cdev, devt, 1))) { in cxl_add_chardev()
550 dev = device_create(cxl_class, &afu->dev, devt, afu, in cxl_add_chardev()
/drivers/rtc/
Dclass.c258 name, MAJOR(rtc->dev.devt), rtc->id); in rtc_device_register()
265 MAJOR(rtc->dev.devt), rtc->id); in rtc_device_register()
446 MAJOR(rtc->dev.devt), rtc->id); in __rtc_register_device()
449 MAJOR(rtc->dev.devt), rtc->id); in __rtc_register_device()
/drivers/mtd/devices/
Dblock2mtd.c248 dev_t devt; in add_device() local
259 devt = name_to_dev_t(devname); in add_device()
260 if (!devt) in add_device()
262 bdev = blkdev_get_by_dev(devt, mode, dev); in add_device()
/drivers/spi/
Dspidev.c77 dev_t devt; member
563 if (spidev->devt == inode->i_rdev) { in spidev_open()
756 spidev->devt = MKDEV(SPIDEV_MAJOR, minor); in spidev_probe()
757 dev = device_create(spidev_class, &spi->dev, spidev->devt, in spidev_probe()
793 device_destroy(spidev_class, spidev->devt); in spidev_remove()
794 clear_bit(MINOR(spidev->devt), minors); in spidev_remove()
/drivers/tee/
Dtee_core.c692 teedev->dev.devt = MKDEV(MAJOR(tee_devt), teedev->id); in tee_device_alloc()
718 unregister_chrdev_region(teedev->dev.devt, 1); in tee_device_alloc()
770 rc = cdev_add(&teedev->cdev, teedev->dev.devt, 1); in tee_device_register()
774 teedev->name, MAJOR(teedev->dev.devt), in tee_device_register()
775 MINOR(teedev->dev.devt), rc); in tee_device_register()
783 teedev->name, MAJOR(teedev->dev.devt), in tee_device_register()
784 MINOR(teedev->dev.devt), rc); in tee_device_register()
/drivers/net/wireless/ath/ath6kl/
Dcore.h934 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);
Dmain.c149 enum htc_endpoint_id ath6kl_ac2_endpoint_id(void *devt, u8 ac) in ath6kl_ac2_endpoint_id() argument
151 struct ath6kl *ar = devt; in ath6kl_ac2_endpoint_id()
522 void ath6kl_ready_event(void *devt, u8 *datap, u32 sw_ver, u32 abi_ver, in ath6kl_ready_event() argument
525 struct ath6kl *ar = devt; in ath6kl_ready_event()
854 void ath6kl_txpwr_rx_evt(void *devt, u8 tx_pwr) in ath6kl_txpwr_rx_evt() argument
856 struct ath6kl *ar = (struct ath6kl *) devt; in ath6kl_txpwr_rx_evt()
/drivers/usb/gadget/function/
Df_printer.c1027 dev_t devt; in printer_func_bind() local
1083 devt = MKDEV(major, dev->minor); in printer_func_bind()
1084 pdev = device_create(usb_gadget_class, NULL, devt, in printer_func_bind()
1098 ret = cdev_add(&dev->printer_cdev, devt, 1); in printer_func_bind()
1107 device_destroy(usb_gadget_class, devt); in printer_func_bind()
1470 dev_t devt; in gprinter_setup() local
1480 status = alloc_chrdev_region(&devt, 0, count, "USB printer gadget"); in gprinter_setup()
1488 major = MAJOR(devt); in gprinter_setup()
/drivers/staging/pi433/
Dpi433_if.c77 dev_t devt; member
1193 device->devt = MKDEV(MAJOR(pi433_dev), device->minor); in pi433_probe()
1196 device->devt, in pi433_probe()
1219 retval = cdev_add(device->cdev, device->devt, 1); in pi433_probe()
1232 device_destroy(pi433_class, device->devt); in pi433_probe()
1257 device_destroy(pi433_class, device->devt); in pi433_remove()
/drivers/hwtracing/intel_th/
Dcore.c635 thdev->dev.devt = MKDEV(th->major, th->num_thdevs); in intel_th_subdevice_alloc()
761 dev_t devt = (dev_t)(unsigned long)data; in match_devt() local
763 return dev->devt == devt; in match_devt()
/drivers/tty/
Dtty_io.c2804 const dev_t *devt = data; in dev_match_devt() local
2805 return dev->devt == *devt; in dev_match_devt()
2811 dev_t devt = tty_devnum(tty); in tty_get_device() local
2812 return class_find_device(tty_class, NULL, &devt, dev_match_devt); in tty_get_device()
2961 dev_t devt = MKDEV(driver->major, driver->minor_start) + index; in tty_register_device_attr() local
2981 dev->devt = devt; in tty_register_device_attr()
3006 retval = tty_cdev_add(driver, devt, index, 1); in tty_register_device_attr()
3257 if (dev->devt == MKDEV(TTYAUX_MAJOR, 0) || in tty_devnode()
3258 dev->devt == MKDEV(TTYAUX_MAJOR, 2)) in tty_devnode()
/drivers/staging/android/
Dvsoc.c766 dev_t devt; in vsoc_probe_device() local
829 result = alloc_chrdev_region(&devt, 0, vsoc_dev.layout->region_count, in vsoc_probe_device()
836 vsoc_dev.major = MAJOR(devt); in vsoc_probe_device()
839 result = cdev_add(&vsoc_dev.cdev, devt, vsoc_dev.layout->region_count); in vsoc_probe_device()
/drivers/firewire/
Dcore-device.c764 struct fw_device *fw_device_get_by_devt(dev_t devt) in fw_device_get_by_devt() argument
769 device = idr_find(&fw_device_idr, MINOR(devt)); in fw_device_get_by_devt()
806 int minor = MINOR(device->device.devt); in fw_device_shutdown()
1052 device->device.devt = MKDEV(fw_cdev_major, minor); in fw_device_init()

1234