Home
last modified time | relevance | path

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

/linux-4.1.27/fs/fuse/
Dcuse.c75 static struct list_head *cuse_conntbl_head(dev_t devt) in cuse_conntbl_head() argument
77 return &cuse_conntbl[(MAJOR(devt) + MINOR(devt)) % CUSE_CONNTBL_LEN]; in cuse_conntbl_head()
113 dev_t devt = inode->i_cdev->dev; in cuse_open() local
119 list_for_each_entry(pos, cuse_conntbl_head(devt), list) in cuse_open()
120 if (pos->dev->devt == devt) { in cuse_open()
315 dev_t devt; in cuse_process_init_reply() local
336 devt = MKDEV(arg->dev_major, arg->dev_minor); in cuse_process_init_reply()
337 if (!MAJOR(devt)) in cuse_process_init_reply()
338 rc = alloc_chrdev_region(&devt, MINOR(devt), 1, devinfo.name); in cuse_process_init_reply()
340 rc = register_chrdev_region(devt, 1, devinfo.name); in cuse_process_init_reply()
[all …]
/linux-4.1.27/block/
Dgenhd.c411 int blk_alloc_devt(struct hd_struct *part, dev_t *devt) in blk_alloc_devt() argument
418 *devt = MKDEV(disk->major, disk->first_minor + part->partno); in blk_alloc_devt()
433 *devt = MKDEV(BLOCK_EXT_MAJOR, blk_mangle_minor(idx)); in blk_alloc_devt()
446 void blk_free_devt(dev_t devt) in blk_free_devt() argument
448 if (devt == MKDEV(0, 0)) in blk_free_devt()
451 if (MAJOR(devt) == BLOCK_EXT_MAJOR) { in blk_free_devt()
453 idr_remove(&ext_devt_idr, blk_mangle_minor(MINOR(devt))); in blk_free_devt()
458 static char *bdevt_str(dev_t devt, char *buf) in bdevt_str() argument
460 if (MAJOR(devt) <= 0xff && MINOR(devt) <= 0xff) { in bdevt_str()
462 snprintf(tbuf, BDEVT_SIZE, "%02x%02x", MAJOR(devt), MINOR(devt)); in bdevt_str()
[all …]
Dpartition-generic.c214 blk_free_devt(dev->devt); in part_release()
274 dev_t devt = MKDEV(0, 0); in add_partition() local
329 err = blk_alloc_devt(p, &devt); in add_partition()
332 pdev->devt = devt; in add_partition()
374 blk_free_devt(devt); in add_partition()
525 md_autodetect_dev(part_to_dev(part)->devt); in rescan_partitions()
/linux-4.1.27/drivers/char/tpm/
Dtpm-chip.c124 chip->dev.devt = MKDEV(MISC_MAJOR, TPM_MINOR); in tpmm_chip_alloc()
126 chip->dev.devt = MKDEV(MAJOR(tpm_devt), chip->dev_num); in tpmm_chip_alloc()
144 rc = cdev_add(&chip->cdev, chip->dev.devt, 1); in tpm_dev_add_device()
148 chip->devname, MAJOR(chip->dev.devt), in tpm_dev_add_device()
149 MINOR(chip->dev.devt), rc); in tpm_dev_add_device()
159 chip->devname, MAJOR(chip->dev.devt), in tpm_dev_add_device()
160 MINOR(chip->dev.devt), rc); in tpm_dev_add_device()
/linux-4.1.27/drivers/char/xilinx_hwicap/
Dxilinx_hwicap.c603 dev_t devt; in hwicap_setup() local
631 devt = MKDEV(XHWICAP_MAJOR, XHWICAP_MINOR + id); in hwicap_setup()
659 drvdata->devt = devt; in hwicap_setup()
681 retval = cdev_add(&drvdata->cdev, devt, 1); in hwicap_setup()
687 device_create(icap_class, dev, devt, NULL, "%s%d", DRIVER_NAME, id); in hwicap_setup()
730 device_destroy(icap_class, drvdata->devt); in hwicap_remove()
737 probed_devices[MINOR(dev->devt)-XHWICAP_MINOR] = 0; in hwicap_remove()
853 dev_t devt; in hwicap_module_init() local
859 devt = MKDEV(XHWICAP_MAJOR, XHWICAP_MINOR); in hwicap_module_init()
860 retval = register_chrdev_region(devt, in hwicap_module_init()
[all …]
Dxilinx_hwicap.h54 dev_t devt; member
/linux-4.1.27/drivers/base/
Dcore.c305 if (MAJOR(dev->devt)) { in dev_uevent()
312 add_uevent_var(env, "MAJOR=%u", MAJOR(dev->devt)); in dev_uevent()
313 add_uevent_var(env, "MINOR=%u", MINOR(dev->devt)); in dev_uevent()
529 return print_dev_t(buf, dev->devt); in dev_show()
924 format_dev_t(devt_str, dev->devt); in device_create_sys_dev_entry()
937 format_dev_t(devt_str, dev->devt); in device_remove_sys_dev_entry()
1051 if (MAJOR(dev->devt)) { in device_add()
1093 if (MAJOR(dev->devt)) in device_add()
1197 if (MAJOR(dev->devt)) { in device_del()
1590 dev_t devt, void *drvdata, in device_create_groups_vargs() argument
[all …]
Ddevtmpfs.c210 err = vfs_mknod(d_inode(path.dentry), dentry, mode, dev->devt); in handle_create()
291 if (stat->rdev != dev->devt) in dev_mynode()
/linux-4.1.27/drivers/pps/
Dpps.c295 dev_t devt; in pps_register_cdev() local
314 devt = MKDEV(MAJOR(pps_devt), pps->id); in pps_register_cdev()
319 err = cdev_add(&pps->cdev, devt, 1); in pps_register_cdev()
325 pps->dev = device_create(pps_class, pps->info.dev, devt, pps, in pps_register_cdev()
355 device_destroy(pps_class, pps->dev->devt); in pps_unregister_cdev()
/linux-4.1.27/include/linux/
Dgenhd.h255 return disk_to_dev(disk)->devt; in disk_devt()
260 return part_to_dev(part)->devt; in part_devt()
601 extern int blk_alloc_devt(struct hd_struct *part, dev_t *devt);
602 extern void blk_free_devt(dev_t devt);
622 extern void blk_register_region(dev_t devt, unsigned long range,
627 extern void blk_unregister_region(dev_t devt, unsigned long range);
723 dev_t devt = MKDEV(0, 0); in blk_lookup_devt() local
724 return devt; in blk_lookup_devt()
Ddevice.h777 dev_t devt; /* dev_t, creates the sysfs "dev" */ member
985 dev_t devt,
991 dev_t devt, void *drvdata,
995 struct device *parent, dev_t devt, void *drvdata,
998 extern void device_destroy(struct class *cls, dev_t devt);
/linux-4.1.27/drivers/mtd/devices/
Dblock2mtd.c247 dev_t devt; in add_device() local
258 devt = name_to_dev_t(devname); in add_device()
259 if (!devt) in add_device()
261 bdev = blkdev_get_by_dev(devt, mode, dev); in add_device()
/linux-4.1.27/drivers/spi/
Dspidev.c76 dev_t devt; member
603 if (spidev->devt == inode->i_rdev) { in spidev_open()
754 spidev->devt = MKDEV(SPIDEV_MAJOR, minor); in spidev_probe()
755 dev = device_create(spidev_class, &spi->dev, spidev->devt, in spidev_probe()
791 device_destroy(spidev_class, spidev->devt); in spidev_remove()
792 clear_bit(MINOR(spidev->devt), minors); in spidev_remove()
/linux-4.1.27/drivers/misc/cxl/
Dfile.c387 if (CXL_DEVT_IS_CARD(dev->devt)) { in cxl_devnode()
399 static int cxl_add_chardev(struct cxl_afu *afu, dev_t devt, struct cdev *cdev, in cxl_add_chardev() argument
407 if ((rc = cdev_add(cdev, devt, 1))) { in cxl_add_chardev()
412 dev = device_create(cxl_class, &afu->dev, devt, afu, in cxl_add_chardev()
/linux-4.1.27/drivers/net/wireless/ath/ath6kl/
Dcore.h932 void ath6kl_ready_event(void *devt, u8 *datap, u32 sw_ver, u32 abi_ver,
934 int ath6kl_control_tx(void *devt, struct sk_buff *skb,
949 void ath6kl_txpwr_rx_evt(void *devt, u8 tx_pwr);
952 void ath6kl_indicate_tx_activity(void *devt, u8 traffic_class, bool active);
953 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()
Dtxrx.c286 int ath6kl_control_tx(void *devt, struct sk_buff *skb, in ath6kl_control_tx() argument
289 struct ath6kl *ar = devt; in ath6kl_control_tx()
530 void ath6kl_indicate_tx_activity(void *devt, u8 traffic_class, bool active) in ath6kl_indicate_tx_activity() argument
532 struct ath6kl *ar = devt; in ath6kl_indicate_tx_activity()
Dwmi.h2727 void *ath6kl_wmi_init(struct ath6kl *devt);
/linux-4.1.27/drivers/usb/gadget/function/
Df_printer.c1017 dev_t devt; in printer_func_bind() local
1075 devt = MKDEV(major, dev->minor); in printer_func_bind()
1076 pdev = device_create(usb_gadget_class, NULL, devt, in printer_func_bind()
1090 ret = cdev_add(&dev->printer_cdev, devt, 1); in printer_func_bind()
1099 device_destroy(usb_gadget_class, devt); in printer_func_bind()
1439 dev_t devt; in gprinter_setup() local
1449 status = alloc_chrdev_region(&devt, 0, count, "USB printer gadget"); in gprinter_setup()
1457 major = MAJOR(devt); in gprinter_setup()
/linux-4.1.27/drivers/rtc/
Drtc-dev.c471 rtc->dev.devt = MKDEV(MAJOR(rtc_devt), rtc->id); in rtc_dev_prepare()
484 if (cdev_add(&rtc->char_dev, rtc->dev.devt, 1)) in rtc_dev_add_device()
494 if (rtc->dev.devt) in rtc_dev_del_device()
/linux-4.1.27/drivers/tty/
Dtty_io.c3124 const dev_t *devt = data; in dev_match_devt() local
3125 return dev->devt == *devt; in dev_match_devt()
3131 dev_t devt = tty_devnum(tty); in tty_get_device() local
3132 return class_find_device(tty_class, NULL, &devt, dev_match_devt); in tty_get_device()
3283 dev_t devt = MKDEV(driver->major, driver->minor_start) + index; in tty_register_device_attr() local
3300 retval = tty_cdev_add(driver, devt, index, 1); in tty_register_device_attr()
3312 dev->devt = devt; in tty_register_device_attr()
3592 if (dev->devt == MKDEV(TTYAUX_MAJOR, 0) || in tty_devnode()
3593 dev->devt == MKDEV(TTYAUX_MAJOR, 2)) in tty_devnode()
/linux-4.1.27/arch/mips/kernel/
Dvpe-cmp.c123 vpe_device.devt = MKDEV(major, VPE_MODULE_MINOR); in vpe_module_init()
Dvpe-mt.c371 vpe_device.devt = MKDEV(major, VPE_MODULE_MINOR); in vpe_module_init()
/linux-4.1.27/drivers/net/
Dmacvtap.c1181 dev_t devt; in macvtap_device_event() local
1199 devt = MKDEV(MAJOR(macvtap_major), vlan->minor); in macvtap_device_event()
1200 classdev = device_create(macvtap_class, &dev->dev, devt, in macvtap_device_event()
1208 devt = MKDEV(MAJOR(macvtap_major), vlan->minor); in macvtap_device_event()
1209 device_destroy(macvtap_class, devt); in macvtap_device_event()
/linux-4.1.27/arch/x86/kernel/
Dcpuid.c180 return kasprintf(GFP_KERNEL, "cpu/%u/cpuid", MINOR(dev->devt)); in cpuid_devnode()
Dmsr.c244 return kasprintf(GFP_KERNEL, "cpu/%u/msr", MINOR(dev->devt)); in msr_devnode()
/linux-4.1.27/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()
Dcore.h150 struct fw_device *fw_device_get_by_devt(dev_t devt);
/linux-4.1.27/drivers/staging/comedi/
Dcomedi_fops.c373 unsigned int minor = MINOR(csdev->devt); in max_read_buffer_kb_show()
396 unsigned int minor = MINOR(csdev->devt); in max_read_buffer_kb_store()
429 unsigned int minor = MINOR(csdev->devt); in read_buffer_kb_show()
452 unsigned int minor = MINOR(csdev->devt); in read_buffer_kb_store()
486 unsigned int minor = MINOR(csdev->devt); in max_write_buffer_kb_show()
509 unsigned int minor = MINOR(csdev->devt); in max_write_buffer_kb_store()
542 unsigned int minor = MINOR(csdev->devt); in write_buffer_kb_show()
565 unsigned int minor = MINOR(csdev->devt); in write_buffer_kb_store()
/linux-4.1.27/drivers/char/
Dvirtio_console.c1395 dev_t devt; in add_port() local
1432 devt = MKDEV(portdev->chr_major, id); in add_port()
1433 err = cdev_add(port->cdev, devt, 1); in add_port()
1440 devt, port, "vport%up%u", in add_port()
1508 device_destroy(pdrvdata.class, port->dev->devt); in add_port()
1592 device_destroy(pdrvdata.class, port->dev->devt); in unplug_port()
Dmem.c836 if (mode && devlist[MINOR(dev->devt)].mode) in mem_devnode()
837 *mode = devlist[MINOR(dev->devt)].mode; in mem_devnode()
/linux-4.1.27/drivers/media/
Dmedia-devnode.c266 mdev->dev.devt = MKDEV(MAJOR(media_dev_t), mdev->minor); in media_devnode_register()
/linux-4.1.27/drivers/input/
Djoydev.c909 joydev->dev.devt = MKDEV(INPUT_MAJOR, minor); in joydev_connect()
921 error = cdev_add(&joydev->cdev, joydev->dev.devt, 1); in joydev_connect()
948 input_free_minor(MINOR(joydev->dev.devt)); in joydev_disconnect()
Dmousedev.c893 mousedev->dev.devt = MKDEV(INPUT_MAJOR, minor); in mousedev_create()
905 error = cdev_add(&mousedev->cdev, mousedev->dev.devt, 1); in mousedev_create()
932 input_free_minor(MINOR(mousedev->dev.devt)); in mousedev_destroy()
Devdev.c1179 evdev->dev.devt = MKDEV(INPUT_MAJOR, minor); in evdev_connect()
1191 error = cdev_add(&evdev->cdev, evdev->dev.devt, 1); in evdev_connect()
1218 input_free_minor(MINOR(evdev->dev.devt)); in evdev_disconnect()
/linux-4.1.27/sound/core/
Dsound.c288 device->devt = MKDEV(major, minor); in snd_register_device()
/linux-4.1.27/drivers/gpu/drm/
Ddrm_ioctl.c697 (long)old_encode_dev(file_priv->minor->kdev->devt), in drm_ioctl()
755 (long)old_encode_dev(file_priv->minor->kdev->devt), in drm_ioctl()
Ddrm_fops.c394 (long)old_encode_dev(file_priv->minor->kdev->devt), in drm_release()
Ddrm_sysfs.c569 kdev->devt = MKDEV(DRM_MAJOR, minor->index); in drm_sysfs_minor_alloc()
/linux-4.1.27/drivers/pwm/
Dsysfs.c199 export->child.devt = MKDEV(0, 0); in pwm_export_child()
/linux-4.1.27/sound/
Dsound_core.c34 if (MAJOR(dev->devt) == SOUND_MAJOR) in sound_devnode()
/linux-4.1.27/drivers/isdn/hardware/mISDN/
DmISDNisar.c818 isar_pump_statev_modem(struct isar_ch *ch, u8 devt) { in isar_pump_statev_modem() argument
821 switch (devt) { in isar_pump_statev_modem()
867 pr_info("u%s: unknown pump stev %x\n", ch->is->name, devt); in isar_pump_statev_modem()
873 isar_pump_statev_fax(struct isar_ch *ch, u8 devt) { in isar_pump_statev_fax() argument
877 switch (devt) { in isar_pump_statev_fax()
/linux-4.1.27/drivers/mtd/ubi/
Dvmt.c325 vol->dev.devt = dev; in ubi_create_volume()
655 vol->dev.devt = dev; in ubi_add_volume()
Dbuild.c409 ubi->dev.devt = ubi->cdev.dev; in ubi_sysfs_init()
/linux-4.1.27/init/
Ddo_mounts.c154 res = dev->devt; in devt_from_partuuid()
/linux-4.1.27/drivers/isdn/hisax/
Disar.c897 isar_pump_statev_modem(struct BCState *bcs, u_char devt) { in isar_pump_statev_modem() argument
901 switch (devt) { in isar_pump_statev_modem()
961 debugl1(cs, "unknown pump stev %x", devt); in isar_pump_statev_modem()
982 isar_pump_statev_fax(struct BCState *bcs, u_char devt) { in isar_pump_statev_fax() argument
987 switch (devt) { in isar_pump_statev_fax()
/linux-4.1.27/Documentation/sound/oss/
Dmwave102 SET PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;E:\ORAWIN95\BIN;f:\msdev\bin;e:\v30\bin.dbg;v:\devt\v30\bin;…
/linux-4.1.27/drivers/scsi/osd/
Dosd_uld.c487 oud->class_dev.devt = oud->cdev.dev; in osd_probe()
/linux-4.1.27/drivers/iio/
Dindustrialio-core.c1187 indio_dev->dev.devt = MKDEV(MAJOR(iio_devt), indio_dev->id); in iio_device_register()
1225 ret = cdev_add(&indio_dev->chrdev, indio_dev->dev.devt, 1); in iio_device_register()
/linux-4.1.27/drivers/scsi/
Dsd.c533 static struct kobject *sd_default_probe(dev_t devt, int *partno, void *data) in sd_default_probe() argument
3022 dev_t devt; in sd_remove() local
3025 devt = disk_devt(sdkp->disk); in sd_remove()
3034 blk_register_region(devt, SD_MINORS, NULL, in sd_remove()
/linux-4.1.27/drivers/i2c/
Di2c-dev.c103 struct i2c_dev *i2c_dev = i2c_dev_get_by_minor(MINOR(dev->devt)); in name_show()
/linux-4.1.27/drivers/usb/dwc3/
Dcore.h970 struct dwc3_event_devt devt; member
Dgadget.c2592 dwc3_gadget_interrupt(dwc, &event->devt); in dwc3_process_event_entry()
/linux-4.1.27/arch/mips/include/asm/octeon/
Dcvmx-pciercx-defs.h142 uint32_t devt:2; member
180 uint32_t devt:2;
340 uint32_t devt:2; member
364 uint32_t devt:2;
Dcvmx-pci-defs.h204 uint32_t devt:2; member
242 uint32_t devt:2;
/linux-4.1.27/drivers/usb/core/
Ddevio.c857 return dev->devt == (dev_t) (unsigned long) data; in match_devt()
860 static struct usb_device *usbdev_lookup_by_devt(dev_t devt) in usbdev_lookup_by_devt() argument
865 (void *) (unsigned long) devt, match_devt); in usbdev_lookup_by_devt()
Dhub.c2460 udev->dev.devt = MKDEV(USB_DEVICE_MAJOR, in usb_new_device()
/linux-4.1.27/drivers/tty/serial/
Dserial_core.c2013 dev_t devt = MKDEV(tty_drv->major, tty_drv->minor_start) + in serial_match_port() local
2016 return dev->devt == devt; /* Actually, only one tty per port */ in serial_match_port()
/linux-4.1.27/drivers/staging/unisys/visorchipset/
Dvisorchipset_main.c2236 visorchipset_platform_device.dev.devt = major_dev; in visorchipset_init()
2281 visorchipset_file_cleanup(visorchipset_platform_device.dev.devt); in visorchipset_exit()
/linux-4.1.27/drivers/media/v4l2-core/
Dv4l2-dev.c892 vdev->dev.devt = MKDEV(VIDEO_MAJOR, vdev->minor); in __video_register_device()
/linux-4.1.27/drivers/mtd/
Dmtdcore.c430 mtd->dev.devt = MTD_DEVT(i); in add_mtd_device()
/linux-4.1.27/drivers/usb/mon/
Dmon_bin.c1350 device_destroy(mon_bin_class, mbus->classdev->devt); in mon_bin_del()
/linux-4.1.27/drivers/infiniband/core/
Ducm.c1293 ucm_dev->dev.devt = ucm_dev->cdev.dev; in ib_ucm_add_one()