Home
last modified time | relevance | path

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

1234

/linux/drivers/dax/
H A Dsuper.c555 dev_t devt = *(dev_t *) data; in dax_test() local
557 return inode->i_rdev == devt; in dax_test()
562 dev_t devt = *(dev_t *) data; in dax_set() local
564 inode->i_rdev = devt; in dax_set()
568 static struct dax_device *dax_dev_get(dev_t devt) in dax_dev_get() argument
573 inode = iget5_locked(dax_superblock, hash_32(devt + DAXFS_MAGIC, 31), in dax_dev_get()
574 dax_test, dax_set, &devt); in dax_dev_get()
595 dev_t devt; in alloc_dax()
613 devt = MKDEV(MAJOR(dax_devt), minor); in alloc_dax()
614 dax_dev = dax_dev_get(devt); in alloc_dax()
596 dev_t devt; alloc_dax() local
[all...]
/linux/drivers/net/
H 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/drivers/net/ipvlan/
H A Dipvtap.c155 dev_t devt; in ipvtap_device_event() local
175 devt = MKDEV(MAJOR(ipvtap_major), vlantap->tap.minor); in ipvtap_device_event()
176 classdev = device_create(&ipvtap_class, &dev->dev, devt, in ipvtap_device_event()
192 devt = MKDEV(MAJOR(ipvtap_major), vlantap->tap.minor); in ipvtap_device_event()
193 device_destroy(&ipvtap_class, devt); in ipvtap_device_event()
/linux/drivers/pps/generators/
H A Dpps_gen.c197 pps_gen->dev.devt = MKDEV(MAJOR(pps_gen_devt), pps_gen->id); in pps_gen_register_cdev()
166 dev_t devt; pps_gen_register_cdev() local
/linux/block/
H A Dgenhd.c55 /* for extended dynamic devt allocation, currently only one major is used */
183 void (*probe)(dev_t devt);
235 void (*probe)(dev_t devt)) in __register_blkdev() argument
410 bdev_add(disk->part0, ddev->devt); in add_disk_final()
498 ddev->devt = MKDEV(disk->major, disk->first_minor); in __add_disk()
880 static bool blk_probe_dev(dev_t devt) in blk_probe_dev() argument
882 unsigned int major = MAJOR(devt); in blk_probe_dev()
888 (*n)->probe(devt); in blk_probe_dev()
897 void blk_request_module(dev_t devt) in blk_request_module() argument
901 if (blk_probe_dev(devt)) in blk_request_module()
1443 dev_t devt = 0; part_devt() local
[all...]
/linux/drivers/fsi/
H A Di2cr-scom.c104 ret = fsi_get_new_minor(fsi_dev, fsi_dev_scom, &scom->dev.devt, &didx); in i2cr_scom_probe()
112 fsi_free_minor(scom->dev.devt); in i2cr_scom_probe()
122 fsi_free_minor(scom->dev.devt); in i2cr_scom_remove()
H A Dfsi-scom.c555 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()
/linux/sound/usb/
H A Dmedia.c76 MAJOR(pcm_dev->devt), in snd_media_stream_init()
77 MINOR(pcm_dev->devt)); in snd_media_stream_init()
178 MAJOR(ctl_dev->devt), in snd_media_mixer_init()
179 MINOR(ctl_dev->devt)); in snd_media_mixer_init()
/linux/drivers/rpmsg/
H A Drpmsg_ctrl.c134 ida_free(&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_free(&rpmsg_minor_ida, MINOR(dev->devt)); in rpmsg_ctrldev_probe()
/linux/drivers/dma/idxd/
H A Dcdev.c22 dev_t devt; member
527 return MAJOR(ictx[idxd->data->type].devt); in idxd_cdev_get_major()
559 dev->devt = MKDEV(MAJOR(cdev_ctx->devt), minor); in idxd_wq_add_cdev()
695 rc = alloc_chrdev_region(&ictx[i].devt, 0, MINORMASK, in idxd_cdev_register()
705 unregister_chrdev_region(ictx[i].devt, MINORMASK); in idxd_cdev_register()
715 unregister_chrdev_region(ictx[i].devt, MINORMASK); in idxd_cdev_remove()
/linux/drivers/remoteproc/
H 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/drivers/s390/crypto/
H A Dzcrypt_api.c146 * Find zcdn device by devt value.
150 static inline struct zcdn_device *find_zcdndev_by_devt(dev_t devt) in find_zcdndev_by_devt() argument
152 struct device *dev = class_find_device_by_devt(&zcrypt_class, devt); in find_zcdndev_by_devt()
361 __func__, MAJOR(dev->devt), MINOR(dev->devt)); in zcdn_device_release()
368 dev_t devt; in zcdn_create() local
387 devt = MKDEV(MAJOR(zcrypt_devt), MINOR(zcrypt_devt) + i); in zcdn_create()
388 zcdndev = find_zcdndev_by_devt(devt); in zcdn_create()
407 zcdndev->device.devt = devt; in zcdn_create()
461 dev_t devt; zcdn_destroy_all() local
[all...]
/linux/drivers/spi/
H A Dspidev.c70 dev_t devt; member
576 if (iter->devt == inode->i_rdev) { in spidev_open()
797 spidev->devt = MKDEV(SPIDEV_MAJOR, minor); in spidev_probe()
798 dev = device_create(&spidev_class, &spi->dev, spidev->devt, in spidev_probe()
834 device_destroy(&spidev_class, spidev->devt); in spidev_remove()
835 clear_bit(MINOR(spidev->devt), minors); in spidev_remove()
/linux/drivers/char/tpm/
H A Dtpm-chip.c301 chip->dev.devt = MKDEV(MISC_MAJOR, TPM_MINOR); in tpm_chip_alloc()
303 chip->dev.devt = MKDEV(MAJOR(tpm_devt), chip->dev_num); in tpm_chip_alloc()
372 dev_name(&chip->dev), MAJOR(chip->dev.devt), in tpmm_chip_alloc()
373 MINOR(chip->dev.devt), rc); in tpmm_chip_alloc()
H A Dtpm2-space.c603 chip->devs.devt = MKDEV(MAJOR(tpm_devt), chip->dev_num + TPM_NUM_DEVICES); in tpm_devs_add()
615 dev_name(&chip->devs), MAJOR(chip->devs.devt), in tpm_devs_add()
616 MINOR(chip->devs.devt), rc); in tpm_devs_add()
/linux/include/linux/device/
H A Ddriver.h211 * by devt.
213 * @devt: devt pointer to match.
216 dev_t devt) in driver_find_device_by_devt() argument
218 return driver_find_device(drv, NULL, &devt, device_match_devt); in driver_find_device_by_devt()
/linux/drivers/video/fbdev/core/
H A Dfbsysfs.c495 dev_t devt = MKDEV(FB_MAJOR, node); in fb_device_create() local
498 fb_info->dev = device_create_with_groups(fb_class, fb_info->device, devt, fb_info, in fb_device_create()
512 dev_t devt = MKDEV(FB_MAJOR, fb_info->node); in fb_device_destroy() local
517 device_destroy(fb_class, devt); in fb_device_destroy()
/linux/fs/
H A Dchar_dev.c547 if (dev->devt) { in cdev_device_add()
550 rc = cdev_add(cdev, dev->devt, 1); in cdev_device_add()
556 if (rc && dev->devt) in cdev_device_add()
580 if (dev->devt) in cdev_device_del()
/linux/drivers/net/wireless/ath/ath6kl/
H A Dcore.h935 void ath6kl_ready_event(void *devt, u8 *datap, u32 sw_ver, u32 abi_ver,
937 int ath6kl_control_tx(void *devt, struct sk_buff *skb,
952 void ath6kl_txpwr_rx_evt(void *devt, u8 tx_pwr);
955 void ath6kl_indicate_tx_activity(void *devt, u8 traffic_class, bool active);
956 enum htc_endpoint_id ath6kl_ac2_endpoint_id(void *devt, u8 ac);
/linux/drivers/mtd/devices/
H A Dblock2mtd.c240 dev_t devt; in mdtblock_early_get_bdev() local
251 if (!early_lookup_bdev(devname, &devt)) { in mdtblock_early_get_bdev()
252 bdev_file = bdev_file_open_by_dev(devt, mode, dev, NULL); in mdtblock_early_get_bdev()
/linux/drivers/usb/gadget/function/
H A Df_printer.c1100 dev_t devt; in printer_func_bind() local
1157 devt = MKDEV(major, dev->minor); in printer_func_bind()
1158 pdev = device_create(&usb_gadget_class, NULL, devt, in printer_func_bind()
1172 ret = cdev_add(&dev->printer_cdev, devt, 1); in printer_func_bind()
1181 device_destroy(&usb_gadget_class, devt); in printer_func_bind()
1549 dev_t devt; in gprinter_setup() local
1555 status = alloc_chrdev_region(&devt, 0, count, "USB printer gadget"); in gprinter_setup()
1562 major = MAJOR(devt); in gprinter_setup()
/linux/kernel/time/
H A Dposix-clock.c170 dev_name(dev), MAJOR(dev->devt), MINOR(dev->devt)); in posix_clock_register()
/linux/drivers/misc/ocxl/
H A Dfile.c45 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/platform/chrome/wilco_ec/
H A Dtelemetry.c384 dev_data->dev.devt = MKDEV(telem_major, minor); in telem_device_probe()
407 ida_free(&telem_ida, MINOR(dev_data->dev.devt)); in telem_device_remove()
/linux/include/linux/
H A Ddevice.h682 * @devt: For creating the sysfs "dev".
785 dev_t devt; /* dev_t, creates the sysfs "dev" */
1330 device_create(const struct class *cls, struct device *parent, dev_t devt,
1333 device_create_with_groups(const struct class *cls, struct device *parent, dev_t devt,
1336 void device_destroy(const struct class *cls, dev_t devt);
780 dev_t devt; /* dev_t, creates the sysfs "dev" */ global() member

1234