/linux-4.1.27/include/linux/ |
H A D | cdev.h | 27 int cdev_add(struct cdev *, dev_t, unsigned);
|
/linux-4.1.27/arch/sh/boards/mach-landisk/ |
H A D | gio.c | 151 error = cdev_add(cdev_p, dev, DEVCOUNT); gio_init() 154 "gio: Couldn't cdev_add, error=%d\n", error); gio_init()
|
/linux-4.1.27/fs/ |
H A D | char_dev.c | 262 err = cdev_add(cdev, MKDEV(cd->major, baseminor), count); __register_chrdev() 443 * cdev_add() - add a char device to the system 449 * cdev_add() adds the device represented by @p to the system, making it 452 int cdev_add(struct cdev *p, dev_t dev, unsigned count) cdev_add() function 536 * system with cdev_add(). 567 EXPORT_SYMBOL(cdev_add); variable
|
/linux-4.1.27/drivers/s390/char/ |
H A D | tape_class.c | 73 rc = cdev_add(tcd->char_device, tcd->char_device->dev, 1); register_tape_dev()
|
H A D | hmcdrv_dev.c | 301 rc = cdev_add(&hmcdrv_dev.dev, hmcdrv_dev_no, 1); hmcdrv_dev_init()
|
H A D | vmlogrdr.c | 821 rc = cdev_add(vmlogrdr_cdev, vmlogrdr_cdev->dev, MAXMINOR); vmlogrdr_register_cdev()
|
H A D | vmur.c | 910 rc = cdev_add(urd->char_device, urd->char_device->dev, 1); ur_set_online()
|
/linux-4.1.27/drivers/char/ |
H A D | scx200_gpio.c | 110 cdev_add(&scx200_gpio_cdev, devid, MAX_PINS); scx200_gpio_init()
|
H A D | msm_smd_pkt.c | 400 r = cdev_add(&smd_pkt_devp[i]->cdev, smd_pkt_init() 403 pr_err("cdev_add() failed %d\n", r); smd_pkt_init()
|
H A D | pc8736x_gpio.c | 326 cdev_add(&pc8736x_gpio_cdev, devid, PC8736X_GPIO_CT); pc8736x_gpio_init()
|
H A D | raw.c | 335 ret = cdev_add(&raw_cdev, dev, max_raw_minors); raw_init()
|
H A D | bsr.c | 255 result = cdev_add(&cur->bsr_cdev, cur->bsr_dev, 1); bsr_add_node()
|
H A D | snsc.c | 439 if (cdev_add(&scd->scd_cdev, dev, 1)) { scdrv_init()
|
H A D | tile-srom.c | 414 result = cdev_add(&srom_cdev, dev, srom_devs); srom_init()
|
H A D | virtio_console.c | 1433 err = cdev_add(port->cdev, devt, 1); add_port()
|
/linux-4.1.27/drivers/staging/unisys/visorchipset/ |
H A D | file.c | 154 rc = cdev_add(&file_cdev, MKDEV(MAJOR(major_dev), 0), 1); visorchipset_file_init()
|
/linux-4.1.27/drivers/char/tpm/ |
H A D | tpm-chip.c | 144 rc = cdev_add(&chip->cdev, chip->dev.devt, 1); tpm_dev_add_device() 147 "unable to cdev_add() %s, major %d, minor %d, err=%d\n", tpm_dev_add_device()
|
/linux-4.1.27/drivers/media/ |
H A D | media-devnode.c | 258 ret = cdev_add(&mdev->cdev, MKDEV(MAJOR(media_dev_t), mdev->minor), 1); media_devnode_register() 260 pr_err("%s: cdev_add failed\n", __func__); media_devnode_register()
|
/linux-4.1.27/drivers/misc/mic/host/ |
H A D | mic_main.c | 406 rc = cdev_add(&mdev->cdev, MKDEV(MAJOR(g_mic_devno), mdev->id), 1); mic_probe() 408 dev_err(&pdev->dev, "cdev_add err id %d rc %d\n", mdev->id, rc); mic_probe()
|
/linux-4.1.27/drivers/scsi/osd/ |
H A D | osd_uld.c | 479 error = cdev_add(&oud->cdev, osd_probe() 482 OSD_ERR("cdev_add failed\n"); osd_probe()
|
/linux-4.1.27/drivers/platform/chrome/ |
H A D | cros_ec_dev.c | 186 retval = cdev_add(&ec->cdev, devno, 1); ec_device_probe()
|
/linux-4.1.27/drivers/char/xilinx_hwicap/ |
H A D | xilinx_hwicap.c | 681 retval = cdev_add(&drvdata->cdev, devt, 1); hwicap_setup() 683 dev_err(dev, "cdev_add() failed\n"); hwicap_setup()
|
/linux-4.1.27/drivers/staging/ozwpan/ |
H A D | ozcdev.c | 370 err = cdev_add(&g_cdev.cdev, g_cdev.devnum, 1); oz_cdev_register()
|
/linux-4.1.27/drivers/hid/ |
H A D | hid-roccat.c | 433 retval = cdev_add(&roccat_cdev, dev_id, ROCCAT_MAX_DEVICES); roccat_init()
|
H A D | hidraw.c | 605 result = cdev_add(&hidraw_cdev, dev_id, HIDRAW_MAX_DEVICES); hidraw_init()
|
/linux-4.1.27/drivers/pps/ |
H A D | pps.c | 319 err = cdev_add(&pps->cdev, devt, 1); pps_register_cdev()
|
/linux-4.1.27/kernel/time/ |
H A D | posix-clock.c | 218 err = cdev_add(&clk->cdev, devid, 1); posix_clock_register()
|
/linux-4.1.27/drivers/misc/cxl/ |
H A D | file.c | 407 if ((rc = cdev_add(cdev, devt, 1))) { cxl_add_chardev()
|
/linux-4.1.27/drivers/misc/ |
H A D | phantom.c | 404 retval = cdev_add(&pht->cdev, MKDEV(phantom_major, minor), 1); phantom_probe()
|
H A D | hpilo.c | 819 error = cdev_add(&ilo_hw->cdev, MKDEV(ilo_major, start), max_ccb); ilo_probe()
|
/linux-4.1.27/drivers/rtc/ |
H A D | rtc-dev.c | 484 if (cdev_add(&rtc->char_dev, rtc->dev.devt, 1)) rtc_dev_add_device()
|
/linux-4.1.27/drivers/crypto/qat/qat_common/ |
H A D | adf_ctl_drv.c | 107 if (cdev_add(&adf_ctl_drv.drv_cdev, dev_id, 1)) { adf_chr_drv_create()
|
/linux-4.1.27/drivers/media/dvb-core/ |
H A D | dvbdev.c | 607 if ((retval = cdev_add(&dvb_device_cdev, dev, MAX_DVB_MINORS)) != 0) { init_dvbdev()
|
/linux-4.1.27/fs/fuse/ |
H A D | cuse.c | 382 rc = cdev_add(cdev, devt, 1); cuse_process_init_reply()
|
/linux-4.1.27/drivers/watchdog/ |
H A D | watchdog_dev.c | 548 err = cdev_add(&watchdog->cdev, devno, 1); watchdog_dev_register()
|
/linux-4.1.27/drivers/infiniband/core/ |
H A D | user_mad.c | 1182 if (cdev_add(&port->cdev, base, 1)) ib_umad_init_port() 1201 if (cdev_add(&port->sm_cdev, base, 1)) ib_umad_init_port()
|
H A D | ucm.c | 1288 if (cdev_add(&ucm_dev->cdev, base, 1)) ib_ucm_add_one()
|
H A D | uverbs_main.c | 935 if (cdev_add(&uverbs_dev->cdev, base, 1)) ib_uverbs_add_one()
|
/linux-4.1.27/drivers/mtd/ubi/ |
H A D | vmt.c | 317 err = cdev_add(&vol->cdev, dev, 1); ubi_create_volume() 646 err = cdev_add(&vol->cdev, dev, 1); ubi_add_volume()
|
H A D | build.c | 529 err = cdev_add(&ubi->cdev, dev, 1); uif_init()
|
/linux-4.1.27/drivers/media/v4l2-core/ |
H A D | v4l2-dev.c | 882 ret = cdev_add(vdev->cdev, MKDEV(VIDEO_MAJOR, vdev->minor), 1); __video_register_device() 884 printk(KERN_ERR "%s: cdev_add failed\n", __func__); __video_register_device()
|
/linux-4.1.27/drivers/misc/genwqe/ |
H A D | card_dev.c | 1292 rc = cdev_add(&cd->cdev_genwqe, cd->devnum_genwqe, 1); genwqe_device_create() 1294 dev_err(&pci_dev->dev, "err: cdev_add failed\n"); genwqe_device_create()
|
/linux-4.1.27/drivers/media/rc/ |
H A D | lirc_dev.c | 191 retval = cdev_add(cdev, MKDEV(MAJOR(lirc_base_dev), d->minor), 1); lirc_cdev_add()
|
/linux-4.1.27/drivers/misc/mei/ |
H A D | main.c | 691 ret = cdev_add(&dev->cdev, devno, 1); mei_register()
|
/linux-4.1.27/drivers/input/ |
H A D | joydev.c | 921 error = cdev_add(&joydev->cdev, joydev->dev.devt, 1); joydev_connect()
|
H A D | mousedev.c | 905 error = cdev_add(&mousedev->cdev, mousedev->dev.devt, 1); mousedev_create()
|
H A D | evdev.c | 1191 error = cdev_add(&evdev->cdev, evdev->dev.devt, 1); evdev_connect()
|
/linux-4.1.27/drivers/hsi/clients/ |
H A D | hsi_char.c | 732 ret = cdev_add(&cl_data->cdev, hsc_dev, HSC_DEVS); hsc_probe()
|
/linux-4.1.27/drivers/tty/ |
H A D | pty.c | 873 if (cdev_add(&ptmx_cdev, MKDEV(TTYAUX_MAJOR, 2), 1) || unix98_pty_init()
|
H A D | tty_io.c | 3222 return cdev_add(&driver->cdevs[index], dev, count); tty_cdev_add() 3673 if (cdev_add(&tty_cdev, MKDEV(TTYAUX_MAJOR, 0), 1) || tty_init() 3679 if (cdev_add(&console_cdev, MKDEV(TTYAUX_MAJOR, 1), 1) || tty_init()
|
/linux-4.1.27/drivers/uio/ |
H A D | uio.c | 739 result = cdev_add(cdev, uio_dev, UIO_MAX_DEVICES); uio_major_init()
|
/linux-4.1.27/drivers/usb/gadget/function/ |
H A D | f_hid.c | 670 status = cdev_add(&hidg->cdev, dev, 1); hidg_bind()
|
H A D | f_printer.c | 1090 ret = cdev_add(&dev->printer_cdev, devt, 1); printer_func_bind()
|
/linux-4.1.27/drivers/iio/ |
H A D | industrialio-core.c | 1225 ret = cdev_add(&indio_dev->chrdev, indio_dev->dev.devt, 1); iio_device_register()
|
/linux-4.1.27/drivers/net/ |
H A D | macvtap.c | 1231 err = cdev_add(&macvtap_cdev, macvtap_major, MACVTAP_NUM_DEVS); macvtap_init()
|
/linux-4.1.27/drivers/staging/vme/devices/ |
H A D | vme_user.c | 786 err = cdev_add(vme_user_cdev, MKDEV(VME_MAJOR, 0), VME_DEVS); vme_user_probe()
|
/linux-4.1.27/block/ |
H A D | bsg.c | 1077 ret = cdev_add(&bsg_cdev, MKDEV(bsg_major, 0), BSG_MAX_DEVS); bsg_init()
|
/linux-4.1.27/arch/tile/kernel/ |
H A D | hardwall.c | 1090 rc = cdev_add(&hardwall_dev, dev, HARDWALL_TYPES); dev_hardwall_init()
|
/linux-4.1.27/drivers/usb/mon/ |
H A D | mon_bin.c | 1370 rc = cdev_add(&mon_bin_cdev, mon_bin_dev0, MON_BIN_MAX_MINOR); mon_bin_init()
|
/linux-4.1.27/drivers/char/xillybus/ |
H A D | xillybus_core.c | 1825 rc = cdev_add(&endpoint->cdev, MKDEV(major, minor), xillybus_init_chrdev()
|
/linux-4.1.27/drivers/vfio/ |
H A D | vfio.c | 1566 ret = cdev_add(&vfio.group_cdev, vfio.group_devt, MINORMASK); vfio_init()
|
/linux-4.1.27/arch/cris/arch-v32/drivers/ |
H A D | sync_serial.c | 1660 if (cdev_add(syncser_cdev, syncser_first, minor_count) < 0) { etrax_sync_serial_init()
|
/linux-4.1.27/drivers/staging/comedi/ |
H A D | comedi_fops.c | 2862 if (cdev_add(&comedi_cdev, MKDEV(COMEDI_MAJOR, 0), COMEDI_NUM_MINORS)) { comedi_init()
|
/linux-4.1.27/drivers/usb/core/ |
H A D | devio.c | 2427 retval = cdev_add(&usb_device_cdev, USB_DEVICE_DEV, USB_DEVICE_MAX); usb_devio_init()
|
/linux-4.1.27/drivers/scsi/ |
H A D | sg.c | 1488 error = cdev_add(cdev, MKDEV(SCSI_GENERIC_MAJOR, sdp->index), 1); sg_add_device()
|
H A D | st.c | 4049 error = cdev_add(cdev, cdev_devno, 1); create_one_cdev()
|
H A D | pmcraid.c | 5318 error = cdev_add(&pinstance->cdev, MKDEV(pmcraid_major, minor), 1); pmcraid_setup_chrdev()
|
/linux-4.1.27/drivers/infiniband/hw/ipath/ |
H A D | ipath_file_ops.c | 2457 ret = cdev_add(cdev, dev, 1); init_cdev()
|
/linux-4.1.27/drivers/infiniband/hw/qib/ |
H A D | qib_file_ops.c | 2298 ret = cdev_add(cdev, dev, 1); qib_cdev_init()
|
/linux-4.1.27/drivers/tty/vt/ |
H A D | vt.c | 3054 if (cdev_add(&vc0_cdev, MKDEV(TTY_MAJOR, 0), 1) || vty_init()
|