Searched refs:devt (Results 1 - 62 of 62) sorted by relevance

/linux-4.1.27/fs/fuse/
H A Dcuse.c75 static struct list_head *cuse_conntbl_head(dev_t devt) cuse_conntbl_head() argument
77 return &cuse_conntbl[(MAJOR(devt) + MINOR(devt)) % CUSE_CONNTBL_LEN]; cuse_conntbl_head()
113 dev_t devt = inode->i_cdev->dev; cuse_open() local
119 list_for_each_entry(pos, cuse_conntbl_head(devt), list) cuse_open()
120 if (pos->dev->devt == devt) { cuse_open()
315 dev_t devt; cuse_process_init_reply() local
335 /* determine and reserve devt */ cuse_process_init_reply()
336 devt = MKDEV(arg->dev_major, arg->dev_minor); cuse_process_init_reply()
337 if (!MAJOR(devt)) cuse_process_init_reply()
338 rc = alloc_chrdev_region(&devt, MINOR(devt), 1, devinfo.name); cuse_process_init_reply()
340 rc = register_chrdev_region(devt, 1, devinfo.name); cuse_process_init_reply()
346 /* devt determined, create device */ cuse_process_init_reply()
355 dev->devt = devt; cuse_process_init_reply()
382 rc = cdev_add(cdev, devt, 1); cuse_process_init_reply()
390 list_add(&cc->list, cuse_conntbl_head(devt)); cuse_process_init_reply()
407 unregister_chrdev_region(devt, 1); cuse_process_init_reply()
/linux-4.1.27/block/
H A Dgenhd.c28 /* for extended dynamic devt allocation, currently only one major is used */
31 /* For extended devt allocation. ext_devt_lock prevents look up
400 * @devt: out parameter for resulting dev_t
405 * 0 on success, allocated dev_t is returned in *@devt. -errno on
411 int blk_alloc_devt(struct hd_struct *part, dev_t *devt) blk_alloc_devt() argument
418 *devt = MKDEV(disk->major, disk->first_minor + part->partno); blk_alloc_devt()
422 /* allocate ext devt */ blk_alloc_devt()
433 *devt = MKDEV(BLOCK_EXT_MAJOR, blk_mangle_minor(idx)); blk_alloc_devt()
439 * @devt: dev_t to free
441 * Free @devt which was allocated using blk_alloc_devt().
446 void blk_free_devt(dev_t devt) blk_free_devt() argument
448 if (devt == MKDEV(0, 0)) blk_free_devt()
451 if (MAJOR(devt) == BLOCK_EXT_MAJOR) { blk_free_devt()
453 idr_remove(&ext_devt_idr, blk_mangle_minor(MINOR(devt))); blk_free_devt()
458 static char *bdevt_str(dev_t devt, char *buf) bdevt_str() argument
460 if (MAJOR(devt) <= 0xff && MINOR(devt) <= 0xff) { bdevt_str()
462 snprintf(tbuf, BDEVT_SIZE, "%02x%02x", MAJOR(devt), MINOR(devt)); bdevt_str()
465 snprintf(buf, BDEVT_SIZE, "%03x:%05x", MAJOR(devt), MINOR(devt)); bdevt_str()
475 void blk_register_region(dev_t devt, unsigned long range, struct module *module, blk_register_region() argument
479 kobj_map(bdev_map, devt, range, module, probe, lock, data); blk_register_region()
484 void blk_unregister_region(dev_t devt, unsigned long range) blk_unregister_region() argument
486 kobj_unmap(bdev_map, devt, range); blk_unregister_region()
491 static struct kobject *exact_match(dev_t devt, int *partno, void *data) exact_match() argument
498 static int exact_lock(dev_t devt, void *data) exact_lock() argument
585 dev_t devt; add_disk() local
588 /* minors == 0 indicates to use ext devt from part0 and should add_disk()
597 retval = blk_alloc_devt(&disk->part0, &devt); add_disk()
602 disk_to_dev(disk)->devt = devt; add_disk()
607 disk->major = MAJOR(devt); add_disk()
608 disk->first_minor = MINOR(devt); add_disk()
674 * @devt: device to get partitioning information for
678 * information for the given device @devt.
680 struct gendisk *get_gendisk(dev_t devt, int *partno) get_gendisk() argument
684 if (MAJOR(devt) != BLOCK_EXT_MAJOR) { get_gendisk()
687 kobj = kobj_lookup(bdev_map, devt, partno); get_gendisk()
694 part = idr_find(&ext_devt_idr, blk_mangle_minor(MINOR(devt))); get_gendisk()
891 static struct kobject *base_probe(dev_t devt, int *partno, void *data) base_probe() argument
893 if (request_module("block-major-%d-%d", MAJOR(devt), MINOR(devt)) > 0) base_probe()
895 request_module("block-major-%d", MAJOR(devt)); base_probe()
1108 blk_free_devt(dev->devt); disk_release()
1220 dev_t devt = MKDEV(0, 0); blk_lookup_devt() local
1236 devt = MKDEV(MAJOR(dev->devt), blk_lookup_devt()
1237 MINOR(dev->devt) + partno); blk_lookup_devt()
1242 devt = part_devt(part); blk_lookup_devt()
1249 return devt; blk_lookup_devt()
H A Dpartition-generic.c214 blk_free_devt(dev->devt); part_release()
274 dev_t devt = MKDEV(0, 0); add_partition() local
329 err = blk_alloc_devt(p, &devt); add_partition()
332 pdev->devt = devt; add_partition()
374 blk_free_devt(devt); add_partition()
525 md_autodetect_dev(part_to_dev(part)->devt); rescan_partitions()
/linux-4.1.27/drivers/char/tpm/
H A Dtpm-chip.c124 chip->dev.devt = MKDEV(MISC_MAJOR, TPM_MINOR); tpmm_chip_alloc()
126 chip->dev.devt = MKDEV(MAJOR(tpm_devt), chip->dev_num); tpmm_chip_alloc()
144 rc = cdev_add(&chip->cdev, chip->dev.devt, 1); tpm_dev_add_device()
148 chip->devname, MAJOR(chip->dev.devt), tpm_dev_add_device()
149 MINOR(chip->dev.devt), rc); tpm_dev_add_device()
159 chip->devname, MAJOR(chip->dev.devt), tpm_dev_add_device()
160 MINOR(chip->dev.devt), rc); tpm_dev_add_device()
/linux-4.1.27/drivers/char/xilinx_hwicap/
H A Dxilinx_hwicap.c603 dev_t devt; hwicap_setup() local
631 devt = MKDEV(XHWICAP_MAJOR, XHWICAP_MINOR + id); hwicap_setup()
659 drvdata->devt = devt; hwicap_setup()
681 retval = cdev_add(&drvdata->cdev, devt, 1); hwicap_setup()
687 device_create(icap_class, dev, devt, NULL, "%s%d", DRIVER_NAME, id); hwicap_setup()
730 device_destroy(icap_class, drvdata->devt); hwicap_remove()
737 probed_devices[MINOR(dev->devt)-XHWICAP_MINOR] = 0; hwicap_remove()
853 dev_t devt; hwicap_module_init() local
859 devt = MKDEV(XHWICAP_MAJOR, XHWICAP_MINOR); hwicap_module_init()
860 retval = register_chrdev_region(devt, hwicap_module_init()
873 unregister_chrdev_region(devt, HWICAP_DEVICES); hwicap_module_init()
880 dev_t devt = MKDEV(XHWICAP_MAJOR, XHWICAP_MINOR); hwicap_module_cleanup() local
886 unregister_chrdev_region(devt, HWICAP_DEVICES); hwicap_module_cleanup()
H A Dxilinx_hwicap.h54 dev_t devt; member in struct:hwicap_drvdata
/linux-4.1.27/drivers/base/
H A Dcore.c305 if (MAJOR(dev->devt)) { dev_uevent()
312 add_uevent_var(env, "MAJOR=%u", MAJOR(dev->devt)); dev_uevent()
313 add_uevent_var(env, "MINOR=%u", MINOR(dev->devt)); dev_uevent()
529 return print_dev_t(buf, dev->devt); dev_show()
924 format_dev_t(devt_str, dev->devt); device_create_sys_dev_entry()
937 format_dev_t(devt_str, dev->devt); device_remove_sys_dev_entry()
1051 if (MAJOR(dev->devt)) { device_add()
1093 if (MAJOR(dev->devt)) device_add()
1197 if (MAJOR(dev->devt)) { device_del()
1590 dev_t devt, void *drvdata, device_create_groups_vargs()
1607 dev->devt = devt; device_create_groups_vargs()
1633 * @devt: the dev_t for the char device to be added
1655 dev_t devt, void *drvdata, const char *fmt, device_create_vargs()
1658 return device_create_groups_vargs(class, parent, devt, drvdata, NULL, device_create_vargs()
1667 * @devt: the dev_t for the char device to be added
1688 dev_t devt, void *drvdata, const char *fmt, ...) device_create()
1694 dev = device_create_vargs(class, parent, devt, drvdata, fmt, vargs); device_create()
1704 * @devt: the dev_t for the char device to be added
1728 struct device *parent, dev_t devt, device_create_with_groups()
1737 dev = device_create_groups_vargs(class, parent, devt, drvdata, groups, device_create_with_groups()
1746 const dev_t *devt = data; __match_devt() local
1748 return dev->devt == *devt; __match_devt()
1754 * @devt: the dev_t of the device that was previously registered
1759 void device_destroy(struct class *class, dev_t devt) device_destroy() argument
1763 dev = class_find_device(class, NULL, &devt, __match_devt); device_destroy()
2035 if (MAJOR(dev->devt)) { create_syslog_header()
2045 c, MAJOR(dev->devt), MINOR(dev->devt)); create_syslog_header()
1589 device_create_groups_vargs(struct class *class, struct device *parent, dev_t devt, void *drvdata, const struct attribute_group **groups, const char *fmt, va_list args) device_create_groups_vargs() argument
1654 device_create_vargs(struct class *class, struct device *parent, dev_t devt, void *drvdata, const char *fmt, va_list args) device_create_vargs() argument
1687 device_create(struct class *class, struct device *parent, dev_t devt, void *drvdata, const char *fmt, ...) device_create() argument
1727 device_create_with_groups(struct class *class, struct device *parent, dev_t devt, void *drvdata, const struct attribute_group **groups, const char *fmt, ...) device_create_with_groups() argument
H A Ddevtmpfs.c210 err = vfs_mknod(d_inode(path.dentry), dentry, mode, dev->devt); handle_create()
291 if (stat->rdev != dev->devt) dev_mynode()
/linux-4.1.27/drivers/pps/
H A Dpps.c295 dev_t devt; pps_register_cdev() local
314 devt = MKDEV(MAJOR(pps_devt), pps->id); pps_register_cdev()
319 err = cdev_add(&pps->cdev, devt, 1); pps_register_cdev()
325 pps->dev = device_create(pps_class, pps->info.dev, devt, pps, pps_register_cdev()
355 device_destroy(pps_class, pps->dev->devt); pps_unregister_cdev()
/linux-4.1.27/include/linux/
H A Dgenhd.h137 #define GENHD_FL_EXT_DEVT 64 /* allow extended devt */
255 return disk_to_dev(disk)->devt; disk_devt()
260 return part_to_dev(part)->devt; 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); blk_lookup_devt() local
724 return devt; blk_lookup_devt()
H A Ddevice.h700 * @devt: For creating the sysfs "dev".
777 dev_t devt; /* dev_t, creates the sysfs "dev" */ member in struct:device
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/
H A Dblock2mtd.c247 dev_t devt; add_device() local
258 devt = name_to_dev_t(devname); add_device()
259 if (!devt) add_device()
261 bdev = blkdev_get_by_dev(devt, mode, dev); add_device()
/linux-4.1.27/drivers/misc/cxl/
H A Dfile.c387 if (CXL_DEVT_IS_CARD(dev->devt)) { cxl_devnode()
399 static int cxl_add_chardev(struct cxl_afu *afu, dev_t devt, struct cdev *cdev, cxl_add_chardev() argument
407 if ((rc = cdev_add(cdev, devt, 1))) { cxl_add_chardev()
412 dev = device_create(cxl_class, &afu->dev, devt, afu, cxl_add_chardev()
482 * adapter->dev.devt = CXL_CARD_MKDEV(adapter); cxl_register_adapter()
/linux-4.1.27/drivers/spi/
H A Dspidev.c76 dev_t devt; member in struct:spidev_data
603 if (spidev->devt == inode->i_rdev) { spidev_open()
754 spidev->devt = MKDEV(SPIDEV_MAJOR, minor); spidev_probe()
755 dev = device_create(spidev_class, &spi->dev, spidev->devt, spidev_probe()
791 device_destroy(spidev_class, spidev->devt); spidev_remove()
792 clear_bit(MINOR(spidev->devt), minors); spidev_remove()
/linux-4.1.27/arch/mips/kernel/
H A Dvpe-cmp.c123 vpe_device.devt = MKDEV(major, VPE_MODULE_MINOR); vpe_module_init()
H A Dvpe-mt.c371 vpe_device.devt = MKDEV(major, VPE_MODULE_MINOR); vpe_module_init()
/linux-4.1.27/drivers/usb/gadget/function/
H A Df_printer.c1017 dev_t devt; printer_func_bind() local
1075 devt = MKDEV(major, dev->minor); printer_func_bind()
1076 pdev = device_create(usb_gadget_class, NULL, devt, printer_func_bind()
1090 ret = cdev_add(&dev->printer_cdev, devt, 1); printer_func_bind()
1099 device_destroy(usb_gadget_class, devt); printer_func_bind()
1439 dev_t devt; gprinter_setup() local
1449 status = alloc_chrdev_region(&devt, 0, count, "USB printer gadget"); gprinter_setup()
1457 major = MAJOR(devt); gprinter_setup()
/linux-4.1.27/drivers/net/wireless/ath/ath6kl/
H A 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);
H A Dmain.c149 enum htc_endpoint_id ath6kl_ac2_endpoint_id(void *devt, u8 ac) ath6kl_ac2_endpoint_id() argument
151 struct ath6kl *ar = devt; ath6kl_ac2_endpoint_id()
522 void ath6kl_ready_event(void *devt, u8 *datap, u32 sw_ver, u32 abi_ver, ath6kl_ready_event() argument
525 struct ath6kl *ar = devt; ath6kl_ready_event()
854 void ath6kl_txpwr_rx_evt(void *devt, u8 tx_pwr) ath6kl_txpwr_rx_evt() argument
856 struct ath6kl *ar = (struct ath6kl *) devt; ath6kl_txpwr_rx_evt()
H A Dtxrx.c286 int ath6kl_control_tx(void *devt, struct sk_buff *skb, ath6kl_control_tx() argument
289 struct ath6kl *ar = devt; ath6kl_control_tx()
530 void ath6kl_indicate_tx_activity(void *devt, u8 traffic_class, bool active) ath6kl_indicate_tx_activity() argument
532 struct ath6kl *ar = devt; ath6kl_indicate_tx_activity()
H A Dwmi.h2727 void *ath6kl_wmi_init(struct ath6kl *devt);
/linux-4.1.27/drivers/rtc/
H A Drtc-dev.c471 rtc->dev.devt = MKDEV(MAJOR(rtc_devt), rtc->id); rtc_dev_prepare()
484 if (cdev_add(&rtc->char_dev, rtc->dev.devt, 1)) rtc_dev_add_device()
494 if (rtc->dev.devt) rtc_dev_del_device()
/linux-4.1.27/arch/x86/kernel/
H A Dcpuid.c180 return kasprintf(GFP_KERNEL, "cpu/%u/cpuid", MINOR(dev->devt)); cpuid_devnode()
H A Dmsr.c244 return kasprintf(GFP_KERNEL, "cpu/%u/msr", MINOR(dev->devt)); msr_devnode()
/linux-4.1.27/drivers/net/
H A Dmacvtap.c1181 dev_t devt; macvtap_device_event() local
1199 devt = MKDEV(MAJOR(macvtap_major), vlan->minor); macvtap_device_event()
1200 classdev = device_create(macvtap_class, &dev->dev, devt, macvtap_device_event()
1208 devt = MKDEV(MAJOR(macvtap_major), vlan->minor); macvtap_device_event()
1209 device_destroy(macvtap_class, devt); macvtap_device_event()
/linux-4.1.27/drivers/input/
H A Djoydev.c909 joydev->dev.devt = MKDEV(INPUT_MAJOR, minor); joydev_connect()
921 error = cdev_add(&joydev->cdev, joydev->dev.devt, 1); joydev_connect()
948 input_free_minor(MINOR(joydev->dev.devt)); joydev_disconnect()
H A Dmousedev.c893 mousedev->dev.devt = MKDEV(INPUT_MAJOR, minor); mousedev_create()
905 error = cdev_add(&mousedev->cdev, mousedev->dev.devt, 1); mousedev_create()
932 input_free_minor(MINOR(mousedev->dev.devt)); mousedev_destroy()
H A Devdev.c1179 evdev->dev.devt = MKDEV(INPUT_MAJOR, minor); evdev_connect()
1191 error = cdev_add(&evdev->cdev, evdev->dev.devt, 1); evdev_connect()
1218 input_free_minor(MINOR(evdev->dev.devt)); evdev_disconnect()
/linux-4.1.27/drivers/staging/comedi/
H A Dcomedi_fops.c373 unsigned int minor = MINOR(csdev->devt); max_read_buffer_kb_show()
396 unsigned int minor = MINOR(csdev->devt); max_read_buffer_kb_store()
429 unsigned int minor = MINOR(csdev->devt); read_buffer_kb_show()
452 unsigned int minor = MINOR(csdev->devt); read_buffer_kb_store()
486 unsigned int minor = MINOR(csdev->devt); max_write_buffer_kb_show()
509 unsigned int minor = MINOR(csdev->devt); max_write_buffer_kb_store()
542 unsigned int minor = MINOR(csdev->devt); write_buffer_kb_show()
565 unsigned int minor = MINOR(csdev->devt); write_buffer_kb_store()
/linux-4.1.27/drivers/pwm/
H A Dsysfs.c199 export->child.devt = MKDEV(0, 0); pwm_export_child()
/linux-4.1.27/drivers/firewire/
H A Dcore-device.c764 struct fw_device *fw_device_get_by_devt(dev_t devt) fw_device_get_by_devt() argument
769 device = idr_find(&fw_device_idr, MINOR(devt)); fw_device_get_by_devt()
806 int minor = MINOR(device->device.devt); fw_device_shutdown()
1052 device->device.devt = MKDEV(fw_cdev_major, minor); fw_device_init()
H A Dcore.h150 struct fw_device *fw_device_get_by_devt(dev_t devt);
/linux-4.1.27/drivers/isdn/hardware/mISDN/
H A DmISDNisar.c818 isar_pump_statev_modem(struct isar_ch *ch, u8 devt) { isar_pump_statev_modem() argument
821 switch (devt) { isar_pump_statev_modem()
867 pr_info("u%s: unknown pump stev %x\n", ch->is->name, devt); isar_pump_statev_modem()
873 isar_pump_statev_fax(struct isar_ch *ch, u8 devt) { isar_pump_statev_fax() argument
877 switch (devt) { isar_pump_statev_fax()
/linux-4.1.27/drivers/char/
H A Dvirtio_console.c1395 dev_t devt; add_port() local
1432 devt = MKDEV(portdev->chr_major, id); add_port()
1433 err = cdev_add(port->cdev, devt, 1); add_port()
1440 devt, port, "vport%up%u", add_port()
1508 device_destroy(pdrvdata.class, port->dev->devt); add_port()
1592 device_destroy(pdrvdata.class, port->dev->devt); unplug_port()
H A Dmem.c836 if (mode && devlist[MINOR(dev->devt)].mode) mem_devnode()
837 *mode = devlist[MINOR(dev->devt)].mode; mem_devnode()
/linux-4.1.27/drivers/gpu/drm/
H A Ddrm_ioctl.c697 (long)old_encode_dev(file_priv->minor->kdev->devt), drm_ioctl()
755 (long)old_encode_dev(file_priv->minor->kdev->devt), drm_ioctl()
H A Ddrm_fops.c394 (long)old_encode_dev(file_priv->minor->kdev->devt), drm_release()
H A Ddrm_sysfs.c569 kdev->devt = MKDEV(DRM_MAJOR, minor->index); drm_sysfs_minor_alloc()
/linux-4.1.27/drivers/media/
H A Dmedia-devnode.c266 mdev->dev.devt = MKDEV(MAJOR(media_dev_t), mdev->minor); media_devnode_register()
/linux-4.1.27/sound/core/
H A Dsound.c288 device->devt = MKDEV(major, minor); snd_register_device()
/linux-4.1.27/drivers/isdn/hisax/
H A Disar.c897 isar_pump_statev_modem(struct BCState *bcs, u_char devt) { isar_pump_statev_modem() argument
901 switch (devt) { isar_pump_statev_modem()
961 debugl1(cs, "unknown pump stev %x", devt); isar_pump_statev_modem()
982 isar_pump_statev_fax(struct BCState *bcs, u_char devt) { isar_pump_statev_fax() argument
987 switch (devt) { isar_pump_statev_fax()
/linux-4.1.27/drivers/tty/
H A Dtty_io.c3124 const dev_t *devt = data; dev_match_devt() local
3125 return dev->devt == *devt; dev_match_devt()
3131 dev_t devt = tty_devnum(tty); tty_get_device() local
3132 return class_find_device(tty_class, NULL, &devt, dev_match_devt); tty_get_device()
3283 dev_t devt = MKDEV(driver->major, driver->minor_start) + index; tty_register_device_attr() local
3300 retval = tty_cdev_add(driver, devt, index, 1); tty_register_device_attr()
3312 dev->devt = devt; tty_register_device_attr()
3592 if (dev->devt == MKDEV(TTYAUX_MAJOR, 0) || tty_devnode()
3593 dev->devt == MKDEV(TTYAUX_MAJOR, 2)) tty_devnode()
/linux-4.1.27/drivers/scsi/osd/
H A Dosd_uld.c487 oud->class_dev.devt = oud->cdev.dev; osd_probe()
/linux-4.1.27/arch/mips/include/asm/octeon/
H A Dcvmx-pciercx-defs.h142 uint32_t devt:2; member in struct:cvmx_pciercx_cfg001::cvmx_pciercx_cfg001_s
180 uint32_t devt:2;
340 uint32_t devt:2; member in struct:cvmx_pciercx_cfg007::cvmx_pciercx_cfg007_s
364 uint32_t devt:2;
H A Dcvmx-pci-defs.h204 uint32_t devt:2; member in struct:cvmx_pci_cfg01::cvmx_pci_cfg01_s
242 uint32_t devt:2;
/linux-4.1.27/init/
H A Ddo_mounts.c154 res = dev->devt; devt_from_partuuid()
/linux-4.1.27/sound/
H A Dsound_core.c34 if (MAJOR(dev->devt) == SOUND_MAJOR) sound_devnode()
/linux-4.1.27/drivers/iio/
H A Dindustrialio-core.c1187 indio_dev->dev.devt = MKDEV(MAJOR(iio_devt), indio_dev->id); iio_device_register()
1225 ret = cdev_add(&indio_dev->chrdev, indio_dev->dev.devt, 1); iio_device_register()
/linux-4.1.27/drivers/mtd/ubi/
H A Dvmt.c325 vol->dev.devt = dev; ubi_create_volume()
655 vol->dev.devt = dev; ubi_add_volume()
H A Dbuild.c409 ubi->dev.devt = ubi->cdev.dev; ubi_sysfs_init()
/linux-4.1.27/drivers/usb/dwc3/
H A Dcore.h963 * @devt: Device Event
970 struct dwc3_event_devt devt; member in union:dwc3_event
H A Dgadget.c2592 dwc3_gadget_interrupt(dwc, &event->devt); dwc3_process_event_entry()
/linux-4.1.27/drivers/usb/core/
H A Ddevio.c857 return dev->devt == (dev_t) (unsigned long) data; match_devt()
860 static struct usb_device *usbdev_lookup_by_devt(dev_t devt) usbdev_lookup_by_devt() argument
865 (void *) (unsigned long) devt, match_devt); usbdev_lookup_by_devt()
H A Dhub.c2460 udev->dev.devt = MKDEV(USB_DEVICE_MAJOR, usb_new_device()
/linux-4.1.27/drivers/i2c/
H A Di2c-dev.c103 struct i2c_dev *i2c_dev = i2c_dev_get_by_minor(MINOR(dev->devt)); name_show()
/linux-4.1.27/drivers/scsi/
H A Dsd.c533 static struct kobject *sd_default_probe(dev_t devt, int *partno, void *data) sd_default_probe() argument
3022 dev_t devt; sd_remove() local
3025 devt = disk_devt(sdkp->disk); sd_remove()
3034 blk_register_region(devt, SD_MINORS, NULL, sd_remove()
/linux-4.1.27/drivers/tty/serial/
H A Dserial_core.c2013 dev_t devt = MKDEV(tty_drv->major, tty_drv->minor_start) + serial_match_port() local
2016 return dev->devt == devt; /* Actually, only one tty per port */ serial_match_port()
/linux-4.1.27/drivers/staging/unisys/visorchipset/
H A Dvisorchipset_main.c2236 visorchipset_platform_device.dev.devt = major_dev; visorchipset_init()
2281 visorchipset_file_cleanup(visorchipset_platform_device.dev.devt); visorchipset_exit()
/linux-4.1.27/drivers/infiniband/core/
H A Ducm.c1293 ucm_dev->dev.devt = ucm_dev->cdev.dev; ib_ucm_add_one()
/linux-4.1.27/drivers/mtd/
H A Dmtdcore.c430 mtd->dev.devt = MTD_DEVT(i); add_mtd_device()
/linux-4.1.27/drivers/media/v4l2-core/
H A Dv4l2-dev.c892 vdev->dev.devt = MKDEV(VIDEO_MAJOR, vdev->minor); __video_register_device()
/linux-4.1.27/drivers/usb/mon/
H A Dmon_bin.c1350 device_destroy(mon_bin_class, mbus->classdev->devt); mon_bin_del()

Completed in 1644 milliseconds