| /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/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/ |
| 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/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/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/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()
|
| H A D | fsi-scom.c | 556 rc = fsi_get_new_minor(fsi_dev, fsi_dev_scom, &scom->dev.devt, &didx); in scom_probe() 571 fsi_free_minor(scom->dev.devt); in scom_probe() 585 fsi_free_minor(scom->dev.devt); in scom_remove()
|
| /linux/drivers/dma/idxd/ |
| H A D | cdev.c | 22 dev_t devt; member 529 return MAJOR(ictx[idxd->data->type].devt); in idxd_cdev_get_major() 561 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/block/partitions/ |
| H A D | core.c | 297 dev_t devt = MKDEV(0, 0); in add_partition() local 347 devt = MKDEV(disk->major, disk->first_minor + bdev_partno(bdev)); in add_partition() 352 devt = MKDEV(BLOCK_EXT_MAJOR, err); in add_partition() 354 pdev->devt = devt; in add_partition() 388 bdev_add(bdev, devt); in add_partition()
|
| /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/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 | bus.h | 201 dev_t devt) in bus_find_device_by_devt() argument 203 return bus_find_device(bus, NULL, &devt, device_match_devt); in bus_find_device_by_devt()
|
| /linux/drivers/gpio/ |
| H A D | gpiolib-cdev.h | 10 int gpiolib_cdev_register(struct gpio_device *gdev, dev_t devt);
|
| /linux/drivers/video/fbdev/core/ |
| H A D | fbsysfs.c | 485 dev_t devt = MKDEV(FB_MAJOR, node); in fb_device_create() local 488 fb_info->dev = device_create(fb_class, fb_info->device, devt, NULL, "fb%d", node); in fb_device_create() 503 dev_t devt = MKDEV(FB_MAJOR, fb_info->node); in fb_device_destroy() local 509 device_destroy(fb_class, devt); in fb_device_destroy()
|
| /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);
|
| /linux/drivers/base/ |
| H A D | core.c | 2659 if (MAJOR(dev->devt)) { in dev_uevent() 2666 add_uevent_var(env, "MAJOR=%u", MAJOR(dev->devt)); in dev_uevent() 2667 add_uevent_var(env, "MINOR=%u", MINOR(dev->devt)); in dev_uevent() 2985 return print_dev_t(buf, dev->devt); in dev_show() 3514 format_dev_t(devt_str, dev->devt); in device_create_sys_dev_entry() 3527 format_dev_t(devt_str, dev->devt); in device_remove_sys_dev_entry() 3654 if (MAJOR(dev->devt)) { in device_add() 3720 if (MAJOR(dev->devt)) in device_add() 3856 if (MAJOR(dev->devt)) { in device_del() 4343 dev_t devt, void *drvdata, in device_create_groups_vargs() argument [all …]
|
| /linux/drivers/fwctl/ |
| H A D | main.c | 276 ida_free(&fwctl_ida, fwctl->dev.devt - fwctl_dev); in fwctl_device_release() 305 fwctl->dev.devt = fwctl_dev + devnum; in _alloc_device() 335 if (dev_set_name(&fwctl->dev, "fwctl%d", fwctl->dev.devt - fwctl_dev)) in _fwctl_alloc_device()
|
| /linux/drivers/usb/gadget/function/ |
| H A D | f_printer.c | 1088 dev_t devt; in printer_func_bind() local 1145 devt = MKDEV(major, dev->minor); in printer_func_bind() 1146 pdev = device_create(&usb_gadget_class, NULL, devt, in printer_func_bind() 1160 ret = cdev_add(&dev->printer_cdev, devt, 1); in printer_func_bind() 1169 device_destroy(&usb_gadget_class, devt); in printer_func_bind() 1537 dev_t devt; in gprinter_setup() local 1543 status = alloc_chrdev_region(&devt, 0, count, "USB printer gadget"); in gprinter_setup() 1550 major = MAJOR(devt); in gprinter_setup()
|
| /linux/block/ |
| H A D | bsg.c | 174 ida_free(&bsg_minor_ida, MINOR(bd->device.devt)); in bsg_device_release() 210 bd->device.devt = MKDEV(bsg_major, ret); in bsg_register_queue()
|
| /linux/include/linux/ |
| H A D | device.h | 636 dev_t devt; /* dev_t, creates the sysfs "dev" */ member 1125 device_create(const struct class *cls, struct device *parent, dev_t devt, 1128 device_create_with_groups(const struct class *cls, struct device *parent, dev_t devt, 1131 void device_destroy(const struct class *cls, dev_t devt);
|
| /linux/kernel/time/ |
| H A D | posix-clock.c | 170 dev_name(dev), MAJOR(dev->devt), MINOR(dev->devt)); in posix_clock_register()
|
| /linux/drivers/misc/ocxl/ |
| H A D | file.c | 45 idr_remove(&minors_idr, MINOR(info->dev.devt)); in free_minor() 497 rc = cdev_add(&info->cdev, info->dev.devt, 1); in ocxl_file_make_visible() 540 info->dev.devt = MKDEV(MAJOR(ocxl_dev), minor); in ocxl_file_register_afu()
|
| /linux/drivers/char/xilinx_hwicap/ |
| H A D | xilinx_hwicap.h | 54 dev_t devt; member
|
| /linux/drivers/rtc/ |
| H A D | class.c | 422 MAJOR(rtc->dev.devt), rtc->id); in __devm_rtc_register_device() 425 MAJOR(rtc->dev.devt), rtc->id); in __devm_rtc_register_device()
|