Home
last modified time | relevance | path

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

/linux-4.4.14/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.4.14/block/
Dgenhd.c412 int blk_alloc_devt(struct hd_struct *part, dev_t *devt) in blk_alloc_devt() argument
419 *devt = MKDEV(disk->major, disk->first_minor + part->partno); in blk_alloc_devt()
434 *devt = MKDEV(BLOCK_EXT_MAJOR, blk_mangle_minor(idx)); in blk_alloc_devt()
447 void blk_free_devt(dev_t devt) in blk_free_devt() argument
449 if (devt == MKDEV(0, 0)) in blk_free_devt()
452 if (MAJOR(devt) == BLOCK_EXT_MAJOR) { in blk_free_devt()
454 idr_remove(&ext_devt_idr, blk_mangle_minor(MINOR(devt))); in blk_free_devt()
459 static char *bdevt_str(dev_t devt, char *buf) in bdevt_str() argument
461 if (MAJOR(devt) <= 0xff && MINOR(devt) <= 0xff) { in bdevt_str()
463 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()
381 blk_free_devt(devt); in add_partition()
533 md_autodetect_dev(part_to_dev(part)->devt); in rescan_partitions()
/linux-4.4.14/drivers/char/tpm/
Dtpm-chip.c127 chip->dev.devt = MKDEV(MISC_MAJOR, TPM_MINOR); in tpmm_chip_alloc()
129 chip->dev.devt = MKDEV(MAJOR(tpm_devt), chip->dev_num); in tpmm_chip_alloc()
149 rc = cdev_add(&chip->cdev, chip->dev.devt, 1); in tpm_add_char_device()
153 chip->devname, MAJOR(chip->dev.devt), in tpm_add_char_device()
154 MINOR(chip->dev.devt), rc); in tpm_add_char_device()
163 chip->devname, MAJOR(chip->dev.devt), in tpm_add_char_device()
164 MINOR(chip->dev.devt), rc); in tpm_add_char_device()
/linux-4.4.14/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.4.14/kernel/bpf/
Dinode.c172 dev_t devt) in bpf_mkobj() argument
174 enum bpf_type type = MINOR(devt); in bpf_mkobj()
176 if (MAJOR(devt) != UNNAMED_MAJOR || !S_ISREG(mode) || in bpf_mkobj()
205 dev_t devt; in bpf_obj_do_pin() local
213 devt = MKDEV(UNNAMED_MAJOR, type); in bpf_obj_do_pin()
215 ret = security_path_mknod(&path, dentry, mode, devt); in bpf_obj_do_pin()
226 ret = vfs_mknod(dir, dentry, mode, devt); in bpf_obj_do_pin()
/linux-4.4.14/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()
973 format_dev_t(devt_str, dev->devt); in device_create_sys_dev_entry()
986 format_dev_t(devt_str, dev->devt); in device_remove_sys_dev_entry()
1100 if (MAJOR(dev->devt)) { in device_add()
1142 if (MAJOR(dev->devt)) in device_add()
1246 if (MAJOR(dev->devt)) { in device_del()
1681 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.4.14/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.4.14/include/linux/
Dgenhd.h268 return disk_to_dev(disk)->devt; in disk_devt()
273 return part_to_dev(part)->devt; in part_devt()
614 extern int blk_alloc_devt(struct hd_struct *part, dev_t *devt);
615 extern void blk_free_devt(dev_t devt);
635 extern void blk_register_region(dev_t devt, unsigned long range,
640 extern void blk_unregister_region(dev_t devt, unsigned long range);
758 dev_t devt = MKDEV(0, 0); in blk_lookup_devt() local
759 return devt; in blk_lookup_devt()
Ddevice.h824 dev_t devt; /* dev_t, creates the sysfs "dev" */ member
1051 dev_t devt, void *drvdata,
1055 dev_t devt, void *drvdata,
1059 struct device *parent, dev_t devt, void *drvdata,
1062 extern void device_destroy(struct class *cls, dev_t devt);
/linux-4.4.14/drivers/mtd/devices/
Dblock2mtd.c248 dev_t devt; in add_device() local
259 devt = name_to_dev_t(devname); in add_device()
260 if (!devt) in add_device()
262 bdev = blkdev_get_by_dev(devt, mode, dev); in add_device()
/linux-4.4.14/drivers/spi/
Dspidev.c76 dev_t devt; member
591 if (spidev->devt == inode->i_rdev) { in spidev_open()
742 spidev->devt = MKDEV(SPIDEV_MAJOR, minor); in spidev_probe()
743 dev = device_create(spidev_class, &spi->dev, spidev->devt, in spidev_probe()
779 device_destroy(spidev_class, spidev->devt); in spidev_remove()
780 clear_bit(MINOR(spidev->devt), minors); in spidev_remove()
/linux-4.4.14/drivers/net/wireless/ath/ath6kl/
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);
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.4.14/drivers/misc/cxl/
Dfile.c441 if (CXL_DEVT_IS_CARD(dev->devt)) { in cxl_devnode()
453 static int cxl_add_chardev(struct cxl_afu *afu, dev_t devt, struct cdev *cdev, in cxl_add_chardev() argument
461 if ((rc = cdev_add(cdev, devt, 1))) { in cxl_add_chardev()
466 dev = device_create(cxl_class, &afu->dev, devt, afu, in cxl_add_chardev()
/linux-4.4.14/drivers/usb/gadget/function/
Df_printer.c1021 dev_t devt; in printer_func_bind() local
1077 devt = MKDEV(major, dev->minor); in printer_func_bind()
1078 pdev = device_create(usb_gadget_class, NULL, devt, in printer_func_bind()
1092 ret = cdev_add(&dev->printer_cdev, devt, 1); in printer_func_bind()
1101 device_destroy(usb_gadget_class, devt); in printer_func_bind()
1440 dev_t devt; in gprinter_setup() local
1450 status = alloc_chrdev_region(&devt, 0, count, "USB printer gadget"); in gprinter_setup()
1458 major = MAJOR(devt); in gprinter_setup()
/linux-4.4.14/drivers/hwtracing/intel_th/
Dcore.c477 thdev->dev.devt = MKDEV(th->major, i); in intel_th_populate()
510 dev_t devt = (dev_t)(unsigned long)data; in match_devt() local
512 return dev->devt == devt; in match_devt()
/linux-4.4.14/drivers/rtc/
Drtc-dev.c471 rtc->dev.devt = MKDEV(MAJOR(rtc_devt), rtc->id); in rtc_dev_prepare()
485 if (cdev_add(&rtc->char_dev, rtc->dev.devt, 1)) in rtc_dev_add_device()
495 if (rtc->dev.devt) in rtc_dev_del_device()
/linux-4.4.14/drivers/tty/
Dtty_io.c3117 const dev_t *devt = data; in dev_match_devt() local
3118 return dev->devt == *devt; in dev_match_devt()
3124 dev_t devt = tty_devnum(tty); in tty_get_device() local
3125 return class_find_device(tty_class, NULL, &devt, dev_match_devt); in tty_get_device()
3284 dev_t devt = MKDEV(driver->major, driver->minor_start) + index; in tty_register_device_attr() local
3301 retval = tty_cdev_add(driver, devt, index, 1); in tty_register_device_attr()
3313 dev->devt = devt; in tty_register_device_attr()
3598 if (dev->devt == MKDEV(TTYAUX_MAJOR, 0) || in tty_devnode()
3599 dev->devt == MKDEV(TTYAUX_MAJOR, 2)) in tty_devnode()
/linux-4.4.14/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.4.14/drivers/net/
Dmacvtap.c1279 dev_t devt; in macvtap_device_event() local
1297 devt = MKDEV(MAJOR(macvtap_major), vlan->minor); in macvtap_device_event()
1298 classdev = device_create(macvtap_class, &dev->dev, devt, in macvtap_device_event()
1306 devt = MKDEV(MAJOR(macvtap_major), vlan->minor); in macvtap_device_event()
1307 device_destroy(macvtap_class, devt); in macvtap_device_event()
/linux-4.4.14/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.4.14/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.4.14/drivers/staging/comedi/
Dcomedi_fops.c387 unsigned int minor = MINOR(csdev->devt); in max_read_buffer_kb_show()
410 unsigned int minor = MINOR(csdev->devt); in max_read_buffer_kb_store()
443 unsigned int minor = MINOR(csdev->devt); in read_buffer_kb_show()
466 unsigned int minor = MINOR(csdev->devt); in read_buffer_kb_store()
500 unsigned int minor = MINOR(csdev->devt); in max_write_buffer_kb_show()
523 unsigned int minor = MINOR(csdev->devt); in max_write_buffer_kb_store()
556 unsigned int minor = MINOR(csdev->devt); in write_buffer_kb_show()
579 unsigned int minor = MINOR(csdev->devt); in write_buffer_kb_store()
/linux-4.4.14/drivers/hwtracing/stm/
Dcore.c324 return MAJOR(dev->devt) == major; in major_match()
631 stm->dev.devt = MKDEV(stm->major, 0); in stm_register_device()
955 device_destroy(&stm_source_class, src->dev.devt); in stm_source_unregister_device()
/linux-4.4.14/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.4.14/drivers/media/
Dmedia-devnode.c266 mdev->dev.devt = MKDEV(MAJOR(media_dev_t), mdev->minor); in media_devnode_register()
/linux-4.4.14/drivers/nvdimm/
Dbus.c315 dev_t devt = MKDEV(nvdimm_bus_major, nvdimm_bus->id); in nvdimm_bus_create_ndctl() local
318 dev = device_create(nd_class, &nvdimm_bus->dev, devt, nvdimm_bus, in nvdimm_bus_create_ndctl()
Ddimm_devs.c364 dev->devt = MKDEV(nvdimm_major, nvdimm->id); in nvdimm_create()
/linux-4.4.14/drivers/input/
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()
Djoydev.c898 joydev->dev.devt = MKDEV(INPUT_MAJOR, minor); in joydev_connect()
910 error = cdev_add(&joydev->cdev, joydev->dev.devt, 1); in joydev_connect()
937 input_free_minor(MINOR(joydev->dev.devt)); in joydev_disconnect()
Devdev.c1408 evdev->dev.devt = MKDEV(INPUT_MAJOR, minor); in evdev_connect()
1420 error = cdev_add(&evdev->cdev, evdev->dev.devt, 1); in evdev_connect()
1447 input_free_minor(MINOR(evdev->dev.devt)); in evdev_disconnect()
/linux-4.4.14/sound/core/
Dsound.c288 device->devt = MKDEV(major, minor); in snd_register_device()
/linux-4.4.14/drivers/pwm/
Dsysfs.c209 export->child.devt = MKDEV(0, 0); in pwm_export_child()
/linux-4.4.14/drivers/platform/chrome/
Dcros_ec_dev.c255 ec->class_dev.devt = ec->cdev.dev; in ec_device_probe()
/linux-4.4.14/drivers/gpu/drm/
Ddrm_ioctl.c722 (long)old_encode_dev(file_priv->minor->kdev->devt), in drm_ioctl()
783 (long)old_encode_dev(file_priv->minor->kdev->devt), in drm_ioctl()
Ddrm_sysfs.c600 kdev->devt = MKDEV(DRM_MAJOR, minor->index); in drm_sysfs_minor_alloc()
Ddrm_fops.c425 (long)old_encode_dev(file_priv->minor->kdev->devt), in drm_release()
/linux-4.4.14/sound/
Dsound_core.c34 if (MAJOR(dev->devt) == SOUND_MAJOR) in sound_devnode()
/linux-4.4.14/drivers/mtd/ubi/
Dvmt.c280 vol->dev.devt = dev; in ubi_create_volume()
607 vol->dev.devt = dev; in ubi_add_volume()
Dbuild.c432 ubi->dev.devt = ubi->cdev.dev; in ubi_sysfs_init()
/linux-4.4.14/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.4.14/init/
Ddo_mounts.c154 res = dev->devt; in devt_from_partuuid()
/linux-4.4.14/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.4.14/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.4.14/drivers/scsi/osd/
Dosd_uld.c487 oud->class_dev.devt = oud->cdev.dev; in osd_probe()
/linux-4.4.14/drivers/iio/
Dindustrialio-core.c1222 indio_dev->dev.devt = MKDEV(MAJOR(iio_devt), indio_dev->id); in iio_device_register()
1260 ret = cdev_add(&indio_dev->chrdev, indio_dev->dev.devt, 1); in iio_device_register()
/linux-4.4.14/drivers/usb/dwc3/
Dcore.h995 struct dwc3_event_devt devt; member
Dgadget.c2627 dwc3_gadget_interrupt(dwc, &event->devt); in dwc3_process_event_entry()
/linux-4.4.14/drivers/i2c/
Di2c-dev.c103 struct i2c_dev *i2c_dev = i2c_dev_get_by_minor(MINOR(dev->devt)); in name_show()
/linux-4.4.14/drivers/scsi/
Dsd.c535 static struct kobject *sd_default_probe(dev_t devt, int *partno, void *data) in sd_default_probe() argument
3145 dev_t devt; in sd_remove() local
3148 devt = disk_devt(sdkp->disk); in sd_remove()
3157 blk_register_region(devt, SD_MINORS, NULL, in sd_remove()
/linux-4.4.14/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.4.14/drivers/tty/serial/
Dserial_core.c2021 dev_t devt = MKDEV(tty_drv->major, tty_drv->minor_start) + in serial_match_port() local
2024 return dev->devt == devt; /* Actually, only one tty per port */ in serial_match_port()
/linux-4.4.14/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.c2475 udev->dev.devt = MKDEV(USB_DEVICE_MAJOR, in usb_new_device()
/linux-4.4.14/Documentation/DocBook/
Dkernel-api.xml.db710 API-blk-alloc-devt
711 API-blk-free-devt
/linux-4.4.14/drivers/staging/unisys/visorbus/
Dvisorchipset.c2321 visorchipset_platform_device.dev.devt = major_dev; in visorchipset_init()
2364 visorchipset_file_cleanup(visorchipset_platform_device.dev.devt); in visorchipset_exit()
/linux-4.4.14/drivers/media/v4l2-core/
Dv4l2-dev.c902 vdev->dev.devt = MKDEV(VIDEO_MAJOR, vdev->minor); in __video_register_device()
/linux-4.4.14/drivers/mtd/
Dmtdcore.c445 mtd->dev.devt = MTD_DEVT(i); in add_mtd_device()
/linux-4.4.14/drivers/usb/mon/
Dmon_bin.c1351 device_destroy(mon_bin_class, mbus->classdev->devt); in mon_bin_del()
/linux-4.4.14/drivers/infiniband/core/
Ducm.c1291 ucm_dev->dev.devt = ucm_dev->cdev.dev; in ib_ucm_add_one()