Home
last modified time | relevance | path

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

12345

/linux/init/
A Ddo_mounts.c105 dev_t devt = 0; in devt_from_partuuid() local
139 devt = dev->devt; in devt_from_partuuid()
143 return devt; in devt_from_partuuid()
178 devt = dev->devt; in devt_from_partlabel()
182 return devt; in devt_from_partlabel()
201 if (devt) in devt_from_devname()
202 return devt; in devt_from_devname()
217 if (devt) in devt_from_devname()
218 return devt; in devt_from_devname()
237 if (maj != MAJOR(devt) || min != MINOR(devt)) in devt_from_devnum()
[all …]
/linux/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/block/
A Dgenhd.c344 if (MAJOR(devt) <= 0xff && MINOR(devt) <= 0xff) { in bdevt_str()
346 snprintf(tbuf, BDEVT_SIZE, "%02x%02x", MAJOR(devt), MINOR(devt)); in bdevt_str()
349 snprintf(buf, BDEVT_SIZE, "%03x:%05x", MAJOR(devt), MINOR(devt)); in bdevt_str()
690 (*n)->probe(devt); in blk_request_module()
697 if (request_module("block-major-%d-%d", MAJOR(devt), MINOR(devt)) > 0) in blk_request_module()
1246 dev_t devt = 0; in part_devt() local
1251 devt = part->bd_dev; in part_devt()
1254 return devt; in part_devt()
1274 devt = MKDEV(MAJOR(dev->devt), in blk_lookup_devt()
1278 if (devt) in blk_lookup_devt()
[all …]
/linux/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/arch/powerpc/platforms/book3s/
A Dvas-api.c45 dev_t devt; member
432 rc = alloc_chrdev_region(&coproc_device.devt, 1, 1, name); in vas_register_coproc_api()
439 MAJOR(coproc_device.devt), MINOR(coproc_device.devt)); in vas_register_coproc_api()
454 devno = MKDEV(MAJOR(coproc_device.devt), 0); in vas_register_coproc_api()
479 unregister_chrdev_region(coproc_device.devt, 1); in vas_register_coproc_api()
488 devno = MKDEV(MAJOR(coproc_device.devt), 0); in vas_unregister_coproc_api()
492 unregister_chrdev_region(coproc_device.devt, 1); in vas_unregister_coproc_api()
/linux/drivers/dax/
A Dsuper.c442 dev_t devt = *(dev_t *) data; in dax_test() local
444 return inode->i_rdev == devt; in dax_test()
449 dev_t devt = *(dev_t *) data; in dax_set() local
451 inode->i_rdev = devt; in dax_set()
455 static struct dax_device *dax_dev_get(dev_t devt) in dax_dev_get() argument
460 inode = iget5_locked(dax_superblock, hash_32(devt + DAXFS_MAGIC, 31), in dax_dev_get()
461 dax_test, dax_set, &devt); in dax_dev_get()
503 dev_t devt; in alloc_dax() local
521 devt = MKDEV(MAJOR(dax_devt), minor); in alloc_dax()
522 dax_dev = dax_dev_get(devt); in alloc_dax()
/linux/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/drivers/net/
A Dmacvtap.c150 dev_t devt; in macvtap_device_event() local
170 devt = MKDEV(MAJOR(macvtap_major), vlantap->tap.minor); in macvtap_device_event()
171 classdev = device_create(&macvtap_class, &dev->dev, devt, in macvtap_device_event()
187 devt = MKDEV(MAJOR(macvtap_major), vlantap->tap.minor); in macvtap_device_event()
188 device_destroy(&macvtap_class, devt); in macvtap_device_event()
/linux/drivers/dma/idxd/
A Dcdev.c21 dev_t devt; member
242 return MAJOR(ictx[idxd->data->type].devt); in idxd_cdev_get_major()
274 dev->devt = MKDEV(MAJOR(cdev_ctx->devt), minor); in idxd_wq_add_cdev()
369 rc = alloc_chrdev_region(&ictx[i].devt, 0, MINORMASK, in idxd_cdev_register()
383 unregister_chrdev_region(ictx[i].devt, MINORMASK); in idxd_cdev_remove()
/linux/drivers/rpmsg/
A Drpmsg_char.c335 ida_simple_remove(&rpmsg_minor_ida, MINOR(eptdev->dev.devt)); in rpmsg_eptdev_release_device()
373 dev->devt = MKDEV(MAJOR(rpmsg_major), ret); in rpmsg_eptdev_create()
381 ret = cdev_add(&eptdev->cdev, dev->devt, 1); in rpmsg_eptdev_create()
399 ida_simple_remove(&rpmsg_minor_ida, MINOR(dev->devt)); in rpmsg_eptdev_create()
461 ida_simple_remove(&rpmsg_minor_ida, MINOR(dev->devt)); in rpmsg_ctrldev_release_device()
489 dev->devt = MKDEV(MAJOR(rpmsg_major), ret); in rpmsg_chrdev_probe()
497 ret = cdev_add(&ctrldev->cdev, dev->devt, 1); in rpmsg_chrdev_probe()
517 ida_simple_remove(&rpmsg_minor_ida, MINOR(dev->devt)); in rpmsg_chrdev_probe()
/linux/drivers/char/tpm/
A Dtpm-chip.c367 chip->dev.devt = MKDEV(MISC_MAJOR, TPM_MINOR); in tpm_chip_alloc()
369 chip->dev.devt = MKDEV(MAJOR(tpm_devt), chip->dev_num); in tpm_chip_alloc()
371 chip->devs.devt = in tpm_chip_alloc()
442 dev_name(&chip->dev), MAJOR(chip->dev.devt), in tpm_add_char_device()
443 MINOR(chip->dev.devt), rc); in tpm_add_char_device()
452 dev_name(&chip->devs), MAJOR(chip->devs.devt), in tpm_add_char_device()
453 MINOR(chip->devs.devt), rc); in tpm_add_char_device()
/linux/drivers/cxl/core/
A Dmemdev.c209 dev->devt = MKDEV(cxl_mem_major, cxlmd->id); in cxl_memdev_alloc()
325 dev_t devt; in cxl_memdev_init() local
328 rc = alloc_chrdev_region(&devt, 0, CXL_MEM_MAX_DEVS, "cxl"); in cxl_memdev_init()
332 cxl_mem_major = MAJOR(devt); in cxl_memdev_init()
/linux/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/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/drivers/misc/cxl/
A Dflash.c522 dev_t devt; in cxl_guest_add_chardev() local
525 devt = MKDEV(MAJOR(cxl_get_dev()), CXL_CARD_MINOR(adapter)); in cxl_guest_add_chardev()
527 if ((rc = cdev_add(&adapter->guest->cdev, devt, 1))) { in cxl_guest_add_chardev()
533 adapter->dev.devt = devt; in cxl_guest_add_chardev()
/linux/block/partitions/
A Dcore.c320 dev_t devt = MKDEV(0, 0); in add_partition() local
378 devt = MKDEV(disk->major, disk->first_minor + bdev->bd_partno); in add_partition()
383 devt = MKDEV(BLOCK_EXT_MAJOR, err); in add_partition()
385 pdev->devt = devt; in add_partition()
416 bdev_add(bdev, devt); in add_partition()
/linux/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/drivers/spi/
A Dspidev.c69 dev_t devt; member
570 if (spidev->devt == inode->i_rdev) { in spidev_open()
780 spidev->devt = MKDEV(SPIDEV_MAJOR, minor); in spidev_probe()
781 dev = device_create(spidev_class, &spi->dev, spidev->devt, in spidev_probe()
817 device_destroy(spidev_class, spidev->devt); in spidev_remove()
818 clear_bit(MINOR(spidev->devt), minors); in spidev_remove()
/linux/drivers/remoteproc/
A Dremoteproc_cdev.c116 rproc->dev.devt = MKDEV(MAJOR(rproc_major), rproc->index); in rproc_char_device_add()
118 ret = cdev_add(&rproc->cdev, rproc->dev.devt, 1); in rproc_char_device_add()
/linux/drivers/s390/crypto/
A Dzcrypt_api.c155 static inline struct zcdn_device *find_zcdndev_by_devt(dev_t devt) in find_zcdndev_by_devt() argument
345 __func__, MAJOR(dev->devt), MINOR(dev->devt)); in zcdn_device_release()
352 dev_t devt; in zcdn_create() local
372 devt = MKDEV(MAJOR(zcrypt_devt), MINOR(zcrypt_devt) + i); in zcdn_create()
373 zcdndev = find_zcdndev_by_devt(devt); in zcdn_create()
392 zcdndev->device.devt = devt; in zcdn_create()
398 ZCRYPT_NAME "_%d", (int) MINOR(devt)); in zcdn_create()
411 __func__, MAJOR(devt), MINOR(devt)); in zcdn_create()
448 dev_t devt; in zcdn_destroy_all() local
453 devt = MKDEV(MAJOR(zcrypt_devt), MINOR(zcrypt_devt) + i); in zcdn_destroy_all()
[all …]
/linux/include/linux/device/
A Ddriver.h208 dev_t devt) in driver_find_device_by_devt() argument
210 return driver_find_device(drv, NULL, &devt, device_match_devt); in driver_find_device_by_devt()
A Dbus.h211 dev_t devt) in bus_find_device_by_devt() argument
213 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/drivers/base/
A Dcore.c2296 if (MAJOR(dev->devt)) { in dev_uevent()
2692 return print_dev_t(buf, dev->devt); in dev_show()
3218 format_dev_t(devt_str, dev->devt); in device_create_sys_dev_entry()
3231 format_dev_t(devt_str, dev->devt); in device_remove_sys_dev_entry()
3356 if (MAJOR(dev->devt)) { in device_add()
3425 if (MAJOR(dev->devt)) in device_add()
3561 if (MAJOR(dev->devt)) { in device_del()
4024 dev_t devt, void *drvdata, in device_create_groups_vargs() argument
4041 dev->devt = devt; in device_create_groups_vargs()
4566 if (MAJOR(dev->devt)) { in set_dev_info()
[all …]
/linux/drivers/net/wireless/ath/ath6kl/
A 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);

Completed in 48 milliseconds

12345