Home
last modified time | relevance | path

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

123456

/linux-6.3-rc2/init/
A Ddo_mounts.c104 dev_t devt = 0; in devt_from_partuuid() local
138 devt = dev->devt; in devt_from_partuuid()
142 return devt; in devt_from_partuuid()
177 devt = dev->devt; in devt_from_partlabel()
181 return devt; in devt_from_partlabel()
200 if (devt) in devt_from_devname()
201 return devt; in devt_from_devname()
216 if (devt) in devt_from_devname()
217 return devt; in devt_from_devname()
236 if (maj != MAJOR(devt) || min != MINOR(devt)) in devt_from_devnum()
[all …]
/linux-6.3-rc2/fs/fuse/
A Dcuse.c80 return &cuse_conntbl[(MAJOR(devt) + MINOR(devt)) % CUSE_CONNTBL_LEN]; in cuse_conntbl_head()
116 dev_t devt = inode->i_cdev->dev; in cuse_open() local
123 if (pos->dev->devt == devt) { in cuse_open()
329 dev_t devt; in cuse_process_init_reply() local
348 devt = MKDEV(arg->dev_major, arg->dev_minor); in cuse_process_init_reply()
349 if (!MAJOR(devt)) in cuse_process_init_reply()
350 rc = alloc_chrdev_region(&devt, MINOR(devt), 1, devinfo.name); in cuse_process_init_reply()
367 dev->devt = devt; in cuse_process_init_reply()
394 rc = cdev_add(cdev, devt, 1); in cuse_process_init_reply()
402 list_add(&cc->list, cuse_conntbl_head(devt)); in cuse_process_init_reply()
[all …]
/linux-6.3-rc2/block/
A Dgenhd.c328 if (MAJOR(devt) <= 0xff && MINOR(devt) <= 0xff) { in bdevt_str()
330 snprintf(tbuf, BDEVT_SIZE, "%02x%02x", MAJOR(devt), MINOR(devt)); in bdevt_str()
333 snprintf(buf, BDEVT_SIZE, "%03x:%05x", MAJOR(devt), MINOR(devt)); in bdevt_str()
752 (*n)->probe(devt); in blk_request_module()
759 if (request_module("block-major-%d-%d", MAJOR(devt), MINOR(devt)) > 0) in blk_request_module()
1337 dev_t devt = 0; in part_devt() local
1342 devt = part->bd_dev; in part_devt()
1345 return devt; in part_devt()
1365 devt = MKDEV(MAJOR(dev->devt), in blk_lookup_devt()
1369 if (devt) in blk_lookup_devt()
[all …]
/linux-6.3-rc2/drivers/char/xilinx_hwicap/
A 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()
733 device_destroy(icap_class, drvdata->devt); 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()
876 unregister_chrdev_region(devt, HWICAP_DEVICES); in hwicap_module_init()
883 dev_t devt = MKDEV(XHWICAP_MAJOR, XHWICAP_MINOR); in hwicap_module_cleanup() local
[all …]
/linux-6.3-rc2/drivers/dax/
A Dsuper.c402 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()
/linux-6.3-rc2/drivers/net/ipvlan/
A Dipvtap.c143 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()
/linux-6.3-rc2/drivers/net/
A Dmacvtap.c156 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()
/linux-6.3-rc2/arch/powerpc/platforms/book3s/
A Dvas-api.c45 dev_t devt; member
575 rc = alloc_chrdev_region(&coproc_device.devt, 1, 1, name); in vas_register_coproc_api()
582 MAJOR(coproc_device.devt), MINOR(coproc_device.devt)); in vas_register_coproc_api()
597 devno = MKDEV(MAJOR(coproc_device.devt), 0); in vas_register_coproc_api()
622 unregister_chrdev_region(coproc_device.devt, 1); in vas_register_coproc_api()
631 devno = MKDEV(MAJOR(coproc_device.devt), 0); in vas_unregister_coproc_api()
635 unregister_chrdev_region(coproc_device.devt, 1); in vas_unregister_coproc_api()
/linux-6.3-rc2/drivers/dma/idxd/
A Dcdev.c20 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()
/linux-6.3-rc2/sound/usb/
A Dmedia.c76 MAJOR(pcm_dev->devt), in snd_media_stream_init()
77 MINOR(pcm_dev->devt)); in snd_media_stream_init()
180 MAJOR(ctl_dev->devt), in snd_media_mixer_init()
181 MINOR(ctl_dev->devt)); in snd_media_mixer_init()
/linux-6.3-rc2/drivers/pps/
A Dpps.c350 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()
/linux-6.3-rc2/drivers/rpmsg/
A Drpmsg_ctrl.c134 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()
/linux-6.3-rc2/drivers/cxl/core/
A Dmemdev.c256 dev->devt = MKDEV(cxl_mem_major, cxlmd->id); in cxl_memdev_alloc()
373 dev_t devt; in cxl_memdev_init() local
376 rc = alloc_chrdev_region(&devt, 0, CXL_MEM_MAX_DEVS, "cxl"); in cxl_memdev_init()
380 cxl_mem_major = MAJOR(devt); in cxl_memdev_init()
/linux-6.3-rc2/drivers/misc/cxl/
A Dflash.c523 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()
/linux-6.3-rc2/drivers/remoteproc/
A Dremoteproc_cdev.c105 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-6.3-rc2/block/partitions/
A Dcore.c309 dev_t devt = MKDEV(0, 0); in add_partition() local
367 devt = MKDEV(disk->major, disk->first_minor + bdev->bd_partno); in add_partition()
372 devt = MKDEV(BLOCK_EXT_MAJOR, err); in add_partition()
374 pdev->devt = devt; in add_partition()
405 bdev_add(bdev, devt); in add_partition()
/linux-6.3-rc2/drivers/mtd/devices/
A Dblock2mtd.c246 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()
/linux-6.3-rc2/drivers/gpio/
A Dgpiolib-cdev.h10 int gpiolib_cdev_register(struct gpio_device *gdev, dev_t devt);
/linux-6.3-rc2/include/linux/device/
A Ddriver.h211 dev_t devt) in driver_find_device_by_devt() argument
213 return driver_find_device(drv, NULL, &devt, device_match_devt); in driver_find_device_by_devt()
A Dbus.h197 dev_t devt) in bus_find_device_by_devt() argument
199 return bus_find_device(bus, NULL, &devt, device_match_devt); in bus_find_device_by_devt()
A Dclass.h165 dev_t devt) in class_find_device_by_devt() argument
167 return class_find_device(class, NULL, &devt, device_match_devt); in class_find_device_by_devt()
/linux-6.3-rc2/drivers/char/tpm/
A Dtpm-chip.c346 chip->dev.devt = MKDEV(MISC_MAJOR, TPM_MINOR); in tpm_chip_alloc()
348 chip->dev.devt = MKDEV(MAJOR(tpm_devt), chip->dev_num); in tpm_chip_alloc()
417 dev_name(&chip->dev), MAJOR(chip->dev.devt), in tpm_add_char_device()
418 MINOR(chip->dev.devt), rc); in tpm_add_char_device()
/linux-6.3-rc2/drivers/spi/
A Dspidev.c70 dev_t devt; member
600 if (iter->devt == inode->i_rdev) { in spidev_open()
805 spidev->devt = MKDEV(SPIDEV_MAJOR, minor); in spidev_probe()
806 dev = device_create(spidev_class, &spi->dev, spidev->devt, in spidev_probe()
842 device_destroy(spidev_class, spidev->devt); in spidev_remove()
843 clear_bit(MINOR(spidev->devt), minors); in spidev_remove()
/linux-6.3-rc2/drivers/s390/crypto/
A Dzcrypt_api.c151 static inline struct zcdn_device *find_zcdndev_by_devt(dev_t devt) in find_zcdndev_by_devt() argument
382 __func__, MAJOR(dev->devt), MINOR(dev->devt)); in zcdn_device_release()
389 dev_t devt; in zcdn_create() local
409 devt = MKDEV(MAJOR(zcrypt_devt), MINOR(zcrypt_devt) + i); in zcdn_create()
410 zcdndev = find_zcdndev_by_devt(devt); in zcdn_create()
429 zcdndev->device.devt = devt; in zcdn_create()
435 ZCRYPT_NAME "_%d", (int)MINOR(devt)); in zcdn_create()
448 __func__, MAJOR(devt), MINOR(devt)); in zcdn_create()
485 dev_t devt; in zcdn_destroy_all() local
490 devt = MKDEV(MAJOR(zcrypt_devt), MINOR(zcrypt_devt) + i); in zcdn_destroy_all()
[all …]
/linux-6.3-rc2/drivers/base/
A Dcore.c2501 if (MAJOR(dev->devt)) { in dev_uevent()
2872 return print_dev_t(buf, dev->devt); in dev_show()
3416 format_dev_t(devt_str, dev->devt); in device_create_sys_dev_entry()
3429 format_dev_t(devt_str, dev->devt); in device_remove_sys_dev_entry()
3554 if (MAJOR(dev->devt)) { in device_add()
3620 if (MAJOR(dev->devt)) in device_add()
3755 if (MAJOR(dev->devt)) { in device_del()
4235 dev_t devt, void *drvdata, in device_create_groups_vargs() argument
4252 dev->devt = devt; in device_create_groups_vargs()
4777 if (MAJOR(dev->devt)) { in set_dev_info()
[all …]

Completed in 40 milliseconds

123456