Searched refs:cdev_add (Results 1 - 70 of 70) sorted by relevance

/linux-4.1.27/include/linux/
H A Dcdev.h27 int cdev_add(struct cdev *, dev_t, unsigned);
/linux-4.1.27/arch/sh/boards/mach-landisk/
H A Dgio.c151 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 Dchar_dev.c262 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 Dtape_class.c73 rc = cdev_add(tcd->char_device, tcd->char_device->dev, 1); register_tape_dev()
H A Dhmcdrv_dev.c301 rc = cdev_add(&hmcdrv_dev.dev, hmcdrv_dev_no, 1); hmcdrv_dev_init()
H A Dvmlogrdr.c821 rc = cdev_add(vmlogrdr_cdev, vmlogrdr_cdev->dev, MAXMINOR); vmlogrdr_register_cdev()
H A Dvmur.c910 rc = cdev_add(urd->char_device, urd->char_device->dev, 1); ur_set_online()
/linux-4.1.27/drivers/char/
H A Dscx200_gpio.c110 cdev_add(&scx200_gpio_cdev, devid, MAX_PINS); scx200_gpio_init()
H A Dmsm_smd_pkt.c400 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 Dpc8736x_gpio.c326 cdev_add(&pc8736x_gpio_cdev, devid, PC8736X_GPIO_CT); pc8736x_gpio_init()
H A Draw.c335 ret = cdev_add(&raw_cdev, dev, max_raw_minors); raw_init()
H A Dbsr.c255 result = cdev_add(&cur->bsr_cdev, cur->bsr_dev, 1); bsr_add_node()
H A Dsnsc.c439 if (cdev_add(&scd->scd_cdev, dev, 1)) { scdrv_init()
H A Dtile-srom.c414 result = cdev_add(&srom_cdev, dev, srom_devs); srom_init()
H A Dvirtio_console.c1433 err = cdev_add(port->cdev, devt, 1); add_port()
/linux-4.1.27/drivers/staging/unisys/visorchipset/
H A Dfile.c154 rc = cdev_add(&file_cdev, MKDEV(MAJOR(major_dev), 0), 1); visorchipset_file_init()
/linux-4.1.27/drivers/char/tpm/
H A Dtpm-chip.c144 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 Dmedia-devnode.c258 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 Dmic_main.c406 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 Dosd_uld.c479 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 Dcros_ec_dev.c186 retval = cdev_add(&ec->cdev, devno, 1); ec_device_probe()
/linux-4.1.27/drivers/char/xilinx_hwicap/
H A Dxilinx_hwicap.c681 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 Dozcdev.c370 err = cdev_add(&g_cdev.cdev, g_cdev.devnum, 1); oz_cdev_register()
/linux-4.1.27/drivers/hid/
H A Dhid-roccat.c433 retval = cdev_add(&roccat_cdev, dev_id, ROCCAT_MAX_DEVICES); roccat_init()
H A Dhidraw.c605 result = cdev_add(&hidraw_cdev, dev_id, HIDRAW_MAX_DEVICES); hidraw_init()
/linux-4.1.27/drivers/pps/
H A Dpps.c319 err = cdev_add(&pps->cdev, devt, 1); pps_register_cdev()
/linux-4.1.27/kernel/time/
H A Dposix-clock.c218 err = cdev_add(&clk->cdev, devid, 1); posix_clock_register()
/linux-4.1.27/drivers/misc/cxl/
H A Dfile.c407 if ((rc = cdev_add(cdev, devt, 1))) { cxl_add_chardev()
/linux-4.1.27/drivers/misc/
H A Dphantom.c404 retval = cdev_add(&pht->cdev, MKDEV(phantom_major, minor), 1); phantom_probe()
H A Dhpilo.c819 error = cdev_add(&ilo_hw->cdev, MKDEV(ilo_major, start), max_ccb); ilo_probe()
/linux-4.1.27/drivers/rtc/
H A Drtc-dev.c484 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 Dadf_ctl_drv.c107 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 Ddvbdev.c607 if ((retval = cdev_add(&dvb_device_cdev, dev, MAX_DVB_MINORS)) != 0) { init_dvbdev()
/linux-4.1.27/fs/fuse/
H A Dcuse.c382 rc = cdev_add(cdev, devt, 1); cuse_process_init_reply()
/linux-4.1.27/drivers/watchdog/
H A Dwatchdog_dev.c548 err = cdev_add(&watchdog->cdev, devno, 1); watchdog_dev_register()
/linux-4.1.27/drivers/infiniband/core/
H A Duser_mad.c1182 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 Ducm.c1288 if (cdev_add(&ucm_dev->cdev, base, 1)) ib_ucm_add_one()
H A Duverbs_main.c935 if (cdev_add(&uverbs_dev->cdev, base, 1)) ib_uverbs_add_one()
/linux-4.1.27/drivers/mtd/ubi/
H A Dvmt.c317 err = cdev_add(&vol->cdev, dev, 1); ubi_create_volume()
646 err = cdev_add(&vol->cdev, dev, 1); ubi_add_volume()
H A Dbuild.c529 err = cdev_add(&ubi->cdev, dev, 1); uif_init()
/linux-4.1.27/drivers/media/v4l2-core/
H A Dv4l2-dev.c882 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 Dcard_dev.c1292 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 Dlirc_dev.c191 retval = cdev_add(cdev, MKDEV(MAJOR(lirc_base_dev), d->minor), 1); lirc_cdev_add()
/linux-4.1.27/drivers/misc/mei/
H A Dmain.c691 ret = cdev_add(&dev->cdev, devno, 1); mei_register()
/linux-4.1.27/drivers/input/
H A Djoydev.c921 error = cdev_add(&joydev->cdev, joydev->dev.devt, 1); joydev_connect()
H A Dmousedev.c905 error = cdev_add(&mousedev->cdev, mousedev->dev.devt, 1); mousedev_create()
H A Devdev.c1191 error = cdev_add(&evdev->cdev, evdev->dev.devt, 1); evdev_connect()
/linux-4.1.27/drivers/hsi/clients/
H A Dhsi_char.c732 ret = cdev_add(&cl_data->cdev, hsc_dev, HSC_DEVS); hsc_probe()
/linux-4.1.27/drivers/tty/
H A Dpty.c873 if (cdev_add(&ptmx_cdev, MKDEV(TTYAUX_MAJOR, 2), 1) || unix98_pty_init()
H A Dtty_io.c3222 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 Duio.c739 result = cdev_add(cdev, uio_dev, UIO_MAX_DEVICES); uio_major_init()
/linux-4.1.27/drivers/usb/gadget/function/
H A Df_hid.c670 status = cdev_add(&hidg->cdev, dev, 1); hidg_bind()
H A Df_printer.c1090 ret = cdev_add(&dev->printer_cdev, devt, 1); printer_func_bind()
/linux-4.1.27/drivers/iio/
H A Dindustrialio-core.c1225 ret = cdev_add(&indio_dev->chrdev, indio_dev->dev.devt, 1); iio_device_register()
/linux-4.1.27/drivers/net/
H A Dmacvtap.c1231 err = cdev_add(&macvtap_cdev, macvtap_major, MACVTAP_NUM_DEVS); macvtap_init()
/linux-4.1.27/drivers/staging/vme/devices/
H A Dvme_user.c786 err = cdev_add(vme_user_cdev, MKDEV(VME_MAJOR, 0), VME_DEVS); vme_user_probe()
/linux-4.1.27/block/
H A Dbsg.c1077 ret = cdev_add(&bsg_cdev, MKDEV(bsg_major, 0), BSG_MAX_DEVS); bsg_init()
/linux-4.1.27/arch/tile/kernel/
H A Dhardwall.c1090 rc = cdev_add(&hardwall_dev, dev, HARDWALL_TYPES); dev_hardwall_init()
/linux-4.1.27/drivers/usb/mon/
H A Dmon_bin.c1370 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 Dxillybus_core.c1825 rc = cdev_add(&endpoint->cdev, MKDEV(major, minor), xillybus_init_chrdev()
/linux-4.1.27/drivers/vfio/
H A Dvfio.c1566 ret = cdev_add(&vfio.group_cdev, vfio.group_devt, MINORMASK); vfio_init()
/linux-4.1.27/arch/cris/arch-v32/drivers/
H A Dsync_serial.c1660 if (cdev_add(syncser_cdev, syncser_first, minor_count) < 0) { etrax_sync_serial_init()
/linux-4.1.27/drivers/staging/comedi/
H A Dcomedi_fops.c2862 if (cdev_add(&comedi_cdev, MKDEV(COMEDI_MAJOR, 0), COMEDI_NUM_MINORS)) { comedi_init()
/linux-4.1.27/drivers/usb/core/
H A Ddevio.c2427 retval = cdev_add(&usb_device_cdev, USB_DEVICE_DEV, USB_DEVICE_MAX); usb_devio_init()
/linux-4.1.27/drivers/scsi/
H A Dsg.c1488 error = cdev_add(cdev, MKDEV(SCSI_GENERIC_MAJOR, sdp->index), 1); sg_add_device()
H A Dst.c4049 error = cdev_add(cdev, cdev_devno, 1); create_one_cdev()
H A Dpmcraid.c5318 error = cdev_add(&pinstance->cdev, MKDEV(pmcraid_major, minor), 1); pmcraid_setup_chrdev()
/linux-4.1.27/drivers/infiniband/hw/ipath/
H A Dipath_file_ops.c2457 ret = cdev_add(cdev, dev, 1); init_cdev()
/linux-4.1.27/drivers/infiniband/hw/qib/
H A Dqib_file_ops.c2298 ret = cdev_add(cdev, dev, 1); qib_cdev_init()
/linux-4.1.27/drivers/tty/vt/
H A Dvt.c3054 if (cdev_add(&vc0_cdev, MKDEV(TTY_MAJOR, 0), 1) || vty_init()

Completed in 2438 milliseconds